3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/ftp/bftpd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1 KiB
Nix
Raw Normal View History

2022-09-30 03:06:10 +01:00
{ lib, stdenv, fetchurl, libxcrypt }:
2018-04-23 04:00:33 +01:00
stdenv.mkDerivation rec {
2016-11-28 12:54:57 +00:00
pname = "bftpd";
2022-02-10 19:15:57 +00:00
version = "6.1";
2018-04-23 04:00:33 +01:00
2016-11-28 12:54:57 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${pname}-${version}/${pname}-${version}.tar.gz";
2022-02-10 19:15:57 +00:00
sha256 = "sha256-lyHQYU4aXQ/muAyaigStqO/ULL393SOelagFmuKDqm8=";
2016-11-28 12:54:57 +00:00
};
2018-04-23 04:00:33 +01:00
2022-11-03 11:08:23 +00:00
# utmp.h is deprecated on aarch64-darwin
postPatch = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) ''
for file in login.*; do
substituteInPlace $file --replace "#ifdef HAVE_UTMP_H" "#if 0"
done
'';
2022-09-30 03:06:10 +01:00
buildInputs = [ libxcrypt ];
2016-11-28 12:54:57 +00:00
preConfigure = ''
sed -re 's/-[og] 0//g' -i Makefile*
'';
2018-04-23 04:00:33 +01:00
postInstall = ''
mkdir -p $out/share/doc/${pname}
mv $out/etc/*.conf $out/share/doc/${pname}
rm -rf $out/{etc,var}
'';
enableParallelBuilding = true;
meta = with lib; {
2018-04-23 04:00:33 +01:00
description = "A minimal ftp server";
2016-11-28 12:54:57 +00:00
downloadPage = "http://bftpd.sf.net/download.html";
homepage = "http://bftpd.sf.net/";
2018-04-23 04:00:33 +01:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
2020-08-13 05:20:00 +01:00
platforms = platforms.all;
2016-11-28 12:54:57 +00:00
};
}