diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-04-23 11:00:33 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-04-23 11:00:49 +0800 |
commit | 23ccc6904a5cd6f958a35e0e547bd65ed086f2bb (patch) | |
tree | f18439d91f6c1822d1fb7a52468b72ffc41a9c0b /pkgs/servers/ftp | |
parent | bc7c7b2b09ed93910a24645e284250351c9d023d (diff) |
bftpd: minor cleanups
Diffstat (limited to 'pkgs/servers/ftp')
-rw-r--r-- | pkgs/servers/ftp/bftpd/default.nix | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/pkgs/servers/ftp/bftpd/default.nix b/pkgs/servers/ftp/bftpd/default.nix index 38fb7d250e349..c35177e6aa90e 100644 --- a/pkgs/servers/ftp/bftpd/default.nix +++ b/pkgs/servers/ftp/bftpd/default.nix @@ -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; }; } |