2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2018-04-23 04:00:33 +01:00
|
|
|
|
|
|
|
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}";
|
2021-05-13 15:09:40 +01:00
|
|
|
version = "5.7";
|
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";
|
2021-05-13 15:09:40 +01:00
|
|
|
sha256 = "sha256-pUPOYqgJKntQZRRodcyYeFNLCdxKhT8sK1bi3jl6b0s=";
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 ];
|
2020-08-13 05:20:00 +01:00
|
|
|
platforms = platforms.all;
|
2016-11-28 12:54:57 +00:00
|
|
|
};
|
|
|
|
}
|