Updating our super-old postfix. 2.8.6 builds. I don't know if it serves well.


svn path=/nixpkgs/trunk/; revision=30244

+46 -7
+39
pkgs/servers/mail/postfix/db-linux3.patch
···
··· 1 + diff --git a/makedefs b/makedefs 2 + index b8b98c8..94443c0 100644 3 + --- a/makedefs 4 + +++ b/makedefs 5 + @@ -341,20 +341,20 @@ EOF 6 + esac 7 + ;; 8 + Linux.3*) SYSTYPE=LINUX3 9 + - if [ -f /usr/include/db.h ] 10 + - then 11 + - : we are all set 12 + - elif [ -f /usr/include/db/db.h ] 13 + - then 14 + - CCARGS="$CCARGS -I/usr/include/db" 15 + - else 16 + - # On a properly installed system, Postfix builds 17 + - # by including <db.h> and by linking with -ldb 18 + - echo "No <db.h> include file found." 1>&2 19 + - echo "Install the appropriate db*-devel package first." 1>&2 20 + - echo "See the RELEASE_NOTES file for more information." 1>&2 21 + - exit 1 22 + - fi 23 + + #if [ -f /usr/include/db.h ] 24 + + #then 25 + + #: we are all set 26 + + #elif [ -f /usr/include/db/db.h ] 27 + + #then 28 + + #CCARGS="$CCARGS -I/usr/include/db" 29 + + #else 30 + + ## On a properly installed system, Postfix builds 31 + + ## by including <db.h> and by linking with -ldb 32 + + #echo "No <db.h> include file found." 1>&2 33 + + #echo "Install the appropriate db*-devel package first." 1>&2 34 + + #echo "See the RELEASE_NOTES file for more information." 1>&2 35 + + #exit 1 36 + + #fi 37 + SYSLIBS="-ldb" 38 + for name in nsl resolv 39 + do
+7 -7
pkgs/servers/mail/postfix/default.nix
··· 1 { stdenv, fetchurl, db4, glibc, openssl, cyrus_sasl 2 - , coreutils, findutils, gnused, gnugrep 3 }: 4 5 assert stdenv.isLinux; 6 7 stdenv.mkDerivation { 8 - name = "postfix-2.2.11"; 9 10 src = fetchurl { 11 - url = ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/postfix-2.2.11.tar.gz; 12 - sha256 = "04hxpyd3h1f48fnppjwqqxbil13bcwidzpfkra2pgm7h42d9blq7"; 13 }; 14 15 installTargets = ["non-interactive-package"]; ··· 43 export sample_directory=$out/share/postfix/doc/samples 44 export readme_directory=$out/share/postfix/doc 45 46 - make makefiles CCARGS='-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DHAS_DB -I${cyrus_sasl}/include/sasl' AUXLIBS='-lssl -lcrypto -lsasl2 -ldb' 47 ''; 48 49 - buildInputs = [db4 openssl cyrus_sasl]; 50 51 - patches = [./postfix-2.2.9-db.patch ./postfix-2.2.9-lib.patch]; 52 53 inherit glibc; 54 }
··· 1 { stdenv, fetchurl, db4, glibc, openssl, cyrus_sasl 2 + , coreutils, findutils, gnused, gnugrep, bison, perl 3 }: 4 5 assert stdenv.isLinux; 6 7 stdenv.mkDerivation { 8 + name = "postfix-2.8.6"; 9 10 src = fetchurl { 11 + url = ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/postfix-2.8.6.tar.gz; 12 + sha256 = "1rfsfhna5hy5lc6hkg1zc2862pdc5c1y9z6aiy8rinlmzrfplhlb"; 13 }; 14 15 installTargets = ["non-interactive-package"]; ··· 43 export sample_directory=$out/share/postfix/doc/samples 44 export readme_directory=$out/share/postfix/doc 45 46 + make makefiles CCARGS='-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${cyrus_sasl}/include/sasl' AUXLIBS='-lssl -lcrypto -lsasl2 -ldb -lnsl' 47 ''; 48 49 + buildInputs = [db4 openssl cyrus_sasl bison perl]; 50 51 + patches = [ ./postfix-2.2.9-db.patch ./postfix-2.2.9-lib.patch ./db-linux3.patch ]; 52 53 inherit glibc; 54 }