2018-04-23 05:00:33 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2016-11-28 13:54:57 +01:00
|
|
|
pname = "bftpd";
|
2018-04-23 05:00:33 +02:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-11-10 17:19:17 +01:00
|
|
|
version = "5.0";
|
2018-04-23 05:00:33 +02:00
|
|
|
|
2016-11-28 13:54:57 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/${pname}/${pname}/${name}/${name}.tar.gz";
|
2018-11-10 17:19:17 +01:00
|
|
|
sha256 = "1qagqsbg7zblkhg3vrj47k5f1q09r4az7gna86rxf253kmg90yqp";
|
2016-11-28 13:54:57 +01:00
|
|
|
};
|
2018-04-23 05:00:33 +02:00
|
|
|
|
2016-11-28 13:54:57 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -re 's/-[og] 0//g' -i Makefile*
|
|
|
|
'';
|
2018-04-23 05:00:33 +02: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 13:54:57 +01:00
|
|
|
inherit version;
|
2018-04-23 05:00:33 +02:00
|
|
|
description = "A minimal ftp server";
|
2016-11-28 13:54:57 +01:00
|
|
|
downloadPage = "http://bftpd.sf.net/download.html";
|
2018-04-23 05:00:33 +02:00
|
|
|
homepage = http://bftpd.sf.net/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2016-11-28 13:54:57 +01:00
|
|
|
};
|
|
|
|
}
|