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/
Date: Wed, 02 Nov 2022 14:24:40
Message-Id: 1667399065.bbf239910090ec61430dc07c32c6c662207948c9.juippis@gentoo
1 commit: bbf239910090ec61430dc07c32c6c662207948c9
2 Author: Ralph Seichter <github <AT> seichter <DOT> de>
3 AuthorDate: Tue Oct 18 07:15:20 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 2 14:24:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbf23991
7
8 mail-filter/milter-regex: Expand LICENSE variable
9
10 Include GPL v2 (license for the init file)
11
12 Closes: https://bugs.gentoo.org/425958
13 Signed-off-by: Ralph Seichter <github <AT> seichter.de>
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 .../milter-regex/milter-regex-2.7-r3.ebuild | 47 ++++++++++++++++++++++
17 1 file changed, 47 insertions(+)
18
19 diff --git a/mail-filter/milter-regex/milter-regex-2.7-r3.ebuild b/mail-filter/milter-regex/milter-regex-2.7-r3.ebuild
20 new file mode 100644
21 index 000000000000..fcbf4fdc4295
22 --- /dev/null
23 +++ b/mail-filter/milter-regex/milter-regex-2.7-r3.ebuild
24 @@ -0,0 +1,47 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +inherit toolchain-funcs
31 +
32 +DESCRIPTION="A milter-based regular expression filter"
33 +HOMEPAGE="https://www.benzedrine.ch/milter-regex.html"
34 +SRC_URI="https://www.benzedrine.ch/${P}.tar.gz"
35 +LICENSE="BSD GPL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE=""
39 +
40 +RDEPEND="acct-user/milter-regex
41 + >=mail-filter/libmilter-1.0.2_p2:="
42 +DEPEND="${RDEPEND}
43 + virtual/yacc"
44 +
45 +src_prepare() {
46 + eapply "${FILESDIR}/${PN}-2.6-gentoo.patch"
47 + eapply "${FILESDIR}"/milter-regex-2.7-implicit-func-decl.patch
48 + eapply_user
49 + # Change default user
50 + sed -i -e 's/_\(milter-regex\)/\1/g' ${PN}.[8c] || die
51 +}
52 +
53 +src_compile() {
54 + emake CC="$(tc-getCC)" -f Makefile.linux all
55 +}
56 +
57 +src_install() {
58 + dobin ${PN}
59 + insinto /etc
60 + newins rules ${PN}.conf
61 + newconfd "${FILESDIR}/${PN}-conf-2.6" ${PN}
62 + newinitd "${FILESDIR}/${PN}-init" ${PN}
63 + doman *.8
64 +}
65 +
66 +pkg_postinst() {
67 + elog "Postfix configuration example (add to main.cf or master.cf):"
68 + elog " smtpd_milters=unix:/run/milter-regex/socket"
69 + elog "Sendmail configuration example:"
70 + elog " INPUT_MAIL_FILTER(\`${PN}',\`S=unix:/run/milter-regex/socket,T=S:30s;R:2m')"
71 +}