1 |
commit: 97993d1f97a199a0bbdee503647441aabf65dde1 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 4 01:04:06 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 4 01:05:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97993d1f |
7 |
|
8 |
mail-filter/opendmarc: depend on libmilter |
9 |
|
10 |
libmilter and sendmail no longer block each other, and we also need a := dep on |
11 |
libmilter. |
12 |
|
13 |
(Straight-to-stable is intentional as long been in stable anyway, but not dropping |
14 |
old w/ git mv or similar yet in case folks want to downgrade to older sendmail for |
15 |
now.) |
16 |
|
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild | 70 +++++++++++++++++++++++ |
20 |
1 file changed, 70 insertions(+) |
21 |
|
22 |
diff --git a/mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild b/mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild |
23 |
new file mode 100644 |
24 |
index 000000000000..c78d15504262 |
25 |
--- /dev/null |
26 |
+++ b/mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild |
27 |
@@ -0,0 +1,70 @@ |
28 |
+# Copyright 1999-2022 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+inherit autotools systemd |
34 |
+ |
35 |
+DESCRIPTION="Open source DMARC implementation" |
36 |
+HOMEPAGE="http://www.trusteddomain.org/opendmarc/" |
37 |
+SRC_URI="https://github.com/trusteddomainproject/OpenDMARC/archive/rel-${PN}-${PV//./-}.tar.gz -> ${P}.tar.gz" |
38 |
+S="${WORKDIR}/OpenDMARC-rel-${PN}-${PV//./-}" |
39 |
+ |
40 |
+LICENSE="BSD" |
41 |
+SLOT="0/3" # 1.4 has API breakage with 1.3, yet uses same soname |
42 |
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86" |
43 |
+IUSE="spf +reports" |
44 |
+ |
45 |
+DEPEND="mail-filter/libmilter:= |
46 |
+ reports? ( dev-perl/DBI )" |
47 |
+RDEPEND="${DEPEND} |
48 |
+ acct-user/opendmarc |
49 |
+ reports? ( |
50 |
+ dev-perl/DBD-mysql |
51 |
+ dev-perl/HTTP-Message |
52 |
+ dev-perl/Switch |
53 |
+ ) |
54 |
+ spf? ( mail-filter/libspf2 )" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${PN}-1.4.1.1-CVE-2021-34555.patch |
58 |
+ "${FILESDIR}"/${PN}-1.4.1.1-underlinking.patch |
59 |
+) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ |
64 |
+ eautoreconf |
65 |
+ if use !reports ; then |
66 |
+ sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die |
67 |
+ fi |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ econf \ |
72 |
+ --disable-static \ |
73 |
+ $(use_with spf) \ |
74 |
+ $(use_with spf spf2-include "${EPREFIX}"/usr/include/spf2) \ |
75 |
+ $(use_with spf spf2-lib "${EPREFIX}"/usr/$(get_libdir)) |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ default |
80 |
+ |
81 |
+ find "${ED}" -name '*.la' -delete || die |
82 |
+ |
83 |
+ newinitd "${FILESDIR}"/opendmarc.initd opendmarc |
84 |
+ newconfd "${FILESDIR}"/opendmarc.confd opendmarc |
85 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
86 |
+ |
87 |
+ dodir /etc/opendmarc |
88 |
+ |
89 |
+ # create config file |
90 |
+ sed \ |
91 |
+ -e 's:^# UserID .*$:UserID opendmarc:' \ |
92 |
+ -e "s:^# PidFile .*:PidFile ${EPREFIX}/var/run/opendmarc/opendmarc.pid:" \ |
93 |
+ -e '/^# Socket /s:^# ::' \ |
94 |
+ "${S}"/opendmarc/opendmarc.conf.sample \ |
95 |
+ > "${ED}"/etc/opendmarc/opendmarc.conf \ |
96 |
+ || die |
97 |
+} |