From 90429ec2376b1e784d082000e72b7e9084001ded Mon Sep 17 00:00:00 2001 From: Eray Aslan Date: Sat, 17 May 2014 05:03:38 +0000 Subject: Version bump Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F --- mail-mta/postfix/ChangeLog | 8 +- mail-mta/postfix/Manifest | 32 +-- mail-mta/postfix/postfix-2.12_pre20140508.ebuild | 321 ----------------------- mail-mta/postfix/postfix-2.12_pre20140516.ebuild | 321 +++++++++++++++++++++++ 4 files changed, 344 insertions(+), 338 deletions(-) delete mode 100644 mail-mta/postfix/postfix-2.12_pre20140508.ebuild create mode 100644 mail-mta/postfix/postfix-2.12_pre20140516.ebuild (limited to 'mail-mta') diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog index be7e0663993e..ef45f0102102 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.503 2014/05/09 12:12:13 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.504 2014/05/17 05:03:27 eras Exp $ + +*postfix-2.12_pre20140516 (17 May 2014) + + 17 May 2014; Eray Aslan +postfix-2.12_pre20140516.ebuild, + -postfix-2.12_pre20140508.ebuild: + Version bump *postfix-2.12_pre20140508 (09 May 2014) *postfix-2.11.1 (09 May 2014) diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest index 30a435492a9f..151fd22f446c 100644 --- a/mail-mta/postfix/Manifest +++ b/mail-mta/postfix/Manifest @@ -9,30 +9,30 @@ DIST postfix-2.10.2.tar.gz 3828326 SHA256 f1a735a5a9ffeac8fca59046c437c3b76e7f92 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.11.1.tar.gz 4035026 SHA256 487f98a73b95a5799409caf21ec065efea91c1dcdfb84c038a0e3a265d6489e2 SHA512 988659ed7f256fdc831c6a211c33aede922d5baf32da7129afe0ec2fe5011ac95dacb21e59c92f658323b6ea773ebf2bcd66a796d9271c1e7b949d5d9b9ee977 WHIRLPOOL 902eff1304b9d0d52a759f0a0804cd5e34d44b8f1acde26f60db6ddc69d84ff93c70c7b27b9c39318b124582b13d61685fc46c2513044fd4c7511370a33efde7 -DIST postfix-2.12-20140508.tar.gz 4034691 SHA256 2e3f28ed6e5a875fe77c4d8f6a16a58d5aa79029641601c53dcd242432c09d5c SHA512 29d3bd4b87e62122adccf33c25f1cfc4aec46acd79d0c9a75d3b01d39e381ec822f0295cb9684258cf8daa11c3a3d94dd2975d7c7598a19778eba2b1e0711877 WHIRLPOOL 5c80e7175ea7902d98b55839ce2e3f872a554c3d314e636b2589dde33f7d42d5f574f8208c49caabe24c6ed5845b1456c54c23ece61f796cf5c41c96d6589b7f +DIST postfix-2.12-20140516.tar.gz 4034673 SHA256 d90b9a99d6f528537b1d00573b0280002f4173a13e3f64f8d009d9a054288018 SHA512 6e113e5cc4aa5cf40ef366bc4dd097b858e76b071083026a9850b38ae9d7ab6f7e6c4975949e822a4a9b1f6a3132915cff60a4c677dcd9dc896f3785965680c1 WHIRLPOOL 5410635bbfd0b6e7fe1a0086868f741c27ec2d41cb8d48a9c78c2782d53e50904c9fca477b202e93099755bb2c57f724bea255cce22d0caf9a7579a3abaf908e DIST postfix-vda-v13-2.10.0.patch 55701 SHA256 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f SHA512 0b4b53a8cd28abf56eee3b2ed63ca1814251b60816e6ca1143249d25fd6ef7f905bec3134125ac6e851af685db8aae878012113693261529ae2ddbcf1bd93e62 WHIRLPOOL d98b7d2177b8b69738086880fd08c336fa60b99ff7413624e628fd5f17be2064f2ccaa37c047d3013ed41c0ff1bcb76e7962f8390c4179f28ab11733dd3b59d3 EBUILD postfix-2.10.2.ebuild 9625 SHA256 fb54cd49a8ac2f55e17f4a996acc7cbe240d49a783d777fe5bfece4a95cf7c81 SHA512 6e7103715a5e115ba95a4b3d7a8937c120bce99a2a144f10f06167c892ea85db36a576e7344e5c45bc9a4177d811450f380a2473b79e428d43a3eb3b57c24c3a WHIRLPOOL dbab1c13c6cc69c4319adf63840225fe254d99114a625f83dcf5bf127589d35d74f41d2e10c5c2e7eda597347d239f35e21cc5a59d62644204d2a9fb6d29925d EBUILD postfix-2.10.3.ebuild 9633 SHA256 85802ec18416c850a1ab527caa0b64090a3b84c34a6892df132177f421e95588 SHA512 dbe4dcb3d6f08f2494e9b3d90d3ffdfdd44584435adf4cd6f99fb037fa17e7bed6ec8f588e42409fd94dff1aa4b70f9a24354c756ae2f5f12efae85fdf329503 WHIRLPOOL f1bb7a23d5399746b76a9def89b323e25bebeeaf6b77be4590e60c3466337372b587a7ef9698e7cf50e1c4d6742b3d3999b30938d0e1c987948cab9062735271 EBUILD postfix-2.11.0.ebuild 9690 SHA256 4f96e4c0015aeb66564a612732efe15da6d799175d9454907539c6555784bd8e SHA512 8343dbade61d6b284ae099aa38120e0de9c855beb836d265fdd4f6684bf8c98736c0b1e3f4bdf4818c46f3e48eda953ea240ed1de426ad6acb2e8c0c469b1b06 WHIRLPOOL 5dc62d597b70f86d99681bdae483c1e3a166bc95c93d6453d798565fb5192716627fbe033ccb82f59e2570ee32e0b545005eb99ba07b007aacf40ddda252ffd8 EBUILD postfix-2.11.1.ebuild 9690 SHA256 7d4f9ed098569547e64ad1af940982c7dcd238885cc1b7cba92a45752325aa2f SHA512 cdb7e54a36447561191bd069d6b019da8bf59fcbea0530d912241bdd6a2fd2e44671c40cd73454b60b9ba221732fc0ae90d747c9afaedc59e7c8cf86aa4997d6 WHIRLPOOL db6dbf280dd54a4fb510926b15a4c3bf3cf56729e7991cf7200540ce2b40ab5c0e36efb4e21737d051afdf208a63d79dc8d8dd458976f34dcfacfdc38b9d7cee -EBUILD postfix-2.12_pre20140508.ebuild 9704 SHA256 e7634e07e052906d71a540c634238b4cc5447a4767d2a26b4a4c43b989e12783 SHA512 5a777abc0fb63850e7a3fc183eb4259296504669dfad0eb3e544e38bc2a564b962c9c0d0ffe842eb183aeb97d3ed319b85b027f68087a58ca13cb17cac2c3eac WHIRLPOOL 06104b682121b07467d88a0dc226ac238a5814564b49dc9ee75b8ead5e95f78d3f592505355a292c0f0cadf17062bd6d87990a97ae81d13fc98bd126efe978d3 -MISC ChangeLog 2939 SHA256 a890833ddb8a527c0a9a96d23a09d1789790f114b30e9ee788aac0d1f088558b SHA512 63ef6e888c4c7b5e020deee4e4ab9652ab1157507496ff330bb671a7c9d4471f7927f16ab7237e94937dbe67156e55c5f8478359c42ab12d3d033b5460b114f4 WHIRLPOOL d5ec6b8a213fc3ba1d21e26fe1f66b2291b124a6e2ddc7beb4f1363553aaa6549f56d3189600249de0899c9d492edf2f580fb971a0a1aee7c753318be2a5b3d3 +EBUILD postfix-2.12_pre20140516.ebuild 9704 SHA256 35ef0901e653ddb4c2e3185a2c5548f0115740a4dbc9691af6a89ec14a13b79a SHA512 7761f5af2c26068ba8780ec4690ef507adcc80329ca24c397f24e309e4b78cf5d47e4bdf705de96d6b6f623ab4092f6f121d645eaac789bb00c5cdbe5b35c8e4 WHIRLPOOL d415bfd321a332e2423cff82ca1eafc89b562bc5a9952af87e748f4baf9b93d9e3e553d7142aba41096d1f4fd10c2cf818a8969b77df7534cb5239f7fb075c0a +MISC ChangeLog 3110 SHA256 eda8b39648a0711dc5df0c810a040c5cd6a3251069eb22588ec3e13352be87f2 SHA512 d0ba2f4976f6708dfa5228ead869d47da55a2e33863b42982c08708b8ce27240b6abab7f7aefcef7c8f4803a127789cfa48abc13516dd70a465ff929157f0791 WHIRLPOOL c43470fbf278cb8c3b21636a5224f9547c06c1cd83efbe3a71c601a412feb39c262a0d543c6f8f9c2cbf262b0914a039827898ba1b8f6f0e438195a1869c9f95 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) -iQIcBAEBCAAGBQJTbMYoAAoJEHfx8XVYajsfjVQP/2LucbMS9mezVsRvsGVE0AGA -IcVB1modU2ruzgQsQS2xFXolkAusDR9RI4wkfZlAydCJoZSx8cjrjFMbu+PfImPD -Dq7LkWTGrltzxcTKjQbi6/IZWaCdU/+8hVAEOO/9NGezfsZJE/RAMjQAYZlHm01u -hmMeM3qpTVOCJZb+6Qv33cnfbx71DAvH03VAPVE0mDcE3GQY73lKie3WGWyQIBA/ -boJgnRJrEiignYe07FlArzKhqQvnbt6lNxiz/Jav8C4pvY+CIQdOzDUApC4tOjo3 -JFMF+afjVdbvSM8k6is5j0aFwcb7DmvOw3TH3XgSXi2FLOXwUFNKiW9P2aQciOk6 -bZJdvrOKJU8gwDQsU/AQTT+o54kx2LtdHWjeSpV7SrtXHv+MK4siG7bxmdvcI2WJ -WjTt2NwIjWdGVVSZQW2uzXN4+I8rn+DLOcw8GP6K4WHTHwLzGY67nPXgCsxdoy/G -A39tSfT7sdrH/mjNUAc25+H6H1G91VwoGudHDpodtlBDTxDUbz+b9kfXy0F1SrNm -HhYeE0CVAJP9hKl5C9sfh8mFf57RwDlOem4kNR/IS396p6xQ3cMrLVdZMg7JAsSH -odieA8bVub7KiVNoxfu3dk2X89MuOg3UnP2KrvgRCh+uY6YbnPVSEb5h0j7fZh1B -kTnZV0NlxqQ+9sN5ua7F -=rwV1 +iQIcBAEBCAAGBQJTdu2pAAoJEHfx8XVYajsfJ10P/iCBb8cu+U4gF7o+/PVhmk5v +/PqbzTNJXLs+QdRWWCdovW4GxXbbEUWXj7TUmRdLsE6ZqhxeTczNT3b/XGM7FCar +GVhGfIlaRhs4ByEZwcX1JrTl2usA9uNhnjHyeS+CJIH6f2937TmtmMyuwgH4snS0 +1M6ggCTBg7dJXluYlxGfNDu+ErpzlWSVsIMzvDdQWbut5pEJrk339fuIKOWGbiZr +4k1lAcyCf+F54y8o0onJgi3CCTtz03uliHCQIogOzslz6lA3JVj4SEQzDfSd8zTF +gqjpPHkPQgZZrPDbkkmOigzBSiCh/AC7upPf32biG4EZABhIcYyyf6ioXFzT90gb +GFGUdkBUQjueG8yZIbHvz72+D8qYE5lqC4XmkEvopMHDTdC14I8Mszdf7wraTRel +mCL4TcVWQGWNNh5FY48050u/+tvSZ28Bttuk/F6HmamKqeDlASdMxvCgnuLjCpWF +doKIOIZPQ7mtWM5NuMCtY8mVsI1GraZwzzwWXC8T7HT6TLN91TZdfFhC09Qs1nEM +SGjxt3CPliOVthzdm7smN3u+MhMHJ+0i/pDs4jwWpBTDFHh/J1xQLC33G9E4H3PU +1ehDNoULwKZwmmXTjdIPmsKOWBNGuGGuKUyyXSxiqkHPQR/tWv369yji3rAZ8jaq +8hTke+sRFlAwuzcgqQZf +=yLGj -----END PGP SIGNATURE----- diff --git a/mail-mta/postfix/postfix-2.12_pre20140508.ebuild b/mail-mta/postfix/postfix-2.12_pre20140508.ebuild deleted file mode 100644 index 1321f7aa5ee5..000000000000 --- a/mail-mta/postfix/postfix-2.12_pre20140508.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_pre20140508.ebuild,v 1.1 2014/05/09 12:12:13 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_pre20140516.ebuild b/mail-mta/postfix/postfix-2.12_pre20140516.ebuild new file mode 100644 index 000000000000..3ba7f6fe2afe --- /dev/null +++ b/mail-mta/postfix/postfix-2.12_pre20140516.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_pre20140516.ebuild,v 1.1 2014/05/17 05:03:27 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