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}";
|
2020-08-13 02:21:51 +01:00
|
|
|
version = "5.6";
|
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";
|
2020-08-13 02:21:51 +01:00
|
|
|
sha256 = "18ksld775balh0yx2icj7fya9fvjkfgvwznvccdlmhi3zidg550h";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://bftpd.sf.net/";
|
2018-04-23 04:00:33 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2016-11-28 12:54:57 +00:00
|
|
|
};
|
|
|
|
}
|