Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/amavisd-new/
Date: Sun, 24 Feb 2019 01:42:02
Message-Id: 1550972362.ca14d145f771fb8c26f40a260550484c3cfef85e.dilfridge@gentoo
1 commit: ca14d145f771fb8c26f40a260550484c3cfef85e
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 24 01:39:22 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 24 01:39:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca14d145
7
8 mail-filter/amavisd-new: Remove old
9
10 Bug: https://bugs.gentoo.org/669206
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
13
14 mail-filter/amavisd-new/Manifest | 1 -
15 .../amavisd-new/amavisd-new-2.11.0-r3.ebuild | 180 ---------------------
16 2 files changed, 181 deletions(-)
17
18 diff --git a/mail-filter/amavisd-new/Manifest b/mail-filter/amavisd-new/Manifest
19 index 7b3a4228338..276f10f8e9d 100644
20 --- a/mail-filter/amavisd-new/Manifest
21 +++ b/mail-filter/amavisd-new/Manifest
22 @@ -1,2 +1 @@
23 DIST amavis-amavisd-new-2.11.1.tar.gz 1093467 BLAKE2B 1e43ddea86ff269b02cbbcd125d913c51b66728b1063cde6ca3f3f24f1bd36f9f3c7f51a8baf509d2aca0d41a07a00bb9abe08dd70724391c552634715d01a75 SHA512 6ef291868908bd13d6ce913f5c8c3898b35eba490877e8eded3951a32be7549145df5db1409f124a3631ec88dd7eeb9457ce2b063ae3e3bccd76cc2a9b8741ae
24 -DIST amavisd-new-2.11.0.tar.xz 780548 BLAKE2B 59cea5219a737275411c08c7d137ff2109ebbfee8f5f567d80e0cd73cfbb22887dd186383bfd02ad9880e099e0c06b829de43b9e12dbc3151813533166e51654 SHA512 a33292c976abf54db9475392069658c926e7a6f11a4970bbe353b34b3343388bc83b40eda4729f8efa735a3a6e23fd1ed83487f6f7ccf1e9f0903220e6d26957
25
26 diff --git a/mail-filter/amavisd-new/amavisd-new-2.11.0-r3.ebuild b/mail-filter/amavisd-new/amavisd-new-2.11.0-r3.ebuild
27 deleted file mode 100644
28 index 7ccaa3f1f4d..00000000000
29 --- a/mail-filter/amavisd-new/amavisd-new-2.11.0-r3.ebuild
30 +++ /dev/null
31 @@ -1,180 +0,0 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -inherit systemd user
37 -
38 -MY_P="${P/_/-}"
39 -DESCRIPTION="High-performance interface between the MTA and content checkers"
40 -HOMEPAGE="https://www.ijs.si/software/amavisd/"
41 -SRC_URI="https://www.ijs.si/software/amavisd/${MY_P}.tar.xz"
42 -PORTAGE_DOHTML_WARN_ON_SKIPPED_FILES=yes
43 -
44 -LICENSE="GPL-2 BSD-2"
45 -SLOT="0"
46 -KEYWORDS="amd64 hppa ~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/freeze
60 - app-arch/lha
61 - app-arch/lrzip
62 - app-arch/lzop
63 - app-arch/ncompress
64 - app-arch/p7zip
65 - app-arch/pax
66 - app-arch/unarj
67 - app-arch/unrar
68 - app-arch/xz-utils
69 - app-arch/zoo
70 - net-mail/ripole
71 - >=dev-perl/Archive-Zip-1.14
72 - >=virtual/perl-IO-Compress-1.35
73 - >=virtual/perl-Compress-Raw-Zlib-2.017
74 - net-mail/tnef
75 - virtual/perl-MIME-Base64
76 - >=dev-perl/MIME-tools-5.415
77 - >=dev-perl/MailTools-1.58
78 - >=dev-perl/Net-Server-0.91
79 - virtual/perl-Digest-MD5
80 - dev-perl/IO-stringy
81 - virtual/perl-IO-Socket-IP
82 - >=virtual/perl-Time-HiRes-1.49
83 - dev-perl/Unix-Syslog
84 - dev-perl/Net-LibIDN
85 - sys-apps/file
86 - >=sys-libs/db-4.4.20
87 - dev-perl/BerkeleyDB
88 - dev-perl/Convert-BinHex
89 - >=dev-perl/Mail-DKIM-0.31
90 - virtual/perl-File-Temp
91 - dev-perl/Net-SSLeay
92 - dev-perl/IO-Socket-SSL
93 - virtual/mta
94 - clamav? ( app-antivirus/clamav )
95 - ldap? ( >=dev-perl/perl-ldap-0.33 )
96 - mysql? ( dev-perl/DBD-mysql )
97 - postgres? ( dev-perl/DBD-Pg )
98 - razor? ( mail-filter/razor )
99 - snmp? ( net-analyzer/net-snmp[perl] )
100 - spamassassin? ( mail-filter/spamassassin dev-perl/Image-Info )
101 - zmq? ( dev-perl/ZMQ-LibZMQ3 )"
102 -
103 -AMAVIS_ROOT="/var/amavis"
104 -S="${WORKDIR}/${MY_P}"
105 -
106 -src_prepare() {
107 - if use courier ; then
108 - eapply -p0 amavisd-new-courier.patch
109 - fi
110 -
111 - if use qmail ; then
112 - eapply -p0 amavisd-new-qmqpqq.patch
113 - fi
114 -
115 - sed -i \
116 - -e '/daemon/s/vscan/amavis/' \
117 - -e "s:'/var/virusmails':\"\$MYHOME/quarantine\":" \
118 - "${S}/amavisd.conf" "${S}/amavis-mc" || die "missing conf file"
119 -
120 - if ! use dkim ; then
121 - sed -i -e '/enable_dkim/s/1/0/' "${S}/amavisd.conf" \
122 - || die "missing conf file - dkim"
123 - fi
124 -
125 - if use zmq ; then
126 - sed -i -e '/enable_zmq/s/# //' "${S}/amavisd.conf" \
127 - || die "missing conf file - zmq"
128 - fi
129 -
130 - if ! use spamassassin ; then
131 - sed -i -e \
132 - "/^#[[:space:]]*@bypass_spam_checks_maps[[:space:]]*=[[:space:]]*(1)/s/^#//" \
133 - "${S}/amavisd.conf" || die "missing conf file - sa"
134 - fi
135 - eapply_user
136 -}
137 -
138 -src_install() {
139 - dosbin amavisd amavisd-agent amavisd-nanny amavisd-release \
140 - amavisd-signer amavisd-status
141 - dobin p0f-analyzer.pl amavisd-submit
142 -
143 - if use snmp ; then
144 - dosbin amavisd-snmp-subagent
145 - use zmq && dosbin amavisd-snmp-subagent-zmq
146 - dodoc AMAVIS-MIB.txt
147 - newinitd "${FILESDIR}"/amavisd-snmp.initd amavisd-snmp
148 - fi
149 -
150 - if use zmq ; then
151 - dosbin amavis-services amavis-mc
152 - newinitd "${FILESDIR}"/amavis-mc.initd amavis-mc
153 - fi
154 -
155 - insinto /etc
156 - insopts -m0640
157 - doins amavisd.conf
158 -
159 - newinitd "${FILESDIR}/amavisd.initd-r1" amavisd
160 -
161 - systemd_dounit "${FILESDIR}/amavisd.service"
162 - use clamav || sed -i -e '/Wants=clamd/d' "${ED}"/usr/lib/systemd/system/amavisd.service
163 - use spamassassin || sed -i -e '/Wants=spamassassin/d' "${ED}"/usr/lib/systemd/system/amavisd.service
164 -
165 - keepdir "${AMAVIS_ROOT}"
166 - keepdir "${AMAVIS_ROOT}/db"
167 - keepdir "${AMAVIS_ROOT}/quarantine"
168 - keepdir "${AMAVIS_ROOT}/tmp"
169 - keepdir "${AMAVIS_ROOT}/var"
170 -
171 - dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES TODO \
172 - amavisd.conf-default amavisd-custom.conf
173 -
174 - docinto README_FILES
175 - dodoc README_FILES/README*
176 - dodoc -r README_FILES/*.{html,css}
177 - docinto README_FILES/images
178 - dodoc README_FILES/images/*.png
179 - docinto README_FILES/images/callouts
180 - dodoc README_FILES/images/callouts/*.png
181 -
182 - docinto test-messages
183 - dodoc test-messages/README
184 - dodoc test-messages/sample.tar.gz.compl
185 -
186 - if use ldap ; then
187 - dodir /etc/openldap/schema
188 - insinto /etc/openldap/schema
189 - insopts -o root -g root -m 644
190 - newins LDAP.schema ${PN}.schema || die
191 - fi
192 -}
193 -
194 -pkg_preinst() {
195 - enewgroup amavis
196 - enewuser amavis -1 -1 "${AMAVIS_ROOT}" amavis
197 - if use razor ; then
198 - if [ ! -d "${ROOT}${AMAVIS_ROOT}/.razor" ] ; then
199 - elog "Setting up initial razor config files..."
200 -
201 - razor-admin -create -home="${D}/${AMAVIS_ROOT}/.razor"
202 - sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \
203 - "${D}/${AMAVIS_ROOT}/.razor/razor-agent.conf" || die
204 - fi
205 - fi
206 -}
207 -
208 -pkg_postinst() {
209 - chown root:amavis "${ROOT}/etc/amavisd.conf"
210 - chown -R amavis:amavis "${ROOT}/${AMAVIS_ROOT}"
211 -}