diff options
author | Eray Aslan <eras@gentoo.org> | 2014-01-18 14:16:13 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2014-01-18 14:16:13 +0000 |
commit | 77dc96e22bed859230cdd7b054d19675b27025de (patch) | |
tree | 6e866461bfa2311f551a954d69760b543b3c6eb9 /mail-mta | |
parent | Version bump (diff) | |
download | historical-77dc96e22bed859230cdd7b054d19675b27025de.tar.gz historical-77dc96e22bed859230cdd7b054d19675b27025de.tar.bz2 historical-77dc96e22bed859230cdd7b054d19675b27025de.zip |
Version bump - bug #498238
Package-Manager: portage-2.2.8/cvs/Linux x86_64
Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/postfix/ChangeLog | 9 | ||||
-rw-r--r-- | mail-mta/postfix/Manifest | 36 | ||||
-rw-r--r-- | mail-mta/postfix/metadata.xml | 2 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-2.10.3.ebuild | 314 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-2.11.0.ebuild (renamed from mail-mta/postfix/postfix-2.11_pre20131228.ebuild) | 16 |
5 files changed, 354 insertions, 23 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog index c5416a2b6a60..8845623f396e 100644 --- a/mail-mta/postfix/ChangeLog +++ b/mail-mta/postfix/ChangeLog @@ -1,6 +1,13 @@ # 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.487 2014/01/15 09:57:01 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.488 2014/01/18 14:16:12 eras Exp $ + +*postfix-2.11.0 (18 Jan 2014) +*postfix-2.10.3 (18 Jan 2014) + + 18 Jan 2014; Eray Aslan <eras@gentoo.org> +postfix-2.10.3.ebuild, + +postfix-2.11.0.ebuild, -postfix-2.11_pre20131228.ebuild, metadata.xml: + Version bump - bug #498238 15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> postfix-2.10.2.ebuild: Stable for ia64, wrt bug #490126 diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest index bf2e487d3d1a..1ae56ff89dd1 100644 --- a/mail-mta/postfix/Manifest +++ b/mail-mta/postfix/Manifest @@ -8,30 +8,32 @@ AUX smtp.sasl 147 SHA256 0ef6a2a7846498f56b9a8879f561a51c1e3a203ba90b2991d499afa DIST postfix-2.10.0.tar.gz 3826655 SHA256 4a42a6029af418cbd4a8668b4f8c7e1ea9975cbe9756df760649c0a941bfeb7b SHA512 88689c2b18aeecd6e363525955c8e3506acf7702eb7fabe148b72a149020c29a76b3f6ed57109380ebb2106cf798a0ce78d470bc4a104a8ecde6c1c4cd0da07e WHIRLPOOL b47559ff91651c699581757976628ab87ffda91ef85f2ccb86ddc4982de68fe7f6dedc419a2708e879969081a7d54681f88763500cd816aed51958bbe0880b70 DIST postfix-2.10.1.tar.gz 3827595 SHA256 2e85a62e97418bbb022b4d4433098a7f25adc7dc707c37d9984db2c2f314b1c1 SHA512 34d5923748b38dd93609657011adc1371ab738ee86558aa4822cce6e879ccdd426bb4de994ab425b3a2745c8ca10a01b2d1c5f310872e839f9627afa8dcccdf0 WHIRLPOOL d1e6c029429e6ec2249b58cfa035a8819456557655711fe8d81ea9cfbd22fd66837be509e8b0f458ee6680330b1c5cf1c6fc580b75b2df6aeb30cb94cf478031 DIST postfix-2.10.2.tar.gz 3828326 SHA256 f1a735a5a9ffeac8fca59046c437c3b76e7f923fb4249db2a55b2bff0306ddd4 SHA512 fa6c123da040a8e332c0bf2430f5b098523c2eff42a6cf4bfe6618b82d59be8e5a7f5c85b09ab8fd0312058b2135b174e00890423e4d3f8f732c3dc3c91f01c3 WHIRLPOOL 4e1e453ecd653058faf7420d6bfb6ac6a6c343f03f9c1a4213c403a7164d99f659a0b9ba744b803c3d94cfaf3216d3505f44d22069421f6cc4a4651b6be1f316 -DIST postfix-2.11-20131228.tar.gz 4005333 SHA256 b1eabf16aa3dcfd00d73dd363e50fe8df1f93445c495ca141949b1276e20f55b SHA512 a7cf66f6607cf968348b99d50aef8e8c386485c31fb4db1df7d12e9bd24f722e721cab0a11747ae03cdde4e3f9f542768cb42d53e870aaa7f63e04989dddb262 WHIRLPOOL 981662bb0811aa5a832376b6a5cbc5c34c9383da673b3b15786fbd745e8820559b72a974b7b371fb6a8e55cb9a3cc788b6bcb42961e88c198492483291c47014 +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-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 EBUILD postfix-2.10.1.ebuild 9624 SHA256 d47ac79a5780d62239f23f1802b40326e9f39e459110d298dfc997523a415219 SHA512 c53e7010626bef1ca334dfa56e917fc68faf53f4bef3f922717f1f922871bcbba61c6cc5b86678993235ea9ee51b3ad446c12eadf5a88b790d10176700c41728 WHIRLPOOL 91d3b373cbc19603d785f6c07a1dfc2f7155e2bf3680a4503afa7d6f0219398593105f6eefb7b2a7f97b3add41313f2c8bdd201e8b3ea434083fa6828faf02c7 EBUILD postfix-2.10.2.ebuild 9625 SHA256 658bd1942db334e769fda244438b4ce048f2560705b8ee7f4c6869dd57d7b43a SHA512 d8d7471ba44c225d136d1b3d40ca62c02e858cb6511122a971f34a126a27b0326db98712a775814eee97fc4bae4414c860c4b8e1d2e330a738328b9457b73e2f WHIRLPOOL cffe20d8de6b329388c5ec0f94051c242d028fd1f2c4f40986200d8af4bf9b2e23e0325e8bd513b6243b9a573fbdcae99ea33df79c76211fb209d697014f73e8 -EBUILD postfix-2.11_pre20131228.ebuild 9644 SHA256 9ce2a3bbf25c19d94749d6ff1c6a0ea805bdb3d2dc7b548a1244f8f83c410b76 SHA512 be18d8de231f4e087937e4896772637a0ff92acf27d3f780c73e44ce33c7d4ebd78467d755e1b8a4f7b3367596d82da406f2d7d4b8728942cd85d15c56f85b70 WHIRLPOOL 504a0207ec7c3dd58413c4a7042aaad2b8f9ea554fe68dd239e090a05afeacf9470f48f1f41843b4d2de337602159c6bcaec5ca56e578e4fce1ca27e4f00cb76 -MISC ChangeLog 457 SHA256 fbb9038f33561d0772a87dc7372e8484b2f58a7f9de82b0b179e0cb43283a258 SHA512 1656a7b1498bd7c71c9ffb54d7e8b88d582311a2d6cacdf8f7acb3ee83e1e054cb53d2627b5f249f1e245975193fe615a5da8a9388d5b935a120b8e6475bb17e WHIRLPOOL c0aa5c077475941559be94142b0674872e3d76f4bc156712d924a9bed631fda05d70cb7e3a68313ee1b2e8e083b675e8add7847b685ef50b03dee381877f08eb +EBUILD postfix-2.10.3.ebuild 9634 SHA256 b6096da3bd43096791b84b8e5b48afd2532a5b72bb41ac379d4b7820f15e3ea0 SHA512 3f5704b95744de23c92a095bced161fb66e9fcf2ab1368c277da505e6ee72c065c275168cd260dd75a9bd1d64915d83149b258782e58d05c4a94c3ee113d3757 WHIRLPOOL a6ba5ca5872390bbd6ebcf7c6dfdb03a1334239fdeb446195be99eaecb2e98a26c6c0141416e707a5060a3e3a0be0762ac3beb17e11e18302b7c7c84e9aa7e54 +EBUILD postfix-2.11.0.ebuild 9678 SHA256 d459586874976df3ada548cdb11d3b340d1b9fbd604554fcd288e2f9dd81d2f8 SHA512 48f01983fdb1291f3b550d912788cc9c86b1265f9a50408841fdeabf9b99112158fe2be7e1689c330842ff2fcbc4f94cb2e7e84fd61ad49d54ecf2e2776d7bc5 WHIRLPOOL 67f100fd491c522580415303b56719d377dab94601ea3c9eed4fff70ef063662117d72453457b606de8aa980452e2182fb0d0a92bda30006b0aa636589073daf +MISC ChangeLog 691 SHA256 ec403cdef659a1d7e6c3dfeedfc13238d1b1f93c69642a01319afe219a2197b2 SHA512 26b371c1a3e337fdbe291a62b3cd45d5c9ee7fe96d8334d3a67f0dd9cb8648b1fa04d9ce521b4983c307194dfe0ea56c78dd63509bd8779da549925a04e3e6bf WHIRLPOOL 4b45a59c7c78f42d3f098c2a143277264a438b25cd739cf1a4c6b24e376ad9e4ba66c139c6471b748b9d1f24804a329351f44eebd1eecc26e101453ef62948fe MISC ChangeLog-2013 100301 SHA256 439e93c3f6ea08471888157d2347da51181aa9031d4bfdeef2197a6b26680246 SHA512 c678433163e86def50d59e47d7a1a0e8f4c4af860f80932255a7c95544e1f5b55a70b68905b02a417b2332bcf3aaa59281814d8504d70085f0874a23faa2bf02 WHIRLPOOL 15a12897a576cf98d856c551157b72b47aa45fd61d05c6ed55033ce37ce247045c6bcc8143b7ccce4666900d85e0a04087c977a311e31c20f554a991bec74fbc -MISC metadata.xml 610 SHA256 00b7ef524664b20a9df7642573745b1d17b0b51f005ffd150ac6dccba38dee88 SHA512 fd446f288b11070e2d6b5dad3ec259a889508c3c7f4755ea2ceda18500844e065ddc2bbce5f4108b30ebacff76443ea8a23805c21d39c2bf72210f801adcfe06 WHIRLPOOL 815ae4ddbaca96871454d44adbe3bec4a081d857c61b07cd0e382ce0d44503421a4ad156da6009cc91f24855b7c1d8adfe3fbd48c82833f9d82c1afaf798072e +MISC metadata.xml 707 SHA256 1b5bd2fd60bed0349973daf64aacc58442f8a6bded2670785a0291ebe8881eda SHA512 20a4578acd5a5ed18faa564f3be1e7fdbb91997b487911cca0d3013c3453d5a23b6e3fe281efd364cff676be2eee95356e61c0444b2d8b537356fc40a1828ce9 WHIRLPOOL 3b6c960f6198cc885244bf46afa98c13b02f3516ccbf846f34325b548cb49db9135807d6f5fae99375830ea513e100f318ab1960061bad154c9f5721c2551652 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJS1ltuAAoJELp701BxlEWfX/UQAKjF+Qfnrs1RkmtMQGFUvbZd -hpSv/cbpZCjzpX9gMpjvVHaSPguGFLaA+/AzByRM/QoTOG85dWJ9EgLelfHPdXC8 -LclOe2E+zcn33+iPQsbtnUBQB/vf2igX1ZDatA2+rzMzkBnzHqJgQhmp0pMJ27Gf -HuTk00x7D11wNvmkqU5tIskdRb4sXoFV4+UgabsvglG4kFK64vOc17bbH62WpzRg -wm14fi70rOW57LnEZmtzpCZ+bNoETCrXZ+b7QK0gUJOAovZzNJKeGTqKwI5zJzrE -3ELKejyzTyKDlZFoeTfDIkYIQ9fuT7vMsoJF2z/I1tn/R8H5LBnWHoucu577p+CI -3ju+jgpiM/T7v16kAQaQWtqjcXQByMWBm6aR94pAiDqKI/ZNfuYZpX4GXHJCucjX -OIG9UFpNsxFyj3y6JfL5LsFRFeL+Ia1d7chAtSKu/qDYCpbFbJWKB2wyYklpoK1m -Qy3Vpb0Teo4U4cdg+SyyhK9WUmM6+1G6wA0UlWh52FVixYwGd8TCl8K5cSNM8L3f -MsDZFmhifg4VyI+g5b0efYwd8vSvnooS4cp4AIp1mVcKiZeU2/OphT2/QbdRKpwe -mLh3RllVUYNyTWalSdxk4/tFkA4Si/rYTEzy7886ehpAa0q1sNkR8E9tiLyAbot2 -acLip2tC4n7m3xSXtx1j -=Qkit +iQIcBAEBCAAGBQJS2oytAAoJEHfx8XVYajsfxbgQALF8HPS7ykcsIiPZWuMycOp7 +80FZQBh2ol2aji9XarFiMye1RkOSCCItOhEjSOlOvP+6c/lEVe1+RvYmbwdv/p7t +mwbmVlHn/EglTXohFKRzYn4CNJ/fNibtYIK6Y3O8x5rmO6eu0nztz+9WwMAyWgn0 +xI7pvTaThDUOx98t5Urx8qYKJXfjsEHpGguOB/HirTBhbW/45AcjVn9P/fSqE86Z +zh901+RP7hEmWbmbyk77nWM4eyHyNJVi8q/SkbDhoWoqSI1JhnalOUN4nwfZwzCX +XsScaFEsjCpc6s7j8I+9jqwhwPg2O/ARfl5jbWc63+bBouSF6B5X664T8X4rXUX1 +zRs6qiuDcZZXpyhcrKSN+KDrB2gmryKriXSGNqSgeokQsFXV4vaam++JqsIOv9rn +PJPdl7Mdh3RpfRW5khCO8IDYlrKRgTEIlqH9ylj3/QAY4dDLt+aeeg9zMcSxtqHU ++c0DT7pDvCHky2IQdAk+aXIvQOu4wlPtfcuf0DOoOPOxrmTpffrQtLP1DZQOgMJh +oYG+CrTL1VqxfWCjndqjP+Nu4IV4oJ78+B7fZu6b6deWKhC+Q2sxQmsIQ7ro+jHt +I1JngHRw2ykil+DOP+/qf+A6EcLt4uXpafpEigsAw9qeTp1+zJ9E5rb7ifOLSItA +GUnNCGtGX/MSsgCPJ0cL +=nk01 -----END PGP SIGNATURE----- diff --git a/mail-mta/postfix/metadata.xml b/mail-mta/postfix/metadata.xml index 93688f4e0a2d..c89c67399e71 100644 --- a/mail-mta/postfix/metadata.xml +++ b/mail-mta/postfix/metadata.xml @@ -9,6 +9,8 @@ using <pkg>dev-libs/cyrus-sasl</pkg></flag> <flag name='memcached'>Adds support for using <pkg>net-misc/memcached</pkg> for lookup tables</flag> + <flag name='lmdb'>Adds support for using <pkg>dev-db/lmdb</pkg> + for lookup tables</flag> <flag name='vda'>Adds support for virtual delivery agent quota enforcing</flag> </use> diff --git a/mail-mta/postfix/postfix-2.10.3.ebuild b/mail-mta/postfix/postfix-2.10.3.ebuild new file mode 100644 index 000000000000..58d6f8c29536 --- /dev/null +++ b/mail-mta/postfix/postfix-2.10.3.ebuild @@ -0,0 +1,314 @@ +# 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.10.3.ebuild,v 1.1 2014/01/18 14:16:12 eras Exp $ + +EAPI=5 +inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam user versionator systemd + +MY_PV="${PV/_pre/-}" +MY_SRC="${PN}-${MY_PV}" +MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" +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="~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/netqmail + !mail-mta/nullmailer + !mail-mta/qmail-ldap + !mail-mta/sendmail + !mail-mta/opensmtpd + !<mail-mta/ssmtp-2.64-r2 + !>=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 + + # 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 <robbat2@gentoo.org> 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} + + 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.11_pre20131228.ebuild b/mail-mta/postfix/postfix-2.11.0.ebuild index 929a54c3cdcc..7d72e45a2e5c 100644 --- a/mail-mta/postfix/postfix-2.11_pre20131228.ebuild +++ b/mail-mta/postfix/postfix-2.11.0.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2013 Gentoo Foundation +# 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.11_pre20131228.ebuild,v 1.1 2013/12/30 15:55:29 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.11.0.ebuild,v 1.1 2014/01/18 14:16:12 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" +MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" VDA_PV="2.10.0" VDA_P="${PN}-vda-v13-${VDA_PV}" RC_VER="2.7" @@ -19,8 +19,8 @@ SRC_URI="${MY_URI}/${MY_SRC}.tar.gz 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" +KEYWORDS="~amd64 ~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 @@ -28,6 +28,7 @@ DEPEND=">=dev-libs/libpcre-3.4 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 ) @@ -108,6 +109,11 @@ src_configure() { 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 |