1 |
commit: 2f8e7b8767abeb0be224fb770835d54bea14278d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 2 14:46:58 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 2 14:48:00 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f8e7b87 |
7 |
|
8 |
app-misc/ca-certificates: Removed old. |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
app-misc/ca-certificates/Manifest | 1 - |
13 |
.../ca-certificates-20160104.3.23.ebuild | 176 --------------------- |
14 |
.../ca-certificates-20160104.3.27.1.ebuild | 175 -------------------- |
15 |
3 files changed, 352 deletions(-) |
16 |
|
17 |
diff --git a/app-misc/ca-certificates/Manifest b/app-misc/ca-certificates/Manifest |
18 |
index be3266c..280810b 100644 |
19 |
--- a/app-misc/ca-certificates/Manifest |
20 |
+++ b/app-misc/ca-certificates/Manifest |
21 |
@@ -3,6 +3,5 @@ DIST ca-certificates_20160104.tar.xz 293632 SHA256 09eb770122e23260316120c0cbbdd |
22 |
DIST ca-certificates_20161102.tar.xz 298544 SHA256 25384a67e2f1e76495ceeb00abfdbe831033780324128cb1587d09132dd173a5 SHA512 8630cbc15d311b71936901bfa4c1a61d78d4468a7d8d0c492d72afc579679402b99e563cc6f88b0377eb7ebee8dcbad1b090fb0831d610a5b8e5bbdb3d8ce284 WHIRLPOOL 8b92ba4228880bcc7b296e9b1333f695194c31e724a02bafaec97bac838f6c36b20fa052935d256930977e2944ed7450c1e1ab2c95b40c8391dffd766938cea7 |
23 |
DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43 |
24 |
DIST nss-3.21.tar.gz 6978112 SHA256 3f7a5b027d7cdd5c0e4ff7544da33fdc6f56c2f8c27fff02938fd4a6fbe87239 SHA512 0645465b5d1ab05d819355a3f4a2879499539a00d95bfab3ca14a7dcd901e510b5d9ae797386ff5a42f68b0b57f7bbec4ec9d3a85ebd508eb824aba1fb589d53 WHIRLPOOL 7504d83de606d61840e06cb855ea688eb022d5eef062bcb7ac4d1064db96b96e35ae4ce0aff9d389a2140a7c3b974aaa9a86ada52af1199d462fdb48b11b42e4 |
25 |
-DIST nss-3.23.tar.gz 7467001 SHA256 94b383e31c9671e9dfcca81084a8a813817e8f05a57f54533509b318d26e11cf SHA512 f3e388a415493685faa6df932e9e968af41ea2e8e4cba3fbd539c60177443e4042e8d2e2bfe74183552e14522d49048be2f80fbe038bdbd499971e82abf2cc32 WHIRLPOOL 77e22bd7a525c5b10723e1d5fb6db1e9d2efebfcdf9828aa79296f71c441c065201ecda56291f37790333d9b1d1e38fef1391a033382a885b83da31a646d6243 |
26 |
DIST nss-3.27.1.tar.gz 7397737 SHA256 fd3637a1930cd838239a89633a7ed9a18859ae9b599043f3a18f726dc4ec2a6b SHA512 b52bc18e42cab78a325a8c4fcf2894ca879cecbb657a852baf460551ed9727f145bc328ebb61a43a1605b457f923a1495707ac4aee27be70220463818ed8db8d WHIRLPOOL 17174b7d43bd82b9e805d653a7ea8b79bc2647a5891806c1cb77e2ac99e40eb64ffee03e105a41c375ba37e26cafeff4bd4bad27c48e94ed388d0215d0545364 |
27 |
DIST nss-3.27.2.tar.gz 7397599 SHA256 dc8ac8524469d0230274fd13a53fdcd74efe4aa67205dde1a4a92be87dc28524 SHA512 699847665e93fd649cb60ce6bc8f849f452779e7232a09bbeb0613f9e6c57bb81948f1ae59cc86648e41a212cda259109850ccd14546d35910deb75f5d2a13b8 WHIRLPOOL 08229d87de1c7020c1d7fc12fb8a2afc4bc9ab9f0208aad12698aba17386fbe9163cb506101c7d4d568409fd99141fb88c0e71fc32cecbc6640a4a8f7a4efabf |
28 |
|
29 |
diff --git a/app-misc/ca-certificates/ca-certificates-20160104.3.23.ebuild b/app-misc/ca-certificates/ca-certificates-20160104.3.23.ebuild |
30 |
deleted file mode 100644 |
31 |
index 2dba788..00000000 |
32 |
--- a/app-misc/ca-certificates/ca-certificates-20160104.3.23.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,176 +0,0 @@ |
35 |
-# Copyright 1999-2016 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
-# $Id$ |
38 |
- |
39 |
-# The Debian ca-certificates package merely takes the CA database as it exists |
40 |
-# in the nss package and repackages it for use by openssl. |
41 |
-# |
42 |
-# The issue with using the compiled debs directly is two fold: |
43 |
-# - they do not update frequently enough for us to rely on them |
44 |
-# - they pull the CA database from nss tip of tree rather than the release |
45 |
-# |
46 |
-# So we take the Debian source tools and combine them with the latest nss |
47 |
-# release to produce (largely) the same end result. The difference is that |
48 |
-# now we know our cert database is kept in sync with nss and, if need be, |
49 |
-# can be sync with nss tip of tree more frequently to respond to bugs. |
50 |
- |
51 |
-# When triaging bugs from users, here's some handy tips: |
52 |
-# - To see what cert is hitting errors, use openssl: |
53 |
-# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME |
54 |
-# Focus on the errors written to stderr. |
55 |
-# |
56 |
-# - Look at the upstream log as to why certs were added/removed: |
57 |
-# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt |
58 |
-# |
59 |
-# - If people want to add/remove certs, tell them to file w/mozilla: |
60 |
-# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk |
61 |
- |
62 |
-EAPI="5" |
63 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
64 |
- |
65 |
-inherit eutils python-any-r1 |
66 |
- |
67 |
-if [[ ${PV} == *.* ]] ; then |
68 |
- # Compile from source ourselves. |
69 |
- PRECOMPILED=false |
70 |
- inherit versionator |
71 |
- |
72 |
- DEB_VER=$(get_version_component_range 1) |
73 |
- NSS_VER=$(get_version_component_range 2-) |
74 |
- RTM_NAME="NSS_${NSS_VER//./_}_RTM" |
75 |
-else |
76 |
- # Debian precompiled version. |
77 |
- PRECOMPILED=true |
78 |
- inherit unpacker |
79 |
-fi |
80 |
- |
81 |
-DESCRIPTION="Common CA Certificates PEM files" |
82 |
-HOMEPAGE="http://packages.debian.org/sid/ca-certificates" |
83 |
-NMU_PR="" |
84 |
-if ${PRECOMPILED} ; then |
85 |
- SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb" |
86 |
-else |
87 |
- SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz |
88 |
- https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz |
89 |
- cacert? ( https://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )" |
90 |
-fi |
91 |
- |
92 |
-LICENSE="MPL-1.1" |
93 |
-SLOT="0" |
94 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
95 |
-IUSE="" |
96 |
-${PRECOMPILED} || IUSE+=" +cacert" |
97 |
- |
98 |
-DEPEND="" |
99 |
-if ${PRECOMPILED} ; then |
100 |
- DEPEND+=" !<sys-apps/portage-2.1.10.41" |
101 |
-fi |
102 |
-# c_rehash: we run `c_rehash` |
103 |
-# debianutils: we run `run-parts` |
104 |
-RDEPEND="${DEPEND} |
105 |
- app-misc/c_rehash |
106 |
- sys-apps/debianutils" |
107 |
- |
108 |
-if ! ${PRECOMPILED}; then |
109 |
- DEPEND+=" ${PYTHON_DEPS}" |
110 |
-fi |
111 |
- |
112 |
-S=${WORKDIR} |
113 |
- |
114 |
-pkg_setup() { |
115 |
- # For the conversion to having it in CONFIG_PROTECT_MASK, |
116 |
- # we need to tell users about it once manually first. |
117 |
- [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \ |
118 |
- || ewarn "You should run update-ca-certificates manually after etc-update" |
119 |
-} |
120 |
- |
121 |
-src_unpack() { |
122 |
- ${PRECOMPILED} || default |
123 |
- |
124 |
- # Do all the work in the image subdir to avoid conflicting with source |
125 |
- # dirs in $WORKDIR. Need to perform everything in the offset #381937 |
126 |
- mkdir -p "image/${EPREFIX}" |
127 |
- cd "image/${EPREFIX}" || die |
128 |
- |
129 |
- ${PRECOMPILED} && unpacker_src_unpack |
130 |
-} |
131 |
- |
132 |
-src_prepare() { |
133 |
- cd "image/${EPREFIX}" || die |
134 |
- if ! ${PRECOMPILED} ; then |
135 |
- mkdir -p usr/sbin |
136 |
- cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die |
137 |
- |
138 |
- if use cacert ; then |
139 |
- pushd "${S}"/nss-${NSS_VER} >/dev/null |
140 |
- epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch |
141 |
- popd >/dev/null |
142 |
- fi |
143 |
- fi |
144 |
- |
145 |
- epatch "${FILESDIR}"/${PN}-20150426-root.patch |
146 |
- local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g') |
147 |
- sed -i \ |
148 |
- -e '/="$ROOT/s:ROOT:ROOT'"${EPREFIX}"':' \ |
149 |
- -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \ |
150 |
- usr/sbin/update-ca-certificates || die |
151 |
-} |
152 |
- |
153 |
-src_compile() { |
154 |
- cd "image/${EPREFIX}" || die |
155 |
- if ! ${PRECOMPILED} ; then |
156 |
- python_setup |
157 |
- local d="${S}/${PN}/mozilla" |
158 |
- # Grab the database from the nss sources. |
159 |
- cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die |
160 |
- emake -C "${d}" |
161 |
- |
162 |
- # Now move the files to the same places that the precompiled would. |
163 |
- mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla |
164 |
- if use cacert ; then |
165 |
- mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org} |
166 |
- mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die |
167 |
- mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die |
168 |
- fi |
169 |
- mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die |
170 |
- else |
171 |
- mv usr/share/doc/{ca-certificates,${PF}} || die |
172 |
- fi |
173 |
- |
174 |
- ( |
175 |
- echo "# Automatically generated by ${CATEGORY}/${PF}" |
176 |
- echo "# $(date -u)" |
177 |
- echo "# Do not edit." |
178 |
- cd usr/share/ca-certificates |
179 |
- find * -name '*.crt' | LC_ALL=C sort |
180 |
- ) > etc/ca-certificates.conf |
181 |
- |
182 |
- sh usr/sbin/update-ca-certificates --root "${S}/image" || die |
183 |
-} |
184 |
- |
185 |
-src_install() { |
186 |
- cp -pPR image/* "${D}"/ || die |
187 |
- if ! ${PRECOMPILED} ; then |
188 |
- cd ca-certificates |
189 |
- doman sbin/*.8 |
190 |
- dodoc debian/README.* examples/ca-certificates-local/README |
191 |
- fi |
192 |
- |
193 |
- echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates |
194 |
- doenvd 98ca-certificates |
195 |
-} |
196 |
- |
197 |
-pkg_postinst() { |
198 |
- if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then |
199 |
- # if the user has local certs, we need to rebuild again |
200 |
- # to include their stuff in the db. |
201 |
- # However it's too overzealous when the user has custom certs in place. |
202 |
- # --fresh is to clean up dangling symlinks |
203 |
- "${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}" |
204 |
- fi |
205 |
- |
206 |
- if [ -n "$(find -L "${EROOT}"etc/ssl/certs/ -type l)" ] ; then |
207 |
- ewarn "Removing the following broken symlinks:" |
208 |
- ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)" |
209 |
- fi |
210 |
-} |
211 |
|
212 |
diff --git a/app-misc/ca-certificates/ca-certificates-20160104.3.27.1.ebuild b/app-misc/ca-certificates/ca-certificates-20160104.3.27.1.ebuild |
213 |
deleted file mode 100644 |
214 |
index 924bc68..00000000 |
215 |
--- a/app-misc/ca-certificates/ca-certificates-20160104.3.27.1.ebuild |
216 |
+++ /dev/null |
217 |
@@ -1,175 +0,0 @@ |
218 |
-# Copyright 1999-2016 Gentoo Foundation |
219 |
-# Distributed under the terms of the GNU General Public License v2 |
220 |
-# $Id$ |
221 |
- |
222 |
-# The Debian ca-certificates package merely takes the CA database as it exists |
223 |
-# in the nss package and repackages it for use by openssl. |
224 |
-# |
225 |
-# The issue with using the compiled debs directly is two fold: |
226 |
-# - they do not update frequently enough for us to rely on them |
227 |
-# - they pull the CA database from nss tip of tree rather than the release |
228 |
-# |
229 |
-# So we take the Debian source tools and combine them with the latest nss |
230 |
-# release to produce (largely) the same end result. The difference is that |
231 |
-# now we know our cert database is kept in sync with nss and, if need be, |
232 |
-# can be sync with nss tip of tree more frequently to respond to bugs. |
233 |
- |
234 |
-# When triaging bugs from users, here's some handy tips: |
235 |
-# - To see what cert is hitting errors, use openssl: |
236 |
-# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME |
237 |
-# Focus on the errors written to stderr. |
238 |
-# |
239 |
-# - Look at the upstream log as to why certs were added/removed: |
240 |
-# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt |
241 |
-# |
242 |
-# - If people want to add/remove certs, tell them to file w/mozilla: |
243 |
-# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk |
244 |
- |
245 |
-EAPI="5" |
246 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
247 |
- |
248 |
-inherit eutils python-any-r1 |
249 |
- |
250 |
-if [[ ${PV} == *.* ]] ; then |
251 |
- # Compile from source ourselves. |
252 |
- PRECOMPILED=false |
253 |
- inherit versionator |
254 |
- |
255 |
- DEB_VER=$(get_version_component_range 1) |
256 |
- NSS_VER=$(get_version_component_range 2-) |
257 |
- RTM_NAME="NSS_${NSS_VER//./_}_RTM" |
258 |
-else |
259 |
- # Debian precompiled version. |
260 |
- PRECOMPILED=true |
261 |
- inherit unpacker |
262 |
-fi |
263 |
- |
264 |
-DESCRIPTION="Common CA Certificates PEM files" |
265 |
-HOMEPAGE="http://packages.debian.org/sid/ca-certificates" |
266 |
-NMU_PR="" |
267 |
-if ${PRECOMPILED} ; then |
268 |
- SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb" |
269 |
-else |
270 |
- SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz |
271 |
- https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz |
272 |
- cacert? ( https://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )" |
273 |
-fi |
274 |
- |
275 |
-LICENSE="MPL-1.1" |
276 |
-SLOT="0" |
277 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
278 |
-IUSE="" |
279 |
-${PRECOMPILED} || IUSE+=" cacert" |
280 |
- |
281 |
-DEPEND="" |
282 |
-if ${PRECOMPILED} ; then |
283 |
- DEPEND+=" !<sys-apps/portage-2.1.10.41" |
284 |
-fi |
285 |
-# c_rehash: we run `c_rehash` |
286 |
-# debianutils: we run `run-parts` |
287 |
-RDEPEND="${DEPEND} |
288 |
- app-misc/c_rehash |
289 |
- sys-apps/debianutils" |
290 |
- |
291 |
-if ! ${PRECOMPILED}; then |
292 |
- DEPEND+=" ${PYTHON_DEPS}" |
293 |
-fi |
294 |
- |
295 |
-S=${WORKDIR} |
296 |
- |
297 |
-pkg_setup() { |
298 |
- # For the conversion to having it in CONFIG_PROTECT_MASK, |
299 |
- # we need to tell users about it once manually first. |
300 |
- [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \ |
301 |
- || ewarn "You should run update-ca-certificates manually after etc-update" |
302 |
-} |
303 |
- |
304 |
-src_unpack() { |
305 |
- ${PRECOMPILED} || default |
306 |
- |
307 |
- # Do all the work in the image subdir to avoid conflicting with source |
308 |
- # dirs in $WORKDIR. Need to perform everything in the offset #381937 |
309 |
- mkdir -p "image/${EPREFIX}" |
310 |
- cd "image/${EPREFIX}" || die |
311 |
- |
312 |
- ${PRECOMPILED} && unpacker_src_unpack |
313 |
-} |
314 |
- |
315 |
-src_prepare() { |
316 |
- cd "image/${EPREFIX}" || die |
317 |
- if ! ${PRECOMPILED} ; then |
318 |
- mkdir -p usr/sbin |
319 |
- cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die |
320 |
- |
321 |
- if use cacert ; then |
322 |
- pushd "${S}"/nss-${NSS_VER} >/dev/null |
323 |
- epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch |
324 |
- popd >/dev/null |
325 |
- fi |
326 |
- fi |
327 |
- |
328 |
- epatch "${FILESDIR}"/${PN}-20150426-root.patch |
329 |
- local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g') |
330 |
- sed -i \ |
331 |
- -e '/="$ROOT/s:ROOT:ROOT'"${EPREFIX}"':' \ |
332 |
- -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \ |
333 |
- usr/sbin/update-ca-certificates || die |
334 |
-} |
335 |
- |
336 |
-src_compile() { |
337 |
- cd "image/${EPREFIX}" || die |
338 |
- if ! ${PRECOMPILED} ; then |
339 |
- python_setup |
340 |
- local d="${S}/${PN}/mozilla" |
341 |
- # Grab the database from the nss sources. |
342 |
- cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die |
343 |
- emake -C "${d}" |
344 |
- |
345 |
- # Now move the files to the same places that the precompiled would. |
346 |
- mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla |
347 |
- if use cacert ; then |
348 |
- mkdir -p usr/share/ca-certificates/cacert.org |
349 |
- mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die |
350 |
- fi |
351 |
- mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die |
352 |
- else |
353 |
- mv usr/share/doc/{ca-certificates,${PF}} || die |
354 |
- fi |
355 |
- |
356 |
- ( |
357 |
- echo "# Automatically generated by ${CATEGORY}/${PF}" |
358 |
- echo "# $(date -u)" |
359 |
- echo "# Do not edit." |
360 |
- cd usr/share/ca-certificates |
361 |
- find * -name '*.crt' | LC_ALL=C sort |
362 |
- ) > etc/ca-certificates.conf |
363 |
- |
364 |
- sh usr/sbin/update-ca-certificates --root "${S}/image" || die |
365 |
-} |
366 |
- |
367 |
-src_install() { |
368 |
- cp -pPR image/* "${D}"/ || die |
369 |
- if ! ${PRECOMPILED} ; then |
370 |
- cd ca-certificates |
371 |
- doman sbin/*.8 |
372 |
- dodoc debian/README.* examples/ca-certificates-local/README |
373 |
- fi |
374 |
- |
375 |
- echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates |
376 |
- doenvd 98ca-certificates |
377 |
-} |
378 |
- |
379 |
-pkg_postinst() { |
380 |
- if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then |
381 |
- # if the user has local certs, we need to rebuild again |
382 |
- # to include their stuff in the db. |
383 |
- # However it's too overzealous when the user has custom certs in place. |
384 |
- # --fresh is to clean up dangling symlinks |
385 |
- "${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}" |
386 |
- fi |
387 |
- |
388 |
- if [ -n "$(find -L "${EROOT}"etc/ssl/certs/ -type l)" ] ; then |
389 |
- ewarn "Removing the following broken symlinks:" |
390 |
- ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)" |
391 |
- fi |
392 |
-} |