summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-11-02 11:38:13 +0000
committerJustin Lecher <jlec@gentoo.org>2013-11-02 11:38:13 +0000
commit099560e6635e1292cfe485c0f4cd57ddfa600581 (patch)
tree345a4184311d16cff48568bdc62dd6da4151be05 /mail-mta
parentnet-fs/netatalk: Fix borked systemd unit, #489990 (diff)
downloadhistorical-099560e6635e1292cfe485c0f4cd57ddfa600581.tar.gz
historical-099560e6635e1292cfe485c0f4cd57ddfa600581.tar.bz2
historical-099560e6635e1292cfe485c0f4cd57ddfa600581.zip
mail-mta/nullmailer: Drop old
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/nullmailer/ChangeLog6
-rw-r--r--mail-mta/nullmailer/Manifest32
-rw-r--r--mail-mta/nullmailer/nullmailer-1.11-r2.ebuild136
-rw-r--r--mail-mta/nullmailer/nullmailer-1.11-r3.ebuild140
4 files changed, 19 insertions, 295 deletions
diff --git a/mail-mta/nullmailer/ChangeLog b/mail-mta/nullmailer/ChangeLog
index 473d633676c0..36fbd761401c 100644
--- a/mail-mta/nullmailer/ChangeLog
+++ b/mail-mta/nullmailer/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/nullmailer
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.77 2013/11/01 13:50:15 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.78 2013/11/02 11:38:12 jlec Exp $
+
+ 02 Nov 2013; Justin Lecher <jlec@gentoo.org> -nullmailer-1.11-r2.ebuild,
+ -nullmailer-1.11-r3.ebuild:
+ Drop old
01 Nov 2013; Agostino Sarubbo <ago@gentoo.org> nullmailer-1.13-r2.ebuild:
Stable for x86, wrt bug #480060
diff --git a/mail-mta/nullmailer/Manifest b/mail-mta/nullmailer/Manifest
index 9c97a3b9efa1..9c049790ef3f 100644
--- a/mail-mta/nullmailer/Manifest
+++ b/mail-mta/nullmailer/Manifest
@@ -8,28 +8,24 @@ AUX nullmailer.service 398 SHA256 a8083aa8c784fef00c6b0dab6733874edbbf1d01c2060b
AUX remotes.sample-1.04 540 SHA256 d9f756d9a2b21e7f7166c1b29a34c4dda1eb1ab0c57168ded3d0ed225cf692ee SHA512 ea0e75253804d792cab14d672ef88ccfc93b2d47c7e936e9de10b130a3270f5ca16b019ef71fc13f74ddd1fe12272060ae6664357b1dc019b9c93950bc0a583e WHIRLPOOL ed2af783ae2648cf23ce73523d47e462f809694b19c31055e2d0419da750ebff1c2403b1defad56b21c1d3a95d863f1880f391f52d1a30057d588ac1263371fa
AUX remotes.sample-1.11 971 SHA256 a315887401d0fba184ace7b9ea9adfad3cb09b73884f4982dc4fe705079af15e SHA512 a3d305beb4526e20bbb5c92b4ed3afee21a9b926dd1067317351b54c4942d36f1e23b80f2fe503be8ea07597fdc728fa8c78394e7cc2e6cac7d50b7e74bb6494 WHIRLPOOL ee6417a5e963706f2824632f7a8004047ab96a17d9cd164339759572eb06449825fcbfa072750144faaa9d817efb1b6e11b451949f052ccd7fc490b410d85896
AUX remotes.sample-1.13 970 SHA256 56b9adc7762cfac88769ee6a87fa5057a42599a3d50a3cfd1c6d8d9327d02080 SHA512 8ff23a3f30e9f3b8bfca05f6e8bda44d8142b547c667d604e5e1f15b49342e0a098591578ef26c599a965d0b17e7237232e6713bb7b95b2af4e3bf6bde2604c6 WHIRLPOOL 39e87ec264d023c4d3852d1173bf9e87b8eb35fe3809c9ebfa3d2c9be81ad9a709fc1c873697be8ad80c01881566542cb8950a5e312ed9e06c65535c8cd4dac4
-DIST nullmailer-1.11.tar.gz 203239 SHA256 bf61c839b5f0927e0998c6183f229fa644f97165d3d5402adc59369b2bdaf25e SHA512 419798e6910e554e7d679a18e900555b52e061d3e085c0e958cc1e6b0c132840c285b669ad890baa3bd6191a371b88cec1e10aeaa49cd1c6cde33d881812fbeb WHIRLPOOL d05b0a1969135c8b83ee45494d96e3d13d431d55310b3f04d2fb6c71cffc0490a9fcbfa61ff4040f366e2d0372da35c5d2b331e520eadeb918bf557951daa494
DIST nullmailer-1.13.tar.gz 205431 SHA256 3f8861ebb1b46cea0a1caf1e6236e1e0d2a5a91def19551b7cad12eab676277d SHA512 96dcb3ddecde77a73e5ca1afa5167d35f965d04999f02cc2ef60b54ea7eb7a006e5cf5678fc34a54d4be4f9fd71bd0f784a8671aca40c70dbc307666c548e1d7 WHIRLPOOL b041f7cc33a257fad11c5f4c9bf74f8d849d9c45f0dc19be28268462b9d029c07e1d5802698e647a4208d5f66cac2177a1d12e49a03caac51e0244c3f9a0599c
-DIST nullmailer_1.11-1.debian.tar.gz 33187 SHA256 86d64b37220c4e92680509152b20d08c2702ad313350b8e65dd1d754bd1b76c9 SHA512 67bdb686bc62ff924c2d4b1aac2f528d51e4d7b0d72df438b3197d7a8b3fd6a875be7eb681e092c024ed3d47ba5ed5e5b0bca4f4d07200ca4bbbdbe8fea4c2c9 WHIRLPOOL c2661a17fcf6686825079063d55500a4095b6bc6938729247fc1ef78c2476e352ee9101d56f8d082d537d2e8cab99e5e12eee6195d5c1c891f41f327fde79121
-EBUILD nullmailer-1.11-r2.ebuild 4419 SHA256 7807417202aec8b21cae46cd3f932fd49e06a3e89e6c44931b2fa55761748556 SHA512 12a2a5cd5390f71266ade98244df430bfe6903dd266c3553f2f357a9af06d4e0ad5682bb471590f3f1504137aa4fbfad381278fec0a61cd8fb30a414a1d7870a WHIRLPOOL a68188ad71d92b5e9e62ce3706dbc668934add90387b25afb417c0a009a9a790201ccd1c93a206d73ac36abb8fd4b5788a7e49e9bf3365b5bb2313783f4ace04
-EBUILD nullmailer-1.11-r3.ebuild 4477 SHA256 6a650d68dd9c8df40c58d568f9125b24790278c3feb62885c3c3dae8e265c274 SHA512 088d59096e92c8c6edb240eeee2568906fc4f1eae4247c259281d29e3efaf3eedb307037437174e2734cb355c0c4631aa3ae4e16feada8f9ab40b6fdcf8efe43 WHIRLPOOL 43c21e0f41e235c35eaa5f731366b6629eae1a27ea73e03bd3c80ce72aaaa8bc07b7684695aa646b6390bae88217815b9fdd6cd8b1348d6d33c9f1fd0c4c6298
EBUILD nullmailer-1.13-r2.ebuild 4592 SHA256 71cab4936055f5bf308f592987631d6ebe9b12fdecd1c4a34ccb4d7ab0636b9e SHA512 a032593867678a966b2bea22c89de2cc4e67d35647c88fb975685bc8bdccc001a02b4dd8ff16da614d032f0bc98e9a88505240fb507867fe55da182c8b9192da WHIRLPOOL 219265b3cfdc8d3351e022a1084f47c5051b4d3ee31529ccc5d06dee83c08dc007fa1bb6e2a5d2316bf4dd0266dcc9a2dc45874b0640c5f329ef70df9ceb0b05
-MISC ChangeLog 14383 SHA256 261a9a4eed4aff29da20f880187aedf971c3b6c32ae69b2ffa1240e9bb59b41b SHA512 60b8f0b8944876a96ee8a1842ee91de7ad7ad6215dff482d496441e30bf41e46c34a0f2949410b742fa761869fb7ff0909413ecf1814e8f8d3f5c1cbdcb21fc5 WHIRLPOOL c51e0c7de3bf7e74ff18f6e8945cbcd3196466e5a695ebcc0a022e3a56659de3d4f5604d220bdc88c1ea7f9aa119fc9dfa95d23b6b506db87d213d099163020c
+MISC ChangeLog 14501 SHA256 bbbc0485df2f53d930d6a64069559cadfa7b0e6c16bf196627b4cd950d2c4831 SHA512 1cfc4e53745d4b2e18997a45594385d5b56eaf2b5895d50bdd3989a94d4154a9e7ef79e8514e66e33acf504ba8982d7f2d06dcfaf98c604e4921eda1282b37ac WHIRLPOOL 6bf931b9d9708e255900b9154cf43bd12c35408515f492105c258b07a0f789e11307003ced3cc39d7ed519585c61897bf35bc6130b35e65c118fce2aaacdfdf3
MISC metadata.xml 363 SHA256 838fae6a4f4cabb0217b0d1ebbd63acf840e802b3852e7360a4b9ae12a10459e SHA512 18675ce1eba12e093f0d73ac35ca6e456d2d7c0b1f3eee41d9b5bb466391778e3aed877d06028e7fa28c121dfff20fd6729451e5c5706a5ebc33a4f3c10c6f85 WHIRLPOOL d8911b227b42c2f4e47d68cb72f65c1e3349df2e34659aa4a597522138e9f8b055913829e504e11492db81081fbeb51e4b62512aeffde65d105e1120fbd572a4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCgAGBQJSc7GCAAoJELp701BxlEWf2sUQAIOIyXXuPS4f6hsDKlISeTlv
-ywE3GpOJWsauk0TcJgO3wqxwUWX8dQ7VUh5dKJzFZ63cRLIa0PO50SMREA2bjvva
-YCHzz61k121AEJ8QJTfeB8g7ITFuQ8P+Qe62btdtpu9oRmFVaPF8yQP6+2hIt3kz
-52qUJPNfHm0EbXQRuuObmz1EO9Ed9UmxdkFAVyKNBK4bvMM4OqFWRrkOmBRpmtvh
-b2omC9H7mNX0jgQph3H9Q9T4J6nDAnacxHfGwL+WdxgupxgWlRmSeeqT00wDcUJz
-0fjZO1ssWeDf+xCA6Kx87fKx6XI7VFJwLxgO5YrZZ9478cnr1TUKMMagX+EJYt5u
-Gvmym5bCQ2uQD7Xx1erSLJ8xzeb0qnHOPJXa6nkGObwQ5AxBS0oi0fNqcucCwUOS
-CYwhy1AuNVQo22EjlfVn1VJooSiZCef27qtULbUIrKNvqXc+N5i3ZJrQgNwy6BAI
-jdy678CgKi4TZa9mrxux2PAWtegTrAl6eI4j4E9HL/DvUJ1TSJiDWm/0I7riDqdg
-VdOxt891ztP/21h/y+EgPvIKGC9qsDpH5reOuCOOGeDI1pNZR7g1oUEeenIJM+ep
-UQWK+KhbPeZ9fxFulUkIpAp+63yweNbGLaeeDWLoxTTg1ChWqLISl1WQyeD4MGxl
-BI+B+atvlt9dvqe8mFEe
-=D1K5
+iQIcBAEBCgAGBQJSdOQlAAoJELnU8jG9FVirlY4P/1KRBliLK76qYK0NBkVqeQR1
+8cv99joqjrSCVeqHwU5QUZoNgvTx5CNFXFZVO8KE+uwvKIYyfV9ikxUVtwm1P6Fn
++SBISO1PWuc0TgzBig+UFkGIEHFBMw9EPZCGEpFootJsmzdYCBYVWNAdkuESpOL2
+GegxjbY7CLXNeFqA1O3VS9p6d0P6s4eeK4cMrMsfk0eWIQ4K8fSSWHi5OFP80L8N
+hKb7OmLJMyUXcUaSqEdBsA4+OSYWlwhuGMUkLySuId5Dl7C6rIlHNTfS1OkXJhTp
+KBblNs16hm54z2TFj28AxygnSSc+1+d9vTGWtTvsY6DatPNtxAMTe9IKht0zAyu0
+HOI9U2iqvOtM22D/RCFkzKX/5RwB/8SqDPjFBnI0Cgn/K5mab5EZboO05fFLkPwP
+7dWGa/wbHP1HDsrAHn8UcJGLD3FxcMbjCsUq2CsAPNGwS8FNof0LBnwLu0aM+op1
+hyTriOauaeyCNhXlXAlh4c6Da/ENw87eKt0pSwcEp3UHgNi0lDQXG8XhWEQajrVT
+ZvvZuCswzNzphWT9bIxiYgRtudmw8Y2+1hP3CHui+S/FXCzJfp542za16sO8bKEc
+INKxKktm7/qtsts5DibmEE2P3pa9sXyG1DrIUiF5g27l2+scOBT1LmDUv9AvYfG0
+9MY2MfZX/j0hEre4gN52
+=OiMu
-----END PGP SIGNATURE-----
diff --git a/mail-mta/nullmailer/nullmailer-1.11-r2.ebuild b/mail-mta/nullmailer/nullmailer-1.11-r2.ebuild
deleted file mode 100644
index 4ba3bbadb2e7..000000000000
--- a/mail-mta/nullmailer/nullmailer-1.11-r2.ebuild
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.11-r2.ebuild,v 1.6 2013/09/25 10:21:20 jlec Exp $
-
-EAPI=4
-WANT_AUTOMAKE="1.10.3"
-inherit eutils flag-o-matic autotools user multilib
-
-MY_P="${P/_rc/RC}"
-S=${WORKDIR}/${MY_P}
-DEBIAN_PV=1.11
-DEBIAN_PR="1"
-DEBIAN_P="${PN}-${DEBIAN_PV}"
-DEBIAN_PF="${DEBIAN_P/-/_}-${DEBIAN_PR}"
-DEBIAN_SRC="${DEBIAN_PF}.debian.tar.gz"
-DESCRIPTION="Simple relay-only local mail transport agent"
-SRC_URI="http://untroubled.org/${PN}/archive/${MY_P}.tar.gz
- mirror://debian/pool/main/n/${PN}/${DEBIAN_SRC}"
-HOMEPAGE="http://untroubled.org/nullmailer/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="amd64 ppc x86"
-
-IUSE="ssl"
-
-DEPEND="sys-apps/groff
- ssl? ( net-libs/gnutls )"
-RDEPEND="virtual/shadow
- virtual/logger
- ssl? ( net-libs/gnutls )
- !mail-mta/courier
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp
- !mail-mta/netqmail
- !mail-mta/postfix
- !mail-mta/qmail-ldap
- !mail-mta/sendmail
- !mail-mta/opensmtpd
- !mail-mta/ssmtp"
-
-src_prepare() {
- sed -i -e 's/nullmailer-1.10/nullmailer-1.11/g' \
- "${WORKDIR}"/debian/patches/*.diff || die
- EPATCH_OPTS="-d ${S} -p1" \
- epatch "${DISTDIR}"/${DEBIAN_SRC}
- # why revert? Ask Robin when he is back!
- EPATCH_OPTS="-d ${WORKDIR} -p0 -R" \
- epatch "${WORKDIR}"/debian/patches/02_ipv6.diff
- # 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"
- sed \
- -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \
- -i configure.in || die
- sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
- eautoreconf
-}
-
-pkg_setup() {
- enewgroup nullmail 88
- enewuser nullmail 88 -1 /var/nullmailer nullmail
-}
-
-src_configure() {
- # Note that we pass a different directory below due to bugs in the makefile!
- econf \
- --localstatedir=/var \
- $(use_enable ssl tls)
-}
-
-src_install () {
- einstall localstatedir="${D}"/var/nullmailer
- dodoc AUTHORS BUGS HOWTO INSTALL ChangeLog NEWS README TODO
- # A small bit of sample config
- insinto /etc/nullmailer
- newins "${FILESDIR}"/remotes.sample-${PV} remotes
- # This contains passwords, so should be secure
- fperms 0640 /etc/nullmailer/remotes
- fowners root:nullmail /etc/nullmailer/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
- # usability
- dodir /usr/$(get_libdir)
- dosym /usr/sbin/sendmail usr/$(get_libdir)/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
- newinitd "${FILESDIR}"/init.d-nullmailer-r2 nullmailer
-}
-
-pkg_postinst() {
- [ ! -e "${ROOT}"/var/nullmailer/trigger ] && mkfifo "${ROOT}"/var/nullmailer/trigger
- chown nullmail:nullmail "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue,trigger}
- chmod 770 "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue}
- chmod 660 "${ROOT}"/var/nullmailer/trigger
-
- # This contains passwords, so should be secure
- chmod 0640 /etc/nullmailer/remotes
- chown root:nullmail /etc/nullmailer/remotes
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To create an initial setup, please do:"
- elog "emerge --config =${CATEGORY}/${PF}"
- fi
- #echo
- #elog "To start nullmailer at boot you may use either the nullmailer init.d"
- #elog "script, or emerge sys-process/supervise-scripts, enable the"
- #elog "svscan init.d script and create the following link:"
- #elog "ln -fs /var/nullmailer/service /service/nullmailer"
- #echo
-}
-
-pkg_config() {
- if [ ! -s "${ROOT}"/etc/nullmailer/me ]; then
- einfo "Setting /etc/nullmailer/me"
- /bin/hostname --fqdn > "${ROOT}"/etc/nullmailer/me
- fi
- if [ ! -s "${ROOT}"/etc/nullmailer/defaultdomain ]; then
- einfo "Setting /etc/nullmailer/defaultdomain"
- /bin/hostname --domain > "${ROOT}"/etc/nullmailer/defaultdomain
- fi
-}
diff --git a/mail-mta/nullmailer/nullmailer-1.11-r3.ebuild b/mail-mta/nullmailer/nullmailer-1.11-r3.ebuild
deleted file mode 100644
index 0e109bd05bff..000000000000
--- a/mail-mta/nullmailer/nullmailer-1.11-r3.ebuild
+++ /dev/null
@@ -1,140 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.11-r3.ebuild,v 1.3 2013/09/25 10:21:20 jlec Exp $
-
-EAPI=4
-
-WANT_AUTOMAKE="1.10.3"
-
-inherit eutils flag-o-matic autotools user multilib systemd
-
-MY_P="${P/_rc/RC}"
-S=${WORKDIR}/${MY_P}
-DEBIAN_PV=1.11
-DEBIAN_PR="1"
-DEBIAN_P="${PN}-${DEBIAN_PV}"
-DEBIAN_PF="${DEBIAN_P/-/_}-${DEBIAN_PR}"
-DEBIAN_SRC="${DEBIAN_PF}.debian.tar.gz"
-DESCRIPTION="Simple relay-only local mail transport agent"
-SRC_URI="http://untroubled.org/${PN}/archive/${MY_P}.tar.gz
- mirror://debian/pool/main/n/${PN}/${DEBIAN_SRC}"
-HOMEPAGE="http://untroubled.org/nullmailer/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~ppc ~x86"
-
-IUSE="ssl"
-
-DEPEND="sys-apps/groff
- ssl? ( net-libs/gnutls )"
-RDEPEND="virtual/shadow
- virtual/logger
- ssl? ( net-libs/gnutls )
- !mail-mta/courier
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp
- !mail-mta/netqmail
- !mail-mta/postfix
- !mail-mta/qmail-ldap
- !mail-mta/sendmail
- !mail-mta/opensmtpd
- !mail-mta/ssmtp"
-
-pkg_setup() {
- enewgroup nullmail 88
- enewuser nullmail 88 -1 /var/nullmailer nullmail
-}
-
-src_prepare() {
- sed -i -e 's/nullmailer-1.10/nullmailer-1.11/g' \
- "${WORKDIR}"/debian/patches/*.diff || die
- EPATCH_OPTS="-d ${S} -p1" \
- epatch "${DISTDIR}"/${DEBIAN_SRC}
- # why revert? Ask Robin when he is back!
- EPATCH_OPTS="-d ${WORKDIR} -p0 -R" \
- epatch "${WORKDIR}"/debian/patches/02_ipv6.diff
- # 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"
-
- sed \
- -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \
- -i configure.in || die
- sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
- eautoreconf
-}
-
-src_configure() {
- # Note that we pass a different directory below due to bugs in the makefile!
- econf \
- --localstatedir=/var \
- $(use_enable ssl tls)
-}
-
-src_install () {
- einstall localstatedir="${D}"/var/nullmailer
- dodoc AUTHORS BUGS HOWTO INSTALL ChangeLog NEWS README TODO
- # A small bit of sample config
- insinto /etc/nullmailer
- newins "${FILESDIR}"/remotes.sample-${PV} remotes
- # This contains passwords, so should be secure
- fperms 0640 /etc/nullmailer/remotes
- fowners root:nullmail /etc/nullmailer/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
- # usability
- dodir /usr/$(get_libdir)
- dosym /usr/sbin/sendmail usr/$(get_libdir)/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
- newinitd "${FILESDIR}"/init.d-nullmailer-r2 nullmailer
- systemd_dounit "${FILESDIR}"/${PN}.service
-}
-
-pkg_postinst() {
- [ ! -e "${ROOT}"/var/nullmailer/trigger ] && mkfifo "${ROOT}"/var/nullmailer/trigger
- chown nullmail:nullmail "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue,trigger}
- chmod 770 "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue}
- chmod 660 "${ROOT}"/var/nullmailer/trigger
-
- # This contains passwords, so should be secure
- chmod 0640 /etc/nullmailer/remotes
- chown root:nullmail /etc/nullmailer/remotes
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To create an initial setup, please do:"
- elog "emerge --config =${CATEGORY}/${PF}"
- fi
- #echo
- #elog "To start nullmailer at boot you may use either the nullmailer init.d"
- #elog "script, or emerge sys-process/supervise-scripts, enable the"
- #elog "svscan init.d script and create the following link:"
- #elog "ln -fs /var/nullmailer/service /service/nullmailer"
- #echo
-}
-
-pkg_config() {
- if [ ! -s "${ROOT}"/etc/nullmailer/me ]; then
- einfo "Setting /etc/nullmailer/me"
- /bin/hostname --fqdn > "${ROOT}"/etc/nullmailer/me
- fi
- if [ ! -s "${ROOT}"/etc/nullmailer/defaultdomain ]; then
- einfo "Setting /etc/nullmailer/defaultdomain"
- /bin/hostname --domain > "${ROOT}"/etc/nullmailer/defaultdomain
- fi
-}