summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Goodyear <g2boojum@gentoo.org>2004-03-24 17:38:02 +0000
committerGrant Goodyear <g2boojum@gentoo.org>2004-03-24 17:38:02 +0000
commit1da038eec4da38f64e0c383435f2cb3935e75a7f (patch)
treeaf270fd15d3c0c83ddabea6f6253471f46fe4bf5 /net-mail/sendmail
parentVersion bumped. (diff)
downloadhistorical-1da038eec4da38f64e0c383435f2cb3935e75a7f.tar.gz
historical-1da038eec4da38f64e0c383435f2cb3935e75a7f.tar.bz2
historical-1da038eec4da38f64e0c383435f2cb3935e75a7f.zip
New revision that supports mailwrapper
Diffstat (limited to 'net-mail/sendmail')
-rw-r--r--net-mail/sendmail/Manifest6
-rw-r--r--net-mail/sendmail/files/digest-sendmail-8.12.11-r11
-rw-r--r--net-mail/sendmail/files/mailer.conf36
-rw-r--r--net-mail/sendmail/sendmail-8.12.11-r1.ebuild161
4 files changed, 201 insertions, 3 deletions
diff --git a/net-mail/sendmail/Manifest b/net-mail/sendmail/Manifest
index 4df4d1621e86..8b8b1eaa014a 100644
--- a/net-mail/sendmail/Manifest
+++ b/net-mail/sendmail/Manifest
@@ -1,7 +1,7 @@
-MD5 33ded6ca8c121890b74e5a8a6e17dc3e sendmail-8.12.11-r1.ebuild 5499
+MD5 bde4378ef82c234b36af06da9cf22aa9 sendmail-8.12.11-r1.ebuild 5481
MD5 a358bb35f98aa2d7ba3712daedd08621 sendmail-8.12.11.ebuild 5446
MD5 7be45ed7ccd3bcede41ca6ca58ae025d sendmail-8.12.10.ebuild 5458
-MD5 e82377d4ea989547db6dd385a2efa3d4 ChangeLog 6154
+MD5 4973847ca25cfe8b7ec7cd3a402a9c70 ChangeLog 6338
MD5 07aa1897fda73805b9d68a2b82090e5f metadata.xml 218
MD5 5476fde164f12162d60ed3cffb0a41e3 files/sendmail.cf 39325
MD5 57c515d75ee6bcb32fc673141ebc41fa files/sendmail.mc 930
@@ -15,5 +15,5 @@ MD5 95d58f15432e44c91f8018839f65327c files/sendmail-8.12.6-r1-gentoo.diff 1701
MD5 6faca1941f582ad8a893b0e4fa4dd757 files/sendmail-procmail.cf 39867
MD5 03494c29693bd3ceb921bbc398be4cda files/sendmail-procmail.mc 985
MD5 66e8128c1f0dd987c0a78f1ca61ec79d files/sendmail 606
-MD5 850d860f4e5b4e11781c25de9378f736 files/mailer.conf 996
+MD5 bddac02de95e12dcef98e718ddb5151b files/mailer.conf 999
MD5 4b37f61de2fd8de372a4bd8ab6f92edf files/sendmail-8.12.2-smrsh-paths.patch 5625
diff --git a/net-mail/sendmail/files/digest-sendmail-8.12.11-r1 b/net-mail/sendmail/files/digest-sendmail-8.12.11-r1
new file mode 100644
index 000000000000..a08afe72d5e8
--- /dev/null
+++ b/net-mail/sendmail/files/digest-sendmail-8.12.11-r1
@@ -0,0 +1 @@
+MD5 fafda7f8043f0c34b9aa295618aa598c sendmail.8.12.11.tar.gz 1899112
diff --git a/net-mail/sendmail/files/mailer.conf b/net-mail/sendmail/files/mailer.conf
new file mode 100644
index 000000000000..c269540d914c
--- /dev/null
+++ b/net-mail/sendmail/files/mailer.conf
@@ -0,0 +1,36 @@
+# $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
+#
+# Execute the "real" sendmail program, named /usr/sbin/sendmail
+#
+sendmail /usr/sbin/sendmail.sendmail
+send-mail /usr/sbin/sendmail.sendmail
+mailq /usr/sbin/sendmail.sendmail
+newaliases /usr/sbin/sendmail.sendmail
+hoststat /usr/sbin/sendmail.sendmail
+purgestat /usr/sbin/sendmail.sendmail
+#
+# Execute the "real" sendmail program from exim,
+# named /usr/sbin/exim
+#
+#sendmail /usr/sbin/exim
+#send-mail /usr/sbin/exim
+#mailq /usr/sbin/exim
+#newaliases /usr/sbin/exim
+#rsmtp /usr/sbin/exim
+#rmail /usr/sbin/exim
+#mail /usr/sbin/exim
+#
+# Execute the "real" sendmail program from postfix,
+# named /usr/sbin/sendmail.postfix
+#
+#sendmail /usr/sbin/sendmail.postfix
+#send-mail /usr/sbin/sendmail.postfix
+#mailq /usr/sbin/sendmail.postfix
+#newaliases /usr/sbin/sendmail.postfix
+
+# Execute the "real" sendmail program from ssmtp,
+# named /usr/sbin/ssmtp
+#
+#sendmail /usr/sbin/ssmtp
+#mailq /usr/sbin/ssmtp
+#newaliases /usr/sbin/ssmtp
diff --git a/net-mail/sendmail/sendmail-8.12.11-r1.ebuild b/net-mail/sendmail/sendmail-8.12.11-r1.ebuild
new file mode 100644
index 000000000000..ab15eb2c84b0
--- /dev/null
+++ b/net-mail/sendmail/sendmail-8.12.11-r1.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/sendmail/sendmail-8.12.11-r1.ebuild,v 1.1 2004/03/24 17:33:52 g2boojum Exp $
+
+DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
+HOMEPAGE="http://www.sendmail.org/"
+SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"
+
+LICENSE="Sendmail"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~hppa ~alpha ~ia64"
+IUSE="ssl ldap sasl berkdb tcpd gdbm mbox"
+
+DEPEND="net-dns/hesiod
+ net-mail/mailbase
+ sys-libs/gdbm
+ sys-devel/m4
+ sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ ssl? ( dev-libs/openssl )
+ ldap? ( net-nds/openldap )
+ || (
+ gdbm? ( sys-libs/gdbm )
+ berkdb? ( >=sys-libs/db-3.2 )
+ sys-libs/gdbm
+ )"
+RDEPEND="${DEPEND}
+ >=net-mail/mailbase-0.00
+ net-mail/mailwrapper"
+PDEPEND="!mbox? ( net-mail/procmail )"
+PROVIDE="virtual/mta"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ confCCOPTS="${CFLAGS}"
+ confMAPDEF="-DNEWDB -DNIS -DMAP_REGEX"
+ confENVDEF="-DXDEBUG=0"
+ confLIBS="-lnsl -lcrypt"
+ conf_sendmail_ENVDEF="-DFALSE=0 -DTRUE=1"
+ conf_sendmail_LIBS=""
+ use sasl && confLIBS="${confLIBS} -lsasl2" \
+ && confENVDEF="${confENVDEF} -DSASL=2" \
+ && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
+ && conf_sendmail_ENVDEF="${conf_sendmail_ENVDEF} -DSASL=2" \
+ && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
+ use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
+ && confLIBS="${confLIBS} -lwrap"
+ use ssl && confENVDEF="${confENVDEF} -DSTARTTLS" \
+ && confLIBS="${confLIBS} -lssl -lcrypto" \
+ && conf_sendmail_ENVDEF="${conf_sendmail_ENVDEF} -DSTARTTLS" \
+ && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
+ use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
+ && confLIBS="${confLIBS} -lldap -llber"
+ if use gdbm || ! use berkdb ; then
+ confLIBS="${confLIBS} -lgdbm"
+ fi
+ sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
+ -e "s/@@confMAPDEF@@/${confMAPDEF}/" \
+ -e "s/@@confENVDEF@@/${confENVDEF}/" \
+ -e "s/@@confLIBS@@/${confLIBS}/" \
+ -e "s/@@conf_sendmail_ENVDEF@@/${conf_sendmail_ENVDEF}/" \
+ -e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
+ ${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
+}
+
+src_compile() {
+ for x in libmilter libsmutil sendmail mailstats rmail praliases smrsh makemap vacation mail.local
+ do
+ pushd ${x}
+ sh Build
+ popd
+ done
+}
+
+src_install () {
+ OBJDIR="obj.`uname -s`.`uname -r`.`arch`"
+ dodir /etc/pam.d /usr/bin /usr/include/libmilter /usr/lib
+ dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
+ dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
+ keepdir /var/spool/{clientmqueue,mqueue}
+ for dir in libmilter libsmutil sendmail mailstats praliases smrsh makemap vacation
+ do
+ make DESTDIR=${D} MANROOT=/usr/share/man/man \
+ SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
+ MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
+ LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
+ MSPQOWN=root CFOWN=root CFGRP=root \
+ install -C ${OBJDIR}/${dir} \
+ || die "install failed"
+ done
+ for dir in rmail mail.local
+ do
+ make DESTDIR=${D} MANROOT=/usr/share/man/man \
+ SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
+ MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
+ LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
+ MSPQOWN=root CFOWN=root CFGRP=root \
+ force-install -C ${OBJDIR}/${dir} \
+ || die "install failed"
+ done
+ mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
+ fowners root:smmsp /usr/sbin/sendmail.sendmail
+ fowners smmsp:smmsp /var/spool/clientmqueue
+ fperms 2555 /usr/sbin/sendmail.sendmail
+ fperms 770 /var/spool/clientmqueue
+ fperms 700 /var/spool/mqueue
+ dosym /usr/sbin/sendmail /usr/lib/sendmail
+ dosym /usr/sbin/makemap /usr/bin/makemap
+ dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
+ newdoc sendmail/README README.sendmail
+ newdoc sendmail/SECURITY SECURITY
+ newdoc sendmail/TUNING TUNING
+ newdoc smrsh/README README.smrsh
+ newdoc libmilter/README README.libmilter
+ newdoc cf/README README.cf
+ newdoc cf/cf/README README.install-cf
+ cp -a cf/* ${D}/usr/share/sendmail-cf
+ insinto /etc
+ doins ${FILESDIR}/mailer.conf
+ insinto /etc/mail
+ if [ -n "` use mbox `" ]
+ then
+ doins ${FILESDIR}/{sendmail.cf,sendmail.mc}
+ else
+ newins ${FILESDIR}/sendmail-procmail.cf sendmail.cf
+ newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
+ fi
+ echo "# local-host-names - include all aliases for your machine here" \
+ > ${D}/etc/mail/local-host-names
+ cat << EOF > ${D}/etc/mail/trusted-users
+# trusted-users - users that can send mail as others without a warning
+# apache, mailman, majordomo, uucp are good candidates
+EOF
+ cat << EOF > ${D}/etc/mail/access
+# Check the /usr/share/doc/sendmail/README.cf file for a description
+# of the format of this file. (search for access_db in that file)
+# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
+# package.
+#
+# by default we allow relaying from localhost...
+localhost.localdomain RELAY
+localhost RELAY
+127.0.0.1 RELAY
+
+EOF
+cat << EOF > ${D}/etc/conf.d/sendmail
+# Config file for /etc/init.d/sendmail
+# add start-up options here
+SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
+CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
+KILL_OPTS="" # add -9/-15/your favorite evil SIG level here
+
+EOF
+ exeinto /etc/init.d
+ doexe ${FILESDIR}/sendmail
+ dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
+ keepdir /usr/adm/sm.bin
+}
+