1 |
commit: 803388b9528261f10d967edb3f808f4064149a50 |
2 |
Author: Ralph Seichter <github <AT> seichter <DOT> de> |
3 |
AuthorDate: Tue Mar 1 13:33:59 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 1 13:55:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803388b9 |
7 |
|
8 |
mail-filter/amavisd-new: Remove obsolete ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/24383 |
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
mail-filter/amavisd-new/Manifest | 1 - |
16 |
mail-filter/amavisd-new/amavisd-new-2.12.1.ebuild | 186 ---------------------- |
17 |
2 files changed, 187 deletions(-) |
18 |
|
19 |
diff --git a/mail-filter/amavisd-new/Manifest b/mail-filter/amavisd-new/Manifest |
20 |
index 5942e382bbb0..b36b8358421f 100644 |
21 |
--- a/mail-filter/amavisd-new/Manifest |
22 |
+++ b/mail-filter/amavisd-new/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST amavis-v2.12.1.tar.bz2 874339 BLAKE2B 23197298c448bae7bfaed62fda5065f507556737250caddde0d3bdec5fe219ab8834d4cbb1e06f443f2fc00b643d12d96447f58f37198b3ae7b96985f29ef2bf SHA512 8a2cef6ff6e2fa7f5d2e00a433a3f3ec7a15c47e21deadf6a25f50e0e29ad20d8641f474cd5d0dfcd3715458b07f08272f6df35efb2137b7c6a74a460cb91013 |
25 |
DIST amavis-v2.12.2.tar.bz2 874946 BLAKE2B 0b52cb23e11d0b7b346e53b979b580b76f51ce22516a8e2ef6c6d579f1693a9d175ebd92e9cba74e4bed68b012250808e2f827182dddf5addbbb40f2602294f7 SHA512 8a6ab4441a9ef2ee757c839f656bc16f00dd9213f6cc0bb976d7f2b76793adf023d33a42099f07b0dae13281171db9ba0405028882a86e2230126e8d6a29a4ff |
26 |
|
27 |
diff --git a/mail-filter/amavisd-new/amavisd-new-2.12.1.ebuild b/mail-filter/amavisd-new/amavisd-new-2.12.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 30aa24ba326f..000000000000 |
30 |
--- a/mail-filter/amavisd-new/amavisd-new-2.12.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,186 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-inherit systemd |
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/v${PV}/amavis-v${PV}.tar.bz2" |
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 rspamd rspamd-https snmp spamassassin" |
48 |
- |
49 |
-MY_RSPAMD_DEPEND="dev-perl/HTTP-Message |
50 |
- dev-perl/JSON |
51 |
- dev-perl/LWP-UserAgent-Determined" |
52 |
-DEPEND="acct-user/amavis" |
53 |
-RDEPEND="${DEPEND} |
54 |
- app-arch/arc |
55 |
- app-arch/bzip2 |
56 |
- app-arch/cabextract |
57 |
- app-arch/cpio |
58 |
- app-arch/gzip |
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/arj |
66 |
- app-arch/unrar |
67 |
- app-arch/xz-utils |
68 |
- app-arch/zoo |
69 |
- dev-lang/perl:* |
70 |
- dev-perl/Archive-Zip |
71 |
- dev-perl/BerkeleyDB |
72 |
- dev-perl/Convert-BinHex |
73 |
- dev-perl/File-LibMagic |
74 |
- dev-perl/IO-Socket-SSL |
75 |
- dev-perl/IO-stringy |
76 |
- >=dev-perl/Mail-DKIM-0.31 |
77 |
- >=dev-perl/MailTools-1.58 |
78 |
- >=dev-perl/MIME-tools-5.415 |
79 |
- dev-perl/Net-LibIDN |
80 |
- >=dev-perl/Net-Server-0.91 |
81 |
- dev-perl/Net-SSLeay |
82 |
- dev-perl/Unix-Syslog |
83 |
- net-mail/ripole |
84 |
- net-mail/tnef |
85 |
- >=sys-apps/coreutils-5.0-r3 |
86 |
- >=sys-libs/db-4.4.20 |
87 |
- virtual/mta |
88 |
- virtual/perl-Compress-Raw-Zlib |
89 |
- virtual/perl-Digest-MD5 |
90 |
- virtual/perl-File-Temp |
91 |
- virtual/perl-IO-Compress |
92 |
- virtual/perl-IO-Socket-IP |
93 |
- virtual/perl-MIME-Base64 |
94 |
- virtual/perl-Time-HiRes |
95 |
- clamav? ( app-antivirus/clamav ) |
96 |
- ldap? ( >=dev-perl/perl-ldap-0.33 ) |
97 |
- mysql? ( dev-perl/DBD-mysql ) |
98 |
- postgres? ( dev-perl/DBD-Pg ) |
99 |
- razor? ( mail-filter/razor ) |
100 |
- rspamd? ( ${MY_RSPAMD_DEPEND} ) |
101 |
- rspamd-https? ( ${MY_RSPAMD_DEPEND} |
102 |
- dev-perl/LWP-Protocol-https |
103 |
- dev-perl/Net-SSLeay ) |
104 |
- snmp? ( net-analyzer/net-snmp[perl] ) |
105 |
- spamassassin? ( mail-filter/spamassassin dev-perl/Image-Info )" |
106 |
- |
107 |
-AMAVIS_ROOT="/var/lib/amavishome" |
108 |
-S="${WORKDIR}/amavis-v${PV}" |
109 |
- |
110 |
-src_prepare() { |
111 |
- if use courier ; then |
112 |
- eapply -p0 amavisd-new-courier.patch |
113 |
- fi |
114 |
- |
115 |
- if use qmail ; then |
116 |
- eapply -p0 amavisd-new-qmqpqq.patch |
117 |
- fi |
118 |
- |
119 |
- # We need to fix the daemon_user and daemon_group in amavis-mc even |
120 |
- # though we're going to run it in the foreground, because it calls |
121 |
- # "drop_priv" unconditionally and will crash if its user/group |
122 |
- # doesn't exist. |
123 |
- sed -i \ |
124 |
- -e '/daemon/s/vscan/amavis/' \ |
125 |
- -e "s:'/var/virusmails':\"\$MYHOME/quarantine\":" \ |
126 |
- "${S}/amavisd.conf" "${S}/amavis-mc" || die "missing conf file" |
127 |
- |
128 |
- if ! use dkim ; then |
129 |
- sed -i -e '/enable_dkim/s/1/0/' "${S}/amavisd.conf" \ |
130 |
- || die "missing conf file - dkim" |
131 |
- fi |
132 |
- |
133 |
- if ! use spamassassin ; then |
134 |
- sed -i -e \ |
135 |
- "/^#[[:space:]]*@bypass_spam_checks_maps[[:space:]]*=[[:space:]]*(1)/s/^#//" \ |
136 |
- "${S}/amavisd.conf" || die "missing conf file - sa" |
137 |
- fi |
138 |
- |
139 |
- eapply_user |
140 |
-} |
141 |
- |
142 |
-src_install() { |
143 |
- dosbin amavisd{,-agent,-nanny,-release,-signer,-status} |
144 |
- dobin p0f-analyzer.pl amavisd-submit |
145 |
- |
146 |
- if use snmp ; then |
147 |
- dosbin amavisd-snmp-subagent |
148 |
- newinitd "${FILESDIR}/amavisd-snmp-subagent.initd" \ |
149 |
- amavisd-snmp-subagent |
150 |
- dodoc AMAVIS-MIB.txt |
151 |
- fi |
152 |
- |
153 |
- if use ldap ; then |
154 |
- insinto /etc/openldap/schema |
155 |
- newins LDAP.schema "${PN}.schema" |
156 |
- fi |
157 |
- |
158 |
- # The config file should be root:amavis so that the amavis user can |
159 |
- # read (only) it after dropping privileges. And of course he should |
160 |
- # own everything in his home directory. |
161 |
- insinto /etc |
162 |
- insopts -m0640 -g amavis |
163 |
- doins amavisd.conf |
164 |
- |
165 |
- # Implementation detail? Keepdir calls dodir under the hood. |
166 |
- diropts -o amavis -g amavis |
167 |
- keepdir "${AMAVIS_ROOT}"/{,db,quarantine,tmp,var} |
168 |
- |
169 |
- # BEWARE: |
170 |
- # |
171 |
- # Anything below this line is using the mangled insopts/diropts from |
172 |
- # above! |
173 |
- # |
174 |
- |
175 |
- newinitd "${FILESDIR}/amavisd.initd-r2" amavisd |
176 |
- |
177 |
- systemd_newunit "${FILESDIR}/amavisd.service-r1" amavisd.service |
178 |
- |
179 |
- dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES TODO \ |
180 |
- amavisd.conf-default amavisd-custom.conf |
181 |
- |
182 |
- docinto README_FILES |
183 |
- dodoc README_FILES/README* |
184 |
- dodoc -r README_FILES/*.{html,css} |
185 |
- docinto README_FILES/images |
186 |
- dodoc README_FILES/images/*.png |
187 |
- docinto README_FILES/images/callouts |
188 |
- dodoc README_FILES/images/callouts/*.png |
189 |
- |
190 |
- docinto test-messages |
191 |
- dodoc test-messages/README |
192 |
- dodoc test-messages/sample.tar.gz.compl |
193 |
-} |
194 |
- |
195 |
-pkg_preinst() { |
196 |
- # TODO: the following is done as root, but should probably be done |
197 |
- # as the amavis user. |
198 |
- if use razor ; then |
199 |
- if [ ! -d "${ROOT}${AMAVIS_ROOT}/.razor" ] ; then |
200 |
- elog "Setting up initial razor config files..." |
201 |
- |
202 |
- razor-admin -create -home="${D}/${AMAVIS_ROOT}/.razor" |
203 |
- sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \ |
204 |
- "${D}/${AMAVIS_ROOT}/.razor/razor-agent.conf" || die |
205 |
- fi |
206 |
- fi |
207 |
-} |
208 |
- |
209 |
-pkg_postinst() { |
210 |
- local d="/var/amavis" |
211 |
- if [ -d ${d} ]; then |
212 |
- elog "Existing data found. Please make sure to manually copy it to amavis' new" |
213 |
- elog "home directory by executing the following command as root from a shell:" |
214 |
- elog |
215 |
- elog " cp -a ${d}/* ${d}/.??* ${AMAVIS_ROOT}/ && rm -r ${d}" |
216 |
- elog |
217 |
- fi |
218 |
-} |