vsftpd userlist options added
svn path=/nixpkgs/trunk/; revision=14649
This commit is contained in:
parent
ba1b5fe28c
commit
eec829aad5
@ -1,9 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
ensureDir "$out/bin"
|
|
||||||
ensureDir "$out/sbin"
|
|
||||||
|
|
||||||
ensureDir "$out/man/man8"
|
|
||||||
ensureDir "$out/man/man5"
|
|
||||||
|
|
||||||
genericBuild
|
|
@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [ ./fix.patch ] ;
|
patches = [ ./fix.patch ] ;
|
||||||
preConfigure = ''sed -i "/VSF_BUILD_SSL/s/^#undef/#define/" builddefs.h'';
|
preConfigure = ''sed -i "/VSF_BUILD_SSL/s/^#undef/#define/" builddefs.h;
|
||||||
buildInputs = [ openssl libcap pam ];
|
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 ];
|
||||||
}
|
}
|
||||||
|
3
pkgs/servers/ftp/vsftpd/vsftpd.user_list
Normal file
3
pkgs/servers/ftp/vsftpd/vsftpd.user_list
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#list users here that can (not) connect to vsftpd (only needed when userlistenable=true)
|
||||||
|
|
||||||
|
raidbackup
|
Loading…
x
Reference in New Issue
Block a user