nixpkgs/pkgs/servers/ftp/bftpd/default.nix

37 lines
847 B
Nix
Raw Normal View History

2018-04-23 04:00:33 +01:00
{ stdenv, fetchurl }:
let
2016-11-28 12:54:57 +00:00
pname = "bftpd";
2018-04-23 04:00:33 +01:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "5.2";
2018-04-23 04:00:33 +01:00
2016-11-28 12:54:57 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${name}/${name}.tar.gz";
sha256 = "0kmavljj3zwpgdib9nb14fnriiv0l9zm3hglimcyz26sxbw5jqky";
2016-11-28 12:54:57 +00:00
};
2018-04-23 04:00:33 +01:00
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 stdenv.lib; {
2016-11-28 12:54:57 +00:00
inherit version;
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";
2018-04-23 04:00:33 +01:00
homepage = http://bftpd.sf.net/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
2016-11-28 12:54:57 +00:00
};
}