procmail: syntax changed, mailstat should work

svn path=/nixpkgs/branches/stdenv-updates/; revision=10437
This commit is contained in:
Yury G. Kudryashov 2008-01-31 17:32:06 +00:00
parent 7e13db2780
commit ecea9e1e0d

View File

@ -1,18 +1,13 @@
args: with args; args: with args;
stdenv.mkDerivation { stdenv.mkDerivation {
name="procmail-3.22"; name="procmail-3.22";
buildInputs = [stdenv.gcc.libc]; patchPhase = "find . -type f | xargs sed -i 's@/bin/rm@rm@g' ";
installPhase = " configurePhase= "make init";
ensureDir \$out/bin makeFlags = ''BASENAME=$(out) LIBS=-lm'';
find . -exec sed -e \"s%^RM[ \\t]*=%RM=`type -f rm | awk '{print $3;}'`%\" -i '{}' ';'
sed -e 's%\\(LDFLAGS = \$(LDFLAGS1) -lnsl -ldl -lc\\)%\\1 -m%' -i src/Makefile postInstall = '' sed -i /^PATH/d $out/bin/mailstat '';
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
make DESTDIR=\$out install
";
phases ="installPhase";
src = fetchurl { src = fetchurl {
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz; url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"; sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
}; };
o=62;
} }