Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/milter-regex/files/, mail-filter/milter-regex/
Date: Tue, 30 Jul 2019 17:49:35
Message-Id: 1564508926.f9aab8b4ee08a412aeb0e0cd33c8fd35ef1b6e65.juippis@gentoo
1 commit: f9aab8b4ee08a412aeb0e0cd33c8fd35ef1b6e65
2 Author: Ralph Seichter <github <AT> seichter <DOT> de>
3 AuthorDate: Fri Jul 26 15:02:05 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 30 17:48:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9aab8b4
7
8 mail-filter/milter-regex: Remove obsolete ebuilds
9
10 Version 2.6 has been stabilised, older ebuilds are now obsolete.
11
12 Package-Manager: Portage-2.3.66, Repoman-2.3.16
13 Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de>
14 Closes: https://github.com/gentoo/gentoo/pull/12549
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 mail-filter/milter-regex/Manifest | 2 -
18 .../files/milter-regex-1.9-gentoo.patch | 38 --------------
19 .../files/milter-regex-2.2-gentoo.patch | 38 --------------
20 mail-filter/milter-regex/files/milter-regex-conf | 8 ---
21 .../milter-regex/files/milter-regex-conf-2.2 | 13 -----
22 mail-filter/milter-regex/files/milter-regex-init | 41 ---------------
23 .../milter-regex/files/milter-regex-init-2.2 | 14 -----
24 mail-filter/milter-regex/milter-regex-1.9.ebuild | 60 ----------------------
25 mail-filter/milter-regex/milter-regex-2.2.ebuild | 51 ------------------
26 9 files changed, 265 deletions(-)
27
28 diff --git a/mail-filter/milter-regex/Manifest b/mail-filter/milter-regex/Manifest
29 index 0c6613f6e75..3858d0ac6d1 100644
30 --- a/mail-filter/milter-regex/Manifest
31 +++ b/mail-filter/milter-regex/Manifest
32 @@ -1,3 +1 @@
33 -DIST milter-regex-1.9.tar.gz 19880 BLAKE2B 8934eb4f78f168b6f4f93b3a7e70b896c6518cd1228ea8fe387184a718a002f051f5084a7a7f4d07c9e7832fe1c9e9bc907661c4e765dde938b7c6049c8772e6 SHA512 55cb97eba01220eb57c29498a090152c05d259abbe6f771e47a67499e7c2a1d4121ec9d0bce84cc8b6490bcd20dea8eaaba753e61f1ce9002edd8440b13f7148
34 -DIST milter-regex-2.2.tar.gz 20496 BLAKE2B 75cd668e8f75a62bb16d1e38d089465e1e9b49a7441594cb8f77279c9e29f1b90c7b452595f8653b81167fbed8f10e8322ccec51374446938ca43b245cbfa440 SHA512 c2f94d1d9897e2a3f62639343ff9272d28c044f25c59e10f12f37250aa0e5426174cb2a74850993246628e828d21f5cba8567de65a225235eac1969836e41f28
35 DIST milter-regex-2.6.tar.gz 20517 BLAKE2B d98587146010d60a062833d8529af2788d657141e19c249e97bf5c847ffa01d6c76f42b6c8413f957fbeb9843ad38281ba8257aef10d0f1bd414726c416533da SHA512 33afa9a314ff2a2f14a301a85fa142e6e4166ffb77e8d18632b094c7873397e037ee6c5d3d1c248bfbb23037c45a15f21fb0cebcbb0f90c69b3d985aad37f169
36
37 diff --git a/mail-filter/milter-regex/files/milter-regex-1.9-gentoo.patch b/mail-filter/milter-regex/files/milter-regex-1.9-gentoo.patch
38 deleted file mode 100644
39 index 38ba17af0d8..00000000000
40 --- a/mail-filter/milter-regex/files/milter-regex-1.9-gentoo.patch
41 +++ /dev/null
42 @@ -1,38 +0,0 @@
43 ---- Makefile.linux 2011-07-16 16:51:34.000000000 +0300
44 -+++ Makefile.linux 2012-08-05 18:15:30.906378968 +0300
45 -@@ -6,28 +6,27 @@
46 - # see milter-regex.init for an init script for RedHat/Fedora
47 - # (contributed by admin@××××××××.ru)
48 -
49 --CFLAGS= -g
50 --LDFLAGS= -L/usr/lib/libmilter -lmilter -lpthread
51 -+LIBS= -lmilter -lpthread
52 -
53 - all: milter-regex milter-regex.cat8
54 -
55 - milter-regex: milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o
56 -- gcc -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LDFLAGS)
57 -+ $(CC) $(LDFLAGS) -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LIBS)
58 -
59 - milter-regex.o: milter-regex.c eval.h
60 -- gcc $(CFLAGS) -c milter-regex.c
61 -+ $(CC) $(CFLAGS) -c milter-regex.c
62 -
63 - eval.o: eval.c eval.h
64 -- gcc $(CFLAGS) -c eval.c
65 -+ $(CC) $(CFLAGS) -c eval.c
66 -
67 - strlcat.o: strlcat.c
68 -- gcc $(CFLAGS) -c strlcat.c
69 -+ $(CC) $(CFLAGS) -c strlcat.c
70 -
71 - strlcpy.o: strlcpy.c
72 -- gcc $(CFLAGS) -c strlcpy.c
73 -+ $(CC) $(CFLAGS) -c strlcpy.c
74 -
75 - y.tab.o: y.tab.c
76 -- gcc $(CFLAGS) -c y.tab.c
77 -+ $(CC) $(CFLAGS) -c y.tab.c
78 -
79 - y.tab.c: parse.y
80 - yacc -d parse.y
81
82 diff --git a/mail-filter/milter-regex/files/milter-regex-2.2-gentoo.patch b/mail-filter/milter-regex/files/milter-regex-2.2-gentoo.patch
83 deleted file mode 100644
84 index 14efd964f84..00000000000
85 --- a/mail-filter/milter-regex/files/milter-regex-2.2-gentoo.patch
86 +++ /dev/null
87 @@ -1,38 +0,0 @@
88 ---- a/Makefile.linux 2011-07-16 16:51:34.000000000 +0300
89 -+++ a/Makefile.linux 2012-08-05 18:15:30.906378968 +0300
90 -@@ -6,28 +6,27 @@
91 - # see milter-regex.init for an init script for RedHat/Fedora
92 - # (contributed by admin@××××××××.ru)
93 -
94 --CFLAGS= -g
95 --LDFLAGS= -L/usr/lib/libmilter -lmilter -lpthread
96 -+LIBS= -lmilter -lpthread
97 -
98 - all: milter-regex milter-regex.cat8
99 -
100 - milter-regex: milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o
101 -- gcc -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LDFLAGS)
102 -+ $(CC) $(LDFLAGS) -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LIBS)
103 -
104 - milter-regex.o: milter-regex.c eval.h
105 -- gcc $(CFLAGS) -c milter-regex.c
106 -+ $(CC) $(CFLAGS) -c milter-regex.c
107 -
108 - eval.o: eval.c eval.h
109 -- gcc $(CFLAGS) -c eval.c
110 -+ $(CC) $(CFLAGS) -c eval.c
111 -
112 - strlcat.o: strlcat.c
113 -- gcc $(CFLAGS) -c strlcat.c
114 -+ $(CC) $(CFLAGS) -c strlcat.c
115 -
116 - strlcpy.o: strlcpy.c
117 -- gcc $(CFLAGS) -c strlcpy.c
118 -+ $(CC) $(CFLAGS) -c strlcpy.c
119 -
120 - y.tab.o: y.tab.c
121 -- gcc $(CFLAGS) -c y.tab.c
122 -+ $(CC) $(CFLAGS) -c y.tab.c
123 -
124 - y.tab.c: parse.y
125 - yacc -d parse.y
126
127 diff --git a/mail-filter/milter-regex/files/milter-regex-conf b/mail-filter/milter-regex/files/milter-regex-conf
128 deleted file mode 100644
129 index 51846a214e4..00000000000
130 --- a/mail-filter/milter-regex/files/milter-regex-conf
131 +++ /dev/null
132 @@ -1,8 +0,0 @@
133 -# Daemon user
134 -USER="milter"
135 -
136 -# The location of the Unix socket
137 -SOCKET="/var/run/milter-regex/milter-regex.sock"
138 -
139 -# Regular expression rules
140 -CONFIG="/etc/mail/milter-regex.conf"
141
142 diff --git a/mail-filter/milter-regex/files/milter-regex-conf-2.2 b/mail-filter/milter-regex/files/milter-regex-conf-2.2
143 deleted file mode 100644
144 index 382a5fe1d97..00000000000
145 --- a/mail-filter/milter-regex/files/milter-regex-conf-2.2
146 +++ /dev/null
147 @@ -1,13 +0,0 @@
148 -# Config file.
149 -MR_CONF="/etc/milter-regex.conf"
150 -
151 -# Process and socket owner, socket group, socket permissions.
152 -MR_USER="milter"
153 -MR_GROUP="milter"
154 -MR_PERM="0660"
155 -
156 -MR_RUNDIR="/run/milter-regex"
157 -MR_SOCKET="${MR_RUNDIR}/socket"
158 -
159 -# Additional options for logging etc.
160 -MR_OPTS=""
161
162 diff --git a/mail-filter/milter-regex/files/milter-regex-init b/mail-filter/milter-regex/files/milter-regex-init
163 deleted file mode 100644
164 index 7528e625d2d..00000000000
165 --- a/mail-filter/milter-regex/files/milter-regex-init
166 +++ /dev/null
167 @@ -1,41 +0,0 @@
168 -#!/sbin/openrc-run
169 -# Copyright 1999-2008 Gentoo Foundation
170 -# Distributed under the terms of the GNU General Public License v2
171 -
172 -depend() {
173 - use dns logger net
174 -}
175 -
176 -check_cfg() {
177 - if [ -z "${USER}" ] ; then
178 - eerror "USER is unset"
179 - return 1
180 - fi
181 -
182 - if [ ! -s "${CONFIG}" ]; then
183 - eerror "configuration file ${CONFIG} doesn't seem to be valid"
184 - return 1
185 - fi
186 -}
187 -
188 -start() {
189 - check_cfg || return 1
190 -
191 - # Remove stalled Unix socket if no other process is using it
192 - if [ -S "${SOCKET}" ] && ! fuser -s "${SOCKET}"; then
193 - rm "${SOCKET}"
194 - fi
195 -
196 - ebegin "Starting milter-regex"
197 - start-stop-daemon --start --exec /usr/bin/milter-regex -- \
198 - -u "${USER}" -p "${SOCKET}" -c "${CONFIG}"
199 - EXIT=$?
200 - [ $? == 0 ] && chmod a+rw "${SOCKET}"
201 - eend ${EXIT}
202 -}
203 -
204 -stop() {
205 - ebegin "Stopping milter-regex"
206 - start-stop-daemon --stop --exec /usr/bin/milter-regex
207 - eend $?
208 -}
209
210 diff --git a/mail-filter/milter-regex/files/milter-regex-init-2.2 b/mail-filter/milter-regex/files/milter-regex-init-2.2
211 deleted file mode 100644
212 index 57c5988babb..00000000000
213 --- a/mail-filter/milter-regex/files/milter-regex-init-2.2
214 +++ /dev/null
215 @@ -1,14 +0,0 @@
216 -#!/sbin/openrc-run
217 -# Copyright 1999-2018 Gentoo Authors
218 -# Distributed under the terms of the GNU General Public License v2
219 -
220 -command="/usr/bin/milter-regex"
221 -command_args="-c ${MR_CONF} -u ${MR_USER} -p unix:${MR_SOCKET} -P ${MR_PERM} -U ${MR_USER} -G ${MR_GROUP} ${MR_OPTS}"
222 -
223 -depend() {
224 - before postfix sendmail
225 -}
226 -
227 -start_pre() {
228 - checkpath --directory --mode 0755 --owner ${MR_USER}:${MR_GROUP} ${MR_RUNDIR}
229 -}
230
231 diff --git a/mail-filter/milter-regex/milter-regex-1.9.ebuild b/mail-filter/milter-regex/milter-regex-1.9.ebuild
232 deleted file mode 100644
233 index cca5c424b6c..00000000000
234 --- a/mail-filter/milter-regex/milter-regex-1.9.ebuild
235 +++ /dev/null
236 @@ -1,60 +0,0 @@
237 -# Copyright 1999-2015 Gentoo Foundation
238 -# Distributed under the terms of the GNU General Public License v2
239 -
240 -EAPI=4
241 -
242 -inherit eutils user
243 -
244 -DESCRIPTION="A milter-based regular expression filter"
245 -HOMEPAGE="http://www.benzedrine.cx/milter-regex.html"
246 -SRC_URI="http://www.benzedrine.cx/${P}.tar.gz"
247 -
248 -LICENSE="BSD"
249 -SLOT="0"
250 -KEYWORDS="amd64 x86"
251 -IUSE=""
252 -
253 -RDEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )"
254 -DEPEND="${RDEPEND}
255 - virtual/yacc"
256 -
257 -src_prepare() {
258 - epatch "${FILESDIR}"/${P}-gentoo.patch
259 -}
260 -
261 -src_compile() {
262 - emake CC="$(tc-getCC)" -f Makefile.linux milter-regex
263 -}
264 -
265 -src_install() {
266 - dobin milter-regex
267 -
268 - keepdir /var/run/milter-regex
269 -
270 - insinto /etc/mail
271 - newins rules milter-regex.conf
272 -
273 - newconfd "${FILESDIR}"/milter-regex-conf milter-regex
274 - newinitd "${FILESDIR}"/milter-regex-init milter-regex
275 -
276 - doman *.8
277 -}
278 -
279 -pkg_preinst() {
280 - enewgroup milter
281 - # mail-milter/spamass-milter creates milter user with this home directory
282 - # For consistency reasons, milter user must be created here with this home directory
283 - # even though this package doesn't need a home directory for this user (#280571)
284 - enewuser milter -1 -1 /var/lib/milter milter
285 -
286 - fowners milter:milter /var/run/milter-regex
287 -}
288 -
289 -pkg_postinst() {
290 - elog "If you're using Sendmail, you'll need to add this to your sendmail.mc:"
291 - elog " INPUT_MAIL_FILTER(\`milter-regex', \`S=unix:/var/run/milter-regex/milter-regex.sock, T=S:30s;R:2m')"
292 - echo
293 - elog "If you are using Postfix, you'll need to add this to your main.cf:"
294 - elog " smtpd_milters = unix:/var/run/milter-regex/milter-regex.sock"
295 - elog " non_smtpd_milters = unix:/var/run/milter-regex/milter-regex.sock"
296 -}
297
298 diff --git a/mail-filter/milter-regex/milter-regex-2.2.ebuild b/mail-filter/milter-regex/milter-regex-2.2.ebuild
299 deleted file mode 100644
300 index 5b060fbb4e9..00000000000
301 --- a/mail-filter/milter-regex/milter-regex-2.2.ebuild
302 +++ /dev/null
303 @@ -1,51 +0,0 @@
304 -# Copyright 1999-2018 Gentoo Authors
305 -# Distributed under the terms of the GNU General Public License v2
306 -
307 -EAPI=7
308 -
309 -inherit toolchain-funcs user
310 -
311 -DESCRIPTION="A milter-based regular expression filter"
312 -HOMEPAGE="https://www.benzedrine.ch/milter-regex.html"
313 -SRC_URI="https://www.benzedrine.ch/${P}.tar.gz"
314 -LICENSE="BSD"
315 -SLOT="0"
316 -KEYWORDS="~amd64 ~x86"
317 -IUSE=""
318 -
319 -RDEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )"
320 -DEPEND="${RDEPEND}
321 - virtual/yacc"
322 -
323 -PATCHES=( "${FILESDIR}/${P}-gentoo.patch" )
324 -
325 -src_compile() {
326 - emake CC="$(tc-getCC)" -f Makefile.linux all
327 -}
328 -
329 -src_install() {
330 - dobin ${PN}
331 -
332 - insinto /etc
333 - newins rules ${PN}.conf
334 -
335 - newconfd "${FILESDIR}/${PN}-conf-${PV}" ${PN}
336 - newinitd "${FILESDIR}/${PN}-init-${PV}" ${PN}
337 -
338 - doman *.8
339 -}
340 -
341 -pkg_preinst() {
342 - # For consistency with mail-milter/spamass-milter (see bug #280571).
343 - # While the milter process requires an owner, a home directory is not
344 - # necessary because no data is written.
345 - enewgroup milter
346 - enewuser milter -1 -1 /var/lib/milter milter
347 -}
348 -
349 -pkg_postinst() {
350 - elog "Postfix configuration example (add to main.cf or master.cf):"
351 - elog " smtpd_milters=unix:/run/milter-regex/socket"
352 - elog "Sendmail configuration example:"
353 - elog " INPUT_MAIL_FILTER(\`${PN}',\`S=unix:/run/milter-regex/socket,T=S:30s;R:2m')"
354 -}