aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-28 00:34:01 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-28 00:39:25 +0200
commitfe696f35f5e0789d4bc448bca4bbaf93d1182175 (patch)
tree4b69c0186f4bf6cbaa8711feb073dff2a5ade43b /pkgs
parent4506dbe51901f66406a02042b2097b3b3856e8a6 (diff)
downloadNix-fe696f35f5e0789d4bc448bca4bbaf93d1182175.tar.gz
Nix-fe696f35f5e0789d4bc448bca4bbaf93d1182175.tar.zst
Nix-fe696f35f5e0789d4bc448bca4bbaf93d1182175.zip
Remove private specificities from pure-ftpd package and lib
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/pure-ftpd/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/pure-ftpd/default.nix b/pkgs/pure-ftpd/default.nix
index 37ce695..32a7a91 100644
--- a/pkgs/pure-ftpd/default.nix
+++ b/pkgs/pure-ftpd/default.nix
@@ -1,4 +1,5 @@
1{ stdenv, fetchurl, openssl, postgresql, openldap }: 1{ ldapFtpId ? null
2, stdenv, fetchurl, openssl, postgresql, openldap }:
2 3
3stdenv.mkDerivation rec { 4stdenv.mkDerivation rec {
4 name = "pure-ftpd-1.0.47"; 5 name = "pure-ftpd-1.0.47";
@@ -8,9 +9,9 @@ stdenv.mkDerivation rec {
8 sha256 = "1b97ixva8m10vln8xrfwwwzi344bkgxqji26d0nrm1yzylbc6h27"; 9 sha256 = "1b97ixva8m10vln8xrfwwwzi344bkgxqji26d0nrm1yzylbc6h27";
9 }; 10 };
10 11
11 preConfigure = '' 12 preConfigure = stdenv.lib.optionalString (!isNull ldapFtpId) ''
12 sed -i -e "s#FTPuid#immaeFtpUid#" src/log_ldap.h 13 sed -i -e "s#FTPuid#${ldapFtpId}Uid#" src/log_ldap.h
13 sed -i -e "s#FTPgid#immaeFtpGid#" src/log_ldap.h 14 sed -i -e "s#FTPgid#${ldapFtpId}Gid#" src/log_ldap.h
14 ''; 15 '';
15 postConfigure = '' 16 postConfigure = ''
16 sed -i 's/define MAX_DATA_SIZE (40/define MAX_DATA_SIZE (70/' src/ftpd.h 17 sed -i 's/define MAX_DATA_SIZE (40/define MAX_DATA_SIZE (70/' src/ftpd.h