Gentoo Archives: gentoo-commits

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