From b73d0fa0adbaf82cce1b59d3b9895ea51782e657 Mon Sep 17 00:00:00 2001 From: Eray Aslan Date: Tue, 18 Mar 2014 18:35:52 +0000 Subject: Version bump Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F --- mail-mta/postfix/ChangeLog | 8 +- mail-mta/postfix/Manifest | 32 +-- mail-mta/postfix/postfix-2.12_pre20140223.ebuild | 321 ----------------------- mail-mta/postfix/postfix-2.12_pre20140316.ebuild | 321 +++++++++++++++++++++++ 4 files changed, 344 insertions(+), 338 deletions(-) delete mode 100644 mail-mta/postfix/postfix-2.12_pre20140223.ebuild create mode 100644 mail-mta/postfix/postfix-2.12_pre20140316.ebuild (limited to 'mail-mta') diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog index f183f70ee49f..e210596068e0 100644 --- a/mail-mta/postfix/ChangeLog +++ b/mail-mta/postfix/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-mta/postfix # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.496 2014/02/27 15:16:37 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.497 2014/03/18 18:35:42 eras Exp $ + +*postfix-2.12_pre20140316 (18 Mar 2014) + + 18 Mar 2014; Eray Aslan +postfix-2.12_pre20140316.ebuild, + -postfix-2.12_pre20140223.ebuild: + Version bump *postfix-2.12_pre20140223 (27 Feb 2014) diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest index ac6bc3b2554f..fd59069a19a9 100644 --- a/mail-mta/postfix/Manifest +++ b/mail-mta/postfix/Manifest @@ -10,7 +10,7 @@ DIST postfix-2.10.1.tar.gz 3827595 SHA256 2e85a62e97418bbb022b4d4433098a7f25adc7 DIST postfix-2.10.2.tar.gz 3828326 SHA256 f1a735a5a9ffeac8fca59046c437c3b76e7f923fb4249db2a55b2bff0306ddd4 SHA512 fa6c123da040a8e332c0bf2430f5b098523c2eff42a6cf4bfe6618b82d59be8e5a7f5c85b09ab8fd0312058b2135b174e00890423e4d3f8f732c3dc3c91f01c3 WHIRLPOOL 4e1e453ecd653058faf7420d6bfb6ac6a6c343f03f9c1a4213c403a7164d99f659a0b9ba744b803c3d94cfaf3216d3505f44d22069421f6cc4a4651b6be1f316 DIST postfix-2.10.3.tar.gz 3828808 SHA256 7815d8ad88af76e0962f18bf1e80b1aa5a0d096a00dac1d313fbab3e824b3f5b SHA512 f21ae36f9fa7fd8ad1727f5595e0f65fe49a3a5937269ad68b0a96e666e61d49cf6c72303d84c81ae7fc902146121443f9e27b876b447594557a756f239937d1 WHIRLPOOL b7a7c6f31a78a9ce92ca072c11e1ecc44c72cd5c37fb2067f91a4bcb2a92556e60f41ba23e065c31acd58a97f5497d4f62af01edd3003de5e6c6879a304a4a9f DIST postfix-2.11.0.tar.gz 4034741 SHA256 ca1d9d32d5662678dc4e3f700cce82f5d7bed6a614852b17b1a5166936330c38 SHA512 3bd98a6d573ee5f326ceb11546de28731c36f5e6671db30072b2ce3662956f0ba77cb165450a8d69f485b3ed9ac8b520c064775fdee35425a6e457ee31a1d953 WHIRLPOOL d3b1264c078091296f3da1ad0f715ebdaf3f234c9d29e453641a72d6de9b92c19a5a75d723e7d6e21a5fe6658ea244ec0f46d5ca0b6307c3761fea3210a111df -DIST postfix-2.12-20140223.tar.gz 4017282 SHA256 170cc7587871927a72f649da834513eab61673acf559e456a2025ab211b417c8 SHA512 3accb012e0165394a9a7fea23d5bf5fc67d4c8a9098001b4b86e84e481698db9d37e45d78a26bf9fb66ff7b409ef313d242752dc29f465eb7a2d186484fd08b4 WHIRLPOOL 1b1572edae534a2d9b0731aa943834c838331168851e70854856e37b62b4bf127c1ef04f1da602c239c2c1dcceadcadb7989b7b025d6f912122457b5dd30e2ae +DIST postfix-2.12-20140316.tar.gz 4024629 SHA256 1cd26608a4cac58239d0509293a2f27c76d92f22b12bc77efe288abee84d8bb1 SHA512 d6bc97d47f3232013cdada0403fb1d8310a7648631e837a0864c397e79a9a7dc4805b7d861a5aa92ede1ddeade559628e0c6f70d51daa860c70020344b82631f WHIRLPOOL ef34e617bd804a7959f2e4f02f244dac439b1dc5378f66c0e3d98a85aad416f2109edb10416cab46b28d1b4967fd7d7278bb2d082373af94f574707a87280adc DIST postfix-vda-v11-2.9.5.patch 55009 SHA256 df30379c456971a514ae5587531bb5cd8492921a6a27e6d23f5014a1434945aa SHA512 c44497536e2bc313f2301e799a6614f396fc7bb06ef31493460edc59b0922b4d9a24802a84e2b8cf158277f5b0c8c59b53a4f8ef6896ee1e2ba538c562687010 WHIRLPOOL 70c438d2e98aaae6ebd37fadb5d5d0cbe3b31baf2119657009802be62bfeef7dc6a6e62fc8259bfe635ccbf4b0c8ffa17b35a04648c6c138575dda8314a28744 DIST postfix-vda-v13-2.10.0.patch 55701 SHA256 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f SHA512 0b4b53a8cd28abf56eee3b2ed63ca1814251b60816e6ca1143249d25fd6ef7f905bec3134125ac6e851af685db8aae878012113693261529ae2ddbcf1bd93e62 WHIRLPOOL d98b7d2177b8b69738086880fd08c336fa60b99ff7413624e628fd5f17be2064f2ccaa37c047d3013ed41c0ff1bcb76e7962f8390c4179f28ab11733dd3b59d3 EBUILD postfix-2.10.0.ebuild 10381 SHA256 e2bfafb98afdfc9c8f3e36a2dbfb0bb466d3e2f2bb0c188c3af7f34d684754d9 SHA512 9a7ff4685cc69095c527314d70003cb543c9b6951c92129bfd91def0bd0e84bcee666404a36f00b6f75290ce79784146a049bdb5009ea3f346afb5608c325623 WHIRLPOOL 3fc14e1b125f81ea11d420448718d050cabe1da95e823fcd7ee4267a9a3fd6b8c8955f5601d236f649ad819d0acf0cb27e0f9d49bf5c9f7865c1ceadd457a816 @@ -18,24 +18,24 @@ EBUILD postfix-2.10.1.ebuild 9624 SHA256 d47ac79a5780d62239f23f1802b40326e9f39e4 EBUILD postfix-2.10.2.ebuild 9625 SHA256 fb54cd49a8ac2f55e17f4a996acc7cbe240d49a783d777fe5bfece4a95cf7c81 SHA512 6e7103715a5e115ba95a4b3d7a8937c120bce99a2a144f10f06167c892ea85db36a576e7344e5c45bc9a4177d811450f380a2473b79e428d43a3eb3b57c24c3a WHIRLPOOL dbab1c13c6cc69c4319adf63840225fe254d99114a625f83dcf5bf127589d35d74f41d2e10c5c2e7eda597347d239f35e21cc5a59d62644204d2a9fb6d29925d EBUILD postfix-2.10.3.ebuild 9634 SHA256 b6096da3bd43096791b84b8e5b48afd2532a5b72bb41ac379d4b7820f15e3ea0 SHA512 3f5704b95744de23c92a095bced161fb66e9fcf2ab1368c277da505e6ee72c065c275168cd260dd75a9bd1d64915d83149b258782e58d05c4a94c3ee113d3757 WHIRLPOOL a6ba5ca5872390bbd6ebcf7c6dfdb03a1334239fdeb446195be99eaecb2e98a26c6c0141416e707a5060a3e3a0be0762ac3beb17e11e18302b7c7c84e9aa7e54 EBUILD postfix-2.11.0.ebuild 9690 SHA256 4f96e4c0015aeb66564a612732efe15da6d799175d9454907539c6555784bd8e SHA512 8343dbade61d6b284ae099aa38120e0de9c855beb836d265fdd4f6684bf8c98736c0b1e3f4bdf4818c46f3e48eda953ea240ed1de426ad6acb2e8c0c469b1b06 WHIRLPOOL 5dc62d597b70f86d99681bdae483c1e3a166bc95c93d6453d798565fb5192716627fbe033ccb82f59e2570ee32e0b545005eb99ba07b007aacf40ddda252ffd8 -EBUILD postfix-2.12_pre20140223.ebuild 9704 SHA256 13f4e20e2aa3070a6ae727f308360967526cd79df26e5f304d06edb88e5c2497 SHA512 cedd4a589a796c7569993420dbe4bdc4ca3c7bd33f90cf6aad5b4377bbeaaf15192e3eba3eea244aeab6594d06b09246a3a834ef983f44bc89ec72996101282f WHIRLPOOL 58c4e1da7994211f6b158bfcd7fc53c4aeb74c14537590f4b52914562f990c9c8ab1b6f0fb7115fdfb3a42371ce4ae8368f0ea9457631df5b27360bbee9a612c -MISC ChangeLog 1827 SHA256 8306e44a66f2922b5872efbec633c803387e6223a3b3fb9576fc3dd34cd37916 SHA512 2f722592f71c5bec6433074209d7d701b41eaae54653f9e14adef9183b588d76f83b5d3f50ff6eaf8029a4fef3ad0aa7704d1535e851e12bfdf291c21695d1c3 WHIRLPOOL d647e5818a8dd1d1e4f164735b143a5c08f9bb12307b5672d1d1986850dc5a3ab3c61ceda515405e9d27016c66c5740befa000c80ab162cc548ae8d64f809015 +EBUILD postfix-2.12_pre20140316.ebuild 9704 SHA256 bd20fea16423b93ce3b372d55b6bdf73cb8f157ac4815c9a016d3ed9195537e4 SHA512 94acf05b92965a84d9407349af1e7c184f96db2ba888f520d366403cf16bb4cc384d25a86932f3fe4038a4e27112984d33cb65c581d2b0b4841dfc5655573159 WHIRLPOOL eb747e19b851bdc7208db3e167471be4686c03c5ad549d201e260b7c3b5a5a4f507fe5cee43618445277cac58c3125fcedcd98cac216a55624a7b7ad272eb802 +MISC ChangeLog 1998 SHA256 2054b2d5ec902ec463c337fe6fcd3faa602510e925d26c38a3bf2fde59d10dab SHA512 2bf4ec323b67da9a5079dd42ad408cacc5fded2ee5ce2456fa80a2f66b00ad291d915ced2a70bd9fdc21b045e7b6297709511bac9c0feb4e06c7fa4588c48674 WHIRLPOOL ea7ba3d664c695b242910143fad64ab6ffce98fb4827027ab81695b0169d5efff796a3dde0f883b0e1b5dadee3ab8f23184946ad03f0017db7dec6755f9e656c MISC ChangeLog-2013 100301 SHA256 439e93c3f6ea08471888157d2347da51181aa9031d4bfdeef2197a6b26680246 SHA512 c678433163e86def50d59e47d7a1a0e8f4c4af860f80932255a7c95544e1f5b55a70b68905b02a417b2332bcf3aaa59281814d8504d70085f0874a23faa2bf02 WHIRLPOOL 15a12897a576cf98d856c551157b72b47aa45fd61d05c6ed55033ce37ce247045c6bcc8143b7ccce4666900d85e0a04087c977a311e31c20f554a991bec74fbc MISC metadata.xml 707 SHA256 1b5bd2fd60bed0349973daf64aacc58442f8a6bded2670785a0291ebe8881eda SHA512 20a4578acd5a5ed18faa564f3be1e7fdbb91997b487911cca0d3013c3453d5a23b6e3fe281efd364cff676be2eee95356e61c0444b2d8b537356fc40a1828ce9 WHIRLPOOL 3b6c960f6198cc885244bf46afa98c13b02f3516ccbf846f34325b548cb49db9135807d6f5fae99375830ea513e100f318ab1960061bad154c9f5721c2551652 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJTD1bhAAoJEHfx8XVYajsfL/AP/1+0f52UqnKavQtODiaTs5Y2 -KW4rySLp9JqF+hLXZqJsJnZ5MNaeJTW2khAUff4WC33Iq6Xm/3dH55T8z0CEZzRy -IftMXcE39n8mVRi910nutHgwC6LR4Tdr42nCV1GOCXGO0vxurxdA2UWSHazi4lk2 -vfgRP+IECDs8CUlEWGm9o/xXwRFVhZv+2A1nlxpm+uF8x70YNfhQiwwFtdDg35bD -8mESg8LKrvBgOSd6tjzqRYJOybpdLIWAJ/DK1CH9M6fDePLcfPovR7ZdaesRiM0S -+s2u1HAi7Ln4k0bY13mL5koLh87MvrYhN5Tq3DIevt3NEg4FGou+J8N7scbAPlq1 -q8NRM0XPuc5hjbK8eciE3BDt6kDySN9txQw7a7XhaXhHSJjqfPVEGJxj5l1KMnTt -3lcGdpJ1R6+L3jZf5YAZMPeHxOgzj1uuO2aG9fJgrEW1Kkp+ZKBhmgK5mZQs8iSU -/kLmovzbGJyfTakblNJxMa+NDBZ8XlXl5EggqiHqwfgzJVlALgnxy/jlr+3Dd3wB -dIAuz9Knj2gJbqSkMRJ/bfDv8+iqaFSc9VtqE9LastdfnpfvJnPRyP2lMgdzIr+O -Eu9M11VLWz+vWj06EW3gjkH1btaFpDpEY/YxN+pSoFgt3eTcWZ7mMfAXMMfu/KPn -A1SE0OAiMrHh3+CXo/SZ -=M28u +iQIcBAEBCAAGBQJTKJIHAAoJEHfx8XVYajsfdIEP/RJMIqqkpG9Jvy1fR6ECFhLH +jojkAEnQX1QrJRFbYQ8kG8X1iiaPD6FFViVVXB0XgH7uFX4ywk6LedGP/qq28gKy +3DAJF/wb8TlzBaqNjyBAtynCj0os9FBPoYX/13buZM4qhOWuFtujssEYHVsnY9sh +RqorPBHYpsvlUB6uKXOdqO6boxcOloSAeaKX1m3RvJfSLXqHWGHDih+vtgbSlvvr +K2H1pi1qUdp+oxdm7ruOgtYvoRkG4dYZbsFSCX/mRpkMX/+axX9mMeqXtRjBQeKq +aRadQC4W9puWz19ck/hyxvAH7apyMo0JBTA63SAgstVcnYtVKrSThaYLFZljxdjJ ++yO7SqjbREZwyM2jGtiAJYIOsgC6RBXOQ7HGpapy69WgGigbSMMqOzDWjpIvnRvL +bqxJg/RiQM3fvQWMtJPljgesIA+wJ5q0LRsBAGmwHo0xsoBr1M5nJ9fDmQjl8y+u +QuFc2HL6hdvCXaKfgbKAKyRN10p7JdRdKkaTTc21lFhMeDf/JYM+uStgS+J0An+P +oC2a7gX1ctZl8qmGTguXF44xkZI2K6vI7wA3qIR+9Vg1NS9is64alV1yfM44qZGn +NwYAHl+x0tEQVXrzsZLiqzpH2bNkvPsOErxp926O3nGyf8qK6oXP2Sk9VXK4W5Lq +000nQcE7XhE4fHLhAzpx +=6oE3 -----END PGP SIGNATURE----- diff --git a/mail-mta/postfix/postfix-2.12_pre20140223.ebuild b/mail-mta/postfix/postfix-2.12_pre20140223.ebuild deleted file mode 100644 index be8d2828f371..000000000000 --- a/mail-mta/postfix/postfix-2.12_pre20140223.ebuild +++ /dev/null @@ -1,321 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.12_pre20140223.ebuild,v 1.1 2014/02/27 15:16:37 eras Exp $ - -EAPI=5 -inherit eutils flag-o-matic multilib pam ssl-cert systemd toolchain-funcs user versionator - -MY_PV="${PV/_pre/-}" -MY_SRC="${PN}-${MY_PV}" -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/experimental" -VDA_PV="2.10.0" -VDA_P="${PN}-vda-v13-${VDA_PV}" -RC_VER="2.7" - -DESCRIPTION="A fast and secure drop-in replacement for sendmail." -HOMEPAGE="http://www.postfix.org/" -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz - vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch ) " - -LICENSE="IBM" -SLOT="0" -KEYWORDS="~amd64 ~arm ~hppa ~x86" -IUSE="+berkdb cdb doc dovecot-sasl hardened ldap ldap-bind lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl vda" - -DEPEND=">=dev-libs/libpcre-3.4 - dev-lang/perl - berkdb? ( >=sys-libs/db-3.2 ) - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r1 ) ) - ldap? ( net-nds/openldap ) - ldap-bind? ( net-nds/openldap[sasl] ) - lmdb? ( >=dev-db/lmdb-0.9.11 ) - mysql? ( virtual/mysql ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - sasl? ( >=dev-libs/cyrus-sasl-2 ) - sqlite? ( dev-db/sqlite:3 ) - ssl? ( >=dev-libs/openssl-0.9.6g )" - -RDEPEND="${DEPEND} - dovecot-sasl? ( net-mail/dovecot ) - memcached? ( net-misc/memcached ) - net-mail/mailbase - selinux? ( sec-policy/selinux-postfix ) - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/mini-qmail - !mail-mta/msmtp[mta] - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/qmail-ldap - !mail-mta/sendmail - !mail-mta/opensmtpd - !=mail-mta/ssmtp-2.64-r2[mta] - !net-mail/fastforward" - -REQUIRED_USE="ldap-bind? ( ldap sasl )" - -S="${WORKDIR}/${MY_SRC}" - -pkg_setup() { - # Add postfix, postdrop user/group (bug #77565) - enewgroup postfix 207 - enewgroup postdrop 208 - enewuser postfix 207 -1 /var/spool/postfix postfix,mail -} - -src_prepare() { - if use vda; then - epatch "${DISTDIR}"/${VDA_P}.patch - fi - - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ - src/util/sys_defs.h || die "sed failed" - - # change default paths to better comply with portage standard paths - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" -} - -src_configure() { - # Make sure LDFLAGS get passed down to the executables. - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread" - - use pam && mylibs="${mylibs} -lpam" - - if use ldap; then - mycc="${mycc} -DHAS_LDAP" - mylibs="${mylibs} -lldap -llber" - fi - - if use mysql; then - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" - mylibs="${mylibs} $(mysql_config --libs)" - fi - - if use postgres; then - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" - mylibs="${mylibs} -lpq -L$(pg_config --libdir)" - fi - - if use sqlite; then - mycc="${mycc} -DHAS_SQLITE" - mylibs="${mylibs} -lsqlite3" - fi - - if use ssl; then - mycc="${mycc} -DUSE_TLS" - mylibs="${mylibs} -lssl -lcrypto" - fi - - if use lmdb; then - mycc="${mycc} -DHAS_LMDB" - mylibs="${mylibs} -llmdb" - fi - - # broken. and "in other words, not supported" by upstream. - # Use inet_protocols setting in main.cf - #if ! use ipv6; then - # mycc="${mycc} -DNO_IPV6" - #fi - - if use sasl; then - if use dovecot-sasl; then - # Set dovecot as default. - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" - fi - if use ldap-bind; then - mycc="${mycc} -DUSE_LDAP_SASL" - fi - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" - mylibs="${mylibs} -lsasl2" - elif use dovecot-sasl; then - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" - fi - - if ! use nis; then - mycc="${mycc} -DNO_NIS" - fi - - if ! use berkdb; then - mycc="${mycc} -DNO_DB" - if use cdb; then - # change default hash format from Berkeley DB to cdb - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" - fi - fi - - if use cdb; then - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" - CDB_LIBS="" - # Tinycdb is preferred. - if has_version dev-db/tinycdb ; then - einfo "Building with dev-db/tinycdb" - CDB_LIBS="-lcdb" - else - einfo "Building with dev-db/cdb" - CDB_PATH="/usr/$(get_libdir)" - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do - CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}" - done - fi - mylibs="${mylibs} ${CDB_LIBS}" - fi - - # Robin H. Johnson 17/Nov/2006 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" - filter-lfs-flags - - # Workaround for bug #76512 - if use hardened; then - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os - fi - - # Remove annoying C++ comment style warnings - bug #378099 - append-flags -Wno-comment - - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs - emake DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" makefiles -} - -src_install () { - local myconf - use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ - html_directory=\"/usr/share/doc/${PF}/html\"" - - /bin/sh postfix-install \ - -non-interactive \ - install_root="${D}" \ - config_directory="/etc/postfix" \ - manpage_directory="/usr/share/man" \ - command_directory="/usr/sbin" \ - mailq_path="/usr/bin/mailq" \ - newaliases_path="/usr/bin/newaliases" \ - sendmail_path="/usr/sbin/sendmail" \ - ${myconf} \ - || die "postfix-install failed" - - # Fix spool removal on upgrade - rm -Rf "${D}"/var - keepdir /var/spool/postfix - - # Install rmail for UUCP, closes bug #19127 - dobin auxiliary/rmail/rmail - - # Provide another link for legacy FSH - dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail - - # Install qshape tool and posttls-finger - dobin auxiliary/qshape/qshape.pl - doman man/man1/qshape.1 - dobin bin/posttls-finger - doman man/man1/posttls-finger.1 - - # Performance tuning tools and their manuals - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 - - # Set proper permissions on required files/directories - dodir /var/lib/postfix - keepdir /var/lib/postfix - fowners -R postfix:postfix /var/lib/postfix - fperms 0750 /var/lib/postfix - fowners root:postdrop /usr/sbin/post{drop,queue} - fperms 02711 /usr/sbin/post{drop,queue} - - keepdir /etc/postfix - if use mbox; then - mypostconf="mail_spool_directory=/var/spool/mail" - else - mypostconf="home_mailbox=.maildir/" - fi - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ - -e ${mypostconf} || die "postconf failed" - - insinto /etc/postfix - newins "${FILESDIR}"/smtp.pass saslpass - fperms 600 /etc/postfix/saslpass - - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix - # do not start mysql/postgres unnecessarily - bug #359913 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" - - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* - mv "${D}"/etc/postfix/{*.default,makedefs.out} "${D}"/usr/share/doc/${PF}/ - use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ - - pamd_mimic_system smtp auth account - - if use sasl; then - insinto /etc/sasl2 - newins "${FILESDIR}"/smtp.sasl smtpd.conf - fi - - # header files - insinto /usr/include/postfix - doins include/*.h - - # Remove unnecessary files - rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} - rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} - - systemd_dounit "${FILESDIR}/${PN}.service" -} - -pkg_preinst() { - # Postfix 2.9. - # default for inet_protocols changed from ipv4 to all in postfix-2.9. - # check inet_protocols setting in main.cf and modify if necessary to prevent - # performance loss with useless DNS lookups and useless connection attempts. - [[ -d ${ROOT}/etc/postfix ]] && { - if [[ "$(${D}/usr/sbin/postconf -dh inet_protocols)" != "ipv4" ]]; then - if [[ ! -n "$(${D}/usr/sbin/postconf -c ${ROOT}/etc/postfix -n inet_protocols)" ]]; - then - ewarn "\nCOMPATIBILITY: adding inet_protocols=ipv4 to main.cf." - ewarn "That will keep the same behaviour as previous postfix versions." - ewarn "Specify inet_protocols explicitly if you want to enable IPv6.\n" - else - # delete inet_protocols setting. there is already one in /etc/postfix - sed -i -e /inet_protocols/d "${D}"/etc/postfix/main.cf || die - fi - fi - } -} - -pkg_postinst() { - # Do not install server.{key,pem) SSL certificates if they already exist - if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \ - && ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}" - install_cert /etc/ssl/postfix/server - chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem} - fi - - if [[ ! -e /etc/mail/aliases.db ]] ; then - ewarn - ewarn "You must edit /etc/mail/aliases to suit your needs" - ewarn "and then run /usr/bin/newaliases. Postfix will not" - ewarn "work correctly without it." - ewarn - fi - - if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 9 ]]; then - elog "If you are using old style postfix instances by symlinking" - elog "startup scripts in ${ROOT}etc/init.d, please consider" - elog "upgrading your config for postmulti support. For more info:" - elog "http://www.postfix.org/MULTI_INSTANCE_README.html" - if ! use berkdb; then - ewarn "\nPostfix is installed without BerkeleyDB support." - ewarn "Please turn on berkdb USE flag if you need hash or" - ewarn "btree table lookups.\n" - fi - ewarn "Postfix daemons now live under /usr/libexec/postfix" - ewarn "Please adjust your main.cf accordingly by running" - ewarn "etc-update/dispatch-conf or similar and accepting the new" - ewarn "daemon_directory setting." - fi -} diff --git a/mail-mta/postfix/postfix-2.12_pre20140316.ebuild b/mail-mta/postfix/postfix-2.12_pre20140316.ebuild new file mode 100644 index 000000000000..a3d88ac41bc3 --- /dev/null +++ b/mail-mta/postfix/postfix-2.12_pre20140316.ebuild @@ -0,0 +1,321 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.12_pre20140316.ebuild,v 1.1 2014/03/18 18:35:42 eras Exp $ + +EAPI=5 +inherit eutils flag-o-matic multilib pam ssl-cert systemd toolchain-funcs user versionator + +MY_PV="${PV/_pre/-}" +MY_SRC="${PN}-${MY_PV}" +MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/experimental" +VDA_PV="2.10.0" +VDA_P="${PN}-vda-v13-${VDA_PV}" +RC_VER="2.7" + +DESCRIPTION="A fast and secure drop-in replacement for sendmail." +HOMEPAGE="http://www.postfix.org/" +SRC_URI="${MY_URI}/${MY_SRC}.tar.gz + vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch ) " + +LICENSE="IBM" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~x86" +IUSE="+berkdb cdb doc dovecot-sasl hardened ldap ldap-bind lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl vda" + +DEPEND=">=dev-libs/libpcre-3.4 + dev-lang/perl + berkdb? ( >=sys-libs/db-3.2 ) + cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r1 ) ) + ldap? ( net-nds/openldap ) + ldap-bind? ( net-nds/openldap[sasl] ) + lmdb? ( >=dev-db/lmdb-0.9.11 ) + mysql? ( virtual/mysql ) + pam? ( virtual/pam ) + postgres? ( dev-db/postgresql-base ) + sasl? ( >=dev-libs/cyrus-sasl-2 ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( >=dev-libs/openssl-0.9.6g )" + +RDEPEND="${DEPEND} + dovecot-sasl? ( net-mail/dovecot ) + memcached? ( net-misc/memcached ) + net-mail/mailbase + selinux? ( sec-policy/selinux-postfix ) + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp[mta] + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/qmail-ldap + !mail-mta/sendmail + !mail-mta/opensmtpd + !=mail-mta/ssmtp-2.64-r2[mta] + !net-mail/fastforward" + +REQUIRED_USE="ldap-bind? ( ldap sasl )" + +S="${WORKDIR}/${MY_SRC}" + +pkg_setup() { + # Add postfix, postdrop user/group (bug #77565) + enewgroup postfix 207 + enewgroup postdrop 208 + enewuser postfix 207 -1 /var/spool/postfix postfix,mail +} + +src_prepare() { + if use vda; then + epatch "${DISTDIR}"/${VDA_P}.patch + fi + + sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ + src/util/sys_defs.h || die "sed failed" + + # change default paths to better comply with portage standard paths + sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" +} + +src_configure() { + # Make sure LDFLAGS get passed down to the executables. + local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread" + + use pam && mylibs="${mylibs} -lpam" + + if use ldap; then + mycc="${mycc} -DHAS_LDAP" + mylibs="${mylibs} -lldap -llber" + fi + + if use mysql; then + mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" + mylibs="${mylibs} $(mysql_config --libs)" + fi + + if use postgres; then + mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" + mylibs="${mylibs} -lpq -L$(pg_config --libdir)" + fi + + if use sqlite; then + mycc="${mycc} -DHAS_SQLITE" + mylibs="${mylibs} -lsqlite3" + fi + + if use ssl; then + mycc="${mycc} -DUSE_TLS" + mylibs="${mylibs} -lssl -lcrypto" + fi + + if use lmdb; then + mycc="${mycc} -DHAS_LMDB" + mylibs="${mylibs} -llmdb" + fi + + # broken. and "in other words, not supported" by upstream. + # Use inet_protocols setting in main.cf + #if ! use ipv6; then + # mycc="${mycc} -DNO_IPV6" + #fi + + if use sasl; then + if use dovecot-sasl; then + # Set dovecot as default. + mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" + fi + if use ldap-bind; then + mycc="${mycc} -DUSE_LDAP_SASL" + fi + mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" + mylibs="${mylibs} -lsasl2" + elif use dovecot-sasl; then + mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" + fi + + if ! use nis; then + mycc="${mycc} -DNO_NIS" + fi + + if ! use berkdb; then + mycc="${mycc} -DNO_DB" + if use cdb; then + # change default hash format from Berkeley DB to cdb + mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" + fi + fi + + if use cdb; then + mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" + CDB_LIBS="" + # Tinycdb is preferred. + if has_version dev-db/tinycdb ; then + einfo "Building with dev-db/tinycdb" + CDB_LIBS="-lcdb" + else + einfo "Building with dev-db/cdb" + CDB_PATH="/usr/$(get_libdir)" + for i in cdb.a alloc.a buffer.a unix.a byte.a ; do + CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}" + done + fi + mylibs="${mylibs} ${CDB_LIBS}" + fi + + # Robin H. Johnson 17/Nov/2006 + # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. + mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" + filter-lfs-flags + + # Workaround for bug #76512 + if use hardened; then + [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os + fi + + # Remove annoying C++ comment style warnings - bug #378099 + append-flags -Wno-comment + + sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs + sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs + emake DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" makefiles +} + +src_install () { + local myconf + use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ + html_directory=\"/usr/share/doc/${PF}/html\"" + + /bin/sh postfix-install \ + -non-interactive \ + install_root="${D}" \ + config_directory="/etc/postfix" \ + manpage_directory="/usr/share/man" \ + command_directory="/usr/sbin" \ + mailq_path="/usr/bin/mailq" \ + newaliases_path="/usr/bin/newaliases" \ + sendmail_path="/usr/sbin/sendmail" \ + ${myconf} \ + || die "postfix-install failed" + + # Fix spool removal on upgrade + rm -Rf "${D}"/var + keepdir /var/spool/postfix + + # Install rmail for UUCP, closes bug #19127 + dobin auxiliary/rmail/rmail + + # Provide another link for legacy FSH + dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail + + # Install qshape tool and posttls-finger + dobin auxiliary/qshape/qshape.pl + doman man/man1/qshape.1 + dobin bin/posttls-finger + doman man/man1/posttls-finger.1 + + # Performance tuning tools and their manuals + dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} + doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 + + # Set proper permissions on required files/directories + dodir /var/lib/postfix + keepdir /var/lib/postfix + fowners -R postfix:postfix /var/lib/postfix + fperms 0750 /var/lib/postfix + fowners root:postdrop /usr/sbin/post{drop,queue} + fperms 02711 /usr/sbin/post{drop,queue} + + keepdir /etc/postfix + if use mbox; then + mypostconf="mail_spool_directory=/var/spool/mail" + else + mypostconf="home_mailbox=.maildir/" + fi + "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ + -e ${mypostconf} || die "postconf failed" + + insinto /etc/postfix + newins "${FILESDIR}"/smtp.pass saslpass + fperms 600 /etc/postfix/saslpass + + newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix + # do not start mysql/postgres unnecessarily - bug #359913 + use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" + use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" + + dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* + mv "${D}"/etc/postfix/{*.default,makedefs.out} "${D}"/usr/share/doc/${PF}/ + use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ + + pamd_mimic_system smtp auth account + + if use sasl; then + insinto /etc/sasl2 + newins "${FILESDIR}"/smtp.sasl smtpd.conf + fi + + # header files + insinto /usr/include/postfix + doins include/*.h + + # Remove unnecessary files + rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} + rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} + + systemd_dounit "${FILESDIR}/${PN}.service" +} + +pkg_preinst() { + # Postfix 2.9. + # default for inet_protocols changed from ipv4 to all in postfix-2.9. + # check inet_protocols setting in main.cf and modify if necessary to prevent + # performance loss with useless DNS lookups and useless connection attempts. + [[ -d ${ROOT}/etc/postfix ]] && { + if [[ "$(${D}/usr/sbin/postconf -dh inet_protocols)" != "ipv4" ]]; then + if [[ ! -n "$(${D}/usr/sbin/postconf -c ${ROOT}/etc/postfix -n inet_protocols)" ]]; + then + ewarn "\nCOMPATIBILITY: adding inet_protocols=ipv4 to main.cf." + ewarn "That will keep the same behaviour as previous postfix versions." + ewarn "Specify inet_protocols explicitly if you want to enable IPv6.\n" + else + # delete inet_protocols setting. there is already one in /etc/postfix + sed -i -e /inet_protocols/d "${D}"/etc/postfix/main.cf || die + fi + fi + } +} + +pkg_postinst() { + # Do not install server.{key,pem) SSL certificates if they already exist + if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \ + && ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then + SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}" + install_cert /etc/ssl/postfix/server + chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem} + fi + + if [[ ! -e /etc/mail/aliases.db ]] ; then + ewarn + ewarn "You must edit /etc/mail/aliases to suit your needs" + ewarn "and then run /usr/bin/newaliases. Postfix will not" + ewarn "work correctly without it." + ewarn + fi + + if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 9 ]]; then + elog "If you are using old style postfix instances by symlinking" + elog "startup scripts in ${ROOT}etc/init.d, please consider" + elog "upgrading your config for postmulti support. For more info:" + elog "http://www.postfix.org/MULTI_INSTANCE_README.html" + if ! use berkdb; then + ewarn "\nPostfix is installed without BerkeleyDB support." + ewarn "Please turn on berkdb USE flag if you need hash or" + ewarn "btree table lookups.\n" + fi + ewarn "Postfix daemons now live under /usr/libexec/postfix" + ewarn "Please adjust your main.cf accordingly by running" + ewarn "etc-update/dispatch-conf or similar and accepting the new" + ewarn "daemon_directory setting." + fi +} -- cgit v1.2.3-65-gdbad