Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/nullmailer/
Date: Fri, 09 Jul 2021 22:37:00
Message-Id: 1625870193.b6c1a3d03861a20f38ce9b1de16f80e0ce3c6b30.conikost@gentoo
1 commit: b6c1a3d03861a20f38ce9b1de16f80e0ce3c6b30
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 9 22:06:40 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 9 22:36:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c1a3d0
7
8 mail-mta/nullmailer: drop old version
9
10 Closes: https://bugs.gentoo.org/781320
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 mail-mta/nullmailer/nullmailer-2.2-r1.ebuild | 156 ---------------------------
15 1 file changed, 156 deletions(-)
16
17 diff --git a/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild b/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild
18 deleted file mode 100644
19 index 53c1cabc06f..00000000000
20 --- a/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild
21 +++ /dev/null
22 @@ -1,156 +0,0 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -inherit autotools flag-o-matic multilib systemd user
29 -
30 -DESCRIPTION="Simple relay-only local mail transport agent"
31 -HOMEPAGE="http://untroubled.org/nullmailer/ https://github.com/bruceg/nullmailer"
32 -SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz"
33 -
34 -LICENSE="GPL-2"
35 -SLOT="0"
36 -KEYWORDS="amd64 ~arm ~arm64 ppc x86 ~x64-cygwin"
37 -IUSE="ssl test"
38 -RESTRICT="!test? ( test )"
39 -
40 -DEPEND="
41 - ssl? ( net-libs/gnutls:0= )
42 - test? ( sys-apps/ucspi-tcp[ipv6] sys-process/daemontools )
43 -"
44 -RDEPEND="
45 - virtual/logger
46 - sys-apps/shadow
47 - ssl? ( net-libs/gnutls:0= )
48 - !mail-mta/courier
49 - !mail-mta/esmtp
50 - !mail-mta/exim
51 - !mail-mta/mini-qmail
52 - !mail-mta/msmtp[mta(+)]
53 - !mail-mta/netqmail
54 - !mail-mta/opensmtpd[mta(+)]
55 - !mail-mta/postfix
56 - !mail-mta/qmail-ldap
57 - !mail-mta/sendmail
58 - !mail-mta/ssmtp[mta(+)]
59 -"
60 -
61 -PATCHES=(
62 - "${FILESDIR}/${P}-fix-test-racecondition.patch"
63 - "${FILESDIR}/${P}-disable-dns-using-test.patch"
64 - "${FILESDIR}/${P}-disable-smtp-auth-tests.patch"
65 - "${FILESDIR}/${P}-c++11.patch"
66 -)
67 -
68 -pkg_setup() {
69 - enewgroup nullmail 88
70 - enewuser nullmail 88 -1 /var/spool/nullmailer nullmail
71 -}
72 -
73 -src_prepare() {
74 - default
75 - sed -i.orig \
76 - -e '/\$(localstatedir)\/trigger/d' \
77 - "${S}"/Makefile.am || die
78 - sed \
79 - -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \
80 - -i configure.ac || die
81 - sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
82 - sed \
83 - -e "s#/usr/local#/usr#" \
84 - -e 's:/usr/etc/:/etc/:g' \
85 - -i doc/nullmailer-send.8 || die
86 - eautoreconf
87 -}
88 -
89 -src_configure() {
90 - # https://github.com/bruceg/nullmailer/pull/31/commits
91 - append-lfs-flags #471102
92 - econf \
93 - --localstatedir="${EPREFIX}"/var \
94 - $(use_enable ssl tls)
95 -}
96 -
97 -src_install() {
98 - default
99 -
100 - # A small bit of sample config
101 - insinto /etc/nullmailer
102 - newins "${FILESDIR}"/remotes.sample-2.0 remotes
103 -
104 - # This contains passwords, so should be secure
105 - fperms 0640 /etc/nullmailer/remotes
106 - fowners root:nullmail /etc/nullmailer/remotes
107 -
108 - # daemontools stuff
109 - dodir /var/spool/nullmailer/service{,/log}
110 -
111 - insinto /var/spool/nullmailer/service
112 - newins scripts/nullmailer.run run
113 - fperms 700 /var/spool/nullmailer/service/run
114 -
115 - insinto /var/spool/nullmailer/service/log
116 - newins scripts/nullmailer-log.run run
117 - fperms 700 /var/spool/nullmailer/service/log/run
118 -
119 - # usability
120 - dosym ../sbin/sendmail usr/$(get_libdir)/sendmail
121 -
122 - # permissions stuff
123 - keepdir /var/log/nullmailer /var/spool/nullmailer/{tmp,queue,failed}
124 - fperms 770 /var/log/nullmailer
125 - fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
126 - fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
127 -
128 - newinitd "${FILESDIR}"/init.d-nullmailer-r6 nullmailer
129 - systemd_dounit scripts/${PN}.service
130 -}
131 -
132 -pkg_postinst() {
133 - if [[ ! -e ${EROOT}/var/spool/nullmailer/trigger ]]; then
134 - mkfifo --mode=0660 "${EROOT}/var/spool/nullmailer/trigger" || die
135 - fi
136 - chown nullmail:nullmail \
137 - "${EROOT}"/var/log/nullmailer \
138 - "${EROOT}"/var/spool/nullmailer/{tmp,queue,failed,trigger} || die
139 - chmod 770 \
140 - "${EROOT}"/var/log/nullmailer \
141 - "${EROOT}"/var/spool/nullmailer/{tmp,queue,failed} || die
142 - chmod 660 "${EROOT}"/var/spool/nullmailer/trigger || die
143 -
144 - # This contains passwords, so should be secure
145 - chmod 0640 "${EROOT}"/etc/nullmailer/remotes || die
146 - chown root:nullmail "${EROOT}"/etc/nullmailer/remotes || die
147 -
148 - if [[ -z ${REPLACING_VERSIONS} ]]; then
149 - elog "To create an initial setup, please do:"
150 - elog "emerge --config =${CATEGORY}/${PF}"
151 - fi
152 -}
153 -
154 -pkg_postrm() {
155 - if [[ -e ${EROOT}/var/spool/nullmailer/trigger ]]; then
156 - rm "${EROOT}/var/spool/nullmailer/trigger" || die
157 - fi
158 -}
159 -
160 -pkg_config() {
161 - if [[ ! -s ${EROOT}/etc/nullmailer/me ]]; then
162 - einfo "Setting /etc/nullmailer/me"
163 - hostname --fqdn > "${EROOT}/etc/nullmailer/me"
164 - if [[ ! -s ${EROOT}/etc/nullmailer/me ]]; then
165 - eerror "Got no output from 'hostname --fqdn'"
166 - fi
167 - fi
168 - if [[ ! -s ${EROOT}/etc/nullmailer/defaultdomain ]]; then
169 - einfo "Setting /etc/nullmailer/defaultdomain"
170 - hostname --domain > "${EROOT}/etc/nullmailer/defaultdomain"
171 - if [[ ! -s ${EROOT}/etc/nullmailer/me ]]; then
172 - eerror "Got no output from 'hostname --domain'"
173 - fi
174 - fi
175 - if ! grep -q '^[ \t]*[^# \t]' "${EROOT}/etc/nullmailer/remotes"; then
176 - ewarn "Remember to tweak ${EROOT}/etc/nullmailer/remotes yourself!"
177 - fi
178 -}