From 2fb4b21ca94becbddb6f94e498da132cad989b15 Mon Sep 17 00:00:00 2001 From: Eray Aslan Date: Tue, 23 Oct 2012 07:44:39 +0000 Subject: Version bump Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F --- mail-mta/postfix/ChangeLog | 8 +- mail-mta/postfix/Manifest | 32 +-- mail-mta/postfix/postfix-2.10_pre20121007.ebuild | 315 ----------------------- mail-mta/postfix/postfix-2.10_pre20121022.ebuild | 315 +++++++++++++++++++++++ 4 files changed, 338 insertions(+), 332 deletions(-) delete mode 100644 mail-mta/postfix/postfix-2.10_pre20121007.ebuild create mode 100644 mail-mta/postfix/postfix-2.10_pre20121022.ebuild (limited to 'mail-mta') diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog index 7371e5d3e6ed..65eb6faabaaa 100644 --- a/mail-mta/postfix/ChangeLog +++ b/mail-mta/postfix/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-mta/postfix # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.393 2012/10/23 05:25:54 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.394 2012/10/23 07:44:28 eras Exp $ + +*postfix-2.10_pre20121022 (23 Oct 2012) + + 23 Oct 2012; Eray Aslan +postfix-2.10_pre20121022.ebuild, + -postfix-2.10_pre20121007.ebuild: + Version bump 23 Oct 2012; Eray Aslan postfix-2.9.4.ebuild: Revert accidental unstable for amd64 ppc ppc64 - bug #437602 diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest index 99b52b4fd591..84278b1a6750 100644 --- a/mail-mta/postfix/Manifest +++ b/mail-mta/postfix/Manifest @@ -8,7 +8,7 @@ AUX postfix.rc6.2.7 2217 SHA256 51f4bffa535d891f94d4a20ca2a4a42cc99189f3de78cee1 AUX postfix_no-berkdb.patch 2729 SHA256 c21e9582346c913b3033ec6d3567d0b0bd3576ad64052fed48a5cf78d7ad92fc SHA512 9dac26ca60ed340428909b108b1d12c6bd98de959e2a92089f26cb3fda54d989ca9c1e657f03bff39e9c646a3ef4ef7d744baf1b39074956ef049da26333e790 WHIRLPOOL 5ed77ab7fc11dcd912950f477d9ce72a53886cdb4999c0791af948cc2f079937c77cbd36b1f362742249366d92ff31175ea028bd23af05839f1ef6916cab68d6 AUX smtp.pass 141 SHA256 c9b3b56a8df2367cc15bc43a70304fac7ebdd7697e1d450d1bcb4bfdd3e078e9 SHA512 652b43be887109bf162647e9c0f08dc4283c9fa8795c11c14e88c60984e07593a4cff9e0e6c5dc92c484f547ae0be50a078599fc2fd67a66903b3ac7a8854b55 WHIRLPOOL f075d66d8ae7a13645066e572ab634721aada5aa828380afc5d45f26a6dd34165069bdc7b2edb89357330863f5aac40ee105bbef284392043589a2921381eb1f AUX smtp.sasl 147 SHA256 0ef6a2a7846498f56b9a8879f561a51c1e3a203ba90b2991d499afa69fd85629 SHA512 0beba4baecb4c4abdd3d2dd61e9e56d3abbc0035184992c98c57538b9244c6a07470974afe663775c3f3f10354e64457aa07e657dfd212e31a0920e3f04a6000 WHIRLPOOL 0c3eef040dd4486e007c31111b965725d3e9cf5a896881e0c927a715598dcc936dbf1034d6add2e6fb8ef4bd0114a7a49a8bba6f27b14aac30023457a1da12a3 -DIST postfix-2.10-20121007.tar.gz 3823336 SHA256 6a3c488497213f19a8f2b5ebd4bb03534d71f1d67343a8c46bd69e2bb1bb6dd3 SHA512 f4e2293698425df81a472497b0f3b77599419607f371f9c0b51506c6802428154f9765723114b2ac991329e9183e470b681c8a162da1e41081e43b4396add862 WHIRLPOOL 12c4261d994bf9d9cd56ed3ff1db29f4e96ad4c497e905a8ed844fbde0ee61330c0eae0d32d0227a5290b0340642fa238f7784c602598d5b706fe687ac3b66a4 +DIST postfix-2.10-20121022.tar.gz 3814259 SHA256 f98add945130d369b18527be23d83e1467da2f4a2abc49dcdbdff2566d0d2e48 SHA512 b5f75eed3d29d1883e8e327e8c20b58ffa27681f41923c517ea883edb50a08ec855143956c86fd3282ecc3525144463d04a5e73562f7d159812ed4b6209c1139 WHIRLPOOL 588228815f727be4541dd06b3265a5d7ed5bb6504780dc800e93227c4dc47aade9bca928d8b0ab809f6d0bed6c044aadc3fb46b45f196fdd62708a41e02ee1d6 DIST postfix-2.8.10.tar.gz 3640084 SHA256 2984005ca77457992b133eefc16f788e1eacd2c10b7626678bd24a53240ad3f2 DIST postfix-2.8.11.tar.gz 3641059 SHA256 15997ff5c9a9cd95dd381c3faa1a0d4812a158c14eab229e8f81fd7b5dbfcac4 DIST postfix-2.8.12.tar.gz 3641269 SHA256 f46b0117cab52e862b12869810327e2bd248a60f209079a875818ee2653de087 SHA512 55141e75da43b13975f85af636dceeed7783440fb5f7b83642e5a146d8a06af3a847beff77fe0dd495c58c7caed492dbb2dc52f542f44b9388f2ded30e37acee WHIRLPOOL 1d3c454fc938546c74b666feb109229a71b4e55d72c6f3833a15a81ec8eb3b48e318df69611fe4c40ac970332a8fcdfe98fa235863ae44bdf952b2b74537100c @@ -23,7 +23,7 @@ DIST postfix-vda-v10-2.8.5.patch 56777 SHA256 0106e0bfdea8bb3888e8f33e7cb4b1530d DIST postfix-vda-v10-2.8.8.patch 56777 SHA256 40e32a1c159fe3d12836f81e4871e4a628a87623b80402e90f7465eb39f89a86 DIST postfix-vda-v10-2.8.9.patch 56777 SHA256 e671f7349173349d66f1b091359761ed5a5d517f8a58c86a42ff461997d2cd7e DIST postfix-vda-v11-2.9.1.patch 55009 SHA256 611283a932577944bcdde36e5fe1a80ca750a0a66eb5f3490666e2adafd2bf84 SHA512 ce34b533c2f50cf714d8bd51791c3e30ba91f49861e3c1dcfb08d21d2d38be970b3e3040c7e224142d085c7b11b6b14bfa230844e21daa2eb0bf59641dcc29b9 WHIRLPOOL 0668cafec5678d09504220e31ce60344fc0cb46cfec449db2aade89ee09c598484012c5ef0536a0dfea24df51c6bc86d1a9e491f136312afdab90725e5efe86e -EBUILD postfix-2.10_pre20121007.ebuild 9649 SHA256 0e4b99c6ff10cb39a3782a2870a20a32f6b926e54a248f7bd09301307e62f980 SHA512 30e5e8285ccff8115fe354f3fafecc96ecea3f5671cd3a57d9cc4b0679a8e32df8fcb6c475e50efe156393e26f71fdb6827e6e8e8d93d9b6de4301af8cd5793f WHIRLPOOL 7ba038cbf5b3df35953728fc09c8667780be423a4b4d11600ce4a58adec96f4252c8d56f758f71dbf715beea9f0a9547d92c961d73d8a97b8efcfc0f382ae93f +EBUILD postfix-2.10_pre20121022.ebuild 9649 SHA256 6ee462e394873ca60301cb0c551251b3acc1bf3e401560e2ee621cfa9d70e754 SHA512 792e53548f43b7b5a3b57ae3218f6ddc048b92890a34f3d9ffe98b2ef4ef20f100b47073d2d47950127c064c483cf31c15c522f63da514edc60fdd1ab2773481 WHIRLPOOL 71d1219a9a925c67839379ca014326eef466ea2725db5f0aab301803a5c4544c1e8e94d74181e8fed2a3ae9aa741ee74f8011c0df4563a4c756662be9b419fa6 EBUILD postfix-2.8.10.ebuild 8434 SHA256 e05909a4806ae0b20bfdb194a330c000d408fa059dae489349020f069463c40c SHA512 28c8ef14a225c1a437c65c778b77516e2ac99c1e18d903fd11ba2c0b373d7218554299c0a6808eaf60817d20d1e2afb0714a67b71ba1b470b6ada10ba5ff3846 WHIRLPOOL 55b057230deeacc2dd679661eb02f1015802de675c994839037e5a6bc88f9aac792274fb7f68da460901e299716bf2598a435c9e6c672cb6dc0e6e2f56613fc1 EBUILD postfix-2.8.11.ebuild 8434 SHA256 d1a8e20e5ede8934a7b94a1d9406dbadefad93a2fcb60eb66148abc7e305bb88 SHA512 257a9522ebdc1ba4c80e565a6315be69c175ab48846da894f8842db2fbfe2340779277490aa57df4219105e31bfa3e1c093ffa240184e958fb1d31b0f0b644eb WHIRLPOOL 03fe8933b41049848db898165d1e2e0773f7580d95e82330a9d62850257039a668cb42bc2bac79299046b17a303775777820c6b27c0569ca90f6c1f38f17d42e EBUILD postfix-2.8.12.ebuild 8431 SHA256 c9d9c2b0d69bbb8a6082c4563db5e55da7520dfb377f8b16ce1edd67112dc9e8 SHA512 1a47f9aac55fd913eaf8bd443768b7b5c4bcb30cdee31ce1643a1821c33f700b1fb574e0f4632b6061d7d52099b04ea3b9db4e4262433cde225d06f6e5c5cb4b WHIRLPOOL d1f7ab5837f4d88ea6a3d6db58ae7522f0010059815424216817f425f5d120bf622328d5df157d49b68cdc8f97fbf436ef33cf96792d21905a96908319d20b55 @@ -36,22 +36,22 @@ EBUILD postfix-2.9.1.ebuild 9489 SHA256 7d0c9790014cfd6ace3dc6b87bca78863ead5588 EBUILD postfix-2.9.2.ebuild 9489 SHA256 b20f15c69ad89efa200be8cbcea4e5c51d0c7988678830e5d58bb1db4f025dfa SHA512 edeae123189963ebde183a44030dd3b75c932a1e18305a7b69f06f9196a87267fa55a9bfcf2fa18e156f1ceb504a9d98e9eb0682cf1af52e1a595d83b8734b2b WHIRLPOOL 8e4c07c4795d0c03b938d711fe00eb0431a5b12c91d98aea0c6607752292e1398bb1a4f3200b75edf80bcc9bcec20ce3a5ac170c4621a17eb32fb50b062a0508 EBUILD postfix-2.9.3.ebuild 9523 SHA256 c2aca9dc9afd5c09225418e544e6cc6dace67109a8cb50b5bc85a204cc06c747 SHA512 ac24d687b41ec34158792568fadd175d34e25e293002117e01799a0fc7a163598efc4a6cc5803b4ba0c5643229c28acaee0ad021f2113e60b9886dd801d33241 WHIRLPOOL 3ed7e1c92430a61f15e1b23b0b418534d70d86ac6487ec0e918a8e2511ac65edde91c1ce5544a0df689f09b02687caa4bdf7a5adda26a6d0e2239d4d520775ce EBUILD postfix-2.9.4.ebuild 9626 SHA256 e69b27ddea27dc8864895554db5e53f94d7b4f4266a7f5a7c69ffc2d5c790052 SHA512 02ce5e1b176cdd5c734976b534c929e2350da1aa5a115c76ef049decf7c94cbdef59fae9c81b333678ffbcc74b6a57f52e9b8608a6475ece61a00da0ad0e181a WHIRLPOOL fa5314db6c7268b1935d180778ad1aed4ffef613eabe7de568821812ebeb25cccf546696a316d90c151f50c920a9b69851225d21388715ca7c11befd21d0217f -MISC ChangeLog 86878 SHA256 1cb471d7008e94083286382cd0d9577ce9ae0288e2a57424259b6dc8cd402986 SHA512 d5c4947b5529c34862bf455a8876d9db7b8eeac65cbbc5efd672afcad1cb62f19aa3c44d25eaf2d46a632a052e570c2dca4e9b01a9395f9fae355f2b4cebcaf7 WHIRLPOOL 9c6b29bff2972f586f3c56fc177a2a6a126f3486ed3bb2b619a1ee0327fa800313a2903f41fe53c2705fc7c3b635885959b59d4908498b6ffe13319339779c82 +MISC ChangeLog 87049 SHA256 60ace1c2bf2ca27e621ae562c11ad7c22c6e0b73881bc748b3ea621ffab5a3ef SHA512 58b2b0098deec41e09c79aec7aeeeda4a3c8322924d24700b399be327ffccaa951aabf1ef64599b227742dd56dc0b830d737d791566e67f6087c2ced4bad2df5 WHIRLPOOL 9eb4706daed53384979ff3d13741414b8f00940683d30db40ee7f7d160603daa28ca91dddc9cee4270786f02ae7fe1f034193e9f70ae92dbdaf0c759daed28ab MISC metadata.xml 610 SHA256 00b7ef524664b20a9df7642573745b1d17b0b51f005ffd150ac6dccba38dee88 SHA512 fd446f288b11070e2d6b5dad3ec259a889508c3c7f4755ea2ceda18500844e065ddc2bbce5f4108b30ebacff76443ea8a23805c21d39c2bf72210f801adcfe06 WHIRLPOOL 815ae4ddbaca96871454d44adbe3bec4a081d857c61b07cd0e382ce0d44503421a4ad156da6009cc91f24855b7c1d8adfe3fbd48c82833f9d82c1afaf798072e -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCAAGBQJQhipsAAoJEHfx8XVYajsffmAP/1Np70sMb0ejnhK3xS0BUhJS -mcM0BRjUPHmuctHRZ4oQF6GOV74OUa3ezLJaknGDllsW+hFTIpL5aQGZCjdexsXm -V+EGvYAYt519hukE/nowmReuLYReNTB2Kqluf4OVtFY375bZs6yrZn3qwIn09DUO -cTEajFKPfpF9Dk+k6+diOHtqeRHvHMB/iC10N6hswfyJlkC34Sw3XhLRxOJuPz4V -Npff3A04c94hZmmSoloF66FI3dOEd8ebzmlmwOWlb3x6dvMgx1tdoIijDVu0odI9 -hMh6orKkPlaljDv/etO2pBg+UE0COEoGhv9qnFaovQTGw1v58wBZzonq7VqnuBzN -DIhb4DEgRSrCyT2GHm3p/9qX/WSzLsugOJgfWH+ZbjeE3MFOz8n4RQs39PZ/zaUL -iwX7KrWnxXy12XjbEbOc2sgR9otguwC60zWESl+6S9/WJnu5CKsqN5mzJwYQWz2w -RlTk/D44PYZBqdz8lvBYsa/mu2+Z372G1vFc2WSF0Ny/tRU5ZFxum7GPN/qQC0UW -Bhqqkk0EMPearrFueQlmBxG94D6HVQX8XvSX/RyVseMgafot1SW19p3WGeeCUSAH -cgIsc4j+XFv7GD6W7jZR+eswXVue0mSMBYoV6dZfelntIcnjI2tO0PNf9yOP54WS -t8RUDGrIfXVDrR864N8r -=0cl9 +iQIcBAEBCAAGBQJQhkrnAAoJEHfx8XVYajsf9DQQAI7mNAhcxJ1hcJay/84wJlTX +nTHS93Wr4F+4DDfyjsQkW76I/C+Rh0kll7Fxf71w+WZwKMOqyiTspKGbqvIPwaTj +zcywdqgiZwSqxRENWXsfceOCjqK+kC00LlNkSDCZSw9hm1o5ORdJTCJoDO0vLXhp +5ys9VPme8J2p8OATRGokbi9ntO6z1G/sYAuRORrPOzTNjgHY1Bg3uutA3l/bF9/G ++rGSR0Lkso6Q//JmhN8J8P3tcUJlY3L5xpSaCwaP4FspMn8OWpimmJSqn7p7DS4v +aMqteapRJEXd+fdxpENXb0VswejQZ6fGS8oDI0BpqhbglIBmGrht3SueIlryu9t6 +qWjt9siC1r+n8q3Wa6iNA48+wiaCypkU3GxdzsWhkFC2Vc2xaqy7YYGFoh4lUcdl +OU942+gnNnZ6uIBSSzGhMLzWEsusLf0NkOHWqtfzcXxDxb8EmawDigLOo6IQABVp +Ubqk6bA9mMWP8maTfYXS8zgAFDI+k4XMddDLO7k+Z2nI1usbftyKJM1DeTwd1E2e +lGAPIlu1Kal0dnqKZs0HHu9rpJ5pTe7unbXLQ8UZTOmJJ6z6k3gqlHIlROoMXiiT +SK1BASXrDyxSkfVt4NdSj71HzuN/2aHFDsb6ZuJoe/MlJXF/RfgzBoGrjXXDjTxH +RLlFTPFYUCWwlgvkZlNj +=37td -----END PGP SIGNATURE----- diff --git a/mail-mta/postfix/postfix-2.10_pre20121007.ebuild b/mail-mta/postfix/postfix-2.10_pre20121007.ebuild deleted file mode 100644 index 9d1a7ca9fef0..000000000000 --- a/mail-mta/postfix/postfix-2.10_pre20121007.ebuild +++ /dev/null @@ -1,315 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121007.ebuild,v 1.2 2012/10/12 19:31:58 eras Exp $ - -EAPI=4 -inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam user versionator - -MY_PV="${PV/_pre/-}" -MY_SRC="${PN}-${MY_PV}" -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/experimental" -VDA_PV="2.9.1" -VDA_P="${PN}-vda-v11-${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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="+berkdb cdb doc dovecot-sasl hardened ldap ldap-bind 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] ) - 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/nbsmtp - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/qmail-ldap - !mail-mta/sendmail - !=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 - - if ! use berkdb; then - epatch "${FILESDIR}/${PN}_no-berkdb.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 - - # 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 - sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \ - src/util/sys_defs.h || die "sed failed" - fi - - if ! use berkdb; then - mycc="${mycc} -DNO_DB" - if use cdb; then - # change default hash format from Berkeley DB to cdb - sed -i -e "s/hash/cdb/" src/util/sys_defs.h || die - 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 - dobin auxiliary/qshape/qshape.pl - doman man/man1/qshape.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} -} - -pkg_preinst() { - # 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 -nh 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.10_pre20121022.ebuild b/mail-mta/postfix/postfix-2.10_pre20121022.ebuild new file mode 100644 index 000000000000..9922c7d9d7a0 --- /dev/null +++ b/mail-mta/postfix/postfix-2.10_pre20121022.ebuild @@ -0,0 +1,315 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121022.ebuild,v 1.1 2012/10/23 07:44:28 eras Exp $ + +EAPI=4 +inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam user versionator + +MY_PV="${PV/_pre/-}" +MY_SRC="${PN}-${MY_PV}" +MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/experimental" +VDA_PV="2.9.1" +VDA_P="${PN}-vda-v11-${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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="+berkdb cdb doc dovecot-sasl hardened ldap ldap-bind 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] ) + 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/nbsmtp + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/qmail-ldap + !mail-mta/sendmail + !=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 + + if ! use berkdb; then + epatch "${FILESDIR}/${PN}_no-berkdb.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 + + # 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 + sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \ + src/util/sys_defs.h || die "sed failed" + fi + + if ! use berkdb; then + mycc="${mycc} -DNO_DB" + if use cdb; then + # change default hash format from Berkeley DB to cdb + sed -i -e "s/hash/cdb/" src/util/sys_defs.h || die + 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 + dobin auxiliary/qshape/qshape.pl + doman man/man1/qshape.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} +} + +pkg_preinst() { + # 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 -nh 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