1 |
eras 11/06/27 07:03:04 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: opendkim-2.4.0.ebuild |
5 |
Log: |
6 |
Version bump - bug #370407. Herd from no-herd to net-mail |
7 |
|
8 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.22 mail-filter/opendkim/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/ChangeLog?rev=1.22&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/ChangeLog?rev=1.22&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/ChangeLog?r1=1.21&r2=1.22 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v |
20 |
retrieving revision 1.21 |
21 |
retrieving revision 1.22 |
22 |
diff -u -r1.21 -r1.22 |
23 |
--- ChangeLog 30 Nov 2010 11:27:37 -0000 1.21 |
24 |
+++ ChangeLog 27 Jun 2011 07:03:04 -0000 1.22 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for mail-filter/opendkim |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.21 2010/11/30 11:27:37 dragonheart Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.22 2011/06/27 07:03:04 eras Exp $ |
31 |
+ |
32 |
+*opendkim-2.4.0 (27 Jun 2011) |
33 |
+ |
34 |
+ 27 Jun 2011; Eray Aslan <eras@g.o> +opendkim-2.4.0.ebuild, |
35 |
+ +files/opendkim-2.4.0-ipv6.patch, +files/opendkim-2.4.0-oversign.patch, |
36 |
+ +files/opendkim.init.r2, metadata.xml: |
37 |
+ Version bump - bug #370407. Herd from no-herd to net-mail |
38 |
|
39 |
*opendkim-2.2.2 (30 Nov 2010) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.8 mail-filter/opendkim/metadata.xml |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/metadata.xml?rev=1.8&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/metadata.xml?rev=1.8&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/metadata.xml?r1=1.7&r2=1.8 |
49 |
|
50 |
Index: metadata.xml |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/opendkim/metadata.xml,v |
53 |
retrieving revision 1.7 |
54 |
retrieving revision 1.8 |
55 |
diff -u -r1.7 -r1.8 |
56 |
--- metadata.xml 22 Mar 2010 05:40:43 -0000 1.7 |
57 |
+++ metadata.xml 27 Jun 2011 07:03:04 -0000 1.8 |
58 |
@@ -1,7 +1,7 @@ |
59 |
<?xml version="1.0" encoding="UTF-8"?> |
60 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
61 |
<pkgmetadata> |
62 |
-<herd>no-herd</herd> |
63 |
+<herd>net-mail</herd> |
64 |
<maintainer> |
65 |
<email>dragonheart@g.o</email> |
66 |
<name>Daniel Black</name> |
67 |
@@ -27,6 +27,8 @@ |
68 |
supports.</flag> |
69 |
<flag name='lua'>Enables control over signature verification, filtering and |
70 |
policy to be controlled by user defined lua scripts.</flag> |
71 |
+ <flag name='poll'>Use poll() instead of select() for the provided |
72 |
+ asynchronous resolver library.</flag> |
73 |
|
74 |
</use> |
75 |
</pkgmetadata> |
76 |
|
77 |
|
78 |
|
79 |
1.1 mail-filter/opendkim/opendkim-2.4.0.ebuild |
80 |
|
81 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/opendkim-2.4.0.ebuild?rev=1.1&view=markup |
82 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/opendkim-2.4.0.ebuild?rev=1.1&content-type=text/plain |
83 |
|
84 |
Index: opendkim-2.4.0.ebuild |
85 |
=================================================================== |
86 |
# Copyright 1999-2011 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.4.0.ebuild,v 1.1 2011/06/27 07:03:04 eras Exp $ |
89 |
|
90 |
EAPI=4 |
91 |
|
92 |
inherit eutils db-use |
93 |
|
94 |
# for betas |
95 |
#MY_P=${P/_b/.B} |
96 |
#S=${WORKDIR}/${PN}-2.0.0 |
97 |
#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz" |
98 |
|
99 |
DESCRIPTION="A milter-based application to provide DKIM signing and verification" |
100 |
HOMEPAGE="http://opendkim.org" |
101 |
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz" |
102 |
|
103 |
LICENSE="Sendmail-Open-Source BSD" |
104 |
SLOT="0" |
105 |
KEYWORDS="~amd64 ~x86" |
106 |
IUSE="asyncdns +berkdb ldap lua opendbx poll sasl +ssl unbound" |
107 |
|
108 |
# FUTURE: diffheaders (libtre error) - bug #296813 |
109 |
|
110 |
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail ) |
111 |
ssl? ( >=dev-libs/openssl-0.9.8 ) |
112 |
berkdb? ( >=sys-libs/db-3.2 ) |
113 |
opendbx? ( >=dev-db/opendbx-1.4.0 ) |
114 |
lua? ( dev-lang/lua ) |
115 |
ldap? ( net-nds/openldap ) |
116 |
sasl? ( dev-libs/cyrus-sasl ) |
117 |
unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )" |
118 |
#diffheaders? ( dev-libs/tre ) |
119 |
#gnutls? ( >=net-libs/gnutls-2.11.7 ) |
120 |
|
121 |
RDEPEND="${DEPEND}" |
122 |
|
123 |
REQUIRED_USE="sasl? ( ldap )" |
124 |
|
125 |
pkg_setup() { |
126 |
enewgroup milter |
127 |
# mail-milter/spamass-milter creates milter user with this home directory |
128 |
# For consistency reasons, milter user must be created here with this home directory |
129 |
# even though this package doesn't need a home directory for this user (#280571) |
130 |
enewuser milter -1 -1 /var/lib/milter milter |
131 |
} |
132 |
|
133 |
src_prepare() { |
134 |
sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \ |
135 |
-e 's:/var/db/opendkim:/var/lib/opendkim:g' \ |
136 |
-e 's:/etc/mail:/etc/opendkim:g' \ |
137 |
-e 's:mailnull:milter:g' \ |
138 |
-e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \ |
139 |
opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \ |
140 |
contrib/stats/opendkim-reportstats || die |
141 |
|
142 |
epatch "${FILESDIR}/${P}-oversign.patch" |
143 |
epatch "${FILESDIR}/${P}-ipv6.patch" |
144 |
} |
145 |
|
146 |
src_configure() { |
147 |
local myconf |
148 |
if use berkdb ; then |
149 |
myconf=$(db_includedir) |
150 |
myconf="--with-db-incdir=${myconf#-I}" |
151 |
myconf+=" --enable-popauth" |
152 |
myconf+=" --enable-query_cache" |
153 |
myconf+=" --enable-report_intervals" |
154 |
myconf+=" --enable-stats" |
155 |
fi |
156 |
if use asyncdns ; then |
157 |
if use unbound; then |
158 |
myconf+=" --with-unbound" |
159 |
else |
160 |
myconf+=" --enable-arlib" |
161 |
fi |
162 |
else |
163 |
myconf+=" $(use_with unbound) --disable-arlib" |
164 |
fi |
165 |
if use ldap; then |
166 |
myconf+=" $(use_with sasl)" |
167 |
fi |
168 |
econf \ |
169 |
$(use_with berkdb db) \ |
170 |
$(use_with opendbx odbx) \ |
171 |
$(use_with lua) \ |
172 |
$(use_enable lua statsext) \ |
173 |
$(use_enable lua rbl) \ |
174 |
$(use_with ldap openldap) \ |
175 |
$(use_enable ldap ldap_caching) \ |
176 |
$(use_enable poll) \ |
177 |
${myconf} \ |
178 |
--docdir=/usr/share/doc/${PF} \ |
179 |
--enable-filter \ |
180 |
--without-domainkeys \ |
181 |
--enable-oversign \ |
182 |
--enable-adsp_lists \ |
183 |
--enable-dkim_reputation \ |
184 |
--enable-identity_header \ |
185 |
--enable-rate_limit \ |
186 |
--enable-redirect \ |
187 |
--enable-resign \ |
188 |
--enable-replace_rules \ |
189 |
--enable-selector_header \ |
190 |
--enable-default_sender \ |
191 |
--enable-sender_macro \ |
192 |
--enable-vbr \ |
193 |
--disable-rpath \ |
194 |
--disable-live-testing |
195 |
#$(use_enable diffheaders) |
196 |
} |
197 |
|
198 |
src_install() { |
199 |
emake DESTDIR="${D}" install |
200 |
# file collision |
201 |
rm -f "${D}"/usr/share/man/man3/ar.3 |
202 |
|
203 |
dosbin contrib/stats/opendkim-reportstats |
204 |
newinitd "${FILESDIR}/opendkim.init.r2" opendkim |
205 |
dodir /etc/opendkim /var/lib/opendkim |
206 |
fowners milter:milter /var/lib/opendkim |
207 |
|
208 |
# default configuration |
209 |
if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then |
210 |
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \ |
211 |
> "${D}"/etc/opendkim/opendkim.conf |
212 |
if use unbound; then |
213 |
echo TrustedAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf |
214 |
fi |
215 |
echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf |
216 |
if use berkdb; then |
217 |
echo Statistics /var/lib/opendkim/stats.dat >> \ |
218 |
"${D}"/etc/opendkim/opendkim.conf |
219 |
fi |
220 |
fi |
221 |
} |
222 |
|
223 |
pkg_postinst() { |
224 |
elog "If you want to sign your mail messages and need some help" |
225 |
elog "please run:" |
226 |
elog " emerge --config ${CATEGORY}/${PN}" |
227 |
elog "It will help you create your key and give you hints on how" |
228 |
elog "to configure your DNS and MTA." |
229 |
|
230 |
ewarn "Make sure your MTA has r/w access to the socket file." |
231 |
ewarn "This can be done either by setting UMask to 002 and adding MTA's user" |
232 |
ewarn "to milter group or you can simply set UMask to 000." |
233 |
} |
234 |
|
235 |
pkg_config() { |
236 |
local selector keysize pubkey |
237 |
|
238 |
read -p "Enter the selector name (default ${HOSTNAME}): " selector |
239 |
[[ -n "${selector}" ]] || selector=${HOSTNAME} |
240 |
if [[ -z "${selector}" ]]; then |
241 |
eerror "Oddly enough, you don't have a HOSTNAME." |
242 |
return 1 |
243 |
fi |
244 |
if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then |
245 |
ewarn "The private key for this selector already exists." |
246 |
else |
247 |
einfo "Select the size of private key:" |
248 |
einfo " [1] 512 bits" |
249 |
einfo " [2] 1024 bits" |
250 |
while read -n 1 -s -p " Press 1 or 2 on the keyboard to select the key size " keysize ; do |
251 |
[[ "${keysize}" == "1" || "${keysize}" == "2" ]] && echo && break |
252 |
done |
253 |
case ${keysize} in |
254 |
1) keysize=512 ;; |
255 |
*) keysize=1024 ;; |
256 |
esac |
257 |
|
258 |
# generate the private and public keys |
259 |
opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \ |
260 |
-s ${selector} -d '(your domain)' && \ |
261 |
chown milter:milter \ |
262 |
"${ROOT}"etc/opendkim/"${selector}".private || \ |
263 |
{ eerror "Failed to create private and public keys." ; return 1; } |
264 |
chmod go-r "${ROOT}"etc/opendkim/"${selector}".private |
265 |
fi |
266 |
|
267 |
# opendkim selector configuration |
268 |
echo |
269 |
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:" |
270 |
einfo " Keyfile /etc/opendkim/${selector}.private" |
271 |
einfo " Selector ${selector}" |
272 |
|
273 |
# MTA configuration |
274 |
echo |
275 |
einfo "If you are using Postfix, add following lines to your main.cf:" |
276 |
einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock" |
277 |
einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock" |
278 |
einfo " and read http://www.postfix.org/MILTER_README.html" |
279 |
|
280 |
# DNS configuration |
281 |
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:" |
282 |
cat "${ROOT}"etc/opendkim/${selector}.txt |
283 |
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:" |
284 |
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text" |
285 |
einfo |
286 |
einfo "Also look at the ADSP http://tools.ietf.org/html/rfc5617" |
287 |
} |