summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-12-27 18:45:14 +0000
committerMike Frysinger <vapier@gentoo.org>2008-12-27 18:45:14 +0000
commit11b3a6355ee64ad0bc28e0435666443ef438b922 (patch)
treea7e2069f702d75701583f7110e64582acc99dd43 /app-misc/ca-certificates/ca-certificates-20080809.ebuild
parentAdded python_mod_optimize to postinstall phase (diff)
downloadhistorical-11b3a6355ee64ad0bc28e0435666443ef438b922.tar.gz
historical-11b3a6355ee64ad0bc28e0435666443ef438b922.tar.bz2
historical-11b3a6355ee64ad0bc28e0435666443ef438b922.zip
Run update-ca-certificates before searching for broken links #252618 by Toralf Förster.
Package-Manager: portage-2.2_rc18/cvs/Linux 2.6.28 x86_64
Diffstat (limited to 'app-misc/ca-certificates/ca-certificates-20080809.ebuild')
-rw-r--r--app-misc/ca-certificates/ca-certificates-20080809.ebuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/app-misc/ca-certificates/ca-certificates-20080809.ebuild b/app-misc/ca-certificates/ca-certificates-20080809.ebuild
index d1d8ebeb455d..bfb7a9239d7b 100644
--- a/app-misc/ca-certificates/ca-certificates-20080809.ebuild
+++ b/app-misc/ca-certificates/ca-certificates-20080809.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild,v 1.7 2008/12/27 13:49:24 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild,v 1.8 2008/12/27 18:45:14 vapier Exp $
inherit eutils
@@ -53,6 +53,12 @@ src_install() {
}
pkg_postinst() {
+ if [[ ${ROOT} == "/" ]] ; then
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ update-ca-certificates
+ fi
+
local badcerts=0
for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
ewarn "Broken symlink for a certificate at $c"
@@ -64,9 +70,4 @@ pkg_postinst() {
ewarn "To batch-remove them, run:"
ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
fi
-
- [[ ${ROOT} != "/" ]] && return 0
- # However it's too overzealous when the user has custom certs in place.
- # --fresh is to clean up dangling symlinks
- update-ca-certificates
}