diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2003-06-13 12:18:16 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2003-06-13 12:18:16 +0000 |
commit | be9156990cce4ee7ef48fb47a8723ce6eb178a40 (patch) | |
tree | 8bf41ddefb042acc5d3c46948e5646932af6b764 /net-mail | |
parent | Added hppa to KEYWORDS. (diff) | |
download | historical-be9156990cce4ee7ef48fb47a8723ce6eb178a40.tar.gz historical-be9156990cce4ee7ef48fb47a8723ce6eb178a40.tar.bz2 historical-be9156990cce4ee7ef48fb47a8723ce6eb178a40.zip |
no more smtpd.conf mangling
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/postfix/ChangeLog | 6 | ||||
-rw-r--r-- | net-mail/postfix/Manifest | 4 | ||||
-rw-r--r-- | net-mail/postfix/postfix-2.0.11.ebuild | 65 |
3 files changed, 52 insertions, 23 deletions
diff --git a/net-mail/postfix/ChangeLog b/net-mail/postfix/ChangeLog index ee519c9a5043..11dab55d96ce 100644 --- a/net-mail/postfix/ChangeLog +++ b/net-mail/postfix/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-mail/postfix # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/ChangeLog,v 1.69 2003/06/11 14:33:07 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/ChangeLog,v 1.70 2003/06/13 12:18:14 seemant Exp $ + + 13 Jun 2003; Seemant Kulleen <seemant@gentoo.org> postfix-2.0.11.ebuild: + smtpd.conf for sasl in USE is now moved to /etc/sasl -- and it should do it + safely. This closes bug #15252 by Nahor <nahorBugzilla@bravobrava.com> *postfix-2.0.11 (11 Jun 2003) diff --git a/net-mail/postfix/Manifest b/net-mail/postfix/Manifest index 4a027eb711d0..44b853dcc1be 100644 --- a/net-mail/postfix/Manifest +++ b/net-mail/postfix/Manifest @@ -1,8 +1,8 @@ MD5 e6a3d41964c3f27d3fc79b241df1b13d postfix-2.0.10-r1.ebuild 5394 MD5 ead334460917ae4879673b31d59f46e8 postfix-2.0.9.ebuild 5471 MD5 76726846989c0b6a5fc643d06b804e45 postfix-1.1.11.20020917-r1.ebuild 4945 -MD5 f3e72049a5b5ec1fdd817597590c8592 ChangeLog 14422 -MD5 d1fa505f59e6346338242d8cf01b6276 postfix-2.0.11.ebuild 5391 +MD5 8f01779d5b13feb6835b0a647ca46405 ChangeLog 14647 +MD5 ff4665011d7801bf700c126684a7cf76 postfix-2.0.11.ebuild 5737 MD5 c79b19f95cb38b8802966d7efb54bc60 postfix-1.1.11.20020917.ebuild 4924 MD5 a3eadfcfa0bf6f88ccff41e2d065745b files/postfix-2.0.8_patch.patch 552 MD5 6775371821db3139dd2470c794a1e01f files/digest-postfix-1.1.11.20020917-r1 166 diff --git a/net-mail/postfix/postfix-2.0.11.ebuild b/net-mail/postfix/postfix-2.0.11.ebuild index e245d5fcb59d..5380136c9a0c 100644 --- a/net-mail/postfix/postfix-2.0.11.ebuild +++ b/net-mail/postfix/postfix-2.0.11.ebuild @@ -1,6 +1,8 @@ # 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.11.ebuild,v 1.3 2003/06/13 10:34:58 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/postfix-2.0.11.ebuild,v 1.4 2003/06/13 12:18:14 seemant Exp $ + +IUSE="ssl mysql sasl ldap ipv6 maildir mbox" inherit eutils @@ -8,18 +10,21 @@ TLS_P="pfixtls-0.8.13-2.0.10-0.9.7b" IPV6="1.14" IPV6_P="ipv6-${IPV6}-pf-${PV}" IPV6_TLS_P="tls+${IPV6_P}" -IUSE="ssl mysql sasl ldap ipv6 maildir mbox" + 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 )" -LICENSE="IPL-1" + SLOT="0" +LICENSE="IPL-1" KEYWORDS="~x86 ~sparc ~ppc" + PROVIDE="virtual/mta - virtual/mda" + virtual/mda" + DEPEND=">=sys-libs/db-3.2 >=sys-apps/sed-4 >=dev-libs/libpcre-3.4 @@ -27,6 +32,7 @@ DEPEND=">=sys-libs/db-3.2 mysql? ( >=dev-db/mysql-3.23.51 ) ssl? ( >=dev-libs/openssl-0.9.6g ) sasl? ( dev-libs/cyrus-sasl )" + RDEPEND="${DEPEND} >=net-mail/mailbase-0.00 !virtual/mta" @@ -47,6 +53,29 @@ pkg_setup() { 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 + + if [ -f ${ROOT}/etc/sasl2/smtpd.conf ] + then + mv ${ROOT}/usr/lib/sasl2/smtpd.conf \ + ${ROOT}/etc/sasl2/._cfg0000_smtpd.conf + else + mv ${ROOT}/usr/lib/sasl2/smtpd.conf ${ROOT}/etc/sasl2 + fi + eend + fi + fi + } src_unpack() { @@ -54,15 +83,15 @@ src_unpack() { cd ${S} if [ "`use ssl`" ]; then if [ "`use ipv6`" ]; then - epatch ${DISTDIR}/${IPV6_TLS_P}.patch.gz || die "ipv6/tls patch died" + epatch ${DISTDIR}/${IPV6_TLS_P}.patch.gz else unpack ${TLS_P}.tar.gz - epatch ${WORKDIR}/${P}/${TLS_P}/pfixtls.diff || die "tls patch died" + 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 || die "ipv6 patch died" + epatch ${DISTDIR}/${IPV6_P}.patch.gz fi cd ${S}/conf sed -i -e "s:/usr/libexec/postfix:/usr/lib/postfix:" main.cf @@ -117,14 +146,13 @@ src_compile() { } src_install () { - dodir /usr/bin /usr/sbin /usr/lib/postfix /etc/postfix/sample \ - /var/spool/postfix/tmp - touch ${D}/var/spool/postfix/.keep + dodir /usr/bin /usr/sbin /usr/lib/postfix /etc/postfix/sample + keepdir /var/spool/postfix/tmp cd ${S}/bin dosbin post* sendmail - chown root:postdrop ${D}/usr/sbin/{postdrop,postqueue} - chmod 2755 ${D}/usr/sbin/{postdrop,postqueue} + 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 @@ -166,16 +194,13 @@ src_install () { exeinto /etc/init.d ; doexe ${FILESDIR}/postfix insinto /etc/pam.d ; newins ${FILESDIR}/smtp.pam smtp + insinto /etc/sasl2 + doins ${FILESDIR}/smtpd.conf if [ "`use sasl`" ] ; then - # sasl 2 - if [ -f /usr/include/sasl/sasl.h ] ; then - insinto /usr/lib/sasl2 - doins ${FILESDIR}/smtpd.conf - else - insinto /etc/sasl - doins ${FILESDIR}/smtpd.conf - fi + 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 |