2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl, openssl, libcap, pam }:
|
2005-09-12 15:20:57 +00:00
|
|
|
|
2008-01-31 14:08:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vsftpd-2.0.5";
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2005-09-12 15:20:57 +00:00
|
|
|
src = fetchurl {
|
2008-01-31 14:08:02 +00:00
|
|
|
url = "ftp://vsftpd.beasts.org/users/cevans/${name}.tar.gz";
|
|
|
|
sha256 = "0nzsxknnaqnfk853yjsmi31sl02jf5ydix9wxbldv4i7vzqfnqjl";
|
2005-09-12 15:20:57 +00:00
|
|
|
};
|
|
|
|
|
2008-01-31 14:08:02 +00:00
|
|
|
NIX_LDFLAGS = "-lcrypt -lssl -lcrypto -lpam -lcap";
|
2005-09-12 15:20:57 +00:00
|
|
|
|
2008-01-31 14:08:02 +00:00
|
|
|
preInstall = ''
|
2010-07-28 11:55:54 +00:00
|
|
|
ensureDir $out/{,s}bin
|
|
|
|
ensureDir $out/man/man{5,8}
|
2008-01-31 14:08:02 +00:00
|
|
|
'';
|
2005-09-12 15:20:57 +00:00
|
|
|
|
|
|
|
patches = [ ./fix.patch ] ;
|
2010-07-28 11:55:54 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i "/VSF_BUILD_SSL/s/^#undef/#define/" builddefs.h
|
|
|
|
sed -i "s@/etc/vsftpd.user_list@$out/vsftpd.user_list@" vsftpd.conf.5 tunables.c
|
|
|
|
'';
|
2009-03-22 15:32:28 +00:00
|
|
|
|
|
|
|
postInstall = "cp ${./vsftpd.user_list} $out/vsftpd.user_list";
|
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
buildInputs = [ openssl libcap pam ];
|
2005-09-12 15:20:57 +00:00
|
|
|
}
|