summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Seichter <github@seichter.de>2022-10-18 09:15:20 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-11-02 16:24:25 +0200
commitbbf239910090ec61430dc07c32c6c662207948c9 (patch)
tree2ef3f1fa169062525fb523f8dc671ad65e602692 /mail-filter/milter-regex
parentdev-lang/mujs: drop 1.1.0, 1.1.2, 1.1.3 (diff)
downloadgentoo-bbf239910090ec61430dc07c32c6c662207948c9.tar.gz
gentoo-bbf239910090ec61430dc07c32c6c662207948c9.tar.bz2
gentoo-bbf239910090ec61430dc07c32c6c662207948c9.zip
mail-filter/milter-regex: Expand LICENSE variable
Include GPL v2 (license for the init file) Closes: https://bugs.gentoo.org/425958 Signed-off-by: Ralph Seichter <github@seichter.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-filter/milter-regex')
-rw-r--r--mail-filter/milter-regex/milter-regex-2.7-r3.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/mail-filter/milter-regex/milter-regex-2.7-r3.ebuild b/mail-filter/milter-regex/milter-regex-2.7-r3.ebuild
new file mode 100644
index 000000000000..fcbf4fdc4295
--- /dev/null
+++ b/mail-filter/milter-regex/milter-regex-2.7-r3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="A milter-based regular expression filter"
+HOMEPAGE="https://www.benzedrine.ch/milter-regex.html"
+SRC_URI="https://www.benzedrine.ch/${P}.tar.gz"
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="acct-user/milter-regex
+ >=mail-filter/libmilter-1.0.2_p2:="
+DEPEND="${RDEPEND}
+ virtual/yacc"
+
+src_prepare() {
+ eapply "${FILESDIR}/${PN}-2.6-gentoo.patch"
+ eapply "${FILESDIR}"/milter-regex-2.7-implicit-func-decl.patch
+ eapply_user
+ # Change default user
+ sed -i -e 's/_\(milter-regex\)/\1/g' ${PN}.[8c] || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" -f Makefile.linux all
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /etc
+ newins rules ${PN}.conf
+ newconfd "${FILESDIR}/${PN}-conf-2.6" ${PN}
+ newinitd "${FILESDIR}/${PN}-init" ${PN}
+ doman *.8
+}
+
+pkg_postinst() {
+ elog "Postfix configuration example (add to main.cf or master.cf):"
+ elog " smtpd_milters=unix:/run/milter-regex/socket"
+ elog "Sendmail configuration example:"
+ elog " INPUT_MAIL_FILTER(\`${PN}',\`S=unix:/run/milter-regex/socket,T=S:30s;R:2m')"
+}