summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2003-11-08 00:07:39 +0000
committerSeemant Kulleen <seemant@gentoo.org>2003-11-08 00:07:39 +0000
commitf7fe5c35a401eb4f043d74524e7b5784be77663b (patch)
treec7e84f648e225ba6efe38197133893248b7e2b0d /net-mail
parentVersion Bump. (diff)
downloadhistorical-f7fe5c35a401eb4f043d74524e7b5784be77663b.tar.gz
historical-f7fe5c35a401eb4f043d74524e7b5784be77663b.tar.bz2
historical-f7fe5c35a401eb4f043d74524e7b5784be77663b.zip
removed some unnecessary ebuilds
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/postfix/Manifest50
-rw-r--r--net-mail/postfix/files/digest-postfix-2.0.134
-rw-r--r--net-mail/postfix/files/digest-postfix-2.0.165
-rw-r--r--net-mail/postfix/postfix-2.0.13.ebuild252
-rw-r--r--net-mail/postfix/postfix-2.0.16.ebuild212
5 files changed, 23 insertions, 500 deletions
diff --git a/net-mail/postfix/Manifest b/net-mail/postfix/Manifest
index 843477bc6ed2..675463ce3a5d 100644
--- a/net-mail/postfix/Manifest
+++ b/net-mail/postfix/Manifest
@@ -1,44 +1,40 @@
-MD5 64a1b5ac66a1908b904732c0de00bff3 ChangeLog 19358
-MD5 ef533edc3256c24f6ef2a04444b71404 postfix-1.1.11.20020917-r1.ebuild 4598
-MD5 3b74d1f1c47c8d5630d8f356adb2e28b postfix-1.1.11.20020917.ebuild 4578
-MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
-MD5 f7902206b1ea1c3894f86f798f2eb0bd postfix-2.0.9.ebuild 6241
MD5 7b7d8734e7bc6ee63b2a4091764a89f5 postfix-2.0.10-r1.ebuild 6165
-MD5 e111650f4a8f3c0405c9eb007cc74f31 postfix-2.0.11.ebuild 6036
-MD5 017fd96b86cea185de4708cf233f4e54 postfix-2.0.12-r1.ebuild 6032
MD5 c12766a3a53ca35ee6ce96df52d4c304 postfix-2.0.13-r1.ebuild 6350
-MD5 9e07d4b8e7a685abec7f48132aa93507 postfix-2.0.13.ebuild 6373
+MD5 f7902206b1ea1c3894f86f798f2eb0bd postfix-2.0.9.ebuild 6241
+MD5 ef533edc3256c24f6ef2a04444b71404 postfix-1.1.11.20020917-r1.ebuild 4598
+MD5 cb0237d07ff3118e6bd9a4dd6906718b postfix-2.0.16-r1.ebuild 6424
+MD5 017fd96b86cea185de4708cf233f4e54 postfix-2.0.12-r1.ebuild 6032
MD5 b61085a605c41f64b6afb513fca4643c postfix-2.0.14.ebuild 6384
MD5 60523f236fe252023ae5860b6d39b5e8 postfix-2.0.15-r1.ebuild 6388
-MD5 cb0237d07ff3118e6bd9a4dd6906718b postfix-2.0.16-r1.ebuild 6424
-MD5 3062606cc16bc399a33693ed61e68ca8 postfix-2.0.16.ebuild 6486
-MD5 6775371821db3139dd2470c794a1e01f files/digest-postfix-1.1.11.20020917 166
-MD5 6775371821db3139dd2470c794a1e01f files/digest-postfix-1.1.11.20020917-r1 166
-MD5 40a96d0b5dfb56714e11d1f379ddc5a7 files/main.cf 18376
-MD5 e17b09d7df6537631ef2263b83fe0d38 files/master.cf 4421
+MD5 64a1b5ac66a1908b904732c0de00bff3 ChangeLog 19358
+MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
+MD5 e111650f4a8f3c0405c9eb007cc74f31 postfix-2.0.11.ebuild 6036
+MD5 3b74d1f1c47c8d5630d8f356adb2e28b postfix-1.1.11.20020917.ebuild 4578
MD5 a3eadfcfa0bf6f88ccff41e2d065745b files/postfix-2.0.8_patch.patch 552
+MD5 6775371821db3139dd2470c794a1e01f files/digest-postfix-1.1.11.20020917-r1 166
MD5 c96b069e399dd4c8d21faddcb6274de6 files/postfix.rc6 585
+MD5 ffb7badd0a9041f2bf61287c0e881d4f files/smtp.pass 134
+MD5 6a0281eb56da3530d3208ccbed185c4c files/smtp.sasl 124
MD5 569f1c46350b2718419b72bb9c443c3f files/saslpass 135
-MD5 798b43d4f63482e4eae84941d5b4f40e files/smtp.pam 206
-MD5 e651e2015b6c6f1495ac84a37e4a8871 files/smtpd.conf 130
MD5 460833c3a1ffc3a240c72f0537802b5c files/tls+ipv6-1.4-pf-1.1.11-20020917.patch.bz2 72150
-MD5 f33a4ed862d59e73be66317079817bc1 files/gentestcrt.sh 8797
-MD5 ffb7badd0a9041f2bf61287c0e881d4f files/smtp.pass 134
+MD5 40a96d0b5dfb56714e11d1f379ddc5a7 files/main.cf 18376
+MD5 1d4abcdc55f9e76735ae1ae0fcc13c53 files/digest-postfix-2.0.11 295
+MD5 b16da80a639afb1445a78346a3469d17 files/digest-postfix-2.0.14 296
+MD5 e651e2015b6c6f1495ac84a37e4a8871 files/smtpd.conf 130
+MD5 ff6584c14212d383b742fe5fc0aceed5 files/postfix-2.0.9-get-FQDN.patch 993
+MD5 e17b09d7df6537631ef2263b83fe0d38 files/master.cf 4421
+MD5 6775371821db3139dd2470c794a1e01f files/digest-postfix-1.1.11.20020917 166
MD5 e126c8295dad90d20bf2d6a47086ab0e files/digest-postfix-2.0.9 220
-MD5 6a0281eb56da3530d3208ccbed185c4c files/smtp.sasl 124
+MD5 61fc23026a194c592078961b7da6455c files/postfix-pg.postfix-2.0.0.2.patch.bz2 7526
+MD5 f33a4ed862d59e73be66317079817bc1 files/gentestcrt.sh 8797
+MD5 798b43d4f63482e4eae84941d5b4f40e files/smtp.pam 206
MD5 3004148a32063214f57f0316b9f46116 files/postfix 517
-MD5 ff6584c14212d383b742fe5fc0aceed5 files/postfix-2.0.9-get-FQDN.patch 993
MD5 499f6d9f2295ba6e359ce568842d050c files/digest-postfix-2.0.10-r1 295
-MD5 1d4abcdc55f9e76735ae1ae0fcc13c53 files/digest-postfix-2.0.11 295
MD5 6264e15636614de0cce39a66de79db5f files/digest-postfix-2.0.12-r1 295
-MD5 c0419702f95f1ae3461d57ef00cf9dc4 files/digest-postfix-2.0.13 296
MD5 fbf57b537c7f42a7bf96f073ee3d22bf files/digest-postfix-2.0.13-r1 297
-MD5 b16da80a639afb1445a78346a3469d17 files/digest-postfix-2.0.14 296
MD5 e38041c4e48c3b1f858b60a7cc200844 files/digest-postfix-2.0.15-r1 296
-MD5 3d5c9c532a5e2e9fbdb7baa7064b3d91 files/digest-postfix-2.0.16 374
MD5 8b504ee0538fd73b921421395d56c293 files/digest-postfix-2.0.16-r1 447
-MD5 61fc23026a194c592078961b7da6455c files/postfix-pg.postfix-2.0.0.2.patch.bz2 7526
MD5 7dea3c30c3550cbbcdf4aac0b6d8dffa files/smtpd-2.0.conf 138
-MD5 803eb5ffc166aaaf2f3b78ddf71fe73d files/postfix-2.0.0/main.cf.diff 2382
-MD5 cada6258fd7febc632fd333523fa00d5 files/postfix-2.0.0/master.cf.diff 883
MD5 2451d1fd691c1e31e2d979e4c25f8d7e files/postfix-2.0.14/main.cf.diff 2382
+MD5 cada6258fd7febc632fd333523fa00d5 files/postfix-2.0.0/master.cf.diff 883
+MD5 803eb5ffc166aaaf2f3b78ddf71fe73d files/postfix-2.0.0/main.cf.diff 2382
diff --git a/net-mail/postfix/files/digest-postfix-2.0.13 b/net-mail/postfix/files/digest-postfix-2.0.13
deleted file mode 100644
index f289e8a5bcfc..000000000000
--- a/net-mail/postfix/files/digest-postfix-2.0.13
+++ /dev/null
@@ -1,4 +0,0 @@
-MD5 f4f2b4b930a7a32b1df475d87143269f postfix-2.0.13.tar.gz 1350854
-MD5 42533d651553e97920b011dbf5812f4e pfixtls-0.8.14-2.0.12-0.9.7b.tar.gz 227935
-MD5 ffdb090f8b826fb8217429a6d7ce555e ipv6-1.15-pf-2.0.13.patch.gz 36474
-MD5 52c08e5d6a75575109cba9fde5878415 tls+ipv6-1.15-pf-2.0.13.patch.gz 101271
diff --git a/net-mail/postfix/files/digest-postfix-2.0.16 b/net-mail/postfix/files/digest-postfix-2.0.16
deleted file mode 100644
index ffa9da9cd8a6..000000000000
--- a/net-mail/postfix/files/digest-postfix-2.0.16
+++ /dev/null
@@ -1,5 +0,0 @@
-MD5 ac13776442ba7708e683bc1bfbadab2f postfix-2.0.16.tar.gz 1353520
-MD5 b39c08eabe807db4af5bcb1cafc9761e pfixtls-0.8.16-2.0.16-0.9.7b.tar.gz 234105
-MD5 8e0b85c6c131d367dc5b0d0d95e7e2c1 ipv6-1.18a-pf-2.0.16.patch.gz 45398
-MD5 d029e85aba3f7610ca3437aefa9c1e60 tls+ipv6-1.18a-pf-2.0.16.patch.gz 253429
-MD5 5a0aa5ef6a231a593eb6c5628236a3e4 postfix-pg.postfix-2.0.0.2.patch 27419
diff --git a/net-mail/postfix/postfix-2.0.13.ebuild b/net-mail/postfix/postfix-2.0.13.ebuild
deleted file mode 100644
index a40d3779b92e..000000000000
--- a/net-mail/postfix/postfix-2.0.13.ebuild
+++ /dev/null
@@ -1,252 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/postfix-2.0.13.ebuild,v 1.5 2003/11/05 00:54:30 wwoods Exp $
-
-IUSE="ssl mysql sasl ldap ipv6 maildir mbox postgres"
-
-inherit eutils
-
-TLS_P="pfixtls-0.8.14-2.0.12-0.9.7b"
-IPV6="1.15"
-IPV6_P="ipv6-${IPV6}-pf-2.0.13"
-IPV6_TLS_P="tls+${IPV6_P}"
-PGSQL_P="postfix-pg.postfix-2.0.0.2"
-
-DESCRIPTION="A fast and secure drop-in replacement for sendmail"
-HOMEPAGE="http://www.postfix.org"
-SRC_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official/${P}.tar.gz
- ssl? ( ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/${TLS_P}.tar.gz )
- ipv6? ( ftp://ftp.stack.nl/pub/postfix/tls+ipv6/${IPV6}/${IPV6_P}.patch.gz )
- ipv6? ( ftp://ftp.stack.nl/pub/postfix/tls+ipv6/${IPV6}/${IPV6_TLS_P}.patch.gz )"
-
-SLOT="0"
-LICENSE="IPL-1"
-KEYWORDS="~x86 ~sparc ~ppc ~alpha"
-
-PROVIDE="virtual/mta
- virtual/mda"
-
-DEPEND=">=sys-libs/db-3.2
- >=sys-apps/sed-4
- >=dev-libs/libpcre-3.4
- ldap? ( >=net-nds/openldap-1.2 )
- mysql? ( >=dev-db/mysql-3.23.51 )
- ssl? ( >=dev-libs/openssl-0.9.6g )
- sasl? ( dev-libs/cyrus-sasl )
- postgres? ( >=dev-db/postgresql-7.1 )"
-
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00
- !virtual/mta"
-
-is_postfix_installed() {
- if [ -d /etc/postfix ] ; then
- return 1
- fi
-
- return 0
-}
-
-pkg_setup() {
- if ! grep -q ^postdrop: /etc/group ; then
- groupadd postdrop || die "problem adding group postdrop"
- fi
-
- if ! grep -q ^mail:.*postfix /etc/group ; then
- usermod -G mail postfix || die "problem adding user postfix to group mail"
- fi
-
- # Prevent mangling the smtpd.conf file
- if [ ! -L ${ROOT}/usr/lib/sasl2/smtpd.conf ]
- then
- if [ -f ${ROOT}/usr/lib/sasl2/smtpd.conf ]
- then
- ebegin "Protecting your smtpd.conf file"
- if [ ! -d ${ROOT}/etc/sasl2 ]
- then
- mkdir -p ${ROOT}/etc/sasl2
- fi
-
- # This shouldn't be necessary, but apparently
- # Without it things can still get messy.
- if [ -L ${ROOT}/etc/sasl2/smtpd.conf ]
- then
- rm ${ROOT}/etc/sasl2/smtpd.conf
- fi
-
- # If both files exist, make sure that we
- # preserve a copy of each with the ._cfg
- # system
- if [ -f ${ROOT}/etc/sasl2/smtpd.conf ]
- then
- mv ${ROOT}/etc/sasl2/smtpd.conf \
- ${ROOT}/etc/sasl2/._cfg0000_smtpd.conf
- fi
- mv ${ROOT}/usr/lib/sasl2/smtpd.conf ${ROOT}/etc/sasl2
- eend
- fi
- fi
-
-}
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
-
- if [ "`use ssl`" ]; then
- if [ "`use ipv6`" ]; then
- epatch ${DISTDIR}/${IPV6_TLS_P}.patch.gz
- else
- unpack ${TLS_P}.tar.gz
- epatch ${WORKDIR}/${P}/${TLS_P}/pfixtls.diff
- fi
- CCARGS="${CCARGS} -DHAS_SSL"
- AUXLIBS="${AUXLIBS} -lssl -lcrypto"
- elif [ "`use ipv6`" ]; then
- epatch ${DISTDIR}/${IPV6_P}.patch.gz
- fi
-
- if [ "`use postgres`" ]; then
- epatch ${FILESDIR}/${PGSQL_P}.patch.bz2
- CCARGS="${CCARGS} -DHAS_PGSQL -I/usr/include/postgresql"
- AUXLIBS="${AUXLIBS} -lpq"
- fi
-
- cd ${S}/conf
- sed -i -e "s:/usr/libexec/postfix:/usr/lib/postfix:" main.cf
-
- if [ "`use sasl`" ] ; then
- # sasl 2
- if [ -f /usr/include/sasl/sasl.h ]; then
- AUXLIBS="${AUXLIBS} -lsasl2"
- CCARGS="${CCARGS} -I/usr/include/sasl -DUSE_SASL_AUTH"
- # sasl 1
- elif [ -f /usr/include/sasl.h ]; then
- AUXLIBS="${AUXLIBS} -lsasl"
- CCARGS="${CCARGS} -DUSE_SASL_AUTH"
- fi
- fi
-
- cd ${S}/src/global
- sed -i -e "s:/usr/libexec/postfix:/usr/lib/postfix:" mail_params.h
-
- if [ "`use mysql`" ] ; then
- CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql"
- AUXLIBS="${AUXLIBS} -lmysqlclient -lm -lz"
- fi
-
- if [ "`use ldap`" ] ; then
- CCARGS="${CCARGS} -DHAS_LDAP"
- AUXLIBS="${AUXLIBS} -lldap -llber"
- fi
-
- if [ "`use pam`" ] ; then
- AUXLIBS="${AUXLIBS} -lpam"
- fi
-
- CCARGS="${CCARGS} -DHAS_PCRE"
- AUXLIBS="${AUXLIBS} -L/usr/lib -lpcre -ldl -lcrypt"
-
- DEBUG=""
-
- cd ${S}
- make makefiles CC="${CC}" OPT="${CFLAGS}" DEBUG="${DEBUG}" \
- CCARGS="${CCARGS}" AUXLIBS="${AUXLIBS}" \
- || die "creating makefiles failed"
-
- # Postfix do not get the FQDN if no hostname is configured
- epatch ${FILESDIR}/${PN}-2.0.9-get-FQDN.patch
-}
-
-src_compile() {
- #this is a bug fix for gcc-2.95.3-r5 (bug 16547)
- export CC=gcc
- emake || die "compile problem"
-}
-
-src_install () {
- dodir /usr/bin /usr/sbin /usr/lib/postfix /etc/postfix/sample
- keepdir /var/spool/postfix/tmp
-
- cd ${S}/bin
- dosbin post* sendmail
- fowners root:postdrop /usr/sbin/{postdrop,postqueue}
- fperms 2755 /usr/sbin/{postdrop,postqueue}
-
- dosym /usr/sbin/sendmail /usr/bin/mailq
- dosym /usr/sbin/sendmail /usr/bin/newaliases
- dosym /usr/sbin/sendmail /usr/lib/sendmail
-
- cd ${S}/libexec
- exeinto /usr/lib/postfix
- doexe *
-
- cd ${S}/man
- doman man*/*
-
- cd ${S}
- dodoc *README COMPATIBILITY HISTORY INSTALL LICENSE PORTING RELEASE_NOTES*
- cd README_FILES
- find . -type l |xargs rm
- dodoc *
-
- cd ${S}
- dohtml html/*
-
- cd ${S}/conf
- insinto /etc/postfix/sample
- doins access aliases canonical pcre_table regexp_table \
- relocated transport virtual *.cf
-
- exeinto /etc/postfix
- doexe postfix-script post-install postfix-files
-
- insinto /etc/postfix
- doins ${S}/conf/{main,master}.cf ${FILESDIR}/saslpass
- cd ${D}/etc/postfix
- epatch ${FILESDIR}/postfix-2.0.0/main.cf.diff
- sed -i -e "s|/usr/share/doc/POSTFIX|/usr/share/doc/${PF}|" main.cf
- chmod 644 main.cf
- rm -f main.cf~
- fperms 600 /etc/postfix/saslpass
-
- exeinto /etc/init.d ; doexe ${FILESDIR}/postfix
- insinto /etc/pam.d ; newins ${FILESDIR}/smtp.pam smtp
-
- insinto /etc/sasl2
- doins ${FILESDIR}/smtpd-2.0.conf smtpd.conf
- if [ "`use sasl`" ] ; then
- dodir /usr/lib/sasl2
- dosym ../../../etc/sasl2/smtpd.conf /usr/lib/sasl2/smtpd.conf
- fi
-
- cd ${D}/etc/postfix
- if [ "`use maildir`" ]; then
- sed -i -e "s:^#\(home_mailbox = \)Maildir/:\1.maildir/:" main.cf
- elif [ "`use mbox`" ]; then
- sed -i -e "s:^#\(mail_spool_directory = /var/spool/mail\):\1:" main.cf
- fi
-
- #install an rmail for UUCP, closing bug #19127
- cd ${S}/auxiliary/rmail
- dobin rmail
-
- if [ "`use postgres`" ]; then
- cd ${S}/README_FILES
- dodoc PGSQL_README
- cd ${S}
- fi
-}
-
-pkg_postinst() {
- install -d -m 0755 ${ROOT}/var/spool/postfix
-
- ewarn "If you upgraded from <postfix-2, you must revisit your configuration files."
- ewarn "See /usr/share/doc/${PF}/RELEASE_NOTES for a list of changes."
-
- if [ ! -e /etc/mail/aliases.db ] ; then
- echo
- ewarn "You must edit /etc/mail/aliases to suit your needs and then run"
- ewarn "/usr/bin/newaliases. Postfix will not work correctly without it."
- fi
-}
diff --git a/net-mail/postfix/postfix-2.0.16.ebuild b/net-mail/postfix/postfix-2.0.16.ebuild
deleted file mode 100644
index 3d4bb157491d..000000000000
--- a/net-mail/postfix/postfix-2.0.16.ebuild
+++ /dev/null
@@ -1,212 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/postfix-2.0.16.ebuild,v 1.4 2003/11/05 00:54:30 wwoods Exp $
-
-inherit eutils
-
-TLS_P="pfixtls-0.8.16-2.0.16-0.9.7b"
-IPV6="1.18a"
-IPV6_P="ipv6-${IPV6}-pf-2.0.16"
-IPV6_TLS_P="tls+${IPV6_P}"
-PGSQL_P="postfix-pg.postfix-2.0.0.2"
-
-DESCRIPTION="A fast and secure drop-in replacement for sendmail."
-HOMEPAGE="http://www.postfix.org/"
-SRC_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official/${P}.tar.gz
- ssl? ( ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/${TLS_P}.tar.gz )
- ipv6? ( ftp://ftp.stack.nl/pub/postfix/tls+ipv6/${IPV6}/${IPV6_P}.patch.gz )
- ipv6? ( ftp://ftp.stack.nl/pub/postfix/tls+ipv6/${IPV6}/${IPV6_TLS_P}.patch.gz )
- postgres? ( http://www.mat.cc/postfix/${PGSQL_P}.patch )"
-
-LICENSE="IPL-1"
-SLOT="0"
-KEYWORDS="~x86 ~sparc ~ppc ~alpha"
-IUSE="ipv6 pam ldap mysql postgres ssl sasl maildir mbox"
-
-PROVIDE="virtual/mta virtual/mda"
-DEPEND=">=sys-libs/db-3.2
- >=dev-libs/libpcre-3.4
- >=sys-apps/sed-4
- ldap? ( >=net-nds/openldap-1.2 )
- mysql? ( >=dev-db/mysql-3.23.51 )
- postgres? ( >=dev-db/postgresql-7.1 )
- ssl? ( >=dev-libs/openssl-0.9.6g )
- sasl? ( >=dev-libs/cyrus-sasl-2 )"
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00
- !virtual/mta"
-
-pkg_setup() {
- # Prevent mangling the smtpd.conf file
- if [ ! -L ${ROOT}/usr/lib/sasl2/smtpd.conf ] ; then
- if [ -f ${ROOT}/usr/lib/sasl2/smtpd.conf ] ; then
- ebegin "Protecting your smtpd.conf file"
- if [ ! -d ${ROOT}/etc/sasl2 ] ; then
- mkdir -p ${ROOT}/etc/sasl2
- fi
-
- # This shouldn't be necessary, but apparently
- # without it things can still get messy.
- if [ -L ${ROOT}/etc/sasl2/smtpd.conf ] ; then
- rm ${ROOT}/etc/sasl2/smtpd.conf
- fi
-
- # If both files exist, make sure that we preserve
- # a copy of each with the ._cfg system
- if [ -f ${ROOT}/etc/sasl2/smtpd.conf ] ; then
- mv ${ROOT}/etc/sasl2/smtpd.conf \
- ${ROOT}/etc/sasl2/._cfg0000_smtpd.conf
- fi
- mv ${ROOT}/usr/lib/sasl2/smtpd.conf ${ROOT}/etc/sasl2
- eend
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A} && cd "${S}"
-
- if [ "`use ssl`" ] ; then
- if [ "`use ipv6`" ] ; then
- epatch "${WORKDIR}/${IPV6_TLS_P}.patch"
- else
- epatch "${WORKDIR}/${TLS_P}/pfixtls.diff"
- fi
- elif [ "`use ipv6`" ]; then
- epatch "${WORKDIR}/${IPV6_P}.patch"
- fi
-
- if [ "`use postgres`" ] ; then
- epatch "${DISTDIR}/${PGSQL_P}.patch"
- fi
-
- # Postfix does not get the FQDN if no hostname is configured.
- epatch "${FILESDIR}/${PN}-2.0.9-get-FQDN.patch"
-
- sed -e "s:/usr/libexec/postfix:/usr/lib/postfix:" \
- -i src/global/mail_params.h || die "sed failed"
-
- sed -e "s:/usr/libexec/postfix:/usr/lib/postfix:" \
- -i conf/main.cf || die "sed failed"
-}
-
-src_compile() {
- local mycc="-DHAS_PCRE" mylibs="-L/usr/lib -lpcre -ldl -lcrypt -lpthread"
-
- if [ "`use pam`" ] ; then
- mylibs="${mylibs} -lpam"
- fi
- if [ "`use ldap`" ] ; then
- mycc="${mycc} -DHAS_LDAP"
- mylibs="${mylibs} -lldap -llber"
- fi
- if [ "`use mysql`" ] ; then
- mycc="${mycc} -DHAS_MYSQL -I/usr/include/mysql"
- mylibs="${mylibs} -lmysqlclient -lm -lz"
- fi
- if [ "`use postgres`" ] ; then
- mycc="${mycc} -DHAS_PGSQL -I/usr/include/postgresql"
- mylibs="${mylibs} -lpq"
- fi
- if [ "`use ssl`" ] ; then
- mycc="${mycc} -DUSE_SSL"
- mylibs="${mylibs} -lssl -lcrypto"
- fi
- if [ "`use sasl`" ] ; then
- mycc="${mycc} -DUSE_SASL_AUTH -I/usr/include/sasl"
- mylibs="${mylibs} -lsasl2"
- fi
-
- mycc="${mycc} -DDEF_CONFIG_DIR=\\\"/etc/postfix\\\""
- mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\""
- mycc="${mycc} -DDEF_PROGRAM_DIR=\\\"/usr/lib/postfix\\\""
- mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\""
- mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\""
- mycc="${mycc} -DDEF_SAMPLE_DIR=\\\"/usr/share/doc/${PF}/sample\\\""
-
- make CC="${CC:=gcc}" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
- makefiles || die "configure problem"
-
- emake || die "compile problem"
-}
-
-src_install () {
- /bin/sh postfix-install \
- -non-interactive \
- install_root="${D}" \
- daemon_directory="/usr/lib/postfix" \
- program_directory="/usr/lib/postfix" \
- config_directory="/usr/share/doc/${PF}/defaults" \
- readme_directory="/usr/share/doc/${PF}/readme" \
- sample_directory="/usr/share/doc/${PF}/sample" \
- manpage_directory="/usr/share/man" \
- mail_owner="postfix" \
- setgid_group="postdrop" || die "postfix-install failed"
-
- # Install an rmail for UUCP, closing bug #19127
- dobin auxiliary/rmail/rmail
-
- # Set proper permissions on required files/directories
- fowners root:postdrop /usr/sbin/post{drop,queue}
- fperms 02711 /usr/sbin/post{drop,queue}
-
- keepdir /etc/postfix
- mv "${D}/usr/share/doc/${PF}/defaults/"{*.cf,post*-*} "${D}/etc/postfix"
- if [ "`use maildir`" ] ; then
- mypostconf="home_mailbox=.maildir/"
- elif [ "`use mbox`" ] ; then
- mypostconf="mail_spool_directory=/var/spool/mail"
- fi
- "${D}/usr/sbin/postconf" -c "${D}/etc/postfix" -e \
- "alias_maps=hash:/etc/mail/aliases" \
- "alias_database=hash:/etc/mail/aliases" \
- "local_destination_concurrency_limit=2" \
- "default_destination_concurrency_limit=2" \
- ${mypostconf} || die "postconf failed"
-
- insinto /etc/postfix
- newins "${FILESDIR}/smtp.pass" saslpass
- fperms 600 /etc/postfix/saslpass
-
- exeinto /etc/init.d
- newexe "${FILESDIR}/postfix.rc6" postfix
-
- dodoc *README COMPATIBILITY HISTORY INSTALL LICENSE PORTING RELEASE_NOTES*
- dohtml html/*
-
- if [ "`use pam`" ] ; then
- insinto /etc/pam.d
- newins "${FILESDIR}/smtp.pam" smtp
- fi
- if [ "`use ssl`" ] ; then
- einfo "Generating self-signed test certificate."
- (yes "" | "${FILESDIR}/gentestcrt.sh") &>/dev/null
- (cat server.key && echo && cat server.crt) > server.pem
- insinto /etc/ssl/postfix
- doins server.{key,crt,pem}
- fowners mail:root /etc/ssl/postfix/server.{key,crt,pem}
- fperms 0400 /etc/ssl/postfix/server.{key,crt,pem}
- fi
- if [ "`use sasl`" ] ; then
- insinto /etc/sasl2
- newins "${FILESDIR}/smtp.sasl" smtpd.conf
- dodir /usr/lib/sasl2
- dosym /etc/sasl2/smtpd.conf /usr/lib/sasl2/smtpd.conf
- fi
-
- keepdir /var/spool/postfix
-}
-
-pkg_postinst() {
- ewarn "If you upgraded from postfix-1.x, you must revisit"
- ewarn "your configuration files. See"
- ewarn " /usr/share/doc/${PF}/RELEASE_NOTES"
- ewarn "for a list of changes."
-
- if [ ! -e /etc/mail/aliases.db ] ; then
- echo
- 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."
- fi
-}