Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendmarc/
Date: Fri, 20 Aug 2021 06:26:31
Message-Id: 1629440737.c5769b6d90d1f8604045d5e5577dfc3360aa51ec.grobian@gentoo
1 commit: c5769b6d90d1f8604045d5e5577dfc3360aa51ec
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 20 06:25:19 2021 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 20 06:25:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5769b6d
7
8 mail-filter/opendmarc: security cleanup
9
10 Bug: https://bugs.gentoo.org/797214
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12
13 mail-filter/opendmarc/opendmarc-1.3.3.ebuild | 78 -----------------------
14 mail-filter/opendmarc/opendmarc-1.4.1.1-r1.ebuild | 66 -------------------
15 2 files changed, 144 deletions(-)
16
17 diff --git a/mail-filter/opendmarc/opendmarc-1.3.3.ebuild b/mail-filter/opendmarc/opendmarc-1.3.3.ebuild
18 deleted file mode 100644
19 index c8ebaefc31d..00000000000
20 --- a/mail-filter/opendmarc/opendmarc-1.3.3.ebuild
21 +++ /dev/null
22 @@ -1,78 +0,0 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -inherit autotools user multilib systemd
29 -
30 -DESCRIPTION="Open source DMARC implementation"
31 -HOMEPAGE="http://www.trusteddomain.org/opendmarc/"
32 -SRC_URI="https://github.com/trusteddomainproject/OpenDMARC/archive/rel-${PN}-${PV//./-}.tar.gz -> ${P}.tar.gz"
33 -
34 -LICENSE="BSD"
35 -SLOT="0"
36 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
37 -IUSE="spf +reports static-libs"
38 -
39 -DEPEND="reports? ( dev-perl/DBI )
40 - || ( mail-filter/libmilter mail-mta/sendmail )"
41 -RDEPEND="${DEPEND}
42 - reports? (
43 - dev-perl/DBD-mysql
44 - dev-perl/HTTP-Message
45 - dev-perl/Switch
46 - )
47 - spf? ( mail-filter/libspf2 )"
48 -
49 -PATCHES=(
50 - "${FILESDIR}"/${PN}-1.3.2-multiple-From.patch
51 - "${FILESDIR}"/${PN}-1.3.3-CVE-2020-12460.patch
52 -)
53 -
54 -S=${WORKDIR}/OpenDMARC-rel-${PN}-${PV//./-}
55 -
56 -pkg_setup() {
57 - enewgroup milter
58 - enewuser milter -1 -1 /var/lib/milter milter
59 -}
60 -
61 -src_prepare() {
62 - default
63 -
64 - # fix issue after they removed docs
65 - sed -i -e '/^\s\+docs\/Makefile/d' configure.ac || die
66 -
67 - eautoreconf
68 - if use !reports ; then
69 - sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die
70 - fi
71 -}
72 -
73 -src_configure() {
74 - econf \
75 - $(use_with spf) \
76 - $(use_with spf spf2-include "${EPREFIX}"/usr/include/spf2) \
77 - $(use_with spf spf2-lib "${EPREFIX}"/usr/$(get_libdir)) \
78 - $(use_enable static-libs static)
79 -}
80 -
81 -src_install() {
82 - default
83 -
84 - use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.la
85 -
86 - newinitd "${FILESDIR}"/opendmarc.initd opendmarc
87 - newconfd "${FILESDIR}"/opendmarc.confd opendmarc
88 - systemd_dounit "${FILESDIR}/${PN}.service"
89 -
90 - dodir /etc/opendmarc
91 -
92 - # create config file
93 - sed \
94 - -e 's:^# UserID .*$:UserID milter:' \
95 - -e "s:^# PidFile .*:PidFile ${EPREFIX}/var/run/opendmarc/opendmarc.pid:" \
96 - -e '/^# Socket /s:^# ::' \
97 - "${S}"/opendmarc/opendmarc.conf.sample \
98 - > "${ED}"/etc/opendmarc/opendmarc.conf \
99 - || die
100 -}
101
102 diff --git a/mail-filter/opendmarc/opendmarc-1.4.1.1-r1.ebuild b/mail-filter/opendmarc/opendmarc-1.4.1.1-r1.ebuild
103 deleted file mode 100644
104 index 4e857bfe074..00000000000
105 --- a/mail-filter/opendmarc/opendmarc-1.4.1.1-r1.ebuild
106 +++ /dev/null
107 @@ -1,66 +0,0 @@
108 -# Copyright 1999-2021 Gentoo Authors
109 -# Distributed under the terms of the GNU General Public License v2
110 -
111 -EAPI=7
112 -
113 -inherit autotools multilib systemd
114 -
115 -DESCRIPTION="Open source DMARC implementation"
116 -HOMEPAGE="http://www.trusteddomain.org/opendmarc/"
117 -SRC_URI="https://github.com/trusteddomainproject/OpenDMARC/archive/rel-${PN}-${PV//./-}.tar.gz -> ${P}.tar.gz"
118 -
119 -LICENSE="BSD"
120 -SLOT="0/3" # 1.4 has API breakage with 1.3, yet uses same soname
121 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
122 -IUSE="spf +reports static-libs"
123 -
124 -DEPEND="reports? ( dev-perl/DBI )
125 - || ( mail-filter/libmilter mail-mta/sendmail )"
126 -RDEPEND="${DEPEND}
127 - acct-user/opendmarc
128 - reports? (
129 - dev-perl/DBD-mysql
130 - dev-perl/HTTP-Message
131 - dev-perl/Switch
132 - )
133 - spf? ( mail-filter/libspf2 )"
134 -
135 -S=${WORKDIR}/OpenDMARC-rel-${PN}-${PV//./-}
136 -
137 -src_prepare() {
138 - default
139 -
140 - eautoreconf
141 - if use !reports ; then
142 - sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die
143 - fi
144 -}
145 -
146 -src_configure() {
147 - econf \
148 - $(use_with spf) \
149 - $(use_with spf spf2-include "${EPREFIX}"/usr/include/spf2) \
150 - $(use_with spf spf2-lib "${EPREFIX}"/usr/$(get_libdir)) \
151 - $(use_enable static-libs static)
152 -}
153 -
154 -src_install() {
155 - default
156 -
157 - use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.la
158 -
159 - newinitd "${FILESDIR}"/opendmarc.initd opendmarc
160 - newconfd "${FILESDIR}"/opendmarc.confd opendmarc
161 - systemd_dounit "${FILESDIR}/${PN}.service"
162 -
163 - dodir /etc/opendmarc
164 -
165 - # create config file
166 - sed \
167 - -e 's:^# UserID .*$:UserID opendmarc:' \
168 - -e "s:^# PidFile .*:PidFile ${EPREFIX}/var/run/opendmarc/opendmarc.pid:" \
169 - -e '/^# Socket /s:^# ::' \
170 - "${S}"/opendmarc/opendmarc.conf.sample \
171 - > "${ED}"/etc/opendmarc/opendmarc.conf \
172 - || die
173 -}