diff options
author | Lluixhi Scura <lluixhi@gmail.com> | 2014-12-21 15:02:32 -0800 |
---|---|---|
committer | Lluixhi Scura <lluixhi@gmail.com> | 2014-12-21 15:02:32 -0800 |
commit | 65e70b97504c0cc803b4ed7b5e0340ec229cef17 (patch) | |
tree | 6120ece91e6a3f47b8577b63cbfd6400eb49f742 /mail-mta | |
parent | dev-libs/libressl: version bump, issue #21 (diff) | |
download | libressl-65e70b97504c0cc803b4ed7b5e0340ec229cef17.tar.gz libressl-65e70b97504c0cc803b4ed7b5e0340ec229cef17.tar.bz2 libressl-65e70b97504c0cc803b4ed7b5e0340ec229cef17.zip |
Fixed Postfix for libressl 2.1.2
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/postfix/ChangeLog | 349 | ||||
-rw-r--r-- | mail-mta/postfix/Manifest | 17 | ||||
-rw-r--r-- | mail-mta/postfix/files/postfix-2.11.1-db6.patch | 12 | ||||
-rw-r--r-- | mail-mta/postfix/files/postfix-libressl-2.1.2.patch | 11 | ||||
-rw-r--r-- | mail-mta/postfix/files/postfix.rc6.2.7 | 86 | ||||
-rw-r--r-- | mail-mta/postfix/files/postfix.service | 13 | ||||
-rw-r--r-- | mail-mta/postfix/files/smtp.pass | 3 | ||||
-rw-r--r-- | mail-mta/postfix/files/smtp.sasl | 3 | ||||
-rw-r--r-- | mail-mta/postfix/metadata.xml | 18 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-2.10.2.ebuild | 315 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-2.10.3.ebuild | 315 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-2.11.3.ebuild | 325 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-2.12_pre20141214.ebuild | 329 |
13 files changed, 1796 insertions, 0 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog new file mode 100644 index 0000000..1f8c6fb --- /dev/null +++ b/mail-mta/postfix/ChangeLog @@ -0,0 +1,349 @@ +# 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.554 2014/12/16 06:54:30 eras Exp $ + +*postfix-2.12_pre20141214 (16 Dec 2014) + + 16 Dec 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141214.ebuild, + -postfix-2.12_pre20141208.ebuild: + Version bump + +*postfix-2.12_pre20141208 (09 Dec 2014) + + 09 Dec 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141208.ebuild, + -postfix-2.12_pre20141207.ebuild: + Version bump + +*postfix-2.12_pre20141207 (08 Dec 2014) + + 08 Dec 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141207.ebuild, + -postfix-2.12_pre20141202.ebuild: + Version bump + + 08 Dec 2014; Jeroen Roovers <jer@gentoo.org> postfix-2.11.3.ebuild: + Stable for HPPA (bug #531430). + + 08 Dec 2014; Agostino Sarubbo <ago@gentoo.org> postfix-2.11.3.ebuild: + Stable for ppc64, wrt bug #531430 + + 07 Dec 2014; Markus Meier <maekke@gentoo.org> postfix-2.11.3.ebuild: + arm stable, bug #531430 + + 07 Dec 2014; Chema Alonso <nimiux@gentoo.org> postfix-2.11.3.ebuild: + Stable for amd64 wrt bug #531430 + +*postfix-2.12_pre20141202 (03 Dec 2014) + + 03 Dec 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141202.ebuild, + -postfix-2.12_pre20141201.ebuild: + Version bump + +*postfix-2.12_pre20141201 (01 Dec 2014) + + 01 Dec 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141201.ebuild, + -postfix-2.12_pre20141119.ebuild: + Version bump + +*postfix-2.12_pre20141119 (24 Nov 2014) + + 24 Nov 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141119.ebuild, + -postfix-2.12_pre20141106.ebuild: + Version bump + +*postfix-2.12_pre20141106 (07 Nov 2014) + + 07 Nov 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141106.ebuild, + -postfix-2.12_pre20141020.ebuild: + Version bump + + 03 Nov 2014; Aaron W. Swenson <titanofold@gentoo.org> postfix-2.10.2.ebuild, + postfix-2.10.3.ebuild, postfix-2.10.4.ebuild, postfix-2.10.5.ebuild, + postfix-2.11.1.ebuild, postfix-2.11.1-r1.ebuild, postfix-2.11.2.ebuild, + postfix-2.11.3.ebuild, postfix-2.12_pre20141020.ebuild: + Update PostgreSQL dependencies and/or checks to virtual/postgresql. + + 02 Nov 2014; Sven Vermeulen <swift@gentoo.org> postfix-2.11.1-r1.ebuild, + postfix-2.11.1.ebuild, postfix-2.11.2.ebuild, postfix-2.11.3.ebuild, + postfix-2.12_pre20141020.ebuild: + Remove sec-policy/selinux-* dependency from DEPEND but keep in RDEPEND (bug + #527698) + + 31 Oct 2014; Eray Aslan <eras@gentoo.org> postfix-2.11.3.ebuild, + postfix-2.12_pre20141020.ebuild: + Add back KEYWORDS - bug #498466 + +*postfix-2.12_pre20141020 (22 Oct 2014) + + 22 Oct 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141020.ebuild, + -postfix-2.12_pre20141015.ebuild: + Version bump + +*postfix-2.10.5 (20 Oct 2014) +*postfix-2.11.3 (20 Oct 2014) + + 20 Oct 2014; Eray Aslan <eras@gentoo.org> +postfix-2.10.5.ebuild, + +postfix-2.11.3.ebuild: + Version bump + +*postfix-2.12_pre20141015 (16 Oct 2014) + + 16 Oct 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141015.ebuild, + -postfix-2.12_pre20141013.ebuild: + Version bump + + 15 Oct 2014; Anthony G. Basile <blueness@gentoo.org> postfix-2.10.3.ebuild: + Stable ppc64, bug #505014 + +*postfix-2.12_pre20141013 (14 Oct 2014) +*postfix-2.10.4 (14 Oct 2014) +*postfix-2.11.2 (14 Oct 2014) + + 14 Oct 2014; Eray Aslan <eras@gentoo.org> +postfix-2.10.4.ebuild, + +postfix-2.11.2.ebuild, +postfix-2.12_pre20141013.ebuild, + -postfix-2.12_pre20141011.ebuild: + Version bump + +*postfix-2.12_pre20141011 (13 Oct 2014) + + 13 Oct 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141011.ebuild, + -postfix-2.12_pre20141006.ebuild: + Version bump + +*postfix-2.12_pre20141006 (07 Oct 2014) + + 07 Oct 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141006.ebuild, + -postfix-2.12_pre20141001.ebuild: + Version bump + +*postfix-2.12_pre20141001 (03 Oct 2014) + + 03 Oct 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20141001.ebuild, + -postfix-2.12_pre20140929.ebuild: + Version bump + +*postfix-2.12_pre20140929 (30 Sep 2014) + + 30 Sep 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140929.ebuild, + -postfix-2.12_pre20140928.ebuild: + Version bump + +*postfix-2.12_pre20140928 (29 Sep 2014) + + 29 Sep 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140928.ebuild, + -postfix-2.12_pre20140924.ebuild: + Version bump + +*postfix-2.12_pre20140924 (25 Sep 2014) + + 25 Sep 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140924.ebuild, + -postfix-2.12_pre20140923.ebuild: + Version bump + +*postfix-2.12_pre20140923 (24 Sep 2014) + + 24 Sep 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140923.ebuild, + -postfix-2.12_pre20140921.ebuild: + Version bump + +*postfix-2.12_pre20140921 (22 Sep 2014) + + 22 Sep 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140921.ebuild, + -postfix-2.12_pre20140907.ebuild: + Version bump + +*postfix-2.12_pre20140907 (08 Sep 2014) + + 08 Sep 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140907.ebuild, + -postfix-2.12_pre20140801.ebuild: + Version bump + + 20 Aug 2014; Eray Aslan <eras@gentoo.org> postfix-2.12_pre20140801.ebuild: + Mask vda USE flag for postfix-2.12 + + 19 Aug 2014; Anthony G. Basile <blueness@gentoo.org> postfix-2.11.1-r1.ebuild, + postfix-2.11.1.ebuild, postfix-2.12_pre20140801.ebuild: + Keyword ~ppc ~ppc64, bug #498466 + + 13 Aug 2014; Agostino Sarubbo <ago@gentoo.org> postfix-2.10.3.ebuild: + Stable for ppc, wrt bug #505014 + + 10 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> postfix-2.10.2.ebuild, + postfix-2.10.3.ebuild, postfix-2.11.1.ebuild, postfix-2.12_pre20140801.ebuild: + QA: drop trailing '.' from DESCRIPTION + +*postfix-2.11.1-r1 (07 Aug 2014) + + 07 Aug 2014; Eray Aslan <eras@gentoo.org> +files/postfix-2.11.1-db6.patch, + +postfix-2.11.1-r1.ebuild: + Support building with db6 - bug #518994 + + 06 Aug 2014; Sven Vermeulen <swift@gentoo.org> postfix-2.11.1.ebuild, + postfix-2.12_pre20140801.ebuild: + Add USE=selinux dependency to sec-policy/selinux-postfix also in DEPEND as + otherwise the file labeling operation by portage will not be done properly + +*postfix-2.12_pre20140801 (01 Aug 2014) + + 01 Aug 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140801.ebuild, + -postfix-2.12_pre20140720.ebuild: + Version bump + +*postfix-2.12_pre20140720 (22 Jul 2014) + + 22 Jul 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140720.ebuild, + -postfix-2.11.0.ebuild, -postfix-2.12_pre20140716.ebuild: + Version bump. Remove old + + 18 Jul 2014; Tobias Klausmann <klausman@gentoo.org> postfix-2.10.3.ebuild: + Stable on alpha, bug #505014 + +*postfix-2.12_pre20140716 (17 Jul 2014) + + 17 Jul 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140716.ebuild, + -postfix-2.12_pre20140715.ebuild: + Version bump + + 16 Jul 2014; Eray Aslan <eras@gentoo.org> metadata.xml: + Beautify wording + + 16 Jul 2014; Eray Aslan <eras@gentoo.org> metadata.xml, + postfix-2.12_pre20140715.ebuild: + Add eai USE flag + +*postfix-2.12_pre20140715 (16 Jul 2014) + + 16 Jul 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140715.ebuild, + -postfix-2.12_pre20140703.ebuild: + Version bump + +*postfix-2.12_pre20140703 (07 Jul 2014) + + 07 Jul 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140703.ebuild, + -postfix-2.12_pre20140701.ebuild: + Version bump + + 05 Jul 2014; Tobias Klausmann <klausman@gentoo.org> + postfix-2.12_pre20140701.ebuild: + Keyworded on alpha, bug #498466 + + 05 Jul 2014; Tobias Klausmann <klausman@gentoo.org> postfix-2.11.1.ebuild: + Keyworded on alpha, bug #498466 + +*postfix-2.12_pre20140701 (02 Jul 2014) + + 02 Jul 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140701.ebuild, + -postfix-2.12_pre20140629.ebuild: + Version bump + +*postfix-2.12_pre20140629 (01 Jul 2014) + + 01 Jul 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140629.ebuild, + -postfix-2.12_pre20140618.ebuild: + Version bump + +*postfix-2.12_pre20140618 (19 Jun 2014) + + 19 Jun 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140618.ebuild, + -postfix-2.12_pre20140531.ebuild: + Version bump + + 14 Jun 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> postfix-2.10.3.ebuild: + x86 stable wrt bug #505014 + +*postfix-2.12_pre20140531 (07 Jun 2014) + + 07 Jun 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140531.ebuild, + -postfix-2.12_pre20140516.ebuild: + Version bump + +*postfix-2.12_pre20140516 (17 May 2014) + + 17 May 2014; Eray Aslan <eras@gentoo.org> +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) + + 09 May 2014; Eray Aslan <eras@gentoo.org> +postfix-2.11.1.ebuild, + +postfix-2.12_pre20140508.ebuild, -postfix-2.10.0.ebuild, + -postfix-2.10.1.ebuild, -postfix-2.12_pre20140406.ebuild: + Version bump and remove old + +*postfix-2.12_pre20140406 (07 Apr 2014) + + 07 Apr 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140406.ebuild, + -postfix-2.12_pre20140321.ebuild: + Version bump + + 02 Apr 2014; Chema Alonso <nimiux@gentoo.org> postfix-2.10.3.ebuild: + Stable for amd64 wrt bug #505014 + + 28 Mar 2014; Jeroen Roovers <jer@gentoo.org> postfix-2.10.3.ebuild: + Stable for HPPA (bug #505014). + + 26 Mar 2014; Markus Meier <maekke@gentoo.org> postfix-2.10.3.ebuild: + arm stable, bug #505014 + +*postfix-2.12_pre20140321 (21 Mar 2014) + + 21 Mar 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140321.ebuild, + -postfix-2.12_pre20140316.ebuild: + Version bump + +*postfix-2.12_pre20140316 (18 Mar 2014) + + 18 Mar 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140316.ebuild, + -postfix-2.12_pre20140223.ebuild: + Version bump + +*postfix-2.12_pre20140223 (27 Feb 2014) + + 27 Feb 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140223.ebuild, + -postfix-2.12_pre20140219.ebuild: + Version bump + +*postfix-2.12_pre20140219 (20 Feb 2014) + + 20 Feb 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140219.ebuild, + -postfix-2.12_pre20140209.ebuild: + Version bump + +*postfix-2.12_pre20140209 (13 Feb 2014) + + 13 Feb 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140209.ebuild, + -postfix-2.12_pre20140109.ebuild, postfix-2.11.0.ebuild: + Version bump and fix typo + + 31 Jan 2014; Markus Meier <maekke@gentoo.org> postfix-2.11.0.ebuild, + postfix-2.12_pre20140109.ebuild: + add ~arm, bug #498466 + + 20 Jan 2014; Jeroen Roovers <jer@gentoo.org> postfix-2.11.0.ebuild: + Marked ~hppa (bug #498466). + + 19 Jan 2014; Jeroen Roovers <jer@gentoo.org> postfix-2.12_pre20140109.ebuild: + Marked ~hppa (bug #498466). + + 18 Jan 2014; Agostino Sarubbo <ago@gentoo.org> postfix-2.10.2.ebuild: + Stable for alpha, wrt bug #490126 + +*postfix-2.12_pre20140109 (18 Jan 2014) + + 18 Jan 2014; Eray Aslan <eras@gentoo.org> +postfix-2.12_pre20140109.ebuild: + Version bump + +*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 + + 01 Jan 2014; Andreas K. Huettel <dilfridge@gentoo.org> +ChangeLog-2013: + Rotate ChangeLog + + For previous entries, please see ChangeLog-2013. diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest new file mode 100644 index 0000000..8b6f718 --- /dev/null +++ b/mail-mta/postfix/Manifest @@ -0,0 +1,17 @@ +AUX postfix-2.11.1-db6.patch 699 SHA256 90356024954a624306f2f5c8859e6a2a69965f83ca5e0d3d1005c9205bf41181 SHA512 9a6f00ae2d31b732be929ce647c222871704db02c09af659e260cf1a995bbde7f2045c59b9c33520070f427d4a2b377f6193bf6f9971087bf8df7f0c95d6d824 WHIRLPOOL 025a95e18942daf7d8a84a6ab9d17f14800aa34fc29bb5a8694f6667d1215553fe33375ef7e831937362b4b5129f6957ef3d8fd781508b554bfe841971524e15 +AUX postfix-libressl-2.1.2.patch 350 SHA256 d07333c8ee58cb5bc729ff2791809f6cdfc33c271ab6d1143eb2178dd5e7769a SHA512 bb85984fb3ac41eb054a4c6baffce296e8679de07a72024d05519433b50f5361d09d87d74c1a64b8c964448e03cf0d8d5d7c390d6920e6f119de94279cf18ef4 WHIRLPOOL 3c844c566773ca6f8637f98cf6740af6ac1c840bbb77272f7086544ef17179a1dd6b3b87ba972df11f4c481591beea74651372cc688cd227cd348b7dabbc4af8 +AUX postfix.rc6.2.7 2217 SHA256 51f4bffa535d891f94d4a20ca2a4a42cc99189f3de78cee1c8d235e4a9d1721d SHA512 a675a4e0a6a550caa97588d5167b4d26fe7e47f03aadbfb3576c45eaa17059ce6912a583c96ae317138040b043dd9f7c34059cd1fd86c37f8586399c5edbd000 WHIRLPOOL a719ba7be97c5eb9a8203cef7276e6ee55965cd2ea33d809d0ca94b05254b32dfbafaa3e6e2e9ea804605c4badc7e7d547aa919ece063a43181c07bac51c23da +AUX postfix.service 267 SHA256 5d6aa3489e8d66a29d132d7170d1fd3b4c36374486c76764df8efc42457739ee SHA512 83def57dd70caca1c07d8493289573342c341c2fe2b376f68df3647be7a3bace9fa57ad07e3b52fc0ca56ea4c7cdfb094e74775c335d18ddd5fdc4632f721915 WHIRLPOOL f1faf22f0c0b8c33f9ae327a81792508e53101eca8c7d7db985d8898f10e985118f2231c09c444e907580061a4adee1de1788f74b7af3ffaafca22c07dee474b +AUX smtp.pass 141 SHA256 c9b3b56a8df2367cc15bc43a70304fac7ebdd7697e1d450d1bcb4bfdd3e078e9 SHA512 652b43be887109bf162647e9c0f08dc4283c9fa8795c11c14e88c60984e07593a4cff9e0e6c5dc92c484f547ae0be50a078599fc2fd67a66903b3ac7a8854b55 WHIRLPOOL f075d66d8ae7a13645066e572ab634721aada5aa828380afc5d45f26a6dd34165069bdc7b2edb89357330863f5aac40ee105bbef284392043589a2921381eb1f +AUX smtp.sasl 147 SHA256 0ef6a2a7846498f56b9a8879f561a51c1e3a203ba90b2991d499afa69fd85629 SHA512 0beba4baecb4c4abdd3d2dd61e9e56d3abbc0035184992c98c57538b9244c6a07470974afe663775c3f3f10354e64457aa07e657dfd212e31a0920e3f04a6000 WHIRLPOOL 0c3eef040dd4486e007c31111b965725d3e9cf5a896881e0c927a715598dcc936dbf1034d6add2e6fb8ef4bd0114a7a49a8bba6f27b14aac30023457a1da12a3 +DIST postfix-2.10.2.tar.gz 3828326 SHA256 f1a735a5a9ffeac8fca59046c437c3b76e7f923fb4249db2a55b2bff0306ddd4 SHA512 fa6c123da040a8e332c0bf2430f5b098523c2eff42a6cf4bfe6618b82d59be8e5a7f5c85b09ab8fd0312058b2135b174e00890423e4d3f8f732c3dc3c91f01c3 WHIRLPOOL 4e1e453ecd653058faf7420d6bfb6ac6a6c343f03f9c1a4213c403a7164d99f659a0b9ba744b803c3d94cfaf3216d3505f44d22069421f6cc4a4651b6be1f316 +DIST postfix-2.10.3.tar.gz 3828808 SHA256 7815d8ad88af76e0962f18bf1e80b1aa5a0d096a00dac1d313fbab3e824b3f5b SHA512 f21ae36f9fa7fd8ad1727f5595e0f65fe49a3a5937269ad68b0a96e666e61d49cf6c72303d84c81ae7fc902146121443f9e27b876b447594557a756f239937d1 WHIRLPOOL b7a7c6f31a78a9ce92ca072c11e1ecc44c72cd5c37fb2067f91a4bcb2a92556e60f41ba23e065c31acd58a97f5497d4f62af01edd3003de5e6c6879a304a4a9f +DIST postfix-2.11.3.tar.gz 4039705 SHA256 04e5146e6e56261baae9f63c590348a4b12ce22d3d46260e26e97233f40802c3 SHA512 b371f1099b1e6e653242a9b4f3812b38b6a9145a4f4c1c9fa5bef6a02e1a9a8f4ec2979c8946f6c873e303ac54f5dd1a84b934eeea8169e2ce187028c36c857e WHIRLPOOL 7b639ae7a5d0bf16ec0c1568b6f1bb486ccf540ae75269d97be36135441513730d78449b29c99403c6876609ddcc676f5740683a963281f1b2481c33bd4cab8e +DIST postfix-2.12-20141214.tar.gz 4220807 SHA256 456f1ceff70e2e4c73473027d1eaec355f6b5775357190af85740be7784da746 SHA512 d6c58cb38796f73d43914fbc190697fd8d9bfcb3709a8445642093a4ce027ff63dbc535c6b0ad89b96b1c7e7c54a976102fad3f822a59d275f47dd722e62e95f WHIRLPOOL 400eb6861a16a2f6cf17e9ca02bf9e98bc6fb1db5e131f8f86a9324782d95cf49e5aec1cd089e744a0b97d5478eaf6d48d81912fb71f196ffc23aa44d9f2c469 +DIST postfix-vda-v13-2.10.0.patch 55701 SHA256 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f SHA512 0b4b53a8cd28abf56eee3b2ed63ca1814251b60816e6ca1143249d25fd6ef7f905bec3134125ac6e851af685db8aae878012113693261529ae2ddbcf1bd93e62 WHIRLPOOL d98b7d2177b8b69738086880fd08c336fa60b99ff7413624e628fd5f17be2064f2ccaa37c047d3013ed41c0ff1bcb76e7962f8390c4179f28ab11733dd3b59d3 +EBUILD postfix-2.10.2.ebuild 9676 SHA256 cd94668b8f628749c7b194db5f4af4d18aad8580bef302e5ed24d788f92aa435 SHA512 bff59b5248bd1ba5f650b078e3a41f343508daf245cbe2be8b8eae6d8e716dcc55fc7d508c0a5689ee00f93bbec6b5b54f205baeb165acfdc8c9e68b64bed805 WHIRLPOOL 1b6ece71338937eb9376a234010911f81b91cf47bee8d061681d1ef3a4568b3b97f85f5ed2900fe18ae86936eaa342cc9a25892fd7928f252913ec7c74d88997 +EBUILD postfix-2.10.3.ebuild 9680 SHA256 c5c9bf23b2824be43e7e070adf173d104801aef86f4ed398d5457aa2148f8d00 SHA512 1fc02861df3101c00b09bbe988636823f25bbd0bd3d22c6214ed583d42aec0cfd70e20e69d8ef59188a0ac1b118257362fb5b60befba9cbb1f046c48e38e1ec1 WHIRLPOOL ce90221433f8cda84128c53ef6b844e3da5ae70cf8d44ead73e1fb1ef62a0a6ade43f3f54cdb9c95972dfddec7afff3f1e861d944d39d1a0a8cfb42b27e36973 +EBUILD postfix-2.11.3.ebuild 9834 SHA256 c34a1ea590b404e4456daae701a296828b5113ac7a1a5ab14f2c2624d4aeddcb SHA512 f5f80299ba564053cb24ce9e26175e19628c466e1e0c30127f4d813505265b88ce3879bd667bd6e38ce9135a47f5065f07cea2653e41f2f7cc940fc7b4b8f0f9 WHIRLPOOL 9c6f904f928ab3385e0f8bbd3212167c7972c71d788317624c4b52975d0844fe3874d6371f79dcf0fb517abd9e4d67eb21c816de12d69e00c9b961e3fed10379 +EBUILD postfix-2.12_pre20141214.ebuild 9744 SHA256 cc96df4cabd3cd4ed6e1911e15c1b74316ed494523d88b2b87522486ab556f5a SHA512 956b72691bf37a9b26c9bfb4b874f1d9fa1c1734431da1cb4e3f35b2870f20133abe8c0ef882d7e887ba5abec458724a354013a1742012e6edd7aee3aa134149 WHIRLPOOL 123db747e4209c6930f441f5d8ee507c2b12849575f324324cf80199461ba11345bc8c33f19ae344113f74e641eff2d0ff1f04f2d93941d3adafd56ccfcffd71 +MISC ChangeLog 11187 SHA256 3a89016a2dac55157ff406c06dfc465a4244297a1494d1eac8bb1450a8a82726 SHA512 f5819ef14a050846ab884cefe9fa379f0acc7a8eba711188aba7ed99f0d98bb4dafce89421707f712be99e463a248c58f7e3250a920a598b72e53cecafc90632 WHIRLPOOL deef189fcfd78d3ea93aa9d0d8948c180b009a875c5f33fa32d162baa5b28ad29f4f48afc960a203f2eac5d8f389226896f0b3f7b919b46b0f0de18355e332a1 +MISC metadata.xml 754 SHA256 52b30e7748a792a156ad44b46878b67cb1a359c882e03f76b1d7b3b0bf111129 SHA512 bef165b527524efdcabce97c2fc0735f784dfc014ae810294e6a19b534edc6a01e14e532d730c8b8c2b76c99dafac672074317ec6dc23942285ad27895fd7220 WHIRLPOOL 702d14bd15db16217c664a39534bd1b19774d5f6c5a4a2a43e6595f400c06332c56849fd0d722c7982f5c40398b4bb0b3398b96c6f370a57d99d323d0e84ab51 diff --git a/mail-mta/postfix/files/postfix-2.11.1-db6.patch b/mail-mta/postfix/files/postfix-2.11.1-db6.patch new file mode 100644 index 0000000..5f5cad4 --- /dev/null +++ b/mail-mta/postfix/files/postfix-2.11.1-db6.patch @@ -0,0 +1,12 @@ +--- src/util/dict_db.c 2012-01-25 00:41:08.000000000 +0000 ++++ src/util/dict_db.c 2014-06-25 18:56:10.000000000 +0000 +@@ -693,7 +688,8 @@ + msg_fatal("set DB cache size %d: %m", dict_db_cache_size); + if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0) + msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM); +-#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) ++#if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || \ ++ (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) + if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0) + FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, + "open database %s: %m", db_path)); diff --git a/mail-mta/postfix/files/postfix-libressl-2.1.2.patch b/mail-mta/postfix/files/postfix-libressl-2.1.2.patch new file mode 100644 index 0000000..3d9b141 --- /dev/null +++ b/mail-mta/postfix/files/postfix-libressl-2.1.2.patch @@ -0,0 +1,11 @@ +diff -ur postfix-2.11.3/src/tls/tls.h new-postfix/src/tls/tls.h +--- postfix-2.11.3/src/tls/tls.h 2013-12-15 05:49:17.000000000 -0800 ++++ new-postfix/src/tls/tls.h 2014-12-21 12:59:06.122908047 -0800 +@@ -64,6 +64,7 @@ + /* + * OpenSSL library. + */ ++#include <stdint.h> + #include <openssl/lhash.h> + #include <openssl/bn.h> + #include <openssl/err.h> diff --git a/mail-mta/postfix/files/postfix.rc6.2.7 b/mail-mta/postfix/files/postfix.rc6.2.7 new file mode 100644 index 0000000..aecd8e7 --- /dev/null +++ b/mail-mta/postfix/files/postfix.rc6.2.7 @@ -0,0 +1,86 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.7,v 1.2 2012/03/07 10:27:37 eras Exp $ + +extra_started_commands="reload abort flush" + +description_reload="Re-read configuration files. Running processes terminate at their earliest convenience." +description_abort="Stop the Postfix mail system abruptly. Running processes are signaled to stop immediately." +description_flush="Force delivery: attempt to deliver every message in the deferred mail queue." + +# Please read http://www.postfix.org/MULTI_INSTANCE_README.html for multi instance support +CONF_DIR="/etc/postfix" +CONF_OPT="${SVCNAME##*.}" +if [ -n ${CONF_OPT} -a ${SVCNAME} != "postfix" ]; then + CONF_DIR="${CONF_DIR}.${CONF_OPT}" +fi +if [ "${CONF_DIR}" = "/etc/postfix" ]; then + CONF_PARAM="" + CONF_MESSAGE="" +else + CONF_PARAM="-c ${CONF_DIR}" + CONF_MESSAGE="(${CONF_DIR})" +fi + +depend() { + use logger dns ypbind amavisd antivirus postfix_greylist net saslauthd + if [ "${SVCNAME}" = "postfix" ]; then + provide mta + fi +} + +start() { + if [ ! -z "${CONF_PARAM}" ]; then + einfo "Please consider updating your config for postmulti support." + fi + ebegin "Starting postfix ${CONF_MESSAGE}" + if [ ! -d ${CONF_DIR} ]; then + eend 1 "${CONF_DIR} does not exist" + return 1 + fi + /usr/sbin/postfix ${CONF_PARAM} start >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping postfix ${CONF_MESSAGE}" + /usr/sbin/postfix ${CONF_PARAM} stop >/dev/null 2>&1 + eend +} + +status() { + local _retval + einfon "" + /usr/sbin/postfix ${CONF_PARAM} status + _retval=$? + if [ x${_retval} = 'x0' ]; then + mark_service_started "${SVCNAME}" + eend 0 + else + mark_service_stopped "${SVCNAME}" + eend 3 + fi +} + +reload() { + ebegin "Reloading postfix ${CONF_MESSAGE}" + /usr/sbin/postfix ${CONF_PARAM} reload >/dev/null 2>&1 + eend $? +} + +abort() { + ebegin "Aborting postfix ${CONF_MESSAGE}" + + if service_started "${SVCNAME}"; then + mark_service_stopped "${SVCNAME}" + fi + /usr/sbin/postfix ${CONF_PARAM} abort >/dev/null 2>&1 + eend $? +} + +flush() { + ebegin "Flushing postfix ${CONF_MESSAGE}" + /usr/sbin/postfix ${CONF_PARAM} flush >/dev/null 2>&1 + eend $? +} diff --git a/mail-mta/postfix/files/postfix.service b/mail-mta/postfix/files/postfix.service new file mode 100644 index 0000000..d3d4804 --- /dev/null +++ b/mail-mta/postfix/files/postfix.service @@ -0,0 +1,13 @@ +[Unit] +Description=Postfix Mail Transport Agent +After=network.target + +[Service] +Type=forking +ExecStartPre=-/usr/bin/newaliases +ExecStart=/usr/sbin/postfix start +ExecStop=/usr/sbin/postfix stop +ExecReload=/usr/sbin/postfix reload + +[Install] +WantedBy=multi-user.target diff --git a/mail-mta/postfix/files/smtp.pass b/mail-mta/postfix/files/smtp.pass new file mode 100644 index 0000000..3ccf36d --- /dev/null +++ b/mail-mta/postfix/files/smtp.pass @@ -0,0 +1,3 @@ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.pass,v 1.2 2004/07/18 03:26:56 dragonheart Exp $ +# +# remotehost user:password diff --git a/mail-mta/postfix/files/smtp.sasl b/mail-mta/postfix/files/smtp.sasl new file mode 100644 index 0000000..c5320e7 --- /dev/null +++ b/mail-mta/postfix/files/smtp.sasl @@ -0,0 +1,3 @@ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.sasl,v 1.3 2011/05/09 12:36:20 eras Exp $ +pwcheck_method:saslauthd +mech_list: PLAIN diff --git a/mail-mta/postfix/metadata.xml b/mail-mta/postfix/metadata.xml new file mode 100644 index 0000000..c942b73 --- /dev/null +++ b/mail-mta/postfix/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-mail</herd> + <use> + <flag name='dovecot-sasl'>Enable <pkg>net-mail/dovecot</pkg> protocol + version 1 (server only) SASL implementation</flag> + <flag name='eai'>Add support for SMTPUTF8</flag> + <flag name='ldap-bind'>Add support for binding to LDAP backend + using <pkg>dev-libs/cyrus-sasl</pkg></flag> + <flag name='memcached'>Add support for using <pkg>net-misc/memcached</pkg> + for lookup tables</flag> + <flag name='lmdb'>Add support for using <pkg>dev-db/lmdb</pkg> + for lookup tables</flag> + <flag name='vda'>Add support for virtual delivery agent quota + enforcing</flag> + </use> +</pkgmetadata> diff --git a/mail-mta/postfix/postfix-2.10.2.ebuild b/mail-mta/postfix/postfix-2.10.2.ebuild new file mode 100644 index 0000000..6c12a3a --- /dev/null +++ b/mail-mta/postfix/postfix-2.10.2.ebuild @@ -0,0 +1,315 @@ +# 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.2.ebuild,v 1.12 2014/11/03 12:53:10 titanofold 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? ( virtual/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 + 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() { + epatch "${FILESDIR}"/${PN}-libressl-2.1.2.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" +} + +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.10.3.ebuild b/mail-mta/postfix/postfix-2.10.3.ebuild new file mode 100644 index 0000000..d42364a --- /dev/null +++ b/mail-mta/postfix/postfix-2.10.3.ebuild @@ -0,0 +1,315 @@ +# 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.10 2014/11/03 12:53:10 titanofold 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? ( virtual/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 + 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() { + epatch "${FILESDIR}"/${PN}-libressl-2.1.2.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" +} + +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.3.ebuild b/mail-mta/postfix/postfix-2.11.3.ebuild new file mode 100644 index 0000000..ee3ebd5 --- /dev/null +++ b/mail-mta/postfix/postfix-2.11.3.ebuild @@ -0,0 +1,325 @@ +# 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.3.ebuild,v 1.8 2014/12/08 18:59:11 jer 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 ~ia64 ~ppc ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +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? ( virtual/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" + epatch "${FILESDIR}/${PN}-libressl-2.1.2.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.12_pre20141214.ebuild b/mail-mta/postfix/postfix-2.12_pre20141214.ebuild new file mode 100644 index 0000000..8757ab0 --- /dev/null +++ b/mail-mta/postfix/postfix-2.12_pre20141214.ebuild @@ -0,0 +1,329 @@ +# 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_pre20141214.ebuild,v 1.1 2014/12/16 06:54:30 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="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="+berkdb cdb doc dovecot-sasl +eai 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 ) ) + eai? ( dev-libs/icu ) + ldap? ( net-nds/openldap ) + ldap-bind? ( net-nds/openldap[sasl] ) + lmdb? ( >=dev-db/lmdb-0.9.11 ) + mysql? ( virtual/mysql ) + pam? ( virtual/pam ) + postgres? ( virtual/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 )" + +# No vda support for postfix-2.12 +REQUIRED_USE="ldap-bind? ( ldap sasl ) + !vda" + +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}-libressl-2.1.2.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() { + for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE + do + local AUXLIBS_${name}="" + done + + # Make sure LDFLAGS get passed down to the executables. + local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" + AUXLIBS_PCRE="$(pcre-config --libs)" + + use pam && mylibs="${mylibs} -lpam" + + if use ldap; then + mycc="${mycc} -DHAS_LDAP" + AUXLIBS_LDAP="-lldap -llber" + fi + + if use mysql; then + mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" + AUXLIBS_MYSQL="$(mysql_config --libs)" + fi + + if use postgres; then + mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" + AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" + fi + + if use sqlite; then + mycc="${mycc} -DHAS_SQLITE" + AUXLIBS_SQLITE="-lsqlite3 -lpthread" + fi + + if use ssl; then + mycc="${mycc} -DUSE_TLS" + mylibs="${mylibs} -lssl -lcrypto" + fi + + if use lmdb; then + mycc="${mycc} -DHAS_LMDB" + AUXLIBS_LMDB="-llmdb -lpthread" + fi + + if ! use eai; then + mycc="${mycc} -DNO_EAI" + 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" + # Tinycdb is preferred. + if has_version dev-db/tinycdb ; then + einfo "Building with dev-db/tinycdb" + AUXLIBS_CDB="-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 + AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" + done + fi + 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 makefiles shared=yes dynamicmaps=no \ + shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ + DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ + AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ + AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ + AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ + AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" +} + +src_install () { + local myconf + use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ + html_directory=\"/usr/share/doc/${PF}/html\"" + + LD_LIBRARY_PATH="${S}/lib" \ + /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 + LD_LIBRARY_PATH="${S}/lib" \ + "${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,*.proto} "${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} + + if has_version mail-mta/postfix; then + # let the sysadmin decide when to change the compatibility_level + sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die + fi + + systemd_dounit "${FILESDIR}/${PN}.service" +} + +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 +} |