summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-05-30 09:49:43 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-05-30 09:49:43 +0000
commit356ac634384272df5b94ab47851a7e056d4ae305 (patch)
tree508e6ce94fbecf3f85cb4b7480826bedd1e12da5
parentMoving to mail-mta/nullmailer (diff)
downloadhistorical-356ac634384272df5b94ab47851a7e056d4ae305.tar.gz
historical-356ac634384272df5b94ab47851a7e056d4ae305.tar.bz2
historical-356ac634384272df5b94ab47851a7e056d4ae305.zip
Moved from net-mail/nullmailer to mail-mta/nullmailer.
-rw-r--r--mail-mta/nullmailer/ChangeLog51
-rw-r--r--mail-mta/nullmailer/Manifest10
-rw-r--r--mail-mta/nullmailer/files/digest-nullmailer-1.00_rc71
-rw-r--r--mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r11
-rw-r--r--mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r21
-rw-r--r--mail-mta/nullmailer/files/mailer.conf30
-rw-r--r--mail-mta/nullmailer/files/remotes.sample13
-rw-r--r--mail-mta/nullmailer/metadata.xml9
-rw-r--r--mail-mta/nullmailer/nullmailer-1.00_rc7-r1.ebuild94
-rw-r--r--mail-mta/nullmailer/nullmailer-1.00_rc7-r2.ebuild99
-rw-r--r--mail-mta/nullmailer/nullmailer-1.00_rc7.ebuild96
11 files changed, 405 insertions, 0 deletions
diff --git a/mail-mta/nullmailer/ChangeLog b/mail-mta/nullmailer/ChangeLog
new file mode 100644
index 000000000000..6d263a418659
--- /dev/null
+++ b/mail-mta/nullmailer/ChangeLog
@@ -0,0 +1,51 @@
+# ChangeLog for net-mail/nullmailer
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.1 2004/05/30 09:49:43 robbat2 Exp $
+
+*nullmailer-1.00_rc7-r2 (30 May 2004)
+
+ 30 May 2004; Robin H. Johnson <robbat2@gentoo.org> metadata.xml,
+ nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7-r2.ebuild,
+ nullmailer-1.00_rc7.ebuild, files/mailer.conf, files/remotes.sample:
+ Moved from net-mail/nullmailer to mail-mta/nullmailer.
+
+ 28 May 2004; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
+ Update metadata.xml.
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org>
+ nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7-r2.ebuild,
+ nullmailer-1.00_rc7.ebuild:
+ Add inherit eutils
+
+ 20 Apr 2004; David Holm <dholm@gentoo.org> nullmailer-1.00_rc7-r2.ebuild:
+ Added to ~ppc.
+
+*nullmailer-1.00_rc7-r2 (19 Apr 2004)
+
+ 19 Apr 2004; Robin H. Johnson <robbat2@gentoo.org>
+ nullmailer-1.00_rc7-r2.ebuild, files/mailer.conf:
+ add in urgent support for mailwrapper
+
+ 06 Nov 2003; Robin H. Johnson <robbat2@gentoo.org>
+ nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7.ebuild:
+ : instead of . for chown
+
+ 25 Oct 2003; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
+ add metadata.xml
+
+*nullmailer-1.00_rc7-r1 (06 Aug 2003)
+
+ 06 Aug 2003; Robin H. Johnson <robbat2@gentoo.org>
+ nullmailer-1.00_rc7-r1.ebuild:
+ Fix minor permissions bug and commit to stable.
+
+ 03 Aug 2003; Robin H. Johnson <robbat2@gentoo.org>
+ nullmailer-1.00_rc7.ebuild:
+ Fix /usr/lib/sendmail glitch
+
+*nullmailer-1.00_rc7 (01 Aug 2003)
+
+ 01 Aug 2003; Robin H. Johnson <robbat2@gentoo.org>
+ nullmailer-1.00_rc7.ebuild, files/remotes.sample:
+ Initial Commit.
+
diff --git a/mail-mta/nullmailer/Manifest b/mail-mta/nullmailer/Manifest
new file mode 100644
index 000000000000..3a8d7445a2eb
--- /dev/null
+++ b/mail-mta/nullmailer/Manifest
@@ -0,0 +1,10 @@
+MD5 4fbcdae998661648262584be8be8b7df files/digest-nullmailer-1.00_rc7 70
+MD5 4fbcdae998661648262584be8be8b7df files/digest-nullmailer-1.00_rc7-r1 70
+MD5 ccc26a349646e55860dc06066004ce63 files/remotes.sample 301
+MD5 4fbcdae998661648262584be8be8b7df files/digest-nullmailer-1.00_rc7-r2 70
+MD5 2f2133c808cfeded2c4b7b303e11a497 files/mailer.conf 924
+MD5 bbe96a8048806c7beaed78840603b551 ChangeLog 1438
+MD5 9d0c568ea32cf6b45797c6e7c82b4a67 metadata.xml 280
+MD5 fab029d65c274f6139e6326b6f4d4acf nullmailer-1.00_rc7-r1.ebuild 3181
+MD5 21f45587295ae68ad05459ef1c8c90bd nullmailer-1.00_rc7.ebuild 3230
+MD5 c3db551a3c31dc694ffdd3e6936a4630 nullmailer-1.00_rc7-r2.ebuild 3532
diff --git a/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7 b/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7
new file mode 100644
index 000000000000..d67f55c171d8
--- /dev/null
+++ b/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7
@@ -0,0 +1 @@
+MD5 4a0bbe04ca8cf53987b7b1c27087aefe nullmailer-1.00RC7.tar.gz 115253
diff --git a/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r1 b/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r1
new file mode 100644
index 000000000000..d67f55c171d8
--- /dev/null
+++ b/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r1
@@ -0,0 +1 @@
+MD5 4a0bbe04ca8cf53987b7b1c27087aefe nullmailer-1.00RC7.tar.gz 115253
diff --git a/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r2 b/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r2
new file mode 100644
index 000000000000..d67f55c171d8
--- /dev/null
+++ b/mail-mta/nullmailer/files/digest-nullmailer-1.00_rc7-r2
@@ -0,0 +1 @@
+MD5 4a0bbe04ca8cf53987b7b1c27087aefe nullmailer-1.00RC7.tar.gz 115253
diff --git a/mail-mta/nullmailer/files/mailer.conf b/mail-mta/nullmailer/files/mailer.conf
new file mode 100644
index 000000000000..28e387e637ff
--- /dev/null
+++ b/mail-mta/nullmailer/files/mailer.conf
@@ -0,0 +1,30 @@
+# $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
+#
+# Execute the "real" sendmail program from nullmailer
+# named /usr/sbin/sendmail.nullmailer
+sendmail /usr/sbin/sendmail.nullmailer
+mailq /usr/bin/mailq.nullmailer
+
+#
+# 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
+# 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
diff --git a/mail-mta/nullmailer/files/remotes.sample b/mail-mta/nullmailer/files/remotes.sample
new file mode 100644
index 000000000000..cf4bd7c59d90
--- /dev/null
+++ b/mail-mta/nullmailer/files/remotes.sample
@@ -0,0 +1,13 @@
+# Format is: HOST PROTOCOL
+# HOST = IP or DNS
+# PROTOCOL = smtp | qmtp
+#
+# Examples:
+# A standard SMTP server:
+# somesendmailserver.domain.com smtp
+#
+# A qmail server with QMQP setup:
+# someqmailserver.domain.com qmqp
+#
+# A nonstandard SMTP server setup:
+# someotherserver.domain.com smtp --port=2525
diff --git a/mail-mta/nullmailer/metadata.xml b/mail-mta/nullmailer/metadata.xml
new file mode 100644
index 000000000000..89dcd746873c
--- /dev/null
+++ b/mail-mta/nullmailer/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/mail-mta/nullmailer/nullmailer-1.00_rc7-r1.ebuild b/mail-mta/nullmailer/nullmailer-1.00_rc7-r1.ebuild
new file mode 100644
index 000000000000..a85a06cc77de
--- /dev/null
+++ b/mail-mta/nullmailer/nullmailer-1.00_rc7-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.00_rc7-r1.ebuild,v 1.1 2004/05/30 09:49:43 robbat2 Exp $
+
+inherit eutils
+
+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"
+
+DEPEND="virtual/glibc
+ sys-apps/groff"
+RDEPEND="!virtual/mta
+ virtual/glibc
+ >=sys-apps/supervise-scripts-3.2
+ >=sys-apps/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=/bin/false
+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}
+}
+
+pkg_setup() {
+ setupuser
+}
+
+src_compile() {
+ # 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"
+ dodoc AUTHORS BUGS COPYING HOWTO INSTALL NEWS README YEAR2000 TODO ChangeLog
+ # A small bit of sample config
+ dodir /etc/nullmailer
+ cp ${FILESDIR}/remotes.sample ${D}/etc/nullmailer/remotes
+ # daemontools stuff
+ dodir /var/nullmailer/service{,/log}
+ cp scripts/nullmailer.run ${D}/var/nullmailer/service/run
+ fperms 700 /var/nullmailer/service/run
+ cp scripts/nullmailer-log.run ${D}/var/nullmailer/service/log/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
+}
+
+pkg_config() {
+ [ ! -s /etc/nullmailer/me ] && /bin/hostname --fqdn >/etc/nullmailer/me
+ [ ! -s /etc/nullmailer/defaultdomain ] && /bin/hostname --domain >/etc/nullmailer/defaultdomain
+}
+
+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
+
+ TMP_P="${PN}-${PV}"
+ [ "${PR}" != "r0" ] && TMP_P="${TMP_P}-${PR}"
+ einfo "To create an initial setup, please do:"
+ einfo "ebuild /var/db/pkg/${CATEGORY}/${TMP_P}/${TMP_P}.ebuild config"
+ einfo "To start nullmailer at boot you have to enable the /etc/init.d/svscan rc file"
+ einfo "and create the following links :"
+ einfo "ln -fs /var/nullmailer/service /service/nullmailer"
+}
+
diff --git a/mail-mta/nullmailer/nullmailer-1.00_rc7-r2.ebuild b/mail-mta/nullmailer/nullmailer-1.00_rc7-r2.ebuild
new file mode 100644
index 000000000000..d65622e8b412
--- /dev/null
+++ b/mail-mta/nullmailer/nullmailer-1.00_rc7-r2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.00_rc7-r2.ebuild,v 1.1 2004/05/30 09:49:43 robbat2 Exp $
+
+inherit eutils
+
+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"
+
+DEPEND="virtual/glibc
+ sys-apps/groff"
+RDEPEND="!virtual/mta
+ virtual/glibc
+ >=sys-apps/supervise-scripts-3.2
+ >=sys-apps/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=/bin/false
+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}
+}
+
+pkg_setup() {
+ setupuser
+}
+
+src_compile() {
+ # 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"
+ mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.nullmailer
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.nullmailer
+ dodoc AUTHORS BUGS COPYING HOWTO INSTALL NEWS README YEAR2000 TODO ChangeLog
+ # A small bit of sample config
+ dodir /etc/nullmailer
+ cp ${FILESDIR}/remotes.sample ${D}/etc/nullmailer/remotes
+ # daemontools stuff
+ dodir /var/nullmailer/service{,/log}
+ cp scripts/nullmailer.run ${D}/var/nullmailer/service/run
+ fperms 700 /var/nullmailer/service/run
+ cp scripts/nullmailer-log.run ${D}/var/nullmailer/service/log/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
+ ewarn "Please ensure you have selected nullmailer in your /etc/mailer.conf"
+}
+
+pkg_config() {
+ [ ! -s /etc/nullmailer/me ] && /bin/hostname --fqdn >/etc/nullmailer/me
+ [ ! -s /etc/nullmailer/defaultdomain ] && /bin/hostname --domain >/etc/nullmailer/defaultdomain
+ 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
+
+ TMP_P="${PN}-${PV}"
+ [ "${PR}" != "r0" ] && TMP_P="${TMP_P}-${PR}"
+ einfo "To create an initial setup, please do:"
+ einfo "ebuild /var/db/pkg/${CATEGORY}/${TMP_P}/${TMP_P}.ebuild config"
+ einfo "To start nullmailer at boot you have to enable the /etc/init.d/svscan rc file"
+ einfo "and create the following links :"
+ einfo "ln -fs /var/nullmailer/service /service/nullmailer"
+ ewarn "Please ensure you have selected nullmailer in your /etc/mailer.conf"
+}
+
diff --git a/mail-mta/nullmailer/nullmailer-1.00_rc7.ebuild b/mail-mta/nullmailer/nullmailer-1.00_rc7.ebuild
new file mode 100644
index 000000000000..ffa50d28d7f8
--- /dev/null
+++ b/mail-mta/nullmailer/nullmailer-1.00_rc7.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.00_rc7.ebuild,v 1.1 2004/05/30 09:49:43 robbat2 Exp $
+
+inherit eutils
+
+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"
+
+DEPEND="virtual/glibc
+ sys-apps/groff"
+RDEPEND="!virtual/mta
+ virtual/glibc
+ >=sys-apps/supervise-scripts-3.2
+ >=sys-apps/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=/bin/false
+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}
+}
+
+pkg_setup() {
+ setupuser
+}
+
+src_compile() {
+ # 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"
+ dodoc AUTHORS BUGS COPYING HOWTO INSTALL NEWS README YEAR2000 TODO ChangeLog
+ # A small bit of sample config
+ dodir /etc/nullmailer
+ cp ${FILESDIR}/remotes.sample ${D}/etc/nullmailer/remotes
+ # daemontools stuff
+ dodir /var/nullmailer/service{,/log}
+ cp scripts/nullmailer.run ${D}/var/nullmailer/service/run
+ fperms 700 /var/nullmailer/service/run
+ cp scripts/nullmailer-log.run ${D}/var/nullmailer/service/log/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 root:nullmail /usr/sbin/nullmailer-queue
+ fperms g+s /usr/sbin/nullmailer-queue
+ fowners nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ fperms 660 /var/nullmailer/trigger
+}
+
+pkg_config() {
+ [ ! -s /etc/nullmailer/me ] && /bin/hostname --fqdn >/etc/nullmailer/me
+ [ ! -s /etc/nullmailer/defaultdomain ] && /bin/hostname --domain >/etc/nullmailer/defaultdomain
+}
+
+pkg_postinst() {
+ setupuser
+ # Do this again for good measure
+ [ ! -e /var/nullmailer/trigger ] && mkfifo /var/nullmailer/trigger
+ chown root:nullmail /usr/sbin/nullmailer-queue
+ chown nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
+ chmod 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
+ chmod g+s /usr/sbin/nullmailer-queue
+ chmod 660 /var/nullmailer/trigger
+
+ TMP_P="${PN}-${PV}"
+ [ "${PR}" != "r0" ] && TMP_P="${TMP_P}-${PR}"
+ einfo "To create an initial setup, please do:"
+ einfo "ebuild /var/db/pkg/${CATEGORY}/${TMP_P}/${TMP_P}.ebuild config"
+ einfo "To start nullmailer at boot you have to enable the /etc/init.d/svscan rc file"
+ einfo "and create the following links :"
+ einfo "ln -fs /var/nullmailer/service /service/nullmailer"
+}
+