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