Could not find an ebuild for nullmailer so I created one. Not sure whether quoting the ebuild here is the right way but the FAQs say so. Please let me know if there are errors in this ebuild or I should apply more files/infos. -- start of net-mail/nullmailer/nullmailer-1.00.ebuild -- # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Simple MTA based on qmail" HOMEPAGE="http://untroubled.org/nullmailer/" RV='RC7' SRC_URI="http://untroubled.org/nullmailer/${P}${RV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/glibc daemontools" RDEPEND="!virtual/mta net-mail/mailbase" PROVIDE="virtual/mta" S=${WORKDIR}/${P}${RV} src_compile() { ./configure --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var emake || die } src_install() { enewuser nullmail -1 /bin/false /var/nullmailer nobody dodoc AUTHORS BUGS COPYING ChangeLog HOWTO INSTALL NEWS README TODO YEAR2000 make || die make DESTDIR=${D} install || die make DESTDIR=${D} install-root || die hostname -d > ${D}/etc/nullmailer/defaultdomain hostname -f > ${D}/etc/nullmailer/me # Stuff needed by daemontools/supervise: mkdir -p ${D}/var/log/svscan/nullmailer fowners nullmail. /var/log/svscan/nullmailer mkdir -p ${D}/var/lib/svscan/nullmailer/log exeinto /var/lib/svscan/nullmailer newexe ${FILESDIR}/run.nullmailer run exeinto /var/lib/svscan/nullmailer/log newexe ${FILESDIR}/run.multilog run } pkg_postinst() { einfo "Before you can use nullmailer as MTA you have to set your Smart-Host." einfo "Please put the FQDN plus the protocol used (normally smtp) into" einfo "/etc/nullmailer/remotes by typing i.e." einfo "echo your.smart.host smtp > /etc/nullmailer/remotes" einfo "Also read read the HOWTO (4.) to see how to start nullmailer with" einfo "a run-script with daemontools" einfo "Prepared run-scripts may be found in /var/lib/svscan/nullmailer" einfo "To use this scripts symlink /var/lib/svscan/nullmailer into /service" } pkg_prerm () { if [ -h /service/nullmailer ];then cd /service/nullmailer rm /service/nullmailer svc -dx . ./log fi } pkg_postrm () { [ -d /var/nullmailer ] && rm -rf /var/nullmailer [ -d /var/lib/svscan/nullmailer ] && rm -rf /var/lib/svscan/nullmailer } -- end of net-mail/nullmailer/nullmailer-1.00.ebuild -- -- start of net-mail/nullmailer/files/run.nullmailer -- #!/bin/sh exec setuidgid nullmail /usr/sbin/nullmailer-send 2>&1 -- end of net-mail/nullmailer/files/run.nullmailer -- -- start of net-mail/nullmailer/files/run.multilog -- #!/bin/sh exec setuidgid nullmail multilog t /var/log/svscan/nullmailer -- end of net-mail/nullmailer/files/run.multilog --
See net-mail/nullmailer which supercedes this. I specificially exclude your prerm and postrm sections as they cause many undesirable effects if upgrading the package.