Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendkim/
Date: Mon, 07 Jan 2019 19:16:01
Message-Id: 1546888536.2c3a8df6ee40ba858dcd3f582e63e2f7af491b09.polynomial-c@gentoo
1 commit: 2c3a8df6ee40ba858dcd3f582e63e2f7af491b09
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 7 18:29:23 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 7 19:15:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c3a8df6
7
8 mail-filter/opendkim: Removed old.
9
10 Package-Manager: Portage-2.3.54, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 mail-filter/opendkim/opendkim-2.10.3-r2.ebuild | 198 -------------------------
14 mail-filter/opendkim/opendkim-2.10.3.ebuild | 195 ------------------------
15 2 files changed, 393 deletions(-)
16
17 diff --git a/mail-filter/opendkim/opendkim-2.10.3-r2.ebuild b/mail-filter/opendkim/opendkim-2.10.3-r2.ebuild
18 deleted file mode 100644
19 index 83fbee2e61f..00000000000
20 --- a/mail-filter/opendkim/opendkim-2.10.3-r2.ebuild
21 +++ /dev/null
22 @@ -1,198 +0,0 @@
23 -# Copyright 1999-2018 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=5
27 -inherit autotools db-use eutils systemd user
28 -
29 -# for betas
30 -#MY_P=${P/_b/.B}
31 -#S=${WORKDIR}/${PN}-2.8.0
32 -#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
33 -
34 -DESCRIPTION="A milter-based application to provide DKIM signing and verification"
35 -HOMEPAGE="http://opendkim.org"
36 -SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
37 -
38 -LICENSE="Sendmail-Open-Source BSD"
39 -SLOT="0"
40 -KEYWORDS="~amd64 ~arm ~x86"
41 -IUSE="+berkdb gnutls ldap libressl lmdb lua memcached opendbx poll sasl selinux +ssl static-libs unbound"
42 -
43 -DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
44 - dev-libs/libbsd
45 - ssl? (
46 - !libressl? ( dev-libs/openssl:0= )
47 - libressl? ( dev-libs/libressl:0= )
48 - )
49 - berkdb? ( >=sys-libs/db-3.2:* )
50 - opendbx? ( >=dev-db/opendbx-1.4.0 )
51 - lua? ( dev-lang/lua:* )
52 - ldap? ( net-nds/openldap )
53 - lmdb? ( dev-db/lmdb )
54 - memcached? ( dev-libs/libmemcached )
55 - sasl? ( dev-libs/cyrus-sasl )
56 - unbound? ( >=net-dns/unbound-1.4.1:= net-dns/dnssec-root )
57 - !unbound? ( net-libs/ldns )
58 - gnutls? ( >=net-libs/gnutls-2.11.7 )"
59 -
60 -RDEPEND="${DEPEND}
61 - sys-process/psmisc
62 - selinux? ( sec-policy/selinux-dkim )
63 -"
64 -
65 -REQUIRED_USE="sasl? ( ldap )"
66 -
67 -pkg_setup() {
68 - enewgroup milter
69 - # mail-milter/spamass-milter creates milter user with this home directory
70 - # For consistency reasons, milter user must be created here with this home directory
71 - # even though this package doesn't need a home directory for this user (#280571)
72 - enewuser milter -1 -1 /var/lib/milter milter
73 -}
74 -
75 -src_prepare() {
76 - sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
77 - -e 's:/var/db/opendkim:/var/lib/opendkim:g' \
78 - -e 's:/etc/mail:/etc/opendkim:g' \
79 - -e 's:mailnull:milter:g' \
80 - -e 's:^#[[:space:]]*PidFile.*:PidFile /run/opendkim/opendkim.pid:' \
81 - opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
82 - stats/opendkim-reportstats{,.in} || die
83 -
84 - sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
85 - || die
86 -
87 - sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/tmp":' opendkim/tests/*.lua
88 - sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/proc/self/cwd":' opendkim/tests/*.lua
89 -
90 - eautoreconf
91 -}
92 -
93 -src_configure() {
94 - local myconf
95 - if use berkdb ; then
96 - myconf=$(db_includedir)
97 - myconf="--with-db-incdir=${myconf#-I}"
98 - myconf+=" --enable-popauth"
99 - myconf+=" --enable-query_cache"
100 - myconf+=" --enable-stats"
101 - fi
102 - if use unbound; then
103 - myconf+=" --with-unbound"
104 - else
105 - myconf+=" --with-ldns"
106 - fi
107 - if use ldap; then
108 - myconf+=" $(use_with sasl)"
109 - fi
110 - econf \
111 - $(use_with berkdb db) \
112 - $(use_with opendbx odbx) \
113 - $(use_with lua) \
114 - $(use_enable lua rbl) \
115 - $(use_with ldap openldap) \
116 - $(use_with lmdb) \
117 - $(use_enable poll) \
118 - $(use_enable static-libs static) \
119 - $(use_with gnutls) \
120 - $(use_with memcached libmemcached) \
121 - ${myconf} \
122 - --docdir=/usr/share/doc/${PF} \
123 - --htmldir=/usr/share/doc/${PF}/html \
124 - --enable-filter \
125 - --enable-atps \
126 - --enable-identity_header \
127 - --enable-rate_limit \
128 - --enable-resign \
129 - --enable-replace_rules \
130 - --enable-default_sender \
131 - --enable-sender_macro \
132 - --enable-vbr \
133 - --disable-live-testing
134 - #--with-test-socket=/tmp/opendkim-$(echo ${RANDOM})-S
135 - #--disable-rpath
136 -}
137 -
138 -src_install() {
139 - emake DESTDIR="${D}" install
140 -
141 - dosbin stats/opendkim-reportstats
142 -
143 - newinitd "${FILESDIR}/opendkim.init.r3" opendkim
144 - systemd_newunit "${FILESDIR}/opendkim-r1.service" opendkim.service
145 -
146 - dodir /etc/opendkim /var/lib/opendkim
147 - fowners milter:milter /var/lib/opendkim
148 -
149 - # default configuration
150 - if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
151 - grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
152 - > "${D}"/etc/opendkim/opendkim.conf
153 - if use unbound; then
154 - echo TrustAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
155 - fi
156 - echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
157 - if use berkdb; then
158 - echo Statistics /var/lib/opendkim/stats.dat >> \
159 - "${D}"/etc/opendkim/opendkim.conf
160 - fi
161 - fi
162 -
163 - use static-libs || find "${D}" -name "*.la" -delete
164 -}
165 -
166 -pkg_postinst() {
167 - if [[ -z ${REPLACING_VERSION} ]]; then
168 - elog "If you want to sign your mail messages and need some help"
169 - elog "please run:"
170 - elog " emerge --config ${CATEGORY}/${PN}"
171 - elog "It will help you create your key and give you hints on how"
172 - elog "to configure your DNS and MTA."
173 -
174 - ewarn "Make sure your MTA has r/w access to the socket file."
175 - ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
176 - ewarn "to milter group or you can simply set UMask to 000."
177 - fi
178 -}
179 -
180 -pkg_config() {
181 - local selector keysize pubkey
182 -
183 - read -p "Enter the selector name (default ${HOSTNAME}): " selector
184 - [[ -n "${selector}" ]] || selector=${HOSTNAME}
185 - if [[ -z "${selector}" ]]; then
186 - eerror "Oddly enough, you don't have a HOSTNAME."
187 - return 1
188 - fi
189 - if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then
190 - ewarn "The private key for this selector already exists."
191 - else
192 - keysize=1024
193 - # generate the private and public keys
194 - opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
195 - -s ${selector} -d '(your domain)' && \
196 - chown milter:milter \
197 - "${ROOT}"etc/opendkim/"${selector}".private || \
198 - { eerror "Failed to create private and public keys." ; return 1; }
199 - chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
200 - fi
201 -
202 - # opendkim selector configuration
203 - echo
204 - einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
205 - einfo " Keyfile /etc/opendkim/${selector}.private"
206 - einfo " Selector ${selector}"
207 -
208 - # MTA configuration
209 - echo
210 - einfo "If you are using Postfix, add following lines to your main.cf:"
211 - einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
212 - einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
213 - einfo " and read http://www.postfix.org/MILTER_README.html"
214 -
215 - # DNS configuration
216 - einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
217 - cat "${ROOT}"etc/opendkim/${selector}.txt
218 - einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
219 - einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
220 -}
221
222 diff --git a/mail-filter/opendkim/opendkim-2.10.3.ebuild b/mail-filter/opendkim/opendkim-2.10.3.ebuild
223 deleted file mode 100644
224 index 19bee906d0e..00000000000
225 --- a/mail-filter/opendkim/opendkim-2.10.3.ebuild
226 +++ /dev/null
227 @@ -1,195 +0,0 @@
228 -# Copyright 1999-2018 Gentoo Foundation
229 -# Distributed under the terms of the GNU General Public License v2
230 -
231 -EAPI=5
232 -inherit autotools db-use eutils systemd user
233 -
234 -# for betas
235 -#MY_P=${P/_b/.B}
236 -#S=${WORKDIR}/${PN}-2.8.0
237 -#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
238 -
239 -DESCRIPTION="A milter-based application to provide DKIM signing and verification"
240 -HOMEPAGE="http://opendkim.org"
241 -SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
242 -
243 -LICENSE="Sendmail-Open-Source BSD"
244 -SLOT="0"
245 -KEYWORDS="amd64 ~arm x86"
246 -IUSE="+berkdb gnutls ldap lmdb lua memcached opendbx poll sasl selinux +ssl static-libs unbound"
247 -
248 -DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
249 - dev-libs/libbsd
250 - ssl? ( >=dev-libs/openssl-0.9.8:* )
251 - berkdb? ( >=sys-libs/db-3.2:* )
252 - opendbx? ( >=dev-db/opendbx-1.4.0 )
253 - lua? ( dev-lang/lua:* )
254 - ldap? ( net-nds/openldap )
255 - lmdb? ( dev-db/lmdb )
256 - memcached? ( dev-libs/libmemcached )
257 - sasl? ( dev-libs/cyrus-sasl )
258 - unbound? ( >=net-dns/unbound-1.4.1:= net-dns/dnssec-root )
259 - !unbound? ( net-libs/ldns )
260 - gnutls? ( >=net-libs/gnutls-2.11.7 )"
261 -
262 -RDEPEND="${DEPEND}
263 - sys-process/psmisc
264 - selinux? ( sec-policy/selinux-dkim )
265 -"
266 -
267 -REQUIRED_USE="sasl? ( ldap )"
268 -
269 -pkg_setup() {
270 - enewgroup milter
271 - # mail-milter/spamass-milter creates milter user with this home directory
272 - # For consistency reasons, milter user must be created here with this home directory
273 - # even though this package doesn't need a home directory for this user (#280571)
274 - enewuser milter -1 -1 /var/lib/milter milter
275 -}
276 -
277 -src_prepare() {
278 - sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
279 - -e 's:/var/db/opendkim:/var/lib/opendkim:g' \
280 - -e 's:/etc/mail:/etc/opendkim:g' \
281 - -e 's:mailnull:milter:g' \
282 - -e 's:^#[[:space:]]*PidFile.*:PidFile /run/opendkim/opendkim.pid:' \
283 - opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
284 - stats/opendkim-reportstats{,.in} || die
285 -
286 - sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
287 - || die
288 -
289 - sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/tmp":' opendkim/tests/*.lua
290 - sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/proc/self/cwd":' opendkim/tests/*.lua
291 -
292 - eautoreconf
293 -}
294 -
295 -src_configure() {
296 - local myconf
297 - if use berkdb ; then
298 - myconf=$(db_includedir)
299 - myconf="--with-db-incdir=${myconf#-I}"
300 - myconf+=" --enable-popauth"
301 - myconf+=" --enable-query_cache"
302 - myconf+=" --enable-stats"
303 - fi
304 - if use unbound; then
305 - myconf+=" --with-unbound"
306 - else
307 - myconf+=" --with-ldns"
308 - fi
309 - if use ldap; then
310 - myconf+=" $(use_with sasl)"
311 - fi
312 - econf \
313 - $(use_with berkdb db) \
314 - $(use_with opendbx odbx) \
315 - $(use_with lua) \
316 - $(use_enable lua rbl) \
317 - $(use_with ldap openldap) \
318 - $(use_with lmdb) \
319 - $(use_enable poll) \
320 - $(use_enable static-libs static) \
321 - $(use_with gnutls) \
322 - $(use_with memcached libmemcached) \
323 - ${myconf} \
324 - --docdir=/usr/share/doc/${PF} \
325 - --htmldir=/usr/share/doc/${PF}/html \
326 - --enable-filter \
327 - --enable-atps \
328 - --enable-identity_header \
329 - --enable-rate_limit \
330 - --enable-resign \
331 - --enable-replace_rules \
332 - --enable-default_sender \
333 - --enable-sender_macro \
334 - --enable-vbr \
335 - --disable-live-testing
336 - #--with-test-socket=/tmp/opendkim-$(echo ${RANDOM})-S
337 - #--disable-rpath
338 -}
339 -
340 -src_install() {
341 - emake DESTDIR="${D}" install
342 -
343 - dosbin stats/opendkim-reportstats
344 -
345 - newinitd "${FILESDIR}/opendkim.init.r3" opendkim
346 - systemd_dounit "${FILESDIR}/opendkim.service"
347 -
348 - dodir /etc/opendkim /var/lib/opendkim
349 - fowners milter:milter /var/lib/opendkim
350 -
351 - # default configuration
352 - if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
353 - grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
354 - > "${D}"/etc/opendkim/opendkim.conf
355 - if use unbound; then
356 - echo TrustAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
357 - fi
358 - echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
359 - if use berkdb; then
360 - echo Statistics /var/lib/opendkim/stats.dat >> \
361 - "${D}"/etc/opendkim/opendkim.conf
362 - fi
363 - fi
364 -
365 - use static-libs || find "${D}" -name "*.la" -delete
366 -}
367 -
368 -pkg_postinst() {
369 - if [[ -z ${REPLACING_VERSION} ]]; then
370 - elog "If you want to sign your mail messages and need some help"
371 - elog "please run:"
372 - elog " emerge --config ${CATEGORY}/${PN}"
373 - elog "It will help you create your key and give you hints on how"
374 - elog "to configure your DNS and MTA."
375 -
376 - ewarn "Make sure your MTA has r/w access to the socket file."
377 - ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
378 - ewarn "to milter group or you can simply set UMask to 000."
379 - fi
380 -}
381 -
382 -pkg_config() {
383 - local selector keysize pubkey
384 -
385 - read -p "Enter the selector name (default ${HOSTNAME}): " selector
386 - [[ -n "${selector}" ]] || selector=${HOSTNAME}
387 - if [[ -z "${selector}" ]]; then
388 - eerror "Oddly enough, you don't have a HOSTNAME."
389 - return 1
390 - fi
391 - if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then
392 - ewarn "The private key for this selector already exists."
393 - else
394 - keysize=1024
395 - # generate the private and public keys
396 - opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
397 - -s ${selector} -d '(your domain)' && \
398 - chown milter:milter \
399 - "${ROOT}"etc/opendkim/"${selector}".private || \
400 - { eerror "Failed to create private and public keys." ; return 1; }
401 - chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
402 - fi
403 -
404 - # opendkim selector configuration
405 - echo
406 - einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
407 - einfo " Keyfile /etc/opendkim/${selector}.private"
408 - einfo " Selector ${selector}"
409 -
410 - # MTA configuration
411 - echo
412 - einfo "If you are using Postfix, add following lines to your main.cf:"
413 - einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
414 - einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
415 - einfo " and read http://www.postfix.org/MILTER_README.html"
416 -
417 - # DNS configuration
418 - einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
419 - cat "${ROOT}"etc/opendkim/${selector}.txt
420 - einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
421 - einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
422 -}