diff options
author | 2002-12-23 20:45:56 +0000 | |
---|---|---|
committer | 2002-12-23 20:45:56 +0000 | |
commit | b54b0bfbf12e8428fd6d24f19a2013df368e2e8c (patch) | |
tree | bc1a37a40fda1684ec042ae4fc77d21c997e3a5c /net-mail/postfix | |
parent | added "use dns" to depend (diff) | |
download | gentoo-2-b54b0bfbf12e8428fd6d24f19a2013df368e2e8c.tar.gz gentoo-2-b54b0bfbf12e8428fd6d24f19a2013df368e2e8c.tar.bz2 gentoo-2-b54b0bfbf12e8428fd6d24f19a2013df368e2e8c.zip |
new postfix-2.0.0
Diffstat (limited to 'net-mail/postfix')
-rw-r--r-- | net-mail/postfix/ChangeLog | 6 | ||||
-rw-r--r-- | net-mail/postfix/files/digest-postfix-2.0.0 | 1 | ||||
-rw-r--r-- | net-mail/postfix/postfix-2.0.0.ebuild | 168 |
3 files changed, 174 insertions, 1 deletions
diff --git a/net-mail/postfix/ChangeLog b/net-mail/postfix/ChangeLog index 270a0f535ff7..6c09b492bd7f 100644 --- a/net-mail/postfix/ChangeLog +++ b/net-mail/postfix/ChangeLog @@ -1,6 +1,10 @@ # 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.43 2002/12/23 20:43:43 blizzy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/postfix/ChangeLog,v 1.44 2002/12/23 20:45:56 blizzy Exp $ + +*postfix-2.0.0 (23 Dec 2002) + + 23 Dec 2002; Maik Schreiber <blizzy@gentoo.org> : New upstream version. 23 Dec 2002; Maik Schreiber <blizzy@gentoo.org> files/postfix.rc6: Added "use dns" to depend(). diff --git a/net-mail/postfix/files/digest-postfix-2.0.0 b/net-mail/postfix/files/digest-postfix-2.0.0 new file mode 100644 index 000000000000..2942d3ddb16a --- /dev/null +++ b/net-mail/postfix/files/digest-postfix-2.0.0 @@ -0,0 +1 @@ +MD5 5f605430d45f822fa2e3f512e0575eb6 postfix-2.0.0.tar.gz 1322886 diff --git a/net-mail/postfix/postfix-2.0.0.ebuild b/net-mail/postfix/postfix-2.0.0.ebuild new file mode 100644 index 000000000000..58a41051a979 --- /dev/null +++ b/net-mail/postfix/postfix-2.0.0.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2002 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.0.ebuild,v 1.1 2002/12/23 20:45:56 blizzy Exp $ + +IUSE="ssl mysql sasl ldap ipv6" + +DESCRIPTION="A fast and secure drop-in replacement for sendmail" +HOMEPAGE="http://www.postfix.org" +SRC_URI="ftp://ftp.pca.dfn.de/pub/tools/net/postfix/official/${P}.tar.gz" + +LICENSE="IPL-1" +SLOT="0" +KEYWORDS="~x86 ~sparc ~ppc" + +PROVIDE="virtual/mta + virtual/mda" + +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 ) + sasl? ( dev-libs/cyrus-sasl )" + +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 +} + +src_unpack() { + unpack ${A} + + cd ${S}/conf + mv main.cf main.cf.orig + sed <main.cf.orig >main.cf \ + -e 's|/usr/libexec/postfix|/usr/lib/postfix|' + + 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 + else + AUXLIBS="${AUXLIBS} -lsasl" + CCARGS="${CCARGS} -DUSE_SASL_AUTH" + fi + fi + + cd ${S}/src/global + mv mail_params.h mail_params.h.orig + sed <mail_params.h.orig >mail_params.h \ + -e 's|/usr/libexec/postfix|/usr/lib/postfix|' + + if [ "`use mysql`" ] ; then + CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql" + AUXLIBS="${AUXLIBS} -lmysqlclient -lm" + 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 tidy || die "tidying up failed" + make makefiles CC="cc" OPT="${CFLAGS}" DEBUG="${DEBUG}" \ + CCARGS="${CCARGS}" AUXLIBS="${AUXLIBS}" || \ + die "creating makefiles failed" +} + +src_compile() { + emake || die "compile problem" +} + +src_install () { + dodir /usr/bin /usr/sbin /usr/lib/postfix /etc/postfix/sample \ + /var/spool/postfix + touch ${D}/var/spool/postfix/.keep + + 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/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 + patch -p0 -N <${FILESDIR}/${PF}/main.cf.diff + fperms 600 /etc/postfix/saslpass + + exeinto /etc/init.d ; newexe ${FILESDIR}/postfix.rc6 postfix + insinto /etc/pam.d ; newins ${FILESDIR}/smtp.pam smtp + + 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 + 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 +} |