bftpd: minor cleanups

This commit is contained in:
Peter Hoeg 2018-04-23 11:00:33 +08:00
parent bc7c7b2b09
commit 23ccc6904a

View file

@ -1,24 +1,36 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
{ stdenv, fetchurl }:
let
pname = "bftpd";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "4.9";
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${name}/${name}.tar.gz";
sha256 = "13pjil9cjggpi773m0516lszyqvwzlgcrmmj8yn9nc24rbxwvn6d";
};
buildInputs = [];
preConfigure = ''
sed -re 's/-[og] 0//g' -i Makefile*
'';
meta = {
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; {
inherit version;
description = ''A minimal ftp server'';
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
homepage = http://bftpd.sf.net/;
description = "A minimal ftp server";
downloadPage = "http://bftpd.sf.net/download.html";
homepage = http://bftpd.sf.net/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
};
}