2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2018-04-23 05:00:33 +02:00
|
|
|
|
2021-07-25 23:53:02 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-11-28 13:54:57 +01:00
|
|
|
pname = "bftpd";
|
2021-08-20 18:23:58 +02:00
|
|
|
version = "6.0";
|
2018-04-23 05:00:33 +02:00
|
|
|
|
2016-11-28 13:54:57 +01:00
|
|
|
src = fetchurl {
|
2021-07-25 23:53:02 +02:00
|
|
|
url = "mirror://sourceforge/project/${pname}/${pname}/${pname}-${version}/${pname}-${version}.tar.gz";
|
2021-08-20 18:23:58 +02:00
|
|
|
sha256 = "sha256-t+YCys67drYKcD3GXxSVzZo4HTRZArIpA6EofeyPAlw=";
|
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;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://bftpd.sf.net/";
|
2018-04-23 05:00:33 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2020-08-13 06:20:00 +02:00
|
|
|
platforms = platforms.all;
|
2016-11-28 13:54:57 +01:00
|
|
|
};
|
|
|
|
}
|