1 |
eras 13/03/01 10:58:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opendkim-2.8.0-r1.ebuild |
5 |
Log: |
6 |
Fix building with older versions of libdb |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.62 mail-filter/opendkim/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/ChangeLog?rev=1.62&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/ChangeLog?rev=1.62&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/ChangeLog?r1=1.61&r2=1.62 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v |
20 |
retrieving revision 1.61 |
21 |
retrieving revision 1.62 |
22 |
diff -u -r1.61 -r1.62 |
23 |
--- ChangeLog 26 Feb 2013 09:04:38 -0000 1.61 |
24 |
+++ ChangeLog 1 Mar 2013 10:58:25 -0000 1.62 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for mail-filter/opendkim |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.61 2013/02/26 09:04:38 eras Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.62 2013/03/01 10:58:25 eras Exp $ |
30 |
+ |
31 |
+*opendkim-2.8.0-r1 (01 Mar 2013) |
32 |
+ |
33 |
+ 01 Mar 2013; Eray Aslan <eras@g.o> |
34 |
+ +files/opendkim-2.8.0-berkeleydb.patch, +opendkim-2.8.0-r1.ebuild: |
35 |
+ Fix building with older versions of libdb |
36 |
|
37 |
*opendkim-2.8.0 (26 Feb 2013) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 mail-filter/opendkim/opendkim-2.8.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/opendkim-2.8.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/opendkim/opendkim-2.8.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: opendkim-2.8.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.8.0-r1.ebuild,v 1.1 2013/03/01 10:58:25 eras Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
inherit eutils db-use autotools user |
55 |
|
56 |
# for betas |
57 |
#MY_P=${P/_b/.B} |
58 |
#S=${WORKDIR}/${PN}-2.8.0 |
59 |
#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz" |
60 |
|
61 |
DESCRIPTION="A milter-based application to provide DKIM signing and verification" |
62 |
HOMEPAGE="http://opendkim.org" |
63 |
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz" |
64 |
|
65 |
LICENSE="Sendmail-Open-Source BSD" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
IUSE="+berkdb gnutls ldap lua opendbx poll sasl +ssl static-libs unbound" |
69 |
|
70 |
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail ) |
71 |
dev-libs/libbsd |
72 |
ssl? ( >=dev-libs/openssl-0.9.8 ) |
73 |
berkdb? ( >=sys-libs/db-3.2 ) |
74 |
opendbx? ( >=dev-db/opendbx-1.4.0 ) |
75 |
lua? ( dev-lang/lua ) |
76 |
ldap? ( net-nds/openldap ) |
77 |
sasl? ( dev-libs/cyrus-sasl ) |
78 |
unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root ) |
79 |
!unbound? ( net-libs/ldns ) |
80 |
gnutls? ( >=net-libs/gnutls-2.11.7 )" |
81 |
|
82 |
RDEPEND="${DEPEND} |
83 |
sys-process/psmisc" |
84 |
|
85 |
REQUIRED_USE="sasl? ( ldap )" |
86 |
|
87 |
pkg_setup() { |
88 |
enewgroup milter |
89 |
# mail-milter/spamass-milter creates milter user with this home directory |
90 |
# For consistency reasons, milter user must be created here with this home directory |
91 |
# even though this package doesn't need a home directory for this user (#280571) |
92 |
enewuser milter -1 -1 /var/lib/milter milter |
93 |
} |
94 |
|
95 |
src_prepare() { |
96 |
sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \ |
97 |
-e 's:/var/db/opendkim:/var/lib/opendkim:g' \ |
98 |
-e 's:/etc/mail:/etc/opendkim:g' \ |
99 |
-e 's:mailnull:milter:g' \ |
100 |
-e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \ |
101 |
opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \ |
102 |
stats/opendkim-reportstats || die |
103 |
|
104 |
sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \ |
105 |
|| die |
106 |
|
107 |
# don't go over the sock length and fail |
108 |
sed -i -e '/^sock/s/t-sign-ss-macro-value-file.sock/t-s-s-m-v-f.sock/' \ |
109 |
opendkim/tests/t-sign-ss-macro-value-file.lua || die |
110 |
|
111 |
epatch "${FILESDIR}/${PN}-2.8.0-unbreak_upgrade.patch" |
112 |
epatch "${FILESDIR}/${PN}-2.8.0-berkeleydb.patch" |
113 |
eautoreconf |
114 |
} |
115 |
|
116 |
src_configure() { |
117 |
local myconf |
118 |
if use berkdb ; then |
119 |
myconf=$(db_includedir) |
120 |
myconf="--with-db-incdir=${myconf#-I}" |
121 |
myconf+=" --enable-popauth" |
122 |
myconf+=" --enable-query_cache" |
123 |
myconf+=" --enable-stats" |
124 |
fi |
125 |
if use unbound; then |
126 |
myconf+=" --with-unbound" |
127 |
else |
128 |
myconf+=" --with-ldns" |
129 |
fi |
130 |
if use ldap; then |
131 |
myconf+=" $(use_with sasl)" |
132 |
fi |
133 |
econf \ |
134 |
$(use_with berkdb db) \ |
135 |
$(use_with opendbx odbx) \ |
136 |
$(use_with lua) \ |
137 |
$(use_enable lua rbl) \ |
138 |
$(use_with ldap openldap) \ |
139 |
$(use_enable poll) \ |
140 |
$(use_enable static-libs static) \ |
141 |
$(use_with gnutls) \ |
142 |
${myconf} \ |
143 |
--docdir=/usr/share/doc/${PF} \ |
144 |
--htmldir=/usr/share/doc/${PF}/html \ |
145 |
--enable-filter \ |
146 |
--enable-adsp_lists \ |
147 |
--enable-dkim_reputation \ |
148 |
--enable-identity_header \ |
149 |
--enable-rate_limit \ |
150 |
--enable-redirect \ |
151 |
--enable-resign \ |
152 |
--enable-replace_rules \ |
153 |
--enable-default_sender \ |
154 |
--enable-sender_macro \ |
155 |
--enable-vbr \ |
156 |
--disable-rpath \ |
157 |
--disable-live-testing \ |
158 |
--with-test-socket=/tmp/opendkim-S |
159 |
} |
160 |
|
161 |
src_install() { |
162 |
emake DESTDIR="${D}" install |
163 |
|
164 |
dosbin stats/opendkim-reportstats |
165 |
newinitd "${FILESDIR}/opendkim.init.r3" opendkim |
166 |
dodir /etc/opendkim /var/lib/opendkim |
167 |
fowners milter:milter /var/lib/opendkim |
168 |
|
169 |
# default configuration |
170 |
if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then |
171 |
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \ |
172 |
> "${D}"/etc/opendkim/opendkim.conf |
173 |
if use unbound; then |
174 |
echo TrustedAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf |
175 |
fi |
176 |
echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf |
177 |
if use berkdb; then |
178 |
echo Statistics /var/lib/opendkim/stats.dat >> \ |
179 |
"${D}"/etc/opendkim/opendkim.conf |
180 |
fi |
181 |
fi |
182 |
|
183 |
use static-libs || find "${D}" -name "*.la" -delete |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
if [[ -z ${REPLACING_VERSION} ]]; then |
188 |
elog "If you want to sign your mail messages and need some help" |
189 |
elog "please run:" |
190 |
elog " emerge --config ${CATEGORY}/${PN}" |
191 |
elog "It will help you create your key and give you hints on how" |
192 |
elog "to configure your DNS and MTA." |
193 |
|
194 |
ewarn "Make sure your MTA has r/w access to the socket file." |
195 |
ewarn "This can be done either by setting UMask to 002 and adding MTA's user" |
196 |
ewarn "to milter group or you can simply set UMask to 000." |
197 |
fi |
198 |
} |
199 |
|
200 |
pkg_config() { |
201 |
local selector keysize pubkey |
202 |
|
203 |
read -p "Enter the selector name (default ${HOSTNAME}): " selector |
204 |
[[ -n "${selector}" ]] || selector=${HOSTNAME} |
205 |
if [[ -z "${selector}" ]]; then |
206 |
eerror "Oddly enough, you don't have a HOSTNAME." |
207 |
return 1 |
208 |
fi |
209 |
if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then |
210 |
ewarn "The private key for this selector already exists." |
211 |
else |
212 |
keysize=1024 |
213 |
# generate the private and public keys |
214 |
opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \ |
215 |
-s ${selector} -d '(your domain)' && \ |
216 |
chown milter:milter \ |
217 |
"${ROOT}"etc/opendkim/"${selector}".private || \ |
218 |
{ eerror "Failed to create private and public keys." ; return 1; } |
219 |
chmod go-r "${ROOT}"etc/opendkim/"${selector}".private |
220 |
fi |
221 |
|
222 |
# opendkim selector configuration |
223 |
echo |
224 |
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:" |
225 |
einfo " Keyfile /etc/opendkim/${selector}.private" |
226 |
einfo " Selector ${selector}" |
227 |
|
228 |
# MTA configuration |
229 |
echo |
230 |
einfo "If you are using Postfix, add following lines to your main.cf:" |
231 |
einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock" |
232 |
einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock" |
233 |
einfo " and read http://www.postfix.org/MILTER_README.html" |
234 |
|
235 |
# DNS configuration |
236 |
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:" |
237 |
cat "${ROOT}"etc/opendkim/${selector}.txt |
238 |
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:" |
239 |
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text" |
240 |
einfo |
241 |
einfo "Also look at the ADSP http://tools.ietf.org/html/rfc5617" |
242 |
} |