summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2012-03-06 13:12:55 +0000
committerEray Aslan <eras@gentoo.org>2012-03-06 13:12:55 +0000
commit4be3508190e16c06e527fea0455ded205f3bd7a3 (patch)
tree4b54027e8ec99359c407dd2d448c36a1df04e38e /mail-mta
parentVersion bump. (diff)
downloadhistorical-4be3508190e16c06e527fea0455ded205f3bd7a3.tar.gz
historical-4be3508190e16c06e527fea0455ded205f3bd7a3.tar.bz2
historical-4be3508190e16c06e527fea0455ded205f3bd7a3.zip
version bump
Package-Manager: portage-2.1.10.49/cvs/Linux x86_64
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/postfix/ChangeLog9
-rw-r--r--mail-mta/postfix/Manifest35
-rw-r--r--mail-mta/postfix/postfix-2.10_pre20120305.ebuild (renamed from mail-mta/postfix/postfix-2.10_pre20120303.ebuild)2
-rw-r--r--mail-mta/postfix/postfix-2.8.9.ebuild279
4 files changed, 307 insertions, 18 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog
index a69e3d702c2c..bbea67da3e74 100644
--- a/mail-mta/postfix/ChangeLog
+++ b/mail-mta/postfix/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for mail-mta/postfix
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.340 2012/03/04 05:44:31 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.341 2012/03/06 13:12:55 eras Exp $
+
+*postfix-2.10_pre20120305 (06 Mar 2012)
+*postfix-2.8.9 (06 Mar 2012)
+
+ 06 Mar 2012; Eray Aslan <eras@gentoo.org> +postfix-2.8.9.ebuild,
+ -postfix-2.10_pre20120303.ebuild, +postfix-2.10_pre20120305.ebuild:
+ version bump
*postfix-2.10_pre20120303 (04 Mar 2012)
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest
index ac9ee955415f..5c36ab0921db 100644
--- a/mail-mta/postfix/Manifest
+++ b/mail-mta/postfix/Manifest
@@ -6,7 +6,7 @@ AUX postfix.rc6.2.6 1996 RMD160 a7936897d1b8249e3fc0da2426afcbbe25bbe0ce SHA1 34
AUX postfix_no-berkdb.patch 2729 RMD160 2e80e5c446b58afe8cda35991ac3af5f3db3f7eb SHA1 8c6d8695bf347769f957a79f3320fcff8d844315 SHA256 c21e9582346c913b3033ec6d3567d0b0bd3576ad64052fed48a5cf78d7ad92fc
AUX smtp.pass 141 RMD160 799433a4ee9e9e32f20aa2d31f85f33faa2bc7e6 SHA1 e1d75aa259fa07b257a617e056662aecfd19957f SHA256 c9b3b56a8df2367cc15bc43a70304fac7ebdd7697e1d450d1bcb4bfdd3e078e9
AUX smtp.sasl 147 RMD160 8565ca413ec1a9e369be227643d3610124b34566 SHA1 565035b230d4997a207d146609336dfe643c6ed3 SHA256 0ef6a2a7846498f56b9a8879f561a51c1e3a203ba90b2991d499afa69fd85629
-DIST postfix-2.10-20120303.tar.gz 3763418 RMD160 62ce2aba5c354ba99ffe53faf01443343a319784 SHA1 dad01f456cc1ec85ac9b2f00949dce7ce5ec4a21 SHA256 8fcde474fdb1d8e834288f4035100f815a01157b611d56ea5298be5dbcab824d
+DIST postfix-2.10-20120305.tar.gz 3762593 RMD160 773ca28ecd32cc7874afcfc61b08cf4a4f4345fa SHA1 5551d368fe8acea5e60d377c577f985463c48584 SHA256 bb45872ca55a5ade40baa815586a00ac51b23255cb8409359d8feb33e3afb36e
DIST postfix-2.7.4.tar.gz 3423968 RMD160 4f3e0db43c55cd50b3fb4493dbc698ff3f343294 SHA1 c755ceb3a5ee983f3b72f08e1fffb6384b1f1865 SHA256 9bad5851e8a7c97890ee9465e7f675f7826d56361369d3e792a79eaf98ed2b11
DIST postfix-2.7.5.tar.gz 3425071 RMD160 a900ff09c0a54382a4af62b609f6ddaba17963fc SHA1 066cc87f602f2daf1d3207de92ca08de9eb16bab SHA256 2fe408f49bc8540bc41b44f1b7ee7a27561f1baa4e25ef55645778ba96d15932
DIST postfix-2.7.6.tar.gz 3425286 RMD160 9961b959ae34a1fe1d3bf70acce1f16e5ada255d SHA1 9a2cd652abdc0d3cf29563261d5c0f407d8d7bf9 SHA256 4f7546d25463c5fc300eccd05c302a44458b1cc8dfda02c7205daa0038d5ab17
@@ -17,13 +17,15 @@ DIST postfix-2.8.5.tar.gz 3647010 RMD160 db4761f14b146c233426fa1afe49782e64f0c9e
DIST postfix-2.8.6.tar.gz 3647498 RMD160 1f85ff0e9432109342436144f6963d39b79910e1 SHA1 32613ad01cad10ae04aad626f9a69ac9126b3d28 SHA256 8b427a5dfe95da98918fcafce4032bac5d6190603fbc090da3c5c3a22c74dae5
DIST postfix-2.8.7.tar.gz 3647643 RMD160 ab0700f8f340fad11bf2a294a36ff1d70a1a8783 SHA1 81c87aceff4d9af67a304354bab9c99ac98fc8a0 SHA256 5c13465ab47414e9aa2e857851eff1a3f020cebd056e0dde6094ece3552806e5
DIST postfix-2.8.8.tar.gz 3648317 RMD160 eb71b542af2a00da5f12220946731560ff20377d SHA1 b712b25a105c132b40b63aef49268ea117b86f03 SHA256 77dc98e21da48901d326e98f918ea50d6cad66ee5812033b5aab342c9578328c
+DIST postfix-2.8.9.tar.gz 3648498 RMD160 db540c199ca66457e0ca65b1f95c9745249a1254 SHA1 2404d369e7ae90cdd9a0e4e185c4699a16c9fe81 SHA256 6a63bafad1002abbab2d2592a40dc4b3e35defd97f2026d6ccc398e5d7ee9bf3
DIST postfix-2.9.0.tar.gz 3768091 RMD160 0454dce2e82edb11f7e61f8038154c32a47bc605 SHA1 a04a72a8b9436279a30b7d1b62197be63124a132 SHA256 aed9b360eb74f46bfd6c6efe4eb724ce013cb8c6d4ad43888dd940aa2d33e6ec
DIST postfix-2.9.1.tar.gz 3768329 RMD160 5a97bcfe16a5ed343e449e73cde99c62b47c4aeb SHA1 d4f6572ab1ac5fc15626ac2de6d18c340aae2cef SHA256 d1dbe901f76ab6fd51f9c8c61eb46bd6fe0bc8b13823330e397eb1b00e940cbe
DIST postfix-vda-2.7.2.patch 59667 RMD160 ebec1fa4a4c6b3c0160407b09aacf8357c936148 SHA1 ac712922f45856965118fa7b8551ece1ccb524db SHA256 f9b12376983833ef9305f7696e9792b62058f242ff2630aeb0866cf686f0a14b
DIST postfix-vda-v10-2.8.1.patch 56777 RMD160 42f6351d645cc7a211aea86cc35e1f3b10b50da1 SHA1 6b36480be036e7b7aa834fd904a2aa57c537cd40 SHA256 13ca7430b68dc19e21ee26c1c1109e1527a656777fa2f224cd3ce2d594435f12
DIST postfix-vda-v10-2.8.3.patch 56777 RMD160 ce30005d590d884c589612e65dbd34cbdbf84a31 SHA1 c27217b9af33c86a44bbb4469b7ebd4203210f7a SHA256 02599bdf16e7d77fe6043d1dac972daecdd40c4b2758579200d6ccb11e83acaa
DIST postfix-vda-v10-2.8.5.patch 56777 RMD160 fc1622a91c88d6d91782b9d4e9dfecd3f603251b SHA1 b9f8480a738dccf0023698274c8d5f5cb4fb308f SHA256 0106e0bfdea8bb3888e8f33e7cb4b1530d171abbf2d3ac91567f91240e4b6b5a
-EBUILD postfix-2.10_pre20120303.ebuild 9499 RMD160 c3180195b53aa2cec3eea17ebd9eb782da08bca1 SHA1 30cf911c6cdce3921212924454128b09058b1fff SHA256 96f2133c1fc13b3e494a8e24ea8d31811259c4370eafdeaf648f7e32f874b3be
+DIST postfix-vda-v10-2.8.8.patch 56777 RMD160 960d5b2e6ff45ae376ba9e98ab74ec712badfcd3 SHA1 9bfbbb6278301ac11082c9a9e685ad6e90b24e6a SHA256 40e32a1c159fe3d12836f81e4871e4a628a87623b80402e90f7465eb39f89a86
+EBUILD postfix-2.10_pre20120305.ebuild 9499 RMD160 56c11cbdae80d3550e6f635e020254b4cf3c13ae SHA1 4846fce1072a94527beb2fd1a10faadf1658502e SHA256 97540a66af1c2949091c67765c3ba77f54185d1e680ffa5eab04a02d98d15500
EBUILD postfix-2.7.4.ebuild 7562 RMD160 7b1874aa1c5fb0357ab8bafd740e38ec00ecdb45 SHA1 db22462d85927f3afc7c172597842d1fc0ac5fb5 SHA256 aaa33b10ecc21d9dcd8256b12974912bf3481544c5f7cb5119da7b52fcefc9d9
EBUILD postfix-2.7.5.ebuild 7573 RMD160 767bf6a470af95a14e1e725fc77287d3f3907ffd SHA1 2f897791234a3c2bfbcb3fe39406c60e2f7e9b09 SHA256 b348d000438cae031fa48e04a938aa623dd722120699a9969cccc99d05842122
EBUILD postfix-2.7.6.ebuild 7573 RMD160 6e8c3b59101d7d4d19f20f0df24b5f53d2a23957 SHA1 f703ec9a31a1a6a2e3930fbd7660f998d1753c27 SHA256 7ade993dbeba99be1ab0f97d35227fbb0d208f70e4a718bf3d2a56bc4983f512
@@ -36,25 +38,26 @@ EBUILD postfix-2.8.5.ebuild 8447 RMD160 d783620f452d45b164b81c3f32fea5488dd703d1
EBUILD postfix-2.8.6.ebuild 8435 RMD160 d794ccd5fae24cbef65034aedb5f8919ca216483 SHA1 3a0e9b1920bc6fab81287057f1f15bf00a5376a2 SHA256 6c25ce81553164eb797f83b4b170e0b8dd4049ee984653b043e27605ca32ce3a
EBUILD postfix-2.8.7.ebuild 8422 RMD160 039622b906a8c3b62cda6780f213e042d2e06e9f SHA1 6ced29125f77d7cd7dba95612c5aebe4aefc958d SHA256 c9a928e081369635f5fe1d20ed1d4c7f3735ecada85f461bcea00e2e42cea5f2
EBUILD postfix-2.8.8.ebuild 8433 RMD160 a1670cca48ff09cb8ec6243bda4c14fe6c2baad8 SHA1 051e023f04cc06bb87448ce2307cc94ca0b79469 SHA256 bba214631e160d68020f83b1f8fbadffb45e5d2e1d097c2a6de75f3bf9de39e6
+EBUILD postfix-2.8.9.ebuild 8433 RMD160 1c2edff066c7f7004bc49b9ef3e042fc9b422dfa SHA1 5ab2cd58dae7f6fc8f466103a08a6d962e50d9ce SHA256 d86e4f907b5e767d4c757f1258cbba47f5defa11e76f3e52ccd0d50c7c4da2b4
EBUILD postfix-2.9.0-r1.ebuild 9557 RMD160 97300e05fc507d1b90146f2c6cb1f45f2c7bc5db SHA1 df1669c2af777951a244dbb7f60f36f529ee169f SHA256 21b0fdad4a7a065e20dd39bd2b75bfc4da2c066bd76558a304fd2114ed4c81a7
EBUILD postfix-2.9.0.ebuild 9554 RMD160 6077663c5d24ee7b97069befd5e37833e8f10f9a SHA1 41777f9b4f2120c6f99ab0ea26866f65c1321e14 SHA256 a5f517184ac04843bf5c09fc4a76d8b8ecde981b6af463f598a48262bc86bced
EBUILD postfix-2.9.1.ebuild 9483 RMD160 e7a7abdcd7d31603b1e4d298a10d368cd7b708fb SHA1 ddce969d04456765884478e255d0157e9963046f SHA256 4403a43db499e7dff8c6faf9df62e042a323a7aeaf6ba2c7d3f3f19e99863f84
-MISC ChangeLog 78182 RMD160 6acf1ec06dca56415c1e35b525fa74594520109b SHA1 692ff120e3ce8f963ee43986ec2bbd83fa22d873 SHA256 0d89c2535c663755fc1db84e0111c52ef5fa26ef08be60e451cf427f5e86f4b1
+MISC ChangeLog 78405 RMD160 61d1cfd85b3ef7ac866e049f47014dfa5b8fc83f SHA1 3ad07292fd258e4ac2e4e59619e776172ce65088 SHA256 47386bfce4ee92caac6aa12ecc048331cd10af72a327914d15d5ee8833477603
MISC metadata.xml 610 RMD160 095d8cd529350f58c64d6d2eb40e8534d3dddfae SHA1 d53048933e7490f3f342ccf8972c191ee8030ccd SHA256 00b7ef524664b20a9df7642573745b1d17b0b51f005ffd150ac6dccba38dee88
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iQIcBAEBCAAGBQJPUwFNAAoJEHfx8XVYajsfI6YQAJ0WC4mN20Q9EExEyFZG2FaC
-YJgHPtYTKYRh6lOsATinD2VlvEMtU3Cr5eKnkDTwGuw7zwEDN2RAtdMFENc0Vu9/
-su9wrlj76dRPcCHfazDDr+kuIZAr2ZAwYk+4muird96OTA70umVZo1UE4a6h2QCU
-f4AOC+NN95qeqPTC65brbdPlHefs0XR2b8dLTMub6Pk6rsRqA+mk/IdG1jl7EHyJ
-MTqqG+LJwC5EX9kbcyE7UiMkcAwMeAYAT9kGNn6qf9Av9ETmCXtE2zcBGiBliS/p
-9pVYW4A5EPHMlRR+D1On/jHtufVf+K1+PlNDS9b/1dZCFJI6vmL5fGLm/p9waIGI
-Go23nFWpfYFlNL5bIvia/u3NuLZGKaUbLcONLra9XfmmC2VEXzvIfhwgmT8DQTih
-zLGT/lDH3BDavLQ/V4lz27JvSzQ3J7kBJYEUKD924XhiMb1DqZ0ni3lc9QB7Xnb0
-q5FzIIwircpmK5X7uRzPhk/7/Yez3UvMnDP7Dbdbdmp1r6X/tcJh8u/gmNbgaYF8
-n/P0df1hPQEyK1+8yQKAq2Xohn2yX+/Q1+ttazjh+nNQ5372wMj/Mm915n9wHx9Z
-eBw7//IQVRBNdAaOwJljmg9RC/E7lHlso9LUqzVe017MYm+7Pf+3yhi/4l8FRh7j
-+q8OfCngL7zjbXprG+nQ
-=hOuj
+iQIcBAEBCAAGBQJPVg1mAAoJEHfx8XVYajsftIoP/2uU8j45rlsUqhsAAYUu+rRA
+RT3PEQrzK03u5Au76/M2hOv4yMz33X/jahMqqooFkeEXWQT+2eap/H7LMr9Mi5kA
+swStxtMyc+/e8SMEqUzii1sESvotSsMRzweLynM9D6XfjsFT6vqWygNr1I0k5bSx
+5gSoaNTI19RQL1dnzlQb2LfCtHD+Aw8Ntgy0uCM5eGx0f7G/NBPsWt0hnkVLpOEA
+wK3sFSfggtB6OGTdn8yQWu3frY19kOZiRBGgIxG+sEkrPgiMUairmxpxAkEcDk/p
+M8JlBiQou6bEwFPjCa8SKI6hDkrRv/CS/GGU5Zgiit1g1mnH9vEPux3Or1cJku+R
+MvNt3rfQ/k6L2XPcrMctkr3pcUiZSTciEqR55Z5PFIbr0TLEAOlNKQzEq4Rrb6V7
+Hw896IrSixTgUVtdOuYLSvQ22y+ephgPAiVb/dc/CN5parUYXuAcHCPgEURXW7db
+BJw5zvkMeVaj5urzjrN8H8hRFTnfo9F0DtSD6+GTg87WtPDtUd4GFmGsxt8nj7kH
+yo4hVUVISuxvMAqhhSWNJznTdFVr2buQTFfC6KpN0v88dvwWHMTYVFHjDgPYOjYH
+6xyedxjhUcSoQstb7Nd5BLme54uAW7tv51D8/Dgwo9ZyEOKHMeRvvhBHzbhaKyF4
+WTys7r0yOkWyIPGHVJDC
+=eXQ5
-----END PGP SIGNATURE-----
diff --git a/mail-mta/postfix/postfix-2.10_pre20120303.ebuild b/mail-mta/postfix/postfix-2.10_pre20120305.ebuild
index 8d42bf6dd079..fb6605de2576 100644
--- a/mail-mta/postfix/postfix-2.10_pre20120303.ebuild
+++ b/mail-mta/postfix/postfix-2.10_pre20120305.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20120303.ebuild,v 1.1 2012/03/04 05:44:31 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20120305.ebuild,v 1.1 2012/03/06 13:12:55 eras Exp $
EAPI=4
diff --git a/mail-mta/postfix/postfix-2.8.9.ebuild b/mail-mta/postfix/postfix-2.8.9.ebuild
new file mode 100644
index 000000000000..8a56a12cbd0d
--- /dev/null
+++ b/mail-mta/postfix/postfix-2.8.9.ebuild
@@ -0,0 +1,279 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.8.9.ebuild,v 1.1 2012/03/06 13:12:55 eras Exp $
+
+EAPI=4
+
+inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam
+
+MY_PV="${PV/_rc/-RC}"
+MY_SRC="${PN}-${MY_PV}"
+MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
+VDA_PV="2.8.8"
+VDA_P="${PN}-vda-v10-${VDA_PV}"
+RC_VER="2.5"
+
+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 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="cdb doc dovecot-sasl hardened ipv6 ldap ldap-bind mbox mysql nis pam postgres sasl selinux sqlite ssl vda"
+
+DEPEND=">=sys-libs/db-3.2
+ >=dev-libs/libpcre-3.4
+ dev-lang/perl
+ cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r1 ) )
+ ldap? ( net-nds/openldap )
+ ldap-bind? ( net-nds/openldap[sasl] )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( dev-db/postgresql-base )
+ sasl? ( >=dev-libs/cyrus-sasl-2 )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( >=dev-libs/openssl-0.9.6g )"
+
+RDEPEND="${DEPEND}
+ dovecot-sasl? ( net-mail/dovecot )
+ net-mail/mailbase
+ selinux? ( sec-policy/selinux-postfix )
+ !mail-mta/courier
+ !mail-mta/esmtp
+ !mail-mta/exim
+ !mail-mta/mini-qmail
+ !mail-mta/msmtp[mta]
+ !mail-mta/nbsmtp
+ !mail-mta/netqmail
+ !mail-mta/nullmailer
+ !mail-mta/qmail-ldap
+ !mail-mta/sendmail
+ !<mail-mta/ssmtp-2.64-r2
+ !>=mail-mta/ssmtp-2.64-r2[mta]
+ !net-mail/fastforward"
+
+REQUIRED_USE="ldap-bind? ( ldap sasl )"
+
+S="${WORKDIR}/${MY_SRC}"
+
+group_user_check() {
+ einfo "Checking for postfix group ..."
+ enewgroup postfix 207
+ einfo "Checking for postdrop group ..."
+ enewgroup postdrop 208
+ einfo "Checking for postfix user ..."
+ enewuser postfix 207 -1 /var/spool/postfix postfix,mail
+}
+
+pkg_setup() {
+ # Add postfix, postdrop user/group (bug #77565)
+ group_user_check || die "Failed to check/add needed user/group"
+}
+
+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 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 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
+
+ mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\""
+ mycc="${mycc} -DDEF_CONFIG_DIR=\\\"/etc/postfix\\\""
+ mycc="${mycc} -DDEF_COMMAND_DIR=\\\"/usr/sbin\\\""
+ mycc="${mycc} -DDEF_SENDMAIL_PATH=\\\"/usr/sbin/sendmail\\\""
+ mycc="${mycc} -DDEF_NEWALIS_PATH=\\\"/usr/bin/newaliases\\\""
+ mycc="${mycc} -DDEF_MAILQ_PATH=\\\"/usr/bin/mailq\\\""
+ mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\""
+ mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\""
+ mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\""
+ mycc="${mycc} -DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\""
+ mycc="${mycc} -DDEF_DATA_DIR=\\\"/var/lib/postfix\\\""
+ mycc="${mycc} -DDEF_MAIL_OWNER=\\\"postfix\\\""
+ mycc="${mycc} -DDEF_SGID_GROUP=\\\"postdrop\\\""
+
+ # 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
+
+ emake DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" makefiles
+}
+
+src_install () {
+ /bin/sh postfix-install \
+ -non-interactive \
+ install_root="${D}" \
+ config_directory="/etc/postfix" \
+ manpage_directory="/usr/share/man" \
+ readme_directory="/usr/share/doc/${PF}/readme" \
+ html_directory="/usr/share/doc/${PF}/html" \
+ command_directory="/usr/sbin" \
+ daemon_directory="/usr/$(get_libdir)/postfix" \
+ mailq_path="/usr/bin/mailq" \
+ newaliases_path="/usr/bin/newaliases" \
+ sendmail_path="/usr/sbin/sendmail" \
+ || 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 postfix:postfix /var/lib/postfix
+ fowners postfix:postfix /var/lib/postfix/.keep_${CATEGORY}_${PN}-${SLOT}
+ 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
+ # 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 INSTALL PORTING RELEASE_NOTES*
+
+ mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
+ mv "${D}"/etc/postfix/{*.default,makedefs.out} "${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
+
+ # Remove unnecessary files
+ rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic}
+ rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual}
+}
+
+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
+
+ elog "See the RELEASE_NOTES file in /usr/share/doc/${PF}"
+ elog "for incompatibilities and other major changes between releases."
+}