summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2002-09-17 21:28:32 +0000
committerNick Hadaway <raker@gentoo.org>2002-09-17 21:28:32 +0000
commit0ace702e917198b7c21777c9a7ff4e31787aeb0d (patch)
tree059ceb2e4a7f660dcb627c98e4cf0e606e5e919a /net-mail/postfix
parentRemoved stale version of software. 2.5.4 is still available in portage (diff)
downloadgentoo-2-0ace702e917198b7c21777c9a7ff4e31787aeb0d.tar.gz
gentoo-2-0ace702e917198b7c21777c9a7ff4e31787aeb0d.tar.bz2
gentoo-2-0ace702e917198b7c21777c9a7ff4e31787aeb0d.zip
This build should now be fully featured. mysql, ldap, sasl (v1 and v2),
tls, and ipv6 supported.
Diffstat (limited to 'net-mail/postfix')
-rw-r--r--net-mail/postfix/ChangeLog7
-rw-r--r--net-mail/postfix/postfix-1.1.11.20020822.ebuild36
2 files changed, 39 insertions, 4 deletions
diff --git a/net-mail/postfix/ChangeLog b/net-mail/postfix/ChangeLog
index f7fc3f738075..fdb1bc383cee 100644
--- a/net-mail/postfix/ChangeLog
+++ b/net-mail/postfix/ChangeLog
@@ -1,9 +1,14 @@
# ChangeLog for net-mail/postfix
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/ChangeLog,v 1.34 2002/09/11 20:05:23 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/ChangeLog,v 1.35 2002/09/17 21:28:32 raker Exp $
*postfix-1.1.11.20020822 (11 Sep 2002)
+ 17 Sep 2002; Nick Hadaway <raker@gentoo.org>
+ postfix-1.1.11.20020822.ebuild :
+ Added saslv1 and saslv2 support. This should be back to a full
+ featured postfix ebuild.
+
11 Sep 2002; Nick Hadaway <raker@gentoo.org>
postfix-1.1.11.20020822.ebuild :
provide virtual/mda. Moved tls+ipv6 patch to ${FILESDIR} and bzipped
diff --git a/net-mail/postfix/postfix-1.1.11.20020822.ebuild b/net-mail/postfix/postfix-1.1.11.20020822.ebuild
index 32cbf9679fd2..1485fbb19e88 100644
--- a/net-mail/postfix/postfix-1.1.11.20020822.ebuild
+++ b/net-mail/postfix/postfix-1.1.11.20020822.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/postfix-1.1.11.20020822.ebuild,v 1.4 2002/09/11 20:02:55 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/postfix-1.1.11.20020822.ebuild,v 1.5 2002/09/17 21:28:32 raker Exp $
PF_PV=1.1.11-20020822
PF_P=postfix-${PF_PV}
@@ -23,7 +23,9 @@ DEPEND=">=sys-libs/db-3.2
>=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 )"
+ ssl? ( >=dev-libs/openssl-0.9.6g )
+ sasl? ( dev-libs/cyrus-sasl )"
+
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!virtual/mta"
@@ -61,11 +63,25 @@ src_unpack() {
CCARGS="${CCARGS} -DHAS_SSL"
AUXLIBS="${AUXLIBS} -lssl -lcrypto"
fi
-
+
cd ${S}/conf
cp main.cf main.cf.orig
sed -e "s:/usr/libexec/postfix:/usr/lib/postfix:" main.cf.orig > main.cf
+if [ "`use sasl`" ]
+ then
+ if [ -e /usr/include/sasl/sasl.h ]
+ then
+ # saslv2
+ AUXLIBS="${AUXLIBS} -lsasl2"
+ CCARGS="${CCARGS} -I/usr/include/sasl -DUSE_SASL_AUTH"
+ else
+ # saslv1
+ AUXLIBS="${AUXLIBS} -lsasl"
+ CCARGS="${CCARGS} -DUSE_SASL_AUTH"
+ fi
+fi
+
cd ${S}/src/global
cp mail_params.h mail_params.h.orig
sed -e "s:/usr/libexec/postfix:/usr/lib/postfix:" mail_params.h.orig > mail_params.h
@@ -132,6 +148,20 @@ src_install () {
exeinto /etc/init.d ; newexe ${FILESDIR}/postfix.rc6 postfix
insinto /etc/pam.d ; newins ${FILESDIR}/smtp.pam smtp
+ if [ "`use sasl`" ]
+ then
+ if [ -e /usr/include/sasl.h ]
+ then
+ # saslv1
+ insinto /etc/sasl ; doins ${FILESDIR}/smtpd.conf
+ fi
+ if [ -e /usr/include/sasl/sasl.h ]
+ then
+ # saslv2
+ insinto /etc/sasl2 ; doins ${FILESDIR}/smtpd.conf
+ fi
+ fi
+
}
pkg_postinst() {