diff options
author | Peter Simons <simons@cryp.to> | 2015-11-08 18:10:26 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-11-08 18:10:26 +0100 |
commit | adb74ad2f935e2ec66b799d6a001825fc6736c85 (patch) | |
tree | 60fbb95a557056f75f1ece45840a22cf6624f13e /pkgs | |
parent | 6687047a049a5c5d6dc2dc895e42d1af4fce9674 (diff) | |
parent | 929e734f19f6b3a4ff89fe87e0ff424bd70bb7c9 (diff) | |
download | nixlib-adb74ad2f935e2ec66b799d6a001825fc6736c85.tar nixlib-adb74ad2f935e2ec66b799d6a001825fc6736c85.tar.gz nixlib-adb74ad2f935e2ec66b799d6a001825fc6736c85.tar.bz2 nixlib-adb74ad2f935e2ec66b799d6a001825fc6736c85.tar.lz nixlib-adb74ad2f935e2ec66b799d6a001825fc6736c85.tar.xz nixlib-adb74ad2f935e2ec66b799d6a001825fc6736c85.tar.zst nixlib-adb74ad2f935e2ec66b799d6a001825fc6736c85.zip |
Merge pull request #10620 from gebner/postfix-3.0.3
postfix: 2.11.5 -> 3.0.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/mail/postfix/3.0.nix | 63 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 65 insertions, 3 deletions
diff --git a/pkgs/servers/mail/postfix/3.0.nix b/pkgs/servers/mail/postfix/3.0.nix new file mode 100644 index 000000000000..93f419bc7f68 --- /dev/null +++ b/pkgs/servers/mail/postfix/3.0.nix @@ -0,0 +1,63 @@ +{ stdenv, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl, coreutils +, findutils, gnugrep, gawk, icu +}: + +stdenv.mkDerivation rec { + + name = "postfix-${version}"; + + version = "3.0.3"; + + src = fetchurl { + url = "ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/${name}.tar.gz"; + sha256 = "00mc12k5p1zlrlqcf33vh5zizaqr5ai8q78dwv69smjh6kn4c7j0"; + }; + + buildInputs = [ makeWrapper gnused db openssl cyrus_sasl icu ]; + + preBuild = '' + sed -e '/^PATH=/d' -i postfix-install + + export command_directory=$out/sbin + export config_directory=/etc/postfix + export daemon_directory=$out/libexec/postfix + export data_directory=/var/lib/postfix + export html_directory=$out/share/postfix/doc/html + export mailq_path=$out/bin/mailq + export manpage_directory=$out/share/man + export newaliases_path=$out/bin/newaliases + export queue_directory=/var/spool/postfix + export readme_directory=$out/share/postfix/doc + export sendmail_path=$out/bin/sendmail + + make makefiles \ + CCARGS='-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${cyrus_sasl}/include/sasl \ + -DHAS_DB_BYPASS_MAKEDEFS_CHECK \ + -fPIE -fstack-protector-all --param ssp-buffer-size=4 -O2 -D_FORTIFY_SOURCE=2' \ + AUXLIBS='-ldb -lnsl -lresolv -lsasl2 -lcrypto -lssl -pie -Wl,-z,relro,-z,now' + ''; + + installTargets = [ "non-interactive-package" ]; + + installFlags = [ " install_root=installdir " ]; + + postInstall = '' + mkdir -p $out + mv -v installdir/$out/* $out/ + mv -v installdir/etc $out/etc + sed -e '/^PATH=/d' -i $out/libexec/postfix/post-install + wrapProgram $out/libexec/postfix/post-install \ + --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin + wrapProgram $out/libexec/postfix/postfix-script \ + --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin:${gawk}/bin:${gnused}/bin + ''; + + meta = { + homepage = "http://www.postfix.org/"; + description = "A fast, easy to administer, and secure mail server"; + license = stdenv.lib.licenses.bsdOriginal; + platforms = stdenv.lib.platforms.linux; + maintainers = [ stdenv.lib.maintainers.rickynils ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 85f6b77eb0f0..daebffa64409 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9207,10 +9207,9 @@ let popa3d = callPackage ../servers/mail/popa3d { }; postfix28 = callPackage ../servers/mail/postfix { }; - postfix211 = callPackage ../servers/mail/postfix/2.11.nix { }; - - postfix = postfix211; + postfix30 = callPackage ../servers/mail/postfix/3.0.nix { }; + postfix = postfix30; pshs = callPackage ../servers/http/pshs { }; |