diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-11-05 21:14:30 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-11-05 21:14:30 +0000 |
commit | 36c0150c1ed085a0b3585dda667635d09f87a6fd (patch) | |
tree | 3013c7ec217ddc23c1529eb1b8f427197f256ea7 /pkgs/servers/mail | |
parent | 70035096a596bbfba7e10b81cf2aaa28c21760df (diff) | |
download | nixlib-36c0150c1ed085a0b3585dda667635d09f87a6fd.tar nixlib-36c0150c1ed085a0b3585dda667635d09f87a6fd.tar.gz nixlib-36c0150c1ed085a0b3585dda667635d09f87a6fd.tar.bz2 nixlib-36c0150c1ed085a0b3585dda667635d09f87a6fd.tar.lz nixlib-36c0150c1ed085a0b3585dda667635d09f87a6fd.tar.xz nixlib-36c0150c1ed085a0b3585dda667635d09f87a6fd.tar.zst nixlib-36c0150c1ed085a0b3585dda667635d09f87a6fd.zip |
I think these changes make postfix start again.
svn path=/nixpkgs/trunk/; revision=30246
Diffstat (limited to 'pkgs/servers/mail')
-rw-r--r-- | pkgs/servers/mail/postfix/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix index 85dd89f72d74..0fa2bf821a4e 100644 --- a/pkgs/servers/mail/postfix/default.nix +++ b/pkgs/servers/mail/postfix/default.nix @@ -26,8 +26,8 @@ stdenv.mkDerivation { mkdir $out/share/postfix/conf cp conf/* $out/share/postfix/conf - sed -e 's@PATH=.*@PATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:$out/sbin@' -i $out/share/postfix/conf/post-install - sed -e '2aPATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:$out/sbin' -i $out/share/postfix/conf/postfix-script + sed -e 's@PATH=.*@PATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:'$out'/sbin@' -i $out/share/postfix/conf/post-install $out/libexec/postfix/post-install + sed -e '2aPATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:'$out'/sbin' -i $out/share/postfix/conf/postfix-script $out/libexec/postfix/postfix-script chmod a+x $out/share/postfix/conf/{postfix-script,post-install} ''; @@ -49,6 +49,12 @@ stdenv.mkDerivation { buildInputs = [db4 openssl cyrus_sasl bison perl]; patches = [ ./postfix-2.2.9-db.patch ./postfix-2.2.9-lib.patch ./db-linux3.patch ]; + + postPatch = '' + sed -i -e s,/usr/bin,/var/run/current-system/sw/bin, \ + -e s,/usr/sbin,/var/run/current-system/sw/sbin, \ + -e s,:/sbin,, src/util/sys_defs.h + ''; inherit glibc; } |