summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-mta/nullmailer')
-rw-r--r--mail-mta/nullmailer/ChangeLog13
-rw-r--r--mail-mta/nullmailer/Manifest42
-rw-r--r--mail-mta/nullmailer/files/digest-nullmailer-1.00-r23
-rw-r--r--mail-mta/nullmailer/files/digest-nullmailer-1.02-r16
-rw-r--r--mail-mta/nullmailer/files/digest-nullmailer-1.02-r26
-rw-r--r--mail-mta/nullmailer/files/mailer.conf4
-rw-r--r--mail-mta/nullmailer/nullmailer-1.00-r2.ebuild127
-rw-r--r--mail-mta/nullmailer/nullmailer-1.00.ebuild6
-rw-r--r--mail-mta/nullmailer/nullmailer-1.02-r1.ebuild142
-rw-r--r--mail-mta/nullmailer/nullmailer-1.02-r2.ebuild140
-rw-r--r--mail-mta/nullmailer/nullmailer-1.02.ebuild16
11 files changed, 482 insertions, 23 deletions
diff --git a/mail-mta/nullmailer/ChangeLog b/mail-mta/nullmailer/ChangeLog
index b3647e2e8b62..f672a24e4036 100644
--- a/mail-mta/nullmailer/ChangeLog
+++ b/mail-mta/nullmailer/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for mail-mta/nullmailer
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.21 2006/01/30 04:04:28 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.22 2006/02/11 10:35:51 robbat2 Exp $
+
+*nullmailer-1.02-r2 (11 Feb 2006)
+*nullmailer-1.02-r1 (11 Feb 2006)
+*nullmailer-1.00-r2 (11 Feb 2006)
+
+ 11 Feb 2006; Robin H. Johnson <robbat2@gentoo.org> files/mailer.conf,
+ nullmailer-1.00.ebuild, +nullmailer-1.00-r2.ebuild,
+ nullmailer-1.02.ebuild, +nullmailer-1.02-r1.ebuild,
+ +nullmailer-1.02-r2.ebuild:
+ Fix bugs raised by #121587 - Numerous issues, fixed in >=1.02-r1. 1.00-r2
+ and 1.02-r2 implement the new mailer-config system, and are in package.mask.
30 Jan 2006; Robin H. Johnson <robbat2@gentoo.org>
-nullmailer-1.00_rc7.ebuild, -nullmailer-1.00_rc7-r1.ebuild,
diff --git a/mail-mta/nullmailer/Manifest b/mail-mta/nullmailer/Manifest
index 4476bba08697..beccbc649ee3 100644
--- a/mail-mta/nullmailer/Manifest
+++ b/mail-mta/nullmailer/Manifest
@@ -1,18 +1,27 @@
-MD5 bd256a93fb0a75238cb1f2ebffbb86aa ChangeLog 5367
-RMD160 8a5d64d312b11d17bfdb79fbd0ff683f704e1db4 ChangeLog 5367
-SHA256 03fca3c2867b1c863be4f31c24f5ba1357254df090fde0cfe765a406edc8a2f1 ChangeLog 5367
+MD5 d51d3220aaeead9b9dbf37c568c5c8a9 ChangeLog 5836
+RMD160 b2ba31b8b3183eae18fce1f4235ae8cebdaeafe9 ChangeLog 5836
+SHA256 53d3d7e6049cfa4b8864e784aa5dbb8358728bde5fadd927bfa08e29d53441d1 ChangeLog 5836
MD5 06a9baa1496bffaed64ef1891cbe1d13 files/digest-nullmailer-1.00 247
RMD160 e472f735603df6e727cf722e00c7d325a1fcfa69 files/digest-nullmailer-1.00 247
SHA256 d65c51d9ad82d8df49abd94224a889e9ffa2748dc7953574c9371bc2716f0378 files/digest-nullmailer-1.00 247
+MD5 06a9baa1496bffaed64ef1891cbe1d13 files/digest-nullmailer-1.00-r2 247
+RMD160 e472f735603df6e727cf722e00c7d325a1fcfa69 files/digest-nullmailer-1.00-r2 247
+SHA256 d65c51d9ad82d8df49abd94224a889e9ffa2748dc7953574c9371bc2716f0378 files/digest-nullmailer-1.00-r2 247
MD5 43920fd55d8bc46cbd5a9e49eb36571b files/digest-nullmailer-1.02 500
RMD160 9709467371178f6b5d91a069679b62235837da0a files/digest-nullmailer-1.02 500
SHA256 2210806664c8cb8c20146cff21be42c1f46ca311959019e19299f2c939db8ff6 files/digest-nullmailer-1.02 500
+MD5 43920fd55d8bc46cbd5a9e49eb36571b files/digest-nullmailer-1.02-r1 500
+RMD160 9709467371178f6b5d91a069679b62235837da0a files/digest-nullmailer-1.02-r1 500
+SHA256 2210806664c8cb8c20146cff21be42c1f46ca311959019e19299f2c939db8ff6 files/digest-nullmailer-1.02-r1 500
+MD5 43920fd55d8bc46cbd5a9e49eb36571b files/digest-nullmailer-1.02-r2 500
+RMD160 9709467371178f6b5d91a069679b62235837da0a files/digest-nullmailer-1.02-r2 500
+SHA256 2210806664c8cb8c20146cff21be42c1f46ca311959019e19299f2c939db8ff6 files/digest-nullmailer-1.02-r2 500
MD5 768cc69776bc3034147bfdc17b8b92f2 files/init.d-nullmailer 1221
RMD160 9e793a57acc9f2123c75e5a27f4b6123ce1d171a files/init.d-nullmailer 1221
SHA256 279dd0519b62b57b4f5f6a7bcbfcd8337dd3d5e6e785de1d443f2005def64d72 files/init.d-nullmailer 1221
-MD5 4a2517a7b69e06ec8f1dcc634f1f9f28 files/mailer.conf 1588
-RMD160 d97614351170338d47f7f852e3e8282882ea03a9 files/mailer.conf 1588
-SHA256 2a10a9f1b8086c4c3c0d49b4788895d9d70338d93dc87d738f10257b18fbff30 files/mailer.conf 1588
+MD5 7c0867f5f1edd79199ff66b95d7a0eb3 files/mailer.conf 1564
+RMD160 e0f712940ee2d15981793cceabf9da7b1a4aa2fc files/mailer.conf 1564
+SHA256 011da5dc334c36df2dc951864f11fa0eb6379f854e37c58ccba8595aa83bc52d files/mailer.conf 1564
MD5 8fec0281a21917aa07f71f32877486d6 files/nullmailer-1.00-gcc34-fix.patch 618
RMD160 e294a7728b968b70e88f3882994c766eabd46e24 files/nullmailer-1.00-gcc34-fix.patch 618
SHA256 41f25b50859cf391ca8f9f9163bd5ce05553b70acef4413930a85e6df6b61ddb files/nullmailer-1.00-gcc34-fix.patch 618
@@ -28,9 +37,18 @@ SHA256 c3c6b0efc100142ecbe65b9af3e20900f9b21449619f35ef3ba2334dd0888b1f files/re
MD5 9d0c568ea32cf6b45797c6e7c82b4a67 metadata.xml 280
RMD160 9f5cd4ae71c9c7e45161110dd38d67f6604cd7b8 metadata.xml 280
SHA256 1e7cf6dbb378d12f4d6569350ba23c49aa55a855240b78b5487532028b0ff540 metadata.xml 280
-MD5 d4e805efb1d3b2e50c998385b843eaf8 nullmailer-1.00.ebuild 4063
-RMD160 f0cae7caed44de2bcb8f7973c930797f0ecbd1f7 nullmailer-1.00.ebuild 4063
-SHA256 475d36030ac457fe80f07bb5f18d59047da0ceb29cbe8bf4159c8f38f6a986dd nullmailer-1.00.ebuild 4063
-MD5 5506bf114c5fb6e918ac444ad8a47f5c nullmailer-1.02.ebuild 4441
-RMD160 c122c3394febf10a4e731e364c78ced0c4cd99ca nullmailer-1.02.ebuild 4441
-SHA256 74454d1e67ca9eb84779dbe2658b135aec9166735d9afdbf7263e6db38412202 nullmailer-1.02.ebuild 4441
+MD5 10c5ed64c30a7bc532f32f276b8ddf7a nullmailer-1.00-r2.ebuild 3980
+RMD160 da3978256c3e2707bd3da1292c8872e25a3a2ae0 nullmailer-1.00-r2.ebuild 3980
+SHA256 d86b91935d6bf852a318ad067bbed748ebbeb35d104ca3bc283188990d547b98 nullmailer-1.00-r2.ebuild 3980
+MD5 61f5834edef796affe61104d9e97e9cd nullmailer-1.00.ebuild 4027
+RMD160 adf3309033f88865f1f21d97b4678d94e060b1f8 nullmailer-1.00.ebuild 4027
+SHA256 29fe93fff4efb97d53499e3bbd65124d50731219350b6ed1e0eb3ce65ce666fd nullmailer-1.00.ebuild 4027
+MD5 5ec2008090ae0f3ddd3988d24407d41c nullmailer-1.02-r1.ebuild 4571
+RMD160 e454d8f523525d32a89b728bf0c66233a0495d87 nullmailer-1.02-r1.ebuild 4571
+SHA256 06122a4f654cf3b87e417a36946592cc3a3e5731fbdac0d389946b4ed8830a89 nullmailer-1.02-r1.ebuild 4571
+MD5 38871417bd777536a7975b03121ea338 nullmailer-1.02-r2.ebuild 4502
+RMD160 094a7b42b4f289e5896f0450637ea19c39745f13 nullmailer-1.02-r2.ebuild 4502
+SHA256 699f4c1129e62efa8d285b36064722a5938157bf2aa4aff39bc9926eee19839f nullmailer-1.02-r2.ebuild 4502
+MD5 5d1ea1d1268170e027424b48d6a4eb02 nullmailer-1.02.ebuild 4628
+RMD160 981d92b01583a7d09886b2edd1b90f49aa38caa1 nullmailer-1.02.ebuild 4628
+SHA256 88de2c92d0c91cf82f0f3fe6096a7a6da39cb0b95167a6b70a92d760c90d2092 nullmailer-1.02.ebuild 4628
diff --git a/mail-mta/nullmailer/files/digest-nullmailer-1.00-r2 b/mail-mta/nullmailer/files/digest-nullmailer-1.00-r2
new file mode 100644
index 000000000000..e8e6c303fe66
--- /dev/null
+++ b/mail-mta/nullmailer/files/digest-nullmailer-1.00-r2
@@ -0,0 +1,3 @@
+MD5 ead32b3543ef652891edf3856ec759dd nullmailer-1.00.tar.gz 170605
+RMD160 cd45934be7a8a9391f31452fe56b6166cb730306 nullmailer-1.00.tar.gz 170605
+SHA256 1ebb63f010a46dce9559b1025f76e74741429071cd2d4f380a63a5ced3ce8340 nullmailer-1.00.tar.gz 170605
diff --git a/mail-mta/nullmailer/files/digest-nullmailer-1.02-r1 b/mail-mta/nullmailer/files/digest-nullmailer-1.02-r1
new file mode 100644
index 000000000000..e29631efde49
--- /dev/null
+++ b/mail-mta/nullmailer/files/digest-nullmailer-1.02-r1
@@ -0,0 +1,6 @@
+MD5 848d5c1f41a78e6897aeeb615e484d38 nullmailer-1.02.tar.gz 171591
+RMD160 5be509670c0524bec7d7e664901f88f0872536bf nullmailer-1.02.tar.gz 171591
+SHA256 a35298470ba5e0f7f14d17f4a2e76039413b214c7b80921fa9a00598ecf6243d nullmailer-1.02.tar.gz 171591
+MD5 f9a7c953683682eb797841fd80ee3a95 nullmailer_1.02-1.diff.gz 21242
+RMD160 152b8336e7f041cf0ad3f7058e1e81b8a99dcb1e nullmailer_1.02-1.diff.gz 21242
+SHA256 a19b36e872880757626c7151d6e0d942ccd2d462929fe873f2d9be5eed18a07a nullmailer_1.02-1.diff.gz 21242
diff --git a/mail-mta/nullmailer/files/digest-nullmailer-1.02-r2 b/mail-mta/nullmailer/files/digest-nullmailer-1.02-r2
new file mode 100644
index 000000000000..e29631efde49
--- /dev/null
+++ b/mail-mta/nullmailer/files/digest-nullmailer-1.02-r2
@@ -0,0 +1,6 @@
+MD5 848d5c1f41a78e6897aeeb615e484d38 nullmailer-1.02.tar.gz 171591
+RMD160 5be509670c0524bec7d7e664901f88f0872536bf nullmailer-1.02.tar.gz 171591
+SHA256 a35298470ba5e0f7f14d17f4a2e76039413b214c7b80921fa9a00598ecf6243d nullmailer-1.02.tar.gz 171591
+MD5 f9a7c953683682eb797841fd80ee3a95 nullmailer_1.02-1.diff.gz 21242
+RMD160 152b8336e7f041cf0ad3f7058e1e81b8a99dcb1e nullmailer_1.02-1.diff.gz 21242
+SHA256 a19b36e872880757626c7151d6e0d942ccd2d462929fe873f2d9be5eed18a07a nullmailer_1.02-1.diff.gz 21242
diff --git a/mail-mta/nullmailer/files/mailer.conf b/mail-mta/nullmailer/files/mailer.conf
index b0cf9d9ed28b..5e8f474bc723 100644
--- a/mail-mta/nullmailer/files/mailer.conf
+++ b/mail-mta/nullmailer/files/mailer.conf
@@ -1,4 +1,4 @@
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/files/mailer.conf,v 1.4 2004/07/18 03:25:51 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/files/mailer.conf,v 1.5 2006/02/11 10:35:51 robbat2 Exp $
# $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
# Execute the "real" sendmail program from nullmailer
@@ -6,7 +6,7 @@
sendmail /usr/sbin/sendmail.nullmailer
send-mail /usr/sbin/sendmail.nullmailer
mailq /usr/bin/mailq.nullmailer
-newaliases /usr/sbin/sendmail.nullmailer
+newaliases /bin/true
# Execute the "real" sendmail program from exim,
diff --git a/mail-mta/nullmailer/nullmailer-1.00-r2.ebuild b/mail-mta/nullmailer/nullmailer-1.00-r2.ebuild
new file mode 100644
index 000000000000..ff82eefac70d
--- /dev/null
+++ b/mail-mta/nullmailer/nullmailer-1.00-r2.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.00-r2.ebuild,v 1.1 2006/02/11 10:35:51 robbat2 Exp $
+
+inherit eutils flag-o-matic mailer
+
+MY_P="${P/_rc/RC}"
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Simple relay-only local mail transport agent"
+SRC_URI="http://untroubled.org/${PN}/${MY_P}.tar.gz"
+HOMEPAGE="http://untroubled.org/${PN}/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ~ppc"
+IUSE="mailwrapper"
+
+DEPEND="virtual/libc
+ sys-apps/groff"
+RDEPEND="virtual/libc
+ >=sys-process/supervise-scripts-3.2
+ >=sys-process/daemontools-0.76-r1
+ sys-apps/shadow"
+PROVIDE="virtual/mta"
+
+NULLMAILER_GROUP_NAME=nullmail
+NULLMAILER_GROUP_GID=88
+NULLMAILER_USER_NAME=nullmail
+NULLMAILER_USER_UID=88
+NULLMAILER_USER_SHELL=-1
+NULLMAILER_USER_GROUPS=nullmail
+NULLMAILER_USER_HOME=/var/nullmailer
+
+setupuser() {
+ enewgroup ${NULLMAILER_GROUP_NAME} ${NULLMAILER_GROUP_GID}
+ enewuser ${NULLMAILER_USER_NAME} ${NULLMAILER_USER_UID} ${NULLMAILER_USER_SHELL} ${NULLMAILER_USER_HOME} ${NULLMAILER_USER_GROUPS}
+}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ EPATCH_OPTS="-d ${S} -p0" \
+ epatch "${FILESDIR}/${P}-smtp-auth.patch" || die "SMTP auth patch failed"
+ EPATCH_OPTS="-d ${S} -p1" \
+ epatch "${FILESDIR}/${P}-syslog.patch" || die "syslog patch failed"
+ EPATCH_OPTS="-d ${S} -p0" \
+ epatch "${FILESDIR}/${P}-gcc34-fix.patch" || die "GCC-3.4 patch failed"
+}
+
+
+pkg_setup() {
+ setupuser
+}
+
+src_compile() {
+ append-ldflags $(bindnow-flags)
+ # Note that we pass a different directory below due to bugs in the makefile!
+ econf --localstatedir=/var || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ einstall localstatedir=${D}/var/nullmailer || die "einstall failed"
+ if use mailwrapper; then
+ mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.nullmailer
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.nullmailer
+ insinto /etc/mail
+ doins ${FILESDIR}/mailer.conf
+ mailer_install_conf
+ fi
+ dodoc AUTHORS BUGS COPYING HOWTO INSTALL NEWS README YEAR2000 TODO ChangeLog
+ # A small bit of sample config
+ dodir /etc/nullmailer
+ insinto /etc/nullmailer
+ newins ${FILESDIR}/remotes.sample remotes
+ # daemontools stuff
+ dodir /var/nullmailer/service{,/log}
+ insinto /var/nullmailer/service
+ newins scripts/nullmailer.run run
+ fperms 700 /var/nullmailer/service/run
+ insinto /var/nullmailer/service/log
+ newins scripts/nullmailer-log.run run
+ fperms 700 /var/nullmailer/service/log/run
+ # usablity
+ dodir /usr/lib
+ dosym /usr/sbin/sendmail usr/lib/sendmail
+ # permissions stuff
+ keepdir /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ fperms 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
+ fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
+ fowners nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ fperms 660 /var/nullmailer/trigger
+ msg_mailerconf
+}
+
+pkg_config() {
+ [ ! -s /etc/nullmailer/me ] && /bin/hostname --fqdn >/etc/nullmailer/me
+ [ ! -s /etc/nullmailer/defaultdomain ] && /bin/hostname --domain >/etc/nullmailer/defaultdomain
+ msg_svscan
+ msg_mailerconf
+}
+
+msg_svscan() {
+ einfo "To start nullmailer at boot you have to enable the /etc/init.d/svscan rc file"
+ einfo "and create the following link :"
+ einfo "ln -fs /var/nullmailer/service /service/nullmailer"
+}
+msg_mailerconf() {
+ use mailwrapper && \
+ ewarn "Please ensure you have selected nullmailer in your /etc/mailer.conf"
+}
+
+pkg_postinst() {
+ setupuser
+ # Do this again for good measure
+ [ ! -e /var/nullmailer/trigger ] && mkfifo /var/nullmailer/trigger
+ chown nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ chmod 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ chmod 660 /var/nullmailer/trigger
+
+ use mailwrapper && dosym /usr/sbin/sendmail /usr/bin/mailq
+
+ einfo "To create an initial setup, please do:"
+ einfo "emerge --config =${PF}"
+ msg_svscan
+ msg_mailerconf
+}
diff --git a/mail-mta/nullmailer/nullmailer-1.00.ebuild b/mail-mta/nullmailer/nullmailer-1.00.ebuild
index 9c81c66f848d..e2a73680f14a 100644
--- a/mail-mta/nullmailer/nullmailer-1.00.ebuild
+++ b/mail-mta/nullmailer/nullmailer-1.00.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.00.ebuild,v 1.6 2005/12/31 14:18:03 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.00.ebuild,v 1.7 2006/02/11 10:35:51 robbat2 Exp $
inherit eutils flag-o-matic
@@ -122,7 +122,7 @@ pkg_postinst() {
use mailwrapper && dosym /usr/sbin/sendmail /usr/bin/mailq
einfo "To create an initial setup, please do:"
- einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
+ einfo "emerge --config =${PF}"
msg_svscan
msg_mailerconf
}
diff --git a/mail-mta/nullmailer/nullmailer-1.02-r1.ebuild b/mail-mta/nullmailer/nullmailer-1.02-r1.ebuild
new file mode 100644
index 000000000000..6be957d33f15
--- /dev/null
+++ b/mail-mta/nullmailer/nullmailer-1.02-r1.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.02-r1.ebuild,v 1.1 2006/02/11 10:35:51 robbat2 Exp $
+
+inherit eutils flag-o-matic
+
+MY_P="${P/_rc/RC}"
+S=${WORKDIR}/${MY_P}
+DEBIAN_PV="1"
+DEBIAN_SRC="${MY_P/-/_}-${DEBIAN_PV}.diff.gz"
+DESCRIPTION="Simple relay-only local mail transport agent"
+SRC_URI="http://untroubled.org/${PN}/${MY_P}.tar.gz
+ mirror://debian/pool/main/n/${PN}/${DEBIAN_SRC}"
+HOMEPAGE="http://untroubled.org/nullmailer/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="mailwrapper"
+
+DEPEND="virtual/libc
+ sys-apps/groff"
+RDEPEND="!mailwrapper? ( !virtual/mta )
+ mailwrapper? ( >=net-mail/mailwrapper-0.2 )
+ virtual/libc
+ >=sys-process/supervise-scripts-3.2
+ >=sys-process/daemontools-0.76-r1
+ sys-apps/shadow"
+PROVIDE="virtual/mta"
+
+NULLMAILER_GROUP_NAME=nullmail
+NULLMAILER_GROUP_GID=88
+NULLMAILER_USER_NAME=nullmail
+NULLMAILER_USER_UID=88
+NULLMAILER_USER_SHELL=-1
+NULLMAILER_USER_GROUPS=nullmail
+NULLMAILER_USER_HOME=/var/nullmailer
+
+setupuser() {
+ enewgroup ${NULLMAILER_GROUP_NAME} ${NULLMAILER_GROUP_GID}
+ enewuser ${NULLMAILER_USER_NAME} ${NULLMAILER_USER_UID} ${NULLMAILER_USER_SHELL} ${NULLMAILER_USER_HOME} ${NULLMAILER_USER_GROUPS}
+}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ EPATCH_OPTS="-d ${S} -p1" \
+ epatch ${DISTDIR}/${DEBIAN_SRC}
+ EPATCH_OPTS="-d ${S} -p1" \
+ epatch ${S}/debian/patches/03ipv6.diff || die "IPV6 patch failed"
+ EPATCH_OPTS="-d ${S} -p1" \
+ epatch ${S}/debian/patches/05syslog.diff || die "daemon/syslog patch failed"
+ # this fixes the debian daemon/syslog to actually compile
+ sed -i.orig \
+ -e '/^nullmailer_send_LDADD/s, =, = ../lib/cli++/libcli++.a,' \
+ ${S}/src/Makefile.am || die "Sed failed"
+}
+
+
+pkg_setup() {
+ setupuser
+}
+
+src_compile() {
+ append-ldflags $(bindnow-flags)
+ # Note that we pass a different directory below due to bugs in the makefile!
+ econf --localstatedir=/var || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ einstall localstatedir=${D}/var/nullmailer || die "einstall failed"
+ local mailqloc=/usr/bin/mailq
+ if use mailwrapper; then
+ mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.nullmailer
+ mailqloc=/usr/bin/mailq.nullmailer
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.nullmailer
+ insinto /etc/mail
+ doins ${FILESDIR}/mailer.conf
+ fi
+ dodoc AUTHORS BUGS COPYING HOWTO INSTALL NEWS README YEAR2000 TODO ChangeLog
+ # A small bit of sample config
+ dodir /etc/nullmailer
+ insinto /etc/nullmailer
+ newins ${FILESDIR}/remotes.sample remotes
+ # daemontools stuff
+ dodir /var/nullmailer/service{,/log}
+ insinto /var/nullmailer/service
+ newins scripts/nullmailer.run run
+ fperms 700 /var/nullmailer/service/run
+ insinto /var/nullmailer/service/log
+ newins scripts/nullmailer-log.run run
+ fperms 700 /var/nullmailer/service/log/run
+ # usablity
+ dodir /usr/lib
+ dosym /usr/sbin/sendmail usr/lib/sendmail
+ # permissions stuff
+ keepdir /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ fperms 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ fowners nullmail:nullmail /usr/sbin/nullmailer-queue ${mailqloc}
+ fperms 4711 /usr/sbin/nullmailer-queue ${mailqloc}
+ fowners nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ fperms 660 /var/nullmailer/trigger
+ msg_mailerconf
+ newinitd ${FILESDIR}/init.d-nullmailer nullmailer
+}
+
+pkg_config() {
+ [ ! -s /etc/nullmailer/me ] && /bin/hostname --fqdn >/etc/nullmailer/me
+ [ ! -s /etc/nullmailer/defaultdomain ] && /bin/hostname --domain >/etc/nullmailer/defaultdomain
+ msg_svscan
+ msg_mailerconf
+}
+
+msg_svscan() {
+ einfo "To start nullmailer at boot you have to enable the /etc/init.d/svscan rc file"
+ einfo "and create the following link :"
+ einfo "ln -fs /var/nullmailer/service /service/nullmailer"
+ einfo "As an alternative, we also provide an init.d script."
+ einfo
+ einfo "If the nullmailer service is already running, please restart it now,"
+ einfo "using 'svc-restart nullmailer' or the init.d script."
+ einfo
+}
+
+msg_mailerconf() {
+ use mailwrapper && \
+ ewarn "Please ensure you have selected nullmailer in your /etc/mail/mailer.conf"
+}
+
+pkg_postinst() {
+ setupuser
+ # Do this again for good measure
+ [ ! -e /var/nullmailer/trigger ] && mkfifo /var/nullmailer/trigger
+ chown nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ chmod 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ chmod 660 /var/nullmailer/trigger
+
+ einfo "To create an initial setup, please do:"
+ einfo "emerge --config =${PF}"
+ msg_svscan
+ msg_mailerconf
+}
diff --git a/mail-mta/nullmailer/nullmailer-1.02-r2.ebuild b/mail-mta/nullmailer/nullmailer-1.02-r2.ebuild
new file mode 100644
index 000000000000..15b897db9b23
--- /dev/null
+++ b/mail-mta/nullmailer/nullmailer-1.02-r2.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.02-r2.ebuild,v 1.1 2006/02/11 10:35:51 robbat2 Exp $
+
+inherit eutils flag-o-matic mailer
+
+MY_P="${P/_rc/RC}"
+S=${WORKDIR}/${MY_P}
+DEBIAN_PV="1"
+DEBIAN_SRC="${MY_P/-/_}-${DEBIAN_PV}.diff.gz"
+DESCRIPTION="Simple relay-only local mail transport agent"
+SRC_URI="http://untroubled.org/${PN}/${MY_P}.tar.gz
+ mirror://debian/pool/main/n/${PN}/${DEBIAN_SRC}"
+HOMEPAGE="http://untroubled.org/nullmailer/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+DEPEND="virtual/libc
+ sys-apps/groff"
+RDEPEND="virtual/libc
+ >=sys-process/supervise-scripts-3.2
+ >=sys-process/daemontools-0.76-r1
+ sys-apps/shadow"
+PROVIDE="virtual/mta"
+
+NULLMAILER_GROUP_NAME=nullmail
+NULLMAILER_GROUP_GID=88
+NULLMAILER_USER_NAME=nullmail
+NULLMAILER_USER_UID=88
+NULLMAILER_USER_SHELL=-1
+NULLMAILER_USER_GROUPS=nullmail
+NULLMAILER_USER_HOME=/var/nullmailer
+
+setupuser() {
+ enewgroup ${NULLMAILER_GROUP_NAME} ${NULLMAILER_GROUP_GID}
+ enewuser ${NULLMAILER_USER_NAME} ${NULLMAILER_USER_UID} ${NULLMAILER_USER_SHELL} ${NULLMAILER_USER_HOME} ${NULLMAILER_USER_GROUPS}
+}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ EPATCH_OPTS="-d ${S} -p1" \
+ epatch ${DISTDIR}/${DEBIAN_SRC}
+ EPATCH_OPTS="-d ${S} -p1" \
+ epatch ${S}/debian/patches/03ipv6.diff || die "IPV6 patch failed"
+ EPATCH_OPTS="-d ${S} -p1" \
+ epatch ${S}/debian/patches/05syslog.diff || die "daemon/syslog patch failed"
+ # this fixes the debian daemon/syslog to actually compile
+ sed -i.orig \
+ -e '/^nullmailer_send_LDADD/s, =, = ../lib/cli++/libcli++.a,' \
+ ${S}/src/Makefile.am || die "Sed failed"
+}
+
+
+pkg_setup() {
+ setupuser
+}
+
+src_compile() {
+ append-ldflags $(bindnow-flags)
+ # Note that we pass a different directory below due to bugs in the makefile!
+ econf --localstatedir=/var || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ einstall localstatedir=${D}/var/nullmailer || die "einstall failed"
+ local mailqloc=/usr/bin/mailq
+ if use mailwrapper; then
+ mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.nullmailer
+ mailqloc=/usr/bin/mailq.nullmailer
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.nullmailer
+ insinto /etc/mail
+ doins ${FILESDIR}/mailer.conf
+ mailer_install_conf
+ fi
+ dodoc AUTHORS BUGS COPYING HOWTO INSTALL NEWS README YEAR2000 TODO ChangeLog
+ # A small bit of sample config
+ dodir /etc/nullmailer
+ insinto /etc/nullmailer
+ newins ${FILESDIR}/remotes.sample remotes
+ # daemontools stuff
+ dodir /var/nullmailer/service{,/log}
+ insinto /var/nullmailer/service
+ newins scripts/nullmailer.run run
+ fperms 700 /var/nullmailer/service/run
+ insinto /var/nullmailer/service/log
+ newins scripts/nullmailer-log.run run
+ fperms 700 /var/nullmailer/service/log/run
+ # usablity
+ dodir /usr/lib
+ dosym /usr/sbin/sendmail usr/lib/sendmail
+ # permissions stuff
+ keepdir /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ fperms 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ fowners nullmail:nullmail /usr/sbin/nullmailer-queue ${mailqloc}
+ fperms 4711 /usr/sbin/nullmailer-queue ${mailqloc}
+ fowners nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ fperms 660 /var/nullmailer/trigger
+ msg_mailerconf
+ newinitd ${FILESDIR}/init.d-nullmailer nullmailer
+}
+
+pkg_config() {
+ [ ! -s /etc/nullmailer/me ] && /bin/hostname --fqdn >/etc/nullmailer/me
+ [ ! -s /etc/nullmailer/defaultdomain ] && /bin/hostname --domain >/etc/nullmailer/defaultdomain
+ msg_svscan
+ msg_mailerconf
+}
+
+msg_svscan() {
+ einfo "To start nullmailer at boot you have to enable the /etc/init.d/svscan rc file"
+ einfo "and create the following link :"
+ einfo "ln -fs /var/nullmailer/service /service/nullmailer"
+ einfo "As an alternative, we also provide an init.d script."
+ einfo
+ einfo "If the nullmailer service is already running, please restart it now,"
+ einfo "using 'svc-restart nullmailer' or the init.d script."
+ einfo
+}
+
+msg_mailerconf() {
+ use mailwrapper && \
+ ewarn "Please ensure you have selected nullmailer in your /etc/mail/mailer.conf"
+}
+
+pkg_postinst() {
+ setupuser
+ # Do this again for good measure
+ [ ! -e /var/nullmailer/trigger ] && mkfifo /var/nullmailer/trigger
+ chown nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ chmod 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ chmod 660 /var/nullmailer/trigger
+
+ einfo "To create an initial setup, please do:"
+ einfo "emerge --config =${PF}"
+ msg_svscan
+ msg_mailerconf
+}
diff --git a/mail-mta/nullmailer/nullmailer-1.02.ebuild b/mail-mta/nullmailer/nullmailer-1.02.ebuild
index a4f92b72828e..cbea8116f0a2 100644
--- a/mail-mta/nullmailer/nullmailer-1.02.ebuild
+++ b/mail-mta/nullmailer/nullmailer-1.02.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.02.ebuild,v 1.1 2006/01/30 03:50:34 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.02.ebuild,v 1.2 2006/02/11 10:35:51 robbat2 Exp $
inherit eutils flag-o-matic
@@ -69,8 +69,10 @@ src_compile() {
src_install () {
einstall localstatedir=${D}/var/nullmailer || die "einstall failed"
+ local mailqloc=/usr/bin/mailq
if use mailwrapper; then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.nullmailer
+ mailqloc=/usr/bin/mailq.nullmailer
mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.nullmailer
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
@@ -94,8 +96,8 @@ src_install () {
# permissions stuff
keepdir /var/log/nullmailer /var/nullmailer/{tmp,queue}
fperms 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
- fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
- fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
+ fowners nullmail:nullmail /usr/sbin/nullmailer-queue ${mailqloc}
+ fperms 4711 /usr/sbin/nullmailer-queue ${mailqloc}
fowners nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
fperms 660 /var/nullmailer/trigger
msg_mailerconf
@@ -113,11 +115,15 @@ msg_svscan() {
einfo "To start nullmailer at boot you have to enable the /etc/init.d/svscan rc file"
einfo "and create the following link :"
einfo "ln -fs /var/nullmailer/service /service/nullmailer"
+ einfo
+ einfo "If the nullmailer service is already running, please restart it now,"
+ einfo "using 'svc-restart nullmailer' or the init.d script."
+ einfo
einfo "As an alternative, we also provide an init.d script."
}
msg_mailerconf() {
use mailwrapper && \
- ewarn "Please ensure you have selected nullmailer in your /etc/mailer.conf"
+ ewarn "Please ensure you have selected nullmailer in your /etc/mail/mailer.conf"
}
pkg_postinst() {
@@ -131,7 +137,7 @@ pkg_postinst() {
use mailwrapper && dosym /usr/sbin/sendmail /usr/bin/mailq
einfo "To create an initial setup, please do:"
- einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
+ einfo "emerge --config =${PF}"
msg_svscan
msg_mailerconf
}