vsftpd userlist options added

svn path=/nixpkgs/trunk/; revision=14649
This commit is contained in:
Wouter den Breejen 2009-03-22 15:32:28 +00:00
parent ba1b5fe28c
commit eec829aad5
3 changed files with 10 additions and 11 deletions

View file

@ -1,9 +0,0 @@
source $stdenv/setup
ensureDir "$out/bin"
ensureDir "$out/sbin"
ensureDir "$out/man/man8"
ensureDir "$out/man/man5"
genericBuild

View file

@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
'';
patches = [ ./fix.patch ] ;
preConfigure = ''sed -i "/VSF_BUILD_SSL/s/^#undef/#define/" builddefs.h'';
buildInputs = [ openssl libcap pam ];
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'';
configFile = ./vsftpd.user_list;
postInstall = "cp ${./vsftpd.user_list} $out/vsftpd.user_list";
buildInputs = [ openssl libcap pam configFile ];
}

View file

@ -0,0 +1,3 @@
#list users here that can (not) connect to vsftpd (only needed when userlistenable=true)
raidbackup