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