1 |
mschiff 13/03/04 19:35:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opendnssec-1.3.13.ebuild |
5 |
Removed: opendnssec-1.3.11.ebuild |
6 |
Log: |
7 |
Bump version. Remove old version. |
8 |
|
9 |
(Portage version: 2.2.0_alpha165/cvs/Linux x86_64, signed Manifest commit with key 0x296C6CCA35A64134) |
10 |
|
11 |
Revision Changes Path |
12 |
1.24 net-dns/opendnssec/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/opendnssec/ChangeLog?rev=1.24&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/opendnssec/ChangeLog?rev=1.24&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/opendnssec/ChangeLog?r1=1.23&r2=1.24 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-dns/opendnssec/ChangeLog,v |
21 |
retrieving revision 1.23 |
22 |
retrieving revision 1.24 |
23 |
diff -u -r1.23 -r1.24 |
24 |
--- ChangeLog 31 Jan 2013 13:23:42 -0000 1.23 |
25 |
+++ ChangeLog 4 Mar 2013 19:35:14 -0000 1.24 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-dns/opendnssec |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-dns/opendnssec/ChangeLog,v 1.23 2013/01/31 13:23:42 mschiff Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-dns/opendnssec/ChangeLog,v 1.24 2013/03/04 19:35:14 mschiff Exp $ |
31 |
+ |
32 |
+*opendnssec-1.3.13 (04 Mar 2013) |
33 |
+ |
34 |
+ 04 Mar 2013; Marc Schiffbauer <mschiff@g.o> -opendnssec-1.3.11.ebuild, |
35 |
+ +opendnssec-1.3.13.ebuild: |
36 |
+ Bump version. Remove old version. |
37 |
|
38 |
31 Jan 2013; Marc Schiffbauer <mschiff@g.o> files/opendnssec.confd: |
39 |
Make opendnssec.confd use /run, not /var/run |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-dns/opendnssec/opendnssec-1.3.13.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/opendnssec/opendnssec-1.3.13.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/opendnssec/opendnssec-1.3.13.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: opendnssec-1.3.13.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/opendnssec/opendnssec-1.3.13.ebuild,v 1.1 2013/03/04 19:35:14 mschiff Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
MY_P="${P/_}" |
57 |
PKCS11_IUSE="+softhsm opensc external-hsm" |
58 |
inherit base autotools multilib user |
59 |
|
60 |
DESCRIPTION="An open-source turn-key solution for DNSSEC" |
61 |
HOMEPAGE="http://www.opendnssec.org/" |
62 |
SRC_URI="http://www.${PN}.org/files/source/${MY_P}.tar.gz" |
63 |
|
64 |
LICENSE="BSD GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="auditor +curl debug doc eppclient mysql +signer +sqlite test ${PKCS11_IUSE}" |
68 |
|
69 |
RDEPEND=" |
70 |
dev-lang/perl |
71 |
dev-libs/libxml2 |
72 |
dev-libs/libxslt |
73 |
>=net-libs/ldns-1.6.12 |
74 |
auditor? ( dev-lang/ruby[ssl] dev-ruby/dnsruby ) |
75 |
curl? ( net-misc/curl ) |
76 |
mysql? ( |
77 |
virtual/mysql |
78 |
dev-perl/DBD-mysql |
79 |
) |
80 |
opensc? ( dev-libs/opensc ) |
81 |
softhsm? ( dev-libs/softhsm ) |
82 |
sqlite? ( |
83 |
dev-db/sqlite:3 |
84 |
dev-perl/DBD-SQLite |
85 |
) |
86 |
" |
87 |
DEPEND="${RDEPEND} |
88 |
doc? ( app-doc/doxygen ) |
89 |
test? ( |
90 |
app-text/trang |
91 |
) |
92 |
" |
93 |
# test? dev-util/cunit # Requires running test DB |
94 |
|
95 |
REQUIRED_USE=" |
96 |
^^ ( mysql sqlite ) |
97 |
^^ ( softhsm opensc external-hsm ) |
98 |
eppclient? ( curl ) |
99 |
" |
100 |
|
101 |
PATCHES=( |
102 |
"${FILESDIR}/${PN}-fix-localstatedir.patch" |
103 |
"${FILESDIR}/${PN}-fix-run-dir.patch" |
104 |
"${FILESDIR}/${PN}-drop-privileges.patch" |
105 |
"${FILESDIR}/${PN}-use-system-trang.patch" |
106 |
) |
107 |
|
108 |
S="${WORKDIR}/${MY_P}" |
109 |
|
110 |
DOCS=( MIGRATION NEWS README ) |
111 |
|
112 |
check_pkcs11_setup() { |
113 |
# PKCS#11 HSM's are often only available with proprietary drivers not |
114 |
# available in portage tree. |
115 |
|
116 |
if use softhsm; then |
117 |
PKCS11_LIB=softhsm |
118 |
if has_version ">=dev-libs/softhsm-1.3.1"; then |
119 |
PKCS11_PATH=/usr/$(get_libdir)/softhsm/libsofthsm.so |
120 |
else |
121 |
PKCS11_PATH=/usr/$(get_libdir)/libsofthsm.so |
122 |
fi |
123 |
elog "Building with SoftHSM PKCS#11 library support." |
124 |
fi |
125 |
if use opensc; then |
126 |
PKCS11_LIB=opensc |
127 |
PKCS11_PATH=/usr/$(get_libdir)/opensc-pkcs11.so |
128 |
elog "Building with OpenSC PKCS#11 library support." |
129 |
fi |
130 |
if use external-hsm; then |
131 |
if [[ -n ${PKCS11_SCA6000} ]]; then |
132 |
PKCS11_LIB=sca6000 |
133 |
PKCS11_PATH=${PKCS11_SCA6000} |
134 |
elif [[ -n ${PKCS11_ETOKEN} ]]; then |
135 |
PKCS11_LIB=etoken |
136 |
PKCS11_PATH=${PKCS11_ETOKEN} |
137 |
elif [[ -n ${PKCS11_NCIPHER} ]]; then |
138 |
PKCS11_LIB=ncipher |
139 |
PKCS11_PATH=${PKCS11_NCIPHER} |
140 |
elif [[ -n ${PKCS11_AEPKEYPER} ]]; then |
141 |
PKCS11_LIB=aepkeyper |
142 |
PKCS11_PATH=${PKCS11_AEPKEYPER} |
143 |
else |
144 |
ewarn "You enabled USE flag 'external-hsm' but did not specify a path to a PKCS#11" |
145 |
ewarn "library. To set a path, set one of the following environment variables:" |
146 |
ewarn " for Sun Crypto Accelerator 6000, set: PKCS11_SCA6000=<path>" |
147 |
ewarn " for Aladdin eToken, set: PKCS11_ETOKEN=<path>" |
148 |
ewarn " for Thales/nCipher netHSM, set: PKCS11_NCIPHER=<path>" |
149 |
ewarn " for AEP Keyper, set: PKCS11_AEPKEYPER=<path>" |
150 |
ewarn "Example:" |
151 |
ewarn " PKCS11_ETOKEN=\"/opt/etoken/lib/libeTPkcs11.so\" emerge -pv opendnssec" |
152 |
ewarn "or store the variable into /etc/make.conf" |
153 |
die "USE flag 'external-hsm' set but no PKCS#11 library path specified." |
154 |
fi |
155 |
elog "Building with external PKCS#11 library support ($PKCS11_LIB): ${PKCS11_PATH}" |
156 |
fi |
157 |
} |
158 |
|
159 |
pkg_pretend() { |
160 |
local i |
161 |
|
162 |
for i in eppclient mysql; do |
163 |
if use ${i}; then |
164 |
ewarn "Usage of ${i} is considered experimental." |
165 |
ewarn "Do not report bugs against this feature." |
166 |
fi |
167 |
done |
168 |
|
169 |
check_pkcs11_setup |
170 |
} |
171 |
|
172 |
pkg_setup() { |
173 |
enewgroup opendnssec |
174 |
enewuser opendnssec -1 -1 -1 opendnssec |
175 |
|
176 |
# pretend does not preserve variables so we need to run this once more |
177 |
check_pkcs11_setup |
178 |
} |
179 |
|
180 |
src_prepare() { |
181 |
base_src_prepare |
182 |
eautoreconf |
183 |
} |
184 |
|
185 |
src_configure() { |
186 |
# $(use_with test cunit "${EPREFIX}/usr/") \ |
187 |
econf \ |
188 |
--without-cunit \ |
189 |
--localstatedir="${EPREFIX}/var/" \ |
190 |
--disable-static \ |
191 |
--with-database-backend=$(use mysql && echo "mysql")$(use sqlite && echo "sqlite3") \ |
192 |
--with-pkcs11-${PKCS11_LIB}=${PKCS11_PATH} \ |
193 |
$(use_with curl) \ |
194 |
$(use_enable auditor) \ |
195 |
$(use_enable debug timeshift) \ |
196 |
$(use_enable eppclient) \ |
197 |
$(use_enable signer) |
198 |
} |
199 |
|
200 |
src_compile() { |
201 |
default |
202 |
use doc && emake docs |
203 |
} |
204 |
|
205 |
src_install() { |
206 |
default |
207 |
|
208 |
# remove useless .la files |
209 |
find "${ED}" -name '*.la' -delete |
210 |
|
211 |
# Remove subversion tags from config files to avoid useless config updates |
212 |
sed -i \ |
213 |
-e '/<!-- \$Id:/ d' \ |
214 |
"${ED}"/etc/opendnssec/* || die |
215 |
|
216 |
# install update scripts |
217 |
insinto /usr/share/opendnssec |
218 |
use sqlite && doins enforcer/utils/migrate_keyshare_sqlite3.pl |
219 |
use mysql && doins enforcer/utils/migrate_keyshare_mysql.pl |
220 |
|
221 |
# fix permissions |
222 |
fowners root:opendnssec /etc/opendnssec |
223 |
fowners root:opendnssec /etc/opendnssec/{conf,kasp,zonelist,zonefetch}.xml |
224 |
use eppclient && fowners root:opendnssec /etc/opendnssec/eppclientd.conf |
225 |
|
226 |
fowners opendnssec:opendnssec /var/lib/opendnssec/{,signconf,unsigned,signed,tmp} |
227 |
fowners opendnssec:opendnssec /run/opendnssec |
228 |
|
229 |
# install conf/init script |
230 |
newinitd "${FILESDIR}"/opendnssec.initd opendnssec |
231 |
newconfd "${FILESDIR}"/opendnssec.confd opendnssec |
232 |
} |
233 |
|
234 |
pkg_postinst() { |
235 |
if use softhsm; then |
236 |
elog "Please make sure that you create your softhsm database in a location writeable" |
237 |
elog "by the opendnssec user. You can set its location in /etc/softhsm.conf." |
238 |
elog "Suggested configuration is:" |
239 |
elog " echo \"0:/var/lib/opendnssec/softhsm_slot0.db\" >> /etc/softhsm.conf" |
240 |
elog " softhsm --init-token --slot 0 --label OpenDNSSEC" |
241 |
elog " chown opendnssec:opendnssec /var/lib/opendnssec/softhsm_slot0.db" |
242 |
fi |
243 |
} |