3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/ftp/vsftpd/default.nix
Yury G. Kudryashov 68373da7ee vsftpd: builds with gcc-4.2 now
svn path=/nixpkgs/branches/stdenv-updates/; revision=10297
2008-01-25 16:00:05 +00:00

21 lines
511 B
Nix

args: with args;
stdenv.mkDerivation rec {
name = "vsftpd-2.0.5";
src = fetchurl {
url = "ftp://vsftpd.beasts.org/users/cevans/${name}.tar.gz";
sha256 = "0nzsxknnaqnfk853yjsmi31sl02jf5ydix9wxbldv4i7vzqfnqjl";
};
NIX_LDFLAGS = "-lcrypt -lssl -lcrypto -lpam -lcap";
preInstall = ''
ensureDir $out/{,s}bin
ensureDir $out/man/man{5,8}
'';
patches = [ ./fix.patch ] ;
preConfigure = ''sed -i "/VSF_BUILD_SSL/s/^#undef/#define/" builddefs.h'';
buildInputs = [ openssl libcap pam ];
}