summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-03-07 18:57:37 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-03-07 18:58:15 +0300
commit42710bbf22ae22fcf564a4a051239856343a593d (patch)
tree9178cd0159325d12f7bc1757b5de614be41e2837 /mail-mta/nullmailer
parentsys-apps/fwupd: Removed sys-apps/thunderbolt-software-user-space dep (diff)
downloadgentoo-42710bbf22ae22fcf564a4a051239856343a593d.tar.gz
gentoo-42710bbf22ae22fcf564a4a051239856343a593d.tar.bz2
gentoo-42710bbf22ae22fcf564a4a051239856343a593d.zip
mail-mta/nullmailer: Drop old (deprecated EAPI)
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'mail-mta/nullmailer')
-rw-r--r--mail-mta/nullmailer/Manifest3
-rw-r--r--mail-mta/nullmailer/nullmailer-1.13-r5.ebuild167
-rw-r--r--mail-mta/nullmailer/nullmailer-2.0-r1.ebuild137
-rw-r--r--mail-mta/nullmailer/nullmailer-2.0-r2.ebuild139
-rw-r--r--mail-mta/nullmailer/nullmailer-2.0.ebuild137
5 files changed, 0 insertions, 583 deletions
diff --git a/mail-mta/nullmailer/Manifest b/mail-mta/nullmailer/Manifest
index 7bddba27fbc8..9d9ce9de6b2a 100644
--- a/mail-mta/nullmailer/Manifest
+++ b/mail-mta/nullmailer/Manifest
@@ -1,4 +1 @@
-DIST nullmailer-1.13.tar.gz 205431 BLAKE2B e1eaa94262e3d4d202293d35f7ac610a3a2cb92e403b2fd8dff467788a4f4c0d3a1bbc27b47eeae9d1c493eb8d07c35e056ea7501ad92ec4addae694997561b4 SHA512 96dcb3ddecde77a73e5ca1afa5167d35f965d04999f02cc2ef60b54ea7eb7a006e5cf5678fc34a54d4be4f9fd71bd0f784a8671aca40c70dbc307666c548e1d7
-DIST nullmailer-2.0.tar.gz 249538 BLAKE2B 2340fd0b3e67be0061aedb2a1dc0466c88e1253691c955e960244f2ce330af6798bd43f21908a9f12ce9572489dd5c48288e65ae688cd73a8afedd4f7bb6a49e SHA512 2a7c914c5effcf796f987256ac68836f0ba875cc7f2da1aeb8f23767e15a556da168b8da5cc52d9f800986883bbdbcd49a9610ae220f463164a906c1d82fbce6
DIST nullmailer-2.2.tar.gz 257740 BLAKE2B 18821caa1a377a899e3fedc84530d7c672f345cafb627da05e6c7bcd7d2708d54fc4ff4b761a6a23b2ddbabe73514473a5ec2abf3182dce2f5d3d4fbe3618fed SHA512 21b29d59f3c386c13ce4541ae11dc5cd69f842085479d7fc9a69a540abc608ce5c1825f06bd3566536b392931f7eeb1b2d35addd816849e6f431877bb18c8268
-DIST nullmailer-patches-1.13.tar.xz 8384 BLAKE2B 523547f8abf9b5d05938aad1e22e4195ee49cfe392c515df442a26d2cfb79f959c37e8f860fb196e99075aaa6fe437aaec182e1c1e2057d97cc32cba78a200d0 SHA512 393531e39a92b0978bccbcdf123e05b2cdad1ec8e600825cc24177ba414c1f615995c0344291ebb664f42b384a160c0359fec5ba3308cc14cbc9ceb8577d799c
diff --git a/mail-mta/nullmailer/nullmailer-1.13-r5.ebuild b/mail-mta/nullmailer/nullmailer-1.13-r5.ebuild
deleted file mode 100644
index 10966c371bfe..000000000000
--- a/mail-mta/nullmailer/nullmailer-1.13-r5.ebuild
+++ /dev/null
@@ -1,167 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit autotools eutils flag-o-matic multilib systemd user
-
-MY_P="${P/_rc/RC}"
-
-DEBIAN_PV=1.11
-DEBIAN_PR="2"
-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"
-HOMEPAGE="http://untroubled.org/nullmailer/"
-SRC_URI="
- http://untroubled.org/${PN}/archive/${MY_P}.tar.gz
- https://dev.gentoo.org/~jlec/distfiles/${PN}-patches-${PV}.tar.xz"
-# mirror://debian/pool/main/n/${PN}/${DEBIAN_SRC}"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="amd64 ppc x86"
-IUSE="ssl"
-
-DEPEND="
- sys-apps/groff
- ssl? ( net-libs/gnutls )"
-RDEPEND="
- virtual/logger
- virtual/shadow
- 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"
-
-S=${WORKDIR}/${MY_P}
-
-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
-
- # old debian patches from 1.11
- # DO NOT APPLY patch 0009... It breaks
- epatch "${WORKDIR}"/patches/000{1..8}*patch
-
- epatch "${FILESDIR}"/${P}-unistd.h.patch
-
- sed -i.orig \
- -e '/^nullmailer_send_LDADD/s, =, = ../lib/cli++/libcli++.a,' \
- "${S}"/src/Makefile.am || die "Sed failed"
- sed -i.orig \
- -e '/\$(localstatedir)\/trigger/d' \
- "${S}"/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() {
- emake DESTDIR="${D}" localstatedir=/var/nullmailer install
-
- 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
- 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
-
- newinitd "${FILESDIR}"/init.d-nullmailer-r4 nullmailer
- systemd_dounit "${FILESDIR}"/${PN}.service
-}
-
-pkg_postinst() {
- if [ ! -e "${ROOT}"/var/nullmailer/trigger ]; then
- mkfifo "${ROOT}"/var/nullmailer/trigger
- fi
- chown nullmail:nullmail \
- "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue,trigger} || die
- chmod 770 "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue} || die
- chmod 660 "${ROOT}"/var/nullmailer/trigger || die
-
- # This contains passwords, so should be secure
- chmod 0640 "${ROOT}"/etc/nullmailer/remotes || die
- chown root:nullmail "${ROOT}"/etc/nullmailer/remotes || die
-
- 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_postrm() {
- if [[ -e "${ROOT}"/var/nullmailer/trigger ]]; then
- rm "${ROOT}"/var/nullmailer/trigger || die
- fi
-}
-
-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-2.0-r1.ebuild b/mail-mta/nullmailer/nullmailer-2.0-r1.ebuild
deleted file mode 100644
index e13abd28dd3f..000000000000
--- a/mail-mta/nullmailer/nullmailer-2.0-r1.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools eutils flag-o-matic multilib systemd user
-
-DESCRIPTION="Simple relay-only local mail transport agent"
-HOMEPAGE="http://untroubled.org/nullmailer/ https://github.com/bruceg/nullmailer"
-SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE="ssl"
-
-DEPEND="
- sys-apps/groff
- ssl? ( net-libs/gnutls:0= )"
-RDEPEND="
- virtual/logger
- virtual/shadow
- ssl? ( net-libs/gnutls:0= )
- !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/spool/nullmailer nullmail
-}
-
-src_prepare() {
- default
- sed -i.orig \
- -e '/\$(localstatedir)\/trigger/d' \
- "${S}"/Makefile.am || die "Sed failed"
- sed \
- -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \
- -i configure.ac || die
- sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
- sed \
- -e "s#/usr/lib#\0exec#" -e "s#/usr/local#/usr#" \
- -e 's:/usr/etc/:/etc/:g' \
- -i doc/nullmailer-send.8 || die
- eautoreconf
-}
-
-src_configure() {
- # https://github.com/bruceg/nullmailer/pull/31/commits
- append-lfs-flags #471102
- econf \
- --localstatedir="${EPREFIX}"/var \
- $(use_enable ssl tls)
-}
-
-src_install() {
- default
-
- # 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/spool/nullmailer/service{,/log}
-
- insinto /var/spool/nullmailer/service
- newins scripts/nullmailer.run run
- fperms 700 /var/spool/nullmailer/service/run
-
- insinto /var/spool/nullmailer/service/log
- newins scripts/nullmailer-log.run run
- fperms 700 /var/spool/nullmailer/service/log/run
-
- # usability
- dosym /usr/sbin/sendmail usr/$(get_libdir)/sendmail
-
- # permissions stuff
- keepdir /var/log/nullmailer /var/spool/nullmailer/{tmp,queue}
- fperms 770 /var/log/nullmailer
- fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
- fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
-
- newinitd "${FILESDIR}"/init.d-nullmailer-r6 nullmailer
- systemd_dounit scripts/${PN}.service
-}
-
-pkg_postinst() {
- if [ ! -e "${EROOT}var/spool/nullmailer/trigger" ]; then
- mkfifo "${EROOT}var/spool/nullmailer/trigger" || die
- fi
- chown nullmail:nullmail \
- "${EROOT}"var/log/nullmailer \
- "${EROOT}"var/spool/nullmailer/{tmp,queue,trigger} || die
- chmod 770 \
- "${EROOT}"var/log/nullmailer \
- "${EROOT}"var/spool/nullmailer/{tmp,queue} || die
- chmod 660 "${EROOT}"var/spool/nullmailer/trigger || die
-
- # This contains passwords, so should be secure
- chmod 0640 "${EROOT}"etc/nullmailer/remotes || die
- chown root:nullmail "${EROOT}"etc/nullmailer/remotes || die
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To create an initial setup, please do:"
- elog "emerge --config =${CATEGORY}/${PF}"
- fi
-}
-
-pkg_postrm() {
- if [[ -e "${EROOT}var/spool/nullmailer/trigger" ]]; then
- rm "${EROOT}var/spool/nullmailer/trigger" || die
- fi
-}
-
-pkg_config() {
- if [ ! -s "${EROOT}etc/nullmailer/me" ]; then
- einfo "Setting /etc/nullmailer/me"
- hostname --fqdn > "${EROOT}etc/nullmailer/me"
- fi
- if [ ! -s "${EROOT}etc/nullmailer/defaultdomain" ]; then
- einfo "Setting /etc/nullmailer/defaultdomain"
- hostname --domain > "${EROOT}etc/nullmailer/defaultdomain"
- fi
-}
diff --git a/mail-mta/nullmailer/nullmailer-2.0-r2.ebuild b/mail-mta/nullmailer/nullmailer-2.0-r2.ebuild
deleted file mode 100644
index 1da0d4fe1448..000000000000
--- a/mail-mta/nullmailer/nullmailer-2.0-r2.ebuild
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools eutils flag-o-matic multilib systemd user
-
-DESCRIPTION="Simple relay-only local mail transport agent"
-HOMEPAGE="http://untroubled.org/nullmailer/ https://github.com/bruceg/nullmailer"
-SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="ssl test"
-RESTRICT="!test? ( test )"
-
-DEPEND="
- sys-apps/groff
- ssl? ( net-libs/gnutls:0= )
- test? ( sys-apps/ucspi-tcp[ipv6] sys-process/daemontools )"
-RDEPEND="
- virtual/logger
- virtual/shadow
- ssl? ( net-libs/gnutls:0= )
- !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/spool/nullmailer nullmail
-}
-
-src_prepare() {
- default
- sed -i.orig \
- -e '/\$(localstatedir)\/trigger/d' \
- "${S}"/Makefile.am || die "Sed failed"
- sed \
- -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \
- -i configure.ac || die
- sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
- sed \
- -e "s#/usr/lib#\0exec#" -e "s#/usr/local#/usr#" \
- -e 's:/usr/etc/:/etc/:g' \
- -i doc/nullmailer-send.8 || die
- eautoreconf
-}
-
-src_configure() {
- # https://github.com/bruceg/nullmailer/pull/31/commits
- append-lfs-flags #471102
- econf \
- --localstatedir="${EPREFIX}"/var \
- $(use_enable ssl tls)
-}
-
-src_install() {
- default
-
- # 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/spool/nullmailer/service{,/log}
-
- insinto /var/spool/nullmailer/service
- newins scripts/nullmailer.run run
- fperms 700 /var/spool/nullmailer/service/run
-
- insinto /var/spool/nullmailer/service/log
- newins scripts/nullmailer-log.run run
- fperms 700 /var/spool/nullmailer/service/log/run
-
- # usability
- dosym /usr/sbin/sendmail usr/$(get_libdir)/sendmail
-
- # permissions stuff
- keepdir /var/log/nullmailer /var/spool/nullmailer/{tmp,queue}
- fperms 770 /var/log/nullmailer
- fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
- fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
-
- newinitd "${FILESDIR}"/init.d-nullmailer-r6 nullmailer
- systemd_dounit scripts/${PN}.service
-}
-
-pkg_postinst() {
- if [ ! -e "${EROOT}var/spool/nullmailer/trigger" ]; then
- mkfifo "${EROOT}var/spool/nullmailer/trigger" || die
- fi
- chown nullmail:nullmail \
- "${EROOT}"var/log/nullmailer \
- "${EROOT}"var/spool/nullmailer/{tmp,queue,trigger} || die
- chmod 770 \
- "${EROOT}"var/log/nullmailer \
- "${EROOT}"var/spool/nullmailer/{tmp,queue} || die
- chmod 660 "${EROOT}"var/spool/nullmailer/trigger || die
-
- # This contains passwords, so should be secure
- chmod 0640 "${EROOT}"etc/nullmailer/remotes || die
- chown root:nullmail "${EROOT}"etc/nullmailer/remotes || die
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To create an initial setup, please do:"
- elog "emerge --config =${CATEGORY}/${PF}"
- fi
-}
-
-pkg_postrm() {
- if [[ -e "${EROOT}var/spool/nullmailer/trigger" ]]; then
- rm "${EROOT}var/spool/nullmailer/trigger" || die
- fi
-}
-
-pkg_config() {
- if [ ! -s "${EROOT}etc/nullmailer/me" ]; then
- einfo "Setting /etc/nullmailer/me"
- hostname --fqdn > "${EROOT}etc/nullmailer/me"
- fi
- if [ ! -s "${EROOT}etc/nullmailer/defaultdomain" ]; then
- einfo "Setting /etc/nullmailer/defaultdomain"
- hostname --domain > "${EROOT}etc/nullmailer/defaultdomain"
- fi
-}
diff --git a/mail-mta/nullmailer/nullmailer-2.0.ebuild b/mail-mta/nullmailer/nullmailer-2.0.ebuild
deleted file mode 100644
index 9fe5b1675081..000000000000
--- a/mail-mta/nullmailer/nullmailer-2.0.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools eutils flag-o-matic multilib systemd user
-
-DESCRIPTION="Simple relay-only local mail transport agent"
-HOMEPAGE="http://untroubled.org/nullmailer/ https://github.com/bruceg/nullmailer"
-SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="ssl"
-
-DEPEND="
- sys-apps/groff
- ssl? ( net-libs/gnutls:0= )"
-RDEPEND="
- virtual/logger
- virtual/shadow
- ssl? ( net-libs/gnutls:0= )
- !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/spool/nullmailer nullmail
-}
-
-src_prepare() {
- default
- sed -i.orig \
- -e '/\$(localstatedir)\/trigger/d' \
- "${S}"/Makefile.am || die "Sed failed"
- sed \
- -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \
- -i configure.ac || die
- sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
- sed \
- -e "s#/usr/lib#\0exec#" -e "s#/usr/local#/usr#" \
- -e 's:/usr/etc/:/etc/:g' \
- -i doc/nullmailer-send.8 || die
- eautoreconf
-}
-
-src_configure() {
- # https://github.com/bruceg/nullmailer/pull/31/commits
- append-lfs-flags #471102
- econf \
- --localstatedir="${EPREFIX}"/var \
- $(use_enable ssl tls)
-}
-
-src_install() {
- default
-
- # 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/spool/nullmailer/service{,/log}
-
- insinto /var/spool/nullmailer/service
- newins scripts/nullmailer.run run
- fperms 700 /var/spool/nullmailer/service/run
-
- insinto /var/spool/nullmailer/service/log
- newins scripts/nullmailer-log.run run
- fperms 700 /var/spool/nullmailer/service/log/run
-
- # usability
- dosym /usr/sbin/sendmail usr/$(get_libdir)/sendmail
-
- # permissions stuff
- keepdir /var/log/nullmailer /var/spool/nullmailer/{tmp,queue}
- fperms 770 /var/log/nullmailer
- fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
- fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
-
- newinitd "${FILESDIR}"/init.d-nullmailer-r5 nullmailer
- systemd_dounit scripts/${PN}.service
-}
-
-pkg_postinst() {
- if [ ! -e "${EROOT}var/spool/nullmailer/trigger" ]; then
- mkfifo "${EROOT}var/spool/nullmailer/trigger" || die
- fi
- chown nullmail:nullmail \
- "${EROOT}"var/log/nullmailer \
- "${EROOT}"var/spool/nullmailer/{tmp,queue,trigger} || die
- chmod 770 \
- "${EROOT}"var/log/nullmailer \
- "${EROOT}"var/spool/nullmailer/{tmp,queue} || die
- chmod 660 "${EROOT}"var/spool/nullmailer/trigger || die
-
- # This contains passwords, so should be secure
- chmod 0640 "${EROOT}"etc/nullmailer/remotes || die
- chown root:nullmail "${EROOT}"etc/nullmailer/remotes || die
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To create an initial setup, please do:"
- elog "emerge --config =${CATEGORY}/${PF}"
- fi
-}
-
-pkg_postrm() {
- if [[ -e "${EROOT}var/spool/nullmailer/trigger" ]]; then
- rm "${EROOT}var/spool/nullmailer/trigger" || die
- fi
-}
-
-pkg_config() {
- if [ ! -s "${EROOT}etc/nullmailer/me" ]; then
- einfo "Setting /etc/nullmailer/me"
- hostname --fqdn > "${EROOT}etc/nullmailer/me"
- fi
- if [ ! -s "${EROOT}etc/nullmailer/defaultdomain" ]; then
- einfo "Setting /etc/nullmailer/defaultdomain"
- hostname --domain > "${EROOT}etc/nullmailer/defaultdomain"
- fi
-}