Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/opendnssec/
Date: Tue, 23 Aug 2016 15:49:00
Message-Id: 1471967313.cf60402a821d0f1815710928e1b74bc46b47812e.mschiff@gentoo
1 commit: cf60402a821d0f1815710928e1b74bc46b47812e
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 23 06:49:14 2016 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 15:48:33 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf60402a
7
8 net-dns/opendnssec: drop old version
9
10 Package-Manager: portage-2.3.0
11
12 net-dns/opendnssec/Manifest | 1 -
13 net-dns/opendnssec/opendnssec-1.4.7.ebuild | 206 -----------------------------
14 2 files changed, 207 deletions(-)
15
16 diff --git a/net-dns/opendnssec/Manifest b/net-dns/opendnssec/Manifest
17 index 856e7f5..9beee25 100644
18 --- a/net-dns/opendnssec/Manifest
19 +++ b/net-dns/opendnssec/Manifest
20 @@ -1,3 +1,2 @@
21 DIST opendnssec-1.3.18.tar.gz 1143889 SHA256 e61d23ae0cc57b6e09d408bade6872fe5241896c61a03e8bc5ceeb65df13a676 SHA512 5df39ba778c9b1245e88b81df7aa491bca0aad2943845284c4f8b4dd729fa69014d45f07bdf99a048ccf668a1c9675a8dd99efcec1abdbd4e06e9738fec6ab6d WHIRLPOOL 7213b8f2f86651114449bc4734452d6065960e26ee289051949ca27ae3b23280cea45ff707f71942eef91c9009200272c0985ef3d3de43c9343ad2e1e54303ce
22 -DIST opendnssec-1.4.7.tar.gz 1038884 SHA256 8f757ca9e88d6a6dc8f9b6e46a3da5e3a2881b3311fb91c428bcf906683ac41f SHA512 def2a8e41331bd70f287ea3081a7368144ada92ad5cc9f62d28d3064e34f7c0c84998422d515f5ec9c7e668757e796df8c5446839e24e4a9e2af1357c342c0b2 WHIRLPOOL 37641549f4bb6ecb519a091e60537acf7fab69fc3482ab8857abd2ce57d8b5240031069d487246f88577ca32d48004b10a7784c10b4155b3339d67bd5567591a
23 DIST opendnssec-1.4.8.2.tar.gz 1043171 SHA256 7fd553ee39173e807477ed1daff6ee2f8b1c83875cd2e52a1df3315bf0015513 SHA512 7f2e10b425f60947aca40c61509b07ddc4363105cc882b518ffa816437299d6f881411cb38325f27b3a34c2005953988b39c945362866dd0f1f7c6ef973bfa06 WHIRLPOOL 38079a89d8e3d039aeab28c80b7fb1a9739014736d6076442c546fae1b13e1c89faa1858beb6f4d2f495d19a2a1187a7af10c55c0ed33563bc9b2d57945de807
24
25 diff --git a/net-dns/opendnssec/opendnssec-1.4.7.ebuild b/net-dns/opendnssec/opendnssec-1.4.7.ebuild
26 deleted file mode 100644
27 index 032caea..0000000
28 --- a/net-dns/opendnssec/opendnssec-1.4.7.ebuild
29 +++ /dev/null
30 @@ -1,206 +0,0 @@
31 -# Copyright 1999-2015 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Id$
34 -
35 -EAPI=5
36 -
37 -MY_P="${P/_}"
38 -PKCS11_IUSE="+softhsm opensc external-hsm"
39 -inherit base autotools multilib user
40 -
41 -DESCRIPTION="An open-source turn-key solution for DNSSEC"
42 -HOMEPAGE="http://www.opendnssec.org/"
43 -SRC_URI="http://www.${PN}.org/files/source/${MY_P}.tar.gz"
44 -
45 -LICENSE="BSD GPL-2"
46 -SLOT="0"
47 -KEYWORDS="~amd64 ~x86"
48 -IUSE="debug doc +mysql +signer sqlite test ${PKCS11_IUSE}"
49 -
50 -RDEPEND="
51 - dev-lang/perl
52 - dev-libs/libxml2
53 - dev-libs/libxslt
54 - net-libs/ldns
55 - mysql? (
56 - virtual/mysql
57 - dev-perl/DBD-mysql
58 - )
59 - opensc? ( dev-libs/opensc )
60 - softhsm? ( dev-libs/softhsm )
61 - sqlite? (
62 - dev-db/sqlite:3
63 - dev-perl/DBD-SQLite
64 - )
65 -"
66 -DEPEND="${RDEPEND}
67 - doc? ( app-doc/doxygen )
68 - test? (
69 - app-text/trang
70 - )
71 -"
72 -
73 -REQUIRED_USE="
74 - ^^ ( mysql sqlite )
75 - ^^ ( softhsm opensc external-hsm )
76 -"
77 -
78 -PATCHES=(
79 - "${FILESDIR}/${PN}-fix-localstatedir.patch"
80 - "${FILESDIR}/${PN}-fix-run-dir.patch"
81 - "${FILESDIR}/${PN}-drop-privileges.patch"
82 - "${FILESDIR}/${PN}-use-system-trang.patch"
83 -)
84 -
85 -S="${WORKDIR}/${MY_P}"
86 -
87 -DOCS=( MIGRATION NEWS )
88 -
89 -check_pkcs11_setup() {
90 - # PKCS#11 HSM's are often only available with proprietary drivers not
91 - # available in portage tree.
92 -
93 - if use softhsm; then
94 - PKCS11_LIB=softhsm
95 - if has_version ">=dev-libs/softhsm-1.3.1"; then
96 - PKCS11_PATH=/usr/$(get_libdir)/softhsm/libsofthsm.so
97 - else
98 - PKCS11_PATH=/usr/$(get_libdir)/libsofthsm.so
99 - fi
100 - elog "Building with SoftHSM PKCS#11 library support."
101 - fi
102 - if use opensc; then
103 - PKCS11_LIB=opensc
104 - PKCS11_PATH=/usr/$(get_libdir)/opensc-pkcs11.so
105 - elog "Building with OpenSC PKCS#11 library support."
106 - fi
107 - if use external-hsm; then
108 - if [[ -n ${PKCS11_SCA6000} ]]; then
109 - PKCS11_LIB=sca6000
110 - PKCS11_PATH=${PKCS11_SCA6000}
111 - elif [[ -n ${PKCS11_ETOKEN} ]]; then
112 - PKCS11_LIB=etoken
113 - PKCS11_PATH=${PKCS11_ETOKEN}
114 - elif [[ -n ${PKCS11_NCIPHER} ]]; then
115 - PKCS11_LIB=ncipher
116 - PKCS11_PATH=${PKCS11_NCIPHER}
117 - elif [[ -n ${PKCS11_AEPKEYPER} ]]; then
118 - PKCS11_LIB=aepkeyper
119 - PKCS11_PATH=${PKCS11_AEPKEYPER}
120 - else
121 - ewarn "You enabled USE flag 'external-hsm' but did not specify a path to a PKCS#11"
122 - ewarn "library. To set a path, set one of the following environment variables:"
123 - ewarn " for Sun Crypto Accelerator 6000, set: PKCS11_SCA6000=<path>"
124 - ewarn " for Aladdin eToken, set: PKCS11_ETOKEN=<path>"
125 - ewarn " for Thales/nCipher netHSM, set: PKCS11_NCIPHER=<path>"
126 - ewarn " for AEP Keyper, set: PKCS11_AEPKEYPER=<path>"
127 - ewarn "Example:"
128 - ewarn " PKCS11_ETOKEN=\"/opt/etoken/lib/libeTPkcs11.so\" emerge -pv opendnssec"
129 - ewarn "or store the variable into /etc/make.conf"
130 - die "USE flag 'external-hsm' set but no PKCS#11 library path specified."
131 - fi
132 - elog "Building with external PKCS#11 library support ($PKCS11_LIB): ${PKCS11_PATH}"
133 - fi
134 -}
135 -
136 -pkg_pretend() {
137 - check_pkcs11_setup
138 -}
139 -
140 -pkg_setup() {
141 - enewgroup opendnssec
142 - enewuser opendnssec -1 -1 -1 opendnssec
143 -
144 - # pretend does not preserve variables so we need to run this once more
145 - check_pkcs11_setup
146 -}
147 -
148 -src_prepare() {
149 - base_src_prepare
150 - eautoreconf
151 -}
152 -
153 -src_configure() {
154 - econf \
155 - --without-cunit \
156 - --localstatedir="${EPREFIX}/var/" \
157 - --disable-static \
158 - --with-database-backend=$(use mysql && echo "mysql")$(use sqlite && echo "sqlite3") \
159 - --with-pkcs11-${PKCS11_LIB}=${PKCS11_PATH} \
160 - $(use_enable debug timeshift) \
161 - $(use_enable signer)
162 -}
163 -
164 -src_compile() {
165 - default
166 - use doc && emake docs
167 -}
168 -
169 -src_install() {
170 - default
171 -
172 - # remove useless .la files
173 - find "${ED}" -name '*.la' -delete
174 -
175 - # Remove subversion tags from config files to avoid useless config updates
176 - sed -i \
177 - -e '/<!-- \$Id:/ d' \
178 - "${ED}"/etc/opendnssec/* || die
179 -
180 - # install update scripts
181 - insinto /usr/share/opendnssec
182 - if use sqlite; then
183 - doins enforcer/utils/migrate_keyshare_sqlite3.pl
184 - doins enforcer/utils/migrate_adapters_1.sqlite3
185 - fi
186 - if use mysql; then
187 - doins enforcer/utils/migrate_keyshare_mysql.pl
188 - doins enforcer/utils/migrate_adapters_1.mysql
189 - fi
190 -
191 - # fix permissions
192 - fowners root:opendnssec /etc/opendnssec
193 - fowners root:opendnssec /etc/opendnssec/{addns,conf,kasp,zonelist}.xml
194 - fowners opendnssec:opendnssec /var/lib/opendnssec/{,signconf,unsigned,signed,tmp}
195 -
196 - # install conf/init script
197 - newinitd "${FILESDIR}"/opendnssec.initd opendnssec
198 - newconfd "${FILESDIR}"/opendnssec.confd opendnssec
199 -}
200 -
201 -pkg_postinst() {
202 - local v
203 - if use softhsm; then
204 - elog "Please make sure that you create your softhsm database in a location writeable"
205 - elog "by the opendnssec user. You can set its location in /etc/softhsm.conf."
206 - elog "Suggested configuration is:"
207 - elog " echo \"0:/var/lib/opendnssec/softhsm_slot0.db\" >> /etc/softhsm.conf"
208 - elog " softhsm --init-token --slot 0 --label OpenDNSSEC"
209 - elog " chown opendnssec:opendnssec /var/lib/opendnssec/softhsm_slot0.db"
210 - fi
211 -
212 - for v in $REPLACING_VERSIONS; do
213 - case $v in
214 - 1.3.*)
215 - ewarn ""
216 - ewarn "You are upgrading from version 1.3."
217 - ewarn ""
218 - ewarn "Please be aware of the following:"
219 - ewarn " * OpenDNSSEC now supports both input and output adapters for"
220 - ewarn " AXFR and IXFR in addition to file transfer."
221 - ewarn " -> The zonefetch.xml file has been replaced by addns.xml"
222 - ewarn " to support this enhancement."
223 - ewarn " -> changes to the KASP database mean that a database"
224 - ewarn " migration is required to upgrade to 1.4 from earlier"
225 - ewarn " versions of OpenDNSSEC."
226 - ewarn " * The auditor is no longer supported."
227 - ewarn ""
228 - ewarn "You can find more information here:"
229 - ewarn " * /usr/share/doc/opendnssec*/MIGRATION*"
230 - ewarn " * https://wiki.opendnssec.org/display/DOCS/Migrating+zone+fetcher+to+DNS+adapters"
231 - ewarn " * https://wiki.opendnssec.org/display/DOCS/Migrating+from+earlier+versions+of+OpenDNSSEC"
232 - ewarn ""
233 - ;;
234 - esac
235 - done
236 -}