Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/amavisd-new/
Date: Mon, 07 Sep 2020 20:05:37
Message-Id: 1599508793.8d366df8f7d8731b360ca4f78f9e06e20022fa7b.chewi@gentoo
1 commit: 8d366df8f7d8731b360ca4f78f9e06e20022fa7b
2 Author: Ralph Seichter <github <AT> seichter <DOT> de>
3 AuthorDate: Sun Sep 6 21:27:04 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 7 19:59:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d366df8
7
8 mail-filter/amavisd-new: Remove obsolete ebuilds
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de>
12 Closes: https://github.com/gentoo/gentoo/pull/17446
13 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
14
15 mail-filter/amavisd-new/Manifest | 1 -
16 .../amavisd-new/amavisd-new-2.11.1-r3.ebuild | 197 ---------------------
17 mail-filter/amavisd-new/amavisd-new-2.12.0.ebuild | 193 --------------------
18 3 files changed, 391 deletions(-)
19
20 diff --git a/mail-filter/amavisd-new/Manifest b/mail-filter/amavisd-new/Manifest
21 index e9ebe5f421b..7fa6cba45aa 100644
22 --- a/mail-filter/amavisd-new/Manifest
23 +++ b/mail-filter/amavisd-new/Manifest
24 @@ -1,2 +1 @@
25 -DIST amavis-amavisd-new-2.11.1.tar.gz 1093467 BLAKE2B 1e43ddea86ff269b02cbbcd125d913c51b66728b1063cde6ca3f3f24f1bd36f9f3c7f51a8baf509d2aca0d41a07a00bb9abe08dd70724391c552634715d01a75 SHA512 6ef291868908bd13d6ce913f5c8c3898b35eba490877e8eded3951a32be7549145df5db1409f124a3631ec88dd7eeb9457ce2b063ae3e3bccd76cc2a9b8741ae
26 DIST amavis-v2.12.0.tar.bz2 873702 BLAKE2B cae44bb9cfa9125f44b1ef548947a5f826e91fc349b12a52f0267933e65c450a708c7a18e5ae90ee1a0d452d0b3d30a6c1cabcc310e3609de1eda8c35f222306 SHA512 f8d2dfb6e7d694c76c0ebca7592a3c85ff9b4911cbe43b3eb6d5002541bf036adfbf47c18df4b10c72bcceee0d8701b8c474e6432c5c136ca25170e42098d844
27
28 diff --git a/mail-filter/amavisd-new/amavisd-new-2.11.1-r3.ebuild b/mail-filter/amavisd-new/amavisd-new-2.11.1-r3.ebuild
29 deleted file mode 100644
30 index ba4e5ba01f5..00000000000
31 --- a/mail-filter/amavisd-new/amavisd-new-2.11.1-r3.ebuild
32 +++ /dev/null
33 @@ -1,197 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=6
38 -inherit systemd user
39 -
40 -DESCRIPTION="High-performance interface between the MTA and content checkers"
41 -HOMEPAGE="https://gitlab.com/amavis/amavis"
42 -SRC_URI="https://gitlab.com/amavis/amavis/-/archive/${P}/amavis-${P}.tar.gz"
43 -
44 -LICENSE="GPL-2 BSD-2"
45 -SLOT="0"
46 -KEYWORDS="amd64 ~ppc ppc64 sparc x86"
47 -IUSE="clamav courier dkim ldap mysql postgres qmail razor snmp spamassassin zmq"
48 -
49 -DEPEND=">=sys-apps/sed-4
50 - >=dev-lang/perl-5.10.0"
51 -
52 -RDEPEND="${DEPEND}
53 - >=sys-apps/coreutils-5.0-r3
54 - app-arch/cpio
55 - app-arch/gzip
56 - app-arch/bzip2
57 - app-arch/arc
58 - app-arch/cabextract
59 - app-arch/lha
60 - app-arch/lrzip
61 - app-arch/lzop
62 - app-arch/ncompress
63 - app-arch/p7zip
64 - app-arch/pax
65 - app-arch/unarj
66 - app-arch/unrar
67 - app-arch/xz-utils
68 - app-arch/zoo
69 - net-mail/ripole
70 - >=dev-perl/Archive-Zip-1.14
71 - >=virtual/perl-IO-Compress-1.35
72 - >=virtual/perl-Compress-Raw-Zlib-2.017
73 - net-mail/tnef
74 - virtual/perl-MIME-Base64
75 - >=dev-perl/MIME-tools-5.415
76 - >=dev-perl/MailTools-1.58
77 - >=dev-perl/Net-Server-0.91
78 - virtual/perl-Digest-MD5
79 - dev-perl/IO-stringy
80 - virtual/perl-IO-Socket-IP
81 - >=virtual/perl-Time-HiRes-1.49
82 - dev-perl/Unix-Syslog
83 - dev-perl/Net-LibIDN
84 - dev-perl/File-LibMagic
85 - >=sys-libs/db-4.4.20
86 - dev-perl/BerkeleyDB
87 - dev-perl/Convert-BinHex
88 - >=dev-perl/Mail-DKIM-0.31
89 - virtual/perl-File-Temp
90 - dev-perl/Net-SSLeay
91 - dev-perl/IO-Socket-SSL
92 - virtual/mta
93 - clamav? ( app-antivirus/clamav )
94 - ldap? ( >=dev-perl/perl-ldap-0.33 )
95 - mysql? ( dev-perl/DBD-mysql )
96 - postgres? ( dev-perl/DBD-Pg )
97 - razor? ( mail-filter/razor )
98 - snmp? ( net-analyzer/net-snmp[perl] )
99 - spamassassin? ( mail-filter/spamassassin dev-perl/Image-Info )
100 - zmq? ( dev-perl/ZMQ-LibZMQ3 )"
101 -
102 -AMAVIS_ROOT="/var/amavis"
103 -S="${WORKDIR}/amavis-${P}"
104 -
105 -pkg_setup() {
106 - # Create the user beforehand so that we can install the config file
107 - # (and some directories) with group "amavis" in src_install().
108 - enewgroup amavis
109 - enewuser amavis -1 -1 "${AMAVIS_ROOT}" amavis
110 -}
111 -
112 -src_prepare() {
113 - # amavisd-new version 2.11.0 breaks DKIM signing of outbound mail,
114 - # see https://bugs.gentoo.org/603582
115 - eapply "${FILESDIR}/amavisd-2.11.0-dkim.patch"
116 -
117 - if use courier ; then
118 - eapply -p0 amavisd-new-courier.patch
119 - fi
120 -
121 - if use qmail ; then
122 - eapply -p0 amavisd-new-qmqpqq.patch
123 - fi
124 -
125 - # We need to fix the daemon_user and daemon_group in amavis-mc even
126 - # though we're going to run it in the foreground, because it calls
127 - # "drop_priv" unconditionally and will crash if its user/group
128 - # doesn't exist.
129 - sed -i \
130 - -e '/daemon/s/vscan/amavis/' \
131 - -e "s:'/var/virusmails':\"\$MYHOME/quarantine\":" \
132 - "${S}/amavisd.conf" "${S}/amavis-mc" || die "missing conf file"
133 -
134 - if ! use dkim ; then
135 - sed -i -e '/enable_dkim/s/1/0/' "${S}/amavisd.conf" \
136 - || die "missing conf file - dkim"
137 - fi
138 -
139 - if use zmq ; then
140 - sed -i -e '/enable_zmq/s/# //' "${S}/amavisd.conf" \
141 - || die "missing conf file - zmq"
142 - fi
143 -
144 - if ! use spamassassin ; then
145 - sed -i -e \
146 - "/^#[[:space:]]*@bypass_spam_checks_maps[[:space:]]*=[[:space:]]*(1)/s/^#//" \
147 - "${S}/amavisd.conf" || die "missing conf file - sa"
148 - fi
149 -
150 - eapply_user
151 -}
152 -
153 -src_install() {
154 - dosbin amavisd{,-agent,-nanny,-release,-signer,-status}
155 - dobin p0f-analyzer.pl amavisd-submit
156 -
157 - if use snmp ; then
158 - dosbin amavisd-snmp-subagent
159 - newinitd "${FILESDIR}/amavisd-snmp-subagent.initd" \
160 - amavisd-snmp-subagent
161 - dodoc AMAVIS-MIB.txt
162 -
163 - if use zmq ; then
164 - dosbin amavisd-snmp-subagent-zmq
165 - newinitd "${FILESDIR}/amavisd-snmp-subagent-zmq.initd" \
166 - amavisd-snmp-subagent-zmq
167 - fi
168 - fi
169 -
170 - if use zmq ; then
171 - dosbin amavis-services amavis-mc
172 - newinitd "${FILESDIR}/amavis-mc.initd-r1" amavis-mc
173 - fi
174 -
175 - if use ldap ; then
176 - dodir /etc/openldap/schema
177 - insinto /etc/openldap/schema
178 - newins LDAP.schema "${PN}.schema"
179 - fi
180 -
181 - # The config file should be root:amavis so that the amavis user can
182 - # read (only) it after dropping privileges. And of course he should
183 - # own everything in his home directory.
184 - insinto /etc
185 - insopts -m0640 -g amavis
186 - doins amavisd.conf
187 -
188 - # Implementation detail? Keepdir calls dodir under the hood.
189 - diropts -o amavis -g amavis
190 - keepdir "${AMAVIS_ROOT}"/{,db,quarantine,tmp,var}
191 -
192 - # BEWARE:
193 - #
194 - # Anything below this line is using the mangled insopts/diropts from
195 - # above!
196 - #
197 -
198 - newinitd "${FILESDIR}/amavisd.initd-r2" amavisd
199 -
200 - systemd_newunit "${FILESDIR}/amavisd.service-r1" amavisd.service
201 -
202 - dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES TODO \
203 - amavisd.conf-default amavisd-custom.conf
204 -
205 - docinto README_FILES
206 - dodoc README_FILES/README*
207 - dodoc -r README_FILES/*.{html,css}
208 - docinto README_FILES/images
209 - dodoc README_FILES/images/*.png
210 - docinto README_FILES/images/callouts
211 - dodoc README_FILES/images/callouts/*.png
212 -
213 - docinto test-messages
214 - dodoc test-messages/README
215 - dodoc test-messages/sample.tar.gz.compl
216 -}
217 -
218 -pkg_preinst() {
219 - # TODO: the following is done as root, but should probably be done
220 - # as the amavis user.
221 - if use razor ; then
222 - if [ ! -d "${ROOT}${AMAVIS_ROOT}/.razor" ] ; then
223 - elog "Setting up initial razor config files..."
224 -
225 - razor-admin -create -home="${D}/${AMAVIS_ROOT}/.razor"
226 - sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \
227 - "${D}/${AMAVIS_ROOT}/.razor/razor-agent.conf" || die
228 - fi
229 - fi
230 -}
231
232 diff --git a/mail-filter/amavisd-new/amavisd-new-2.12.0.ebuild b/mail-filter/amavisd-new/amavisd-new-2.12.0.ebuild
233 deleted file mode 100644
234 index e38d6d4fe4f..00000000000
235 --- a/mail-filter/amavisd-new/amavisd-new-2.12.0.ebuild
236 +++ /dev/null
237 @@ -1,193 +0,0 @@
238 -# Copyright 1999-2020 Gentoo Authors
239 -# Distributed under the terms of the GNU General Public License v2
240 -
241 -EAPI=7
242 -inherit systemd user
243 -
244 -DESCRIPTION="High-performance interface between the MTA and content checkers"
245 -HOMEPAGE="https://gitlab.com/amavis/amavis"
246 -SRC_URI="https://gitlab.com/amavis/amavis/-/archive/v${PV}/amavis-v${PV}.tar.bz2"
247 -
248 -LICENSE="GPL-2 BSD-2"
249 -SLOT="0"
250 -KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
251 -IUSE="clamav courier dkim ldap mysql postgres qmail razor rspamd rspamd-https snmp spamassassin zmq"
252 -
253 -MY_RSPAMD_DEPEND="( dev-perl/JSON dev-perl/HTTP-Message dev-perl/LWP-UserAgent-Determined )"
254 -RDEPEND=">=dev-lang/perl-5.10.0
255 - app-arch/arc
256 - app-arch/bzip2
257 - app-arch/cabextract
258 - app-arch/cpio
259 - app-arch/gzip
260 - app-arch/lha
261 - app-arch/lrzip
262 - app-arch/lzop
263 - app-arch/ncompress
264 - app-arch/p7zip
265 - app-arch/pax
266 - app-arch/unarj
267 - app-arch/unrar
268 - app-arch/xz-utils
269 - app-arch/zoo
270 - clamav? ( app-antivirus/clamav )
271 - >=dev-perl/Archive-Zip-1.14
272 - dev-perl/BerkeleyDB
273 - dev-perl/Convert-BinHex
274 - dev-perl/File-LibMagic
275 - dev-perl/IO-Socket-SSL
276 - dev-perl/IO-stringy
277 - >=dev-perl/Mail-DKIM-0.31
278 - >=dev-perl/MailTools-1.58
279 - >=dev-perl/MIME-tools-5.415
280 - dev-perl/Net-LibIDN
281 - >=dev-perl/Net-Server-0.91
282 - dev-perl/Net-SSLeay
283 - dev-perl/Unix-Syslog
284 - ldap? ( >=dev-perl/perl-ldap-0.33 )
285 - mysql? ( dev-perl/DBD-mysql )
286 - net-mail/ripole
287 - net-mail/tnef
288 - postgres? ( dev-perl/DBD-Pg )
289 - razor? ( mail-filter/razor )
290 - rspamd? ( ${MY_RSPAMD_DEPEND} )
291 - rspamd-https? ( ${MY_RSPAMD_DEPEND} dev-perl/LWP-Protocol-https dev-perl/Net-SSLeay )
292 - snmp? ( net-analyzer/net-snmp[perl] )
293 - spamassassin? ( mail-filter/spamassassin dev-perl/Image-Info )
294 - >=sys-apps/coreutils-5.0-r3
295 - >=sys-libs/db-4.4.20
296 - virtual/mta
297 - >=virtual/perl-Compress-Raw-Zlib-2.017
298 - virtual/perl-Digest-MD5
299 - virtual/perl-File-Temp
300 - >=virtual/perl-IO-Compress-1.35
301 - virtual/perl-IO-Socket-IP
302 - virtual/perl-MIME-Base64
303 - >=virtual/perl-Time-HiRes-1.49
304 - zmq? ( dev-perl/ZMQ-LibZMQ3 )"
305 -
306 -AMAVIS_ROOT="/var/amavis"
307 -S="${WORKDIR}/amavis-v${PV}"
308 -
309 -pkg_setup() {
310 - # Create the user beforehand so that we can install the config file
311 - # (and some directories) with group "amavis" in src_install().
312 - enewgroup amavis
313 - enewuser amavis -1 -1 "${AMAVIS_ROOT}" amavis
314 -}
315 -
316 -src_prepare() {
317 - if use courier ; then
318 - eapply -p0 amavisd-new-courier.patch
319 - fi
320 -
321 - if use qmail ; then
322 - eapply -p0 amavisd-new-qmqpqq.patch
323 - fi
324 -
325 - # We need to fix the daemon_user and daemon_group in amavis-mc even
326 - # though we're going to run it in the foreground, because it calls
327 - # "drop_priv" unconditionally and will crash if its user/group
328 - # doesn't exist.
329 - sed -i \
330 - -e '/daemon/s/vscan/amavis/' \
331 - -e "s:'/var/virusmails':\"\$MYHOME/quarantine\":" \
332 - "${S}/amavisd.conf" "${S}/amavis-mc" || die "missing conf file"
333 -
334 - if ! use dkim ; then
335 - sed -i -e '/enable_dkim/s/1/0/' "${S}/amavisd.conf" \
336 - || die "missing conf file - dkim"
337 - fi
338 -
339 - if use zmq ; then
340 - sed -i -e '/enable_zmq/s/# //' "${S}/amavisd.conf" \
341 - || die "missing conf file - zmq"
342 - fi
343 -
344 - if ! use spamassassin ; then
345 - sed -i -e \
346 - "/^#[[:space:]]*@bypass_spam_checks_maps[[:space:]]*=[[:space:]]*(1)/s/^#//" \
347 - "${S}/amavisd.conf" || die "missing conf file - sa"
348 - fi
349 -
350 - eapply_user
351 -}
352 -
353 -src_install() {
354 - dosbin amavisd{,-agent,-nanny,-release,-signer,-status}
355 - dobin p0f-analyzer.pl amavisd-submit
356 -
357 - if use snmp ; then
358 - dosbin amavisd-snmp-subagent
359 - newinitd "${FILESDIR}/amavisd-snmp-subagent.initd" \
360 - amavisd-snmp-subagent
361 - dodoc AMAVIS-MIB.txt
362 -
363 - if use zmq ; then
364 - dosbin amavisd-snmp-subagent-zmq
365 - newinitd "${FILESDIR}/amavisd-snmp-subagent-zmq.initd" \
366 - amavisd-snmp-subagent-zmq
367 - fi
368 - fi
369 -
370 - if use zmq ; then
371 - dosbin amavis-services amavis-mc
372 - newinitd "${FILESDIR}/amavis-mc.initd-r1" amavis-mc
373 - fi
374 -
375 - if use ldap ; then
376 - dodir /etc/openldap/schema
377 - insinto /etc/openldap/schema
378 - newins LDAP.schema "${PN}.schema"
379 - fi
380 -
381 - # The config file should be root:amavis so that the amavis user can
382 - # read (only) it after dropping privileges. And of course he should
383 - # own everything in his home directory.
384 - insinto /etc
385 - insopts -m0640 -g amavis
386 - doins amavisd.conf
387 -
388 - # Implementation detail? Keepdir calls dodir under the hood.
389 - diropts -o amavis -g amavis
390 - keepdir "${AMAVIS_ROOT}"/{,db,quarantine,tmp,var}
391 -
392 - # BEWARE:
393 - #
394 - # Anything below this line is using the mangled insopts/diropts from
395 - # above!
396 - #
397 -
398 - newinitd "${FILESDIR}/amavisd.initd-r2" amavisd
399 -
400 - systemd_newunit "${FILESDIR}/amavisd.service-r1" amavisd.service
401 -
402 - dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES TODO \
403 - amavisd.conf-default amavisd-custom.conf
404 -
405 - docinto README_FILES
406 - dodoc README_FILES/README*
407 - dodoc -r README_FILES/*.{html,css}
408 - docinto README_FILES/images
409 - dodoc README_FILES/images/*.png
410 - docinto README_FILES/images/callouts
411 - dodoc README_FILES/images/callouts/*.png
412 -
413 - docinto test-messages
414 - dodoc test-messages/README
415 - dodoc test-messages/sample.tar.gz.compl
416 -}
417 -
418 -pkg_preinst() {
419 - # TODO: the following is done as root, but should probably be done
420 - # as the amavis user.
421 - if use razor ; then
422 - if [ ! -d "${ROOT}${AMAVIS_ROOT}/.razor" ] ; then
423 - elog "Setting up initial razor config files..."
424 -
425 - razor-admin -create -home="${D}/${AMAVIS_ROOT}/.razor"
426 - sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \
427 - "${D}/${AMAVIS_ROOT}/.razor/razor-agent.conf" || die
428 - fi
429 - fi
430 -}