diff options
author | Grant Goodyear <g2boojum@gentoo.org> | 2002-04-01 17:01:15 +0000 |
---|---|---|
committer | Grant Goodyear <g2boojum@gentoo.org> | 2002-04-01 17:01:15 +0000 |
commit | 72ad3ac9a84cac0b8c00f49844274cb498355b5f (patch) | |
tree | 60e711552b555d768848a020f2364064ac90babe /net-mail/postfix | |
parent | New sumo tarball was released. (diff) | |
download | historical-72ad3ac9a84cac0b8c00f49844274cb498355b5f.tar.gz historical-72ad3ac9a84cac0b8c00f49844274cb498355b5f.tar.bz2 historical-72ad3ac9a84cac0b8c00f49844274cb498355b5f.zip |
Added jnelson's patch.
Diffstat (limited to 'net-mail/postfix')
-rw-r--r-- | net-mail/postfix/postfix-1.1.6-r1.ebuild | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/net-mail/postfix/postfix-1.1.6-r1.ebuild b/net-mail/postfix/postfix-1.1.6-r1.ebuild new file mode 100644 index 000000000000..13e32007d39f --- /dev/null +++ b/net-mail/postfix/postfix-1.1.6-r1.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Donny Davies <woodchip@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/postfix-1.1.6-r1.ebuild,v 1.1 2002/04/01 17:01:15 g2boojum Exp $ + +DESCRIPTION="A fast and secure drop-in replacement for sendmail" +HOMEPAGE="http://www.postfix.org/" + +POSTFIX_TLS_VER="0.8.7-${PV}-0.9.6c" + +S=${WORKDIR}/${P} +SRC_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official/${P}.tar.gz + mta-tls? ( ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/pfixtls-${POSTFIX_TLS_VER}.tar.gz )" + +PROVIDE="virtual/mta" +DEPEND="virtual/glibc + >=sys-libs/db-3.2 + >=dev-libs/libpcre-3.4 + >=dev-libs/cyrus-sasl-1.5.27 + mta-ldap? ( >=net-nds/openldap-1.2 ) + mta-mysql? ( >=dev-db/mysql-3.23.28 ) + mta-tls? ( >=dev-libs/openssl-0.9.6c )" +RDEPEND="${DEPEND} >=net-mail/mailbase-0.00 !virtual/mta" + +pkg_setup() { + if ! grep -q ^postdrop: /etc/group ; then + groupadd postdrop || die "problem adding group postdrop" + fi +} + +src_unpack() { + unpack ${A} + + if [ "`use mta-tls`" ] ; then + cd ${S} + patch -p1 < ${WORKDIR}/pfixtls-${POSTFIX_TLS_VER}/pfixtls.diff || die + fi + + cd ${S}/conf + cp main.cf main.cf.orig + sed -e "s:/usr/libexec/postfix:/usr/lib/postfix:" main.cf.orig > main.cf + + 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 + + if [ "`use mta-mysql`" ] ; then + CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql" + AUXLIBS="${AUXLIBS} -lmysqlclient -lm" + fi + + if [ "`use mta-ldap`" ] ; then + CCARGS="${CCARGS} -DHAS_LDAP" + AUXLIBS="${AUXLIBS} -lldap -llber" + fi + + if [ "`use mta-tls`" ] ; then + CCARGS="${CCARGS} -DHAS_SSL" + AUXLIBS="${AUXLIBS} -lssl" + fi + + # note: if sasl is built w/ pam, then postfix _MUST_ be built w/ pam + if [ "`use pam`" ] ; then + AUXLIBS="${AUXLIBS} -lpam" + fi + + # stuff we always want... + CCARGS="${CCARGS} -I/usr/include -DHAS_PCRE -DUSE_SASL_AUTH" + AUXLIBS="${AUXLIBS} -L/usr/lib -lpcre -lsasl -ldl -lcrypt" + DEBUG="" + + cd ${S} + make tidy || die + make makefiles CC="cc" OPT="${CFLAGS}" DEBUG="${DEBUG}" \ + CCARGS="${CCARGS}" AUXLIBS="${AUXLIBS}" || die +} + +src_compile() { + emake || die "compile problem" +} + +src_install () { + dodir /usr/bin /usr/sbin /usr/lib/postfix /etc/postfix/sample + + cd ${S}/bin + dosbin post* sendmail + chown root.postdrop ${D}/usr/sbin/{postdrop,postqueue} + chmod 2755 ${D}/usr/sbin/{postdrop,postqueue} + + dosym /usr/sbin/sendmail /usr/bin/mail + 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 LICENSE PORTING RELEASE_NOTES + dohtml html/* + + cd ${S}/conf + insinto /etc/postfix/sample + doins access aliases canonical relocated transport \ + pcre_table regexp_table postfix-script* *.cf + + exeinto /etc/postfix + doexe postfix-script post-install postfix-files || die + + insinto /etc/postfix + doins ${FILESDIR}/main.cf master.cf || die + + exeinto /etc/init.d ; newexe ${FILESDIR}/postfix.rc6 postfix + insinto /etc/pam.d ; newins ${FILESDIR}/smtp.pam smtp + insinto /etc/sasl ; doins ${FILESDIR}/smtpd.conf +} + +pkg_postinst() { + install -d 0755 ${ROOT}/var/spool/postfix + + einfo "***************************************************************" + einfo "* NOTE: If config file protection is enabled and you upgraded *" + einfo "* from an earlier version of postfix you must update *" + einfo "* /etc/postfix/master.cf to the latest version *" + einfo "* (/etc/postfix/._cfg????_master.cf). Otherwise postfix *" + einfo "* will not work correctly. *" + einfo "***************************************************************" +} |