Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/ca-certificates: ca-certificates-20120623.ebuild ChangeLog
Date: Thu, 28 Jun 2012 18:14:46
Message-Id: 20120628181434.861F82004B@flycatcher.gentoo.org
1 vapier 12/06/28 18:14:34
2
3 Modified: ChangeLog
4 Added: ca-certificates-20120623.ebuild
5 Log:
6 Version bump #423897 by Manuel Rüger.
7
8 (Portage version: 2.2.0_alpha112/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.69 app-misc/ca-certificates/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.69&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.69&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?r1=1.68&r2=1.69
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v
20 retrieving revision 1.68
21 retrieving revision 1.69
22 diff -u -r1.68 -r1.69
23 --- ChangeLog 11 May 2012 00:39:05 -0000 1.68
24 +++ ChangeLog 28 Jun 2012 18:14:34 -0000 1.69
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-misc/ca-certificates
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v 1.68 2012/05/11 00:39:05 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v 1.69 2012/06/28 18:14:34 vapier Exp $
30 +
31 +*ca-certificates-20120623 (28 Jun 2012)
32 +
33 + 28 Jun 2012; Mike Frysinger <vapier@g.o>
34 + +ca-certificates-20120623.ebuild:
35 + Version bump #423897 by Manuel Rüger.
36
37 *ca-certificates-20120212 (11 May 2012)
38
39
40
41
42 1.1 app-misc/ca-certificates/ca-certificates-20120623.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20120623.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20120623.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ca-certificates-20120623.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20120623.ebuild,v 1.1 2012/06/28 18:14:34 vapier Exp $
52
53 EAPI="3"
54
55 inherit eutils
56
57 DESCRIPTION="Common CA Certificates PEM files"
58 HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
59 #NMU_PR="1"
60 SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
61
62 LICENSE="MPL-1.1"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~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 ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
65 IUSE=""
66
67 # platforms like AIX don't have a good ar
68 DEPEND="kernel_AIX? ( app-arch/deb2targz )
69 !<sys-apps/portage-2.1.10.41"
70 # openssl: we run `c_rehash`
71 # debianutils: we run `run-parts`
72 RDEPEND="${DEPEND}
73 dev-libs/openssl
74 sys-apps/debianutils"
75
76 S=${WORKDIR}
77
78 pkg_setup() {
79 # For the conversion to having it in CONFIG_PROTECT_MASK,
80 # we need to tell users about it once manually first.
81 [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
82 || ewarn "You should run update-ca-certificates manually after etc-update"
83 }
84
85 src_unpack() {
86 if [[ -n ${EPREFIX} ]] ; then
87 # need to perform everything in the offset, #381937
88 mkdir -p "./${EPREFIX}"
89 cd "./${EPREFIX}" || die
90 fi
91 unpack ${A}
92 unpack ./data.tar.gz
93 rm -f control.tar.gz data.tar.gz debian-binary
94 }
95
96 src_prepare() {
97 cd "./${EPREFIX}" || die
98 epatch "${FILESDIR}"/${PN}-20110502-root.patch
99 local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
100 sed -i \
101 -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
102 -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
103 usr/sbin/update-ca-certificates || die
104 }
105
106 src_compile() {
107 (
108 echo "# Automatically generated by ${CATEGORY}/${PF}"
109 echo "# $(date -u)"
110 echo "# Do not edit."
111 cd "${S}${EPREFIX}"/usr/share/ca-certificates
112 find * -name '*.crt' | LC_ALL=C sort
113 ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
114
115 sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
116 }
117
118 src_install() {
119 cp -pPR * "${D}"/ || die
120
121 mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
122 prepalldocs
123
124 echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
125 doenvd 98ca-certificates
126 }
127
128 pkg_postinst() {
129 if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
130 # if the user has local certs, we need to rebuild again
131 # to include their stuff in the db.
132 # However it's too overzealous when the user has custom certs in place.
133 # --fresh is to clean up dangling symlinks
134 "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
135 fi
136
137 local c badcerts=0
138 for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
139 ewarn "Broken symlink for a certificate at $c"
140 badcerts=1
141 done
142 if [ $badcerts -eq 1 ]; then
143 ewarn "You MUST remove the above broken symlinks"
144 ewarn "Otherwise any SSL validation that use the directory may fail!"
145 ewarn "To batch-remove them, run:"
146 ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
147 fi
148 }