Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/milter-regex/
Date: Thu, 04 Aug 2022 01:45:53
Message-Id: 1659575112.d38d07e672b06d152211965d1e464dc9650f41dc.sam@gentoo
1 commit: d38d07e672b06d152211965d1e464dc9650f41dc
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 4 01:00:45 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 4 01:05:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d38d07e6
7
8 mail-filter/milter-regex: depend on libmilter
9
10 libmilter and sendmail no longer block each other, and we also need a := dep on
11 libmilter.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 .../milter-regex/milter-regex-2.7-r1.ebuild | 46 ++++++++++++++++++++++
16 1 file changed, 46 insertions(+)
17
18 diff --git a/mail-filter/milter-regex/milter-regex-2.7-r1.ebuild b/mail-filter/milter-regex/milter-regex-2.7-r1.ebuild
19 new file mode 100644
20 index 000000000000..a4095fb37dbb
21 --- /dev/null
22 +++ b/mail-filter/milter-regex/milter-regex-2.7-r1.ebuild
23 @@ -0,0 +1,46 @@
24 +# Copyright 1999-2022 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit toolchain-funcs
30 +
31 +DESCRIPTION="A milter-based regular expression filter"
32 +HOMEPAGE="https://www.benzedrine.ch/milter-regex.html"
33 +SRC_URI="https://www.benzedrine.ch/${P}.tar.gz"
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="amd64 x86"
37 +IUSE=""
38 +
39 +RDEPEND="acct-user/milter-regex
40 + >=mail-filter/libmilter-1.0.2_p2:="
41 +DEPEND="${RDEPEND}
42 + virtual/yacc"
43 +
44 +src_prepare() {
45 + eapply "${FILESDIR}/${PN}-2.6-gentoo.patch"
46 + eapply_user
47 + # Change default user
48 + sed -i -e 's/_\(milter-regex\)/\1/g' ${PN}.[8c] || die
49 +}
50 +
51 +src_compile() {
52 + emake CC="$(tc-getCC)" -f Makefile.linux all
53 +}
54 +
55 +src_install() {
56 + dobin ${PN}
57 + insinto /etc
58 + newins rules ${PN}.conf
59 + newconfd "${FILESDIR}/${PN}-conf-2.6" ${PN}
60 + newinitd "${FILESDIR}/${PN}-init" ${PN}
61 + doman *.8
62 +}
63 +
64 +pkg_postinst() {
65 + elog "Postfix configuration example (add to main.cf or master.cf):"
66 + elog " smtpd_milters=unix:/run/milter-regex/socket"
67 + elog "Sendmail configuration example:"
68 + elog " INPUT_MAIL_FILTER(\`${PN}',\`S=unix:/run/milter-regex/socket,T=S:30s;R:2m')"
69 +}