summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2015-01-21 10:51:32 +0000
committerEray Aslan <eras@gentoo.org>2015-01-21 10:51:32 +0000
commit587e0e22b32f5faa3b7f7d5e5574d4ef51e2ef9a (patch)
tree296c7182d2546477e6362daa3cfea6b07157bc08 /mail-mta
parentVersion bump (diff)
downloadhistorical-587e0e22b32f5faa3b7f7d5e5574d4ef51e2ef9a.tar.gz
historical-587e0e22b32f5faa3b7f7d5e5574d4ef51e2ef9a.tar.bz2
historical-587e0e22b32f5faa3b7f7d5e5574d4ef51e2ef9a.zip
Remove old
Package-Manager: portage-2.2.15/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/postfix/ChangeLog6
-rw-r--r--mail-mta/postfix/Manifest35
-rw-r--r--mail-mta/postfix/postfix-2.11.1-r1.ebuild324
-rw-r--r--mail-mta/postfix/postfix-2.11.1.ebuild321
-rw-r--r--mail-mta/postfix/postfix-2.11.2.ebuild324
5 files changed, 20 insertions, 990 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog
index 2b62f8a325e6..cd33f00c3f23 100644
--- a/mail-mta/postfix/ChangeLog
+++ b/mail-mta/postfix/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/postfix
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.562 2015/01/21 10:47:28 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.563 2015/01/21 10:51:31 eras Exp $
+
+ 21 Jan 2015; Eray Aslan <eras@gentoo.org> -postfix-2.11.1-r1.ebuild,
+ -postfix-2.11.1.ebuild, -postfix-2.11.2.ebuild:
+ Remove old
*postfix-2.12_pre20150120 (21 Jan 2015)
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest
index 70bf18f642ad..ee8759f52bb6 100644
--- a/mail-mta/postfix/Manifest
+++ b/mail-mta/postfix/Manifest
@@ -10,8 +10,6 @@ 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.10.4.tar.gz 3829427 SHA256 e5233438420fbd6b49a64f007bd8da7dd046777436fb82dd50eadcd8901e7201 SHA512 619b6e2cfa0bd50148fe7ad7df09c13b9e5e8e43fe9331ce03010911f02b9daac16df863cc3ce604375f7e3ae076bf316fed7ffb6f424f873c869d3797d5c81f WHIRLPOOL c7b23975484383be1001f5da96a98614ac96f50c9083fff0986c8303933f51c673c1cd389dbaaa92c17b0f3c087f7979ef9d2a03cfa03c1d5f6c771554269cad
DIST postfix-2.10.5.tar.gz 3830067 SHA256 3a172c1e892b951dfe3d4e703f49359a66b281b3ab7b4e987b6746d2992f623b SHA512 d11beac9fa7a1fe50b522d91975d493e485721596e7930051d9880947ca88e75468ad2036e0902e34b39f44d115c4492c2599bfca5477b28a39672109eda3b0e WHIRLPOOL 22935c2520d349c04a50c88d783fcc9d8ea69f8275f8ec62e7c12a484474e570f4ba2355ddb75edcc49dabe59c3ecb7b9fba95359b5cce4f521f0af666d11f5e
-DIST postfix-2.11.1.tar.gz 4035026 SHA256 487f98a73b95a5799409caf21ec065efea91c1dcdfb84c038a0e3a265d6489e2 SHA512 988659ed7f256fdc831c6a211c33aede922d5baf32da7129afe0ec2fe5011ac95dacb21e59c92f658323b6ea773ebf2bcd66a796d9271c1e7b949d5d9b9ee977 WHIRLPOOL 902eff1304b9d0d52a759f0a0804cd5e34d44b8f1acde26f60db6ddc69d84ff93c70c7b27b9c39318b124582b13d61685fc46c2513044fd4c7511370a33efde7
-DIST postfix-2.11.2.tar.gz 4039038 SHA256 aa6eba4842457c88c48fb65faeb4fc6496cb3e9ceb9e0ddcb3c13b501821a258 SHA512 065688e2d95616dec5111a46d0e2a564d8617a5001156da79833b56056dccad411b5205ab4c304ffa49519dd810539543978f0babd7daba0e5618d8e448c9fcb WHIRLPOOL d15ed1456b4905ced04afaeee13150aff36c971fd1cdc4e19be18740249c188e071d353004728ca5474727e7eccc35eb61cbbf07ad8a1e5fd15261d31a134c92
DIST postfix-2.11.3.tar.gz 4039705 SHA256 04e5146e6e56261baae9f63c590348a4b12ce22d3d46260e26e97233f40802c3 SHA512 b371f1099b1e6e653242a9b4f3812b38b6a9145a4f4c1c9fa5bef6a02e1a9a8f4ec2979c8946f6c873e303ac54f5dd1a84b934eeea8169e2ce187028c36c857e WHIRLPOOL 7b639ae7a5d0bf16ec0c1568b6f1bb486ccf540ae75269d97be36135441513730d78449b29c99403c6876609ddcc676f5740683a963281f1b2481c33bd4cab8e
DIST postfix-2.12-20150120.tar.gz 4246167 SHA256 0fd79e174cb0648f96bd14389fcbf98dda7bc2420a65995fb8557c7dc20ee499 SHA512 8f358ec582011da6eaf193da82552e7b99119d7df18203d77dea0d1f0900dabb4b7284335c7d031a29862528272bdb9ccc1c2f3dc3d8f5086edb4bd264910063 WHIRLPOOL 2023ce0f9f664f4a5a057ec04220a5aac413b8f8d7c7af6fd69c22397c5c0b71e84e4448ccdc524a82aed10119a6a4f0f022c24f93720fb969905749950c4bcd
DIST postfix-vda-v13-2.10.0.patch 55701 SHA256 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f SHA512 0b4b53a8cd28abf56eee3b2ed63ca1814251b60816e6ca1143249d25fd6ef7f905bec3134125ac6e851af685db8aae878012113693261529ae2ddbcf1bd93e62 WHIRLPOOL d98b7d2177b8b69738086880fd08c336fa60b99ff7413624e628fd5f17be2064f2ccaa37c047d3013ed41c0ff1bcb76e7962f8390c4179f28ab11733dd3b59d3
@@ -19,30 +17,27 @@ EBUILD postfix-2.10.2.ebuild 9626 SHA256 e1eed601fffd00f97425d124ea682af9727c91d
EBUILD postfix-2.10.3.ebuild 9629 SHA256 37d37a4c736bb2489be86e1bc2270e7fd2d8e2155d05ef67f10d929beece5896 SHA512 3b3916c5ba2514f176626a8bb78e7bf53a5d960f45066903628a9a3e4f1140bff591f84f30baa66af5396e13aad39cc58be33b901c9ddb88b2ca10cc31a79bd3 WHIRLPOOL 7204a4e70ec610649d3e5769eb08949df54a3f080f17d84b24528ce41eeaa1351bac9188737e4617b817d5a245d76abe77c38f5db68d8e3ca8fed254681a77a6
EBUILD postfix-2.10.4.ebuild 9679 SHA256 7ab4ce58ee3bda67cda9c99a7be313ee7b3893ec65e9d3d05986278e31d1d132 SHA512 0b53186370aca9c60fe42af1d6aa2e504c6d22e2e91d217bcb84c6027f3ea6871b2f4c5b613d38392e5d23bf1c441998ac53f27184a4666d75b292112397b578 WHIRLPOOL 850676f5057aa8bf73d0ddab235d504cff2668f445ee2d2d5912500abcc7a9f88407e9f65566b9a463ecc0dda087039b4da0f155194e78306e8fb4556714da9d
EBUILD postfix-2.10.5.ebuild 9679 SHA256 7d21737d40e17b799eb440da62396e9f624febf30646f16846a8c80b7c40fee7 SHA512 1a291b24d3bcb63b3eb34e4fbcc8725a2c3244a9422950d1080ab19f704b2f1a9722f41b45b0df2bf2c4f297b21d92001dead1293023d42739907b82af8fe3b2 WHIRLPOOL adea5d903d71581439a4667f422bffdda74da11e12dc6b683fce47f1496fc51157bcfd2bd95094cadf086008e74dab6c867b0e73f76460feedcf9b41d7132db3
-EBUILD postfix-2.11.1-r1.ebuild 9763 SHA256 b41fbe60775ee7c1ff0004c7c2992551f02fc95dd399bd7a9cdc513714714474 SHA512 6224fca0c17552332acd47c68d3adc5f1a37a87b03920f72c57598c157b6c2083376ab1fe815ced9a5f9c2afed0e53b701b2654051b93989d30b86750fe1bbd6 WHIRLPOOL 1d81462f7263bfcf5672151a6449bd48057b50bcbe9c9b3d23bbbc7f731a56617e7abdb717feae64ba7eba261807ad8a79a7c1ef1fd85454f8928bc2f34fc625
-EBUILD postfix-2.11.1.ebuild 9709 SHA256 ff723e17b1c2e0e867561cfd42140325d425cac53957398bcd16a7d940c008b8 SHA512 e113400b21e774d5457dcc853011d7a479e9326ab4108e3ec9d92cc8d5d6cfd070b474da65f165dd93a71c096df6ee24d78278d6934b146acecc7dab535fe99b WHIRLPOOL c0c82969995e53bed5af5cd6a4eb16f55238f8de60ce2679884711dc435303b9a5e7b20971661cc62c750a8fb2dcf1b8dd39921deac314a502e3ddba1aba71c7
-EBUILD postfix-2.11.2.ebuild 9768 SHA256 19a7326047c10e1996c07de350a480da0cdb8043e5ae91d8af51e78078379935 SHA512 612fb4dc3cdb73ab80d742883988996de97f7c6c0aec07b67d5a900d941efeb1f46bd1149ed44149bafc0d8a7c607e98781d7540a7da04ba6e47536863baa6f3 WHIRLPOOL b200c0aa43b72d6b78a42d25d8324b2ef1869963a09f257ef80b1ea13e4ef9c865e7669342ece4bfd7cc54eeec086708b6542f66c1b2099225184853fa15b8a3
EBUILD postfix-2.11.3.ebuild 9781 SHA256 6de9ddb9a04d522709124a3a8b7d1be57b31c2b52441e7f9bfde7bae3b1532fb SHA512 da80436e5949c857fedac81d1e13d49dcadff17e345dae7c3e14b9b85f8a73c75d637c8e7485ca58ea0c9d41041f881b709e6b55503fbc042293a60768edf624 WHIRLPOOL 31a97aaf6f0168e75bd7966ac10a41fee865fe08d8a74d599a077d56e1b8c0011ce727a018c8e160809529fcf1a61b4ba9cec2c9d4b109f9539f501874053b86
EBUILD postfix-2.12_pre20150120.ebuild 9694 SHA256 1c51ecdf64463b337ae9702fbfb22866a2d8bf4ae066168324ce981760c708a5 SHA512 e6516ed8704787e2d026442c7d10f724b8de7d3fb787d872a04d9bfd9c8442af66538af7ec0a775353a0a334cda42118280de7c7fe4f716c3189761b6cac4a91 WHIRLPOOL 27179cbeabd01670761287705f52aea805d65baac165f2cef643b26204b02bd99dd35c5fea1f1e1417f67ee7b25d4f4f5654cd2e5500caac5bb22e1a73af0273
-MISC ChangeLog 12464 SHA256 f45b50ce4c237d6474c50d6ed0e054883dc455d7ebd483a36821f2a64e337e51 SHA512 9b3fab576f07e89a416eaf523c13a42bffdf1348a13d89302bed309d4c3fdf003a68f9d18b656711aa7ee6965f83c6ede99f4fdf995cb7b8142a1b35fe597f04 WHIRLPOOL 1775b9132da6792d68005d947aec6ba6895b60d01e7fb9766280bc5a11d1f986fd750965765f9cf45f5e4ef37c07d02bd8cab298110ffed8118e4f514ff5bd12
+MISC ChangeLog 12599 SHA256 8437653bbadca4b1e64ae63d8b8213dcc583bb4a0a4903bbe80693c2516b8a3a SHA512 b15b4a41f531ceea5c65c2f44abf946d729f5e0aa028c8a78d73b937257e22c0e90c008d8e4868a4063676f3e276db31ad580b8291af9375a78051b1ce006fb2 WHIRLPOOL 88d7cd87dfe2d202576eaa105964069ff6b1274b1ad0608176536ee9cca1f3ba429c93fef40c8113c6c3619991fdf58a7d956ad44f8e276aca32d47f447b73ab
MISC ChangeLog-2013 100301 SHA256 439e93c3f6ea08471888157d2347da51181aa9031d4bfdeef2197a6b26680246 SHA512 c678433163e86def50d59e47d7a1a0e8f4c4af860f80932255a7c95544e1f5b55a70b68905b02a417b2332bcf3aaa59281814d8504d70085f0874a23faa2bf02 WHIRLPOOL 15a12897a576cf98d856c551157b72b47aa45fd61d05c6ed55033ce37ce247045c6bcc8143b7ccce4666900d85e0a04087c977a311e31c20f554a991bec74fbc
MISC metadata.xml 754 SHA256 52b30e7748a792a156ad44b46878b67cb1a359c882e03f76b1d7b3b0bf111129 SHA512 bef165b527524efdcabce97c2fc0735f784dfc014ae810294e6a19b534edc6a01e14e532d730c8b8c2b76c99dafac672074317ec6dc23942285ad27895fd7220 WHIRLPOOL 702d14bd15db16217c664a39534bd1b19774d5f6c5a4a2a43e6595f400c06332c56849fd0d722c7982f5c40398b4bb0b3398b96c6f370a57d99d323d0e84ab51
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0
-iQJ8BAEBCABmBQJUv4PKXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+iQJ8BAEBCABmBQJUv4S0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBQjk1NkM0NUMxNzFCRTY4Rjk4NENDMDk3
-N0YxRjE3NTU4NkEzQjFGAAoJEHfx8XVYajsfxj4QAJ7ZnSWQsK+qOkF3UBpE9+bJ
-rQEUttnj14ts/I4LL5ekm3K+VxENVKf9ScCOJqOIgAb+vtYKBJnamPCMFvzorMiF
-hlU+xz091Zb+qW07zr3hjCmkI7NJeXsMa2ba/dpa6lvc529tKoN55KxOPw0sHpHV
-hnS22xkYvqlzAr0Ze/U2GeflmrfdwPCl5na/IC4nNmL3iURpz//sC+z17hRwm/oI
-91aYVQddZUrUayfwGRR7w6P98ZhwooZpFL7wd0p0Gy/+W1w4pGTqCYOBtFRR+Tpd
-GeWrDEAEIFA3q+CAFvT3gLJu68h0mVCv8Rf+xdi198VR0PYguun5d2Z4ySdIXfPc
-Rce9MpO057JDBnDn15xisitxkxllqC2vzJMhIhtwRNiEdZNpDlSJJYE0kKM1EtQX
-Po0h13TMWW05ELIqFoOWefbKjfZ7PsyEkm7Q7pqvE9HKsRnTzC1ueMKefL5vadwI
-Wc3GRrrok3Sm8/PuNcuf9Wizg5waEls1vOEc+Ai5uRjy78bCKKuispIbLTC6aB4q
-4/RA+GY2W5n3S4GOTqkkU9niIdL41c83Vu4nYtBUtavLCfivu5Dd/fDi8bv5xt1T
-QS4MMGi+JWfcADmalaPvNi4A5jW7TfK2WC1QFzjhvqXxhODKbEp2eiiGN7o1wjnb
-RrSYFwQmQSOtpxH7BVhI
-=rVxC
+N0YxRjE3NTU4NkEzQjFGAAoJEHfx8XVYajsf3OAP/jKqvbecI/VB/eeTGHmhHS/+
+hr7yrykQmSQtkLeINaAC9HUlz5Jo5dj0dtVT6qDqW31FnNqmyBiOn+vLPxUfClFe
+RPVWPLyu6OnO7sRfTjj3Pk1nDWGZZ34NoWzehav3MQFIr0cM+W0Ba6PR7DK8fEMi
+VKxQyhSFEy54uIk2Z+3V+VFvDu1ZK4mffnKhiYSgOWXbjouu6xx/Ey3NYqBHWBbX
+y5IxCGVfg6zj5sRLX4Eqejli8eiG5JxcUj5eC34l4jjRFY6MDL5b74Km6zMJe4GC
+thSfcmECuaFO0nObzYOqMG0wxOn+pr6fZ0cSGx2FqWtV+dp1DmlC0hzjr324LCA/
+mZgcXA9z7fa7Sximj7K45JklLH403kwV2rpxFAUUUQbC65mkEkF/hl+LPu9K/q32
+0wFdUbf3f0lw6WrrLLNNaoNm5IeMESRj5HORBitEOAlb/yLF9OwCylGMY85LF6NI
+8gt260hT/GVlG48N2g7kgoHS4EQN6vhdMh1IUCNZkj1uaZZljyu6XmAsb1xQrKOw
+s2Lsz7a29NqyhQrZzrg7FcnHhXkxEkuAWIqkHbievY2/6hbcMOBp2xxDcx3nYip7
+JFxNwQamGDkaFlEZUWT3x4FmJhWxZBTl+O0qFjjJIaTaQRhp4F/uW+VP+A1uUgME
+xG0Yti4Ajr4v9t6J5g7W
+=jbpr
-----END PGP SIGNATURE-----
diff --git a/mail-mta/postfix/postfix-2.11.1-r1.ebuild b/mail-mta/postfix/postfix-2.11.1-r1.ebuild
deleted file mode 100644
index c694e2c628f2..000000000000
--- a/mail-mta/postfix/postfix-2.11.1-r1.ebuild
+++ /dev/null
@@ -1,324 +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.11.1-r1.ebuild,v 1.5 2014/12/28 15:59:10 titanofold 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/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 ~ppc ~ppc64 ~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 )
- 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
- !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
- selinux? ( sec-policy/selinux-postfix )"
-
-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() {
- epatch "${FILESDIR}/${P}-db6.patch"
- 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"
-
- epatch_user
-}
-
-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 <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 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.11.1.ebuild b/mail-mta/postfix/postfix-2.11.1.ebuild
deleted file mode 100644
index 61eaedb0436d..000000000000
--- a/mail-mta/postfix/postfix-2.11.1.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.11.1.ebuild,v 1.8 2014/12/28 15:59:10 titanofold 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/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 ~ppc ~ppc64 ~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 )
- 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
- !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
- selinux? ( sec-policy/selinux-postfix )"
-
-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 <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 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.11.2.ebuild b/mail-mta/postfix/postfix-2.11.2.ebuild
deleted file mode 100644
index fcc30a519812..000000000000
--- a/mail-mta/postfix/postfix-2.11.2.ebuild
+++ /dev/null
@@ -1,324 +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.11.2.ebuild,v 1.4 2014/12/28 15:59:10 titanofold 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/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 ~ppc ~ppc64 ~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 )
- 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
- !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
- selinux? ( sec-policy/selinux-postfix )"
-
-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() {
- epatch "${FILESDIR}/${PN}-2.11.1-db6.patch"
- 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"
-
- epatch_user
-}
-
-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 <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 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
-}