Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/ca-certificates: ChangeLog ca-certificates-20111025.ebuild
Date: Sat, 29 Oct 2011 21:46:46
Message-Id: 20111029214635.A13BE2004B@flycatcher.gentoo.org
1 robbat2 11/10/29 21:46:35
2
3 Modified: ChangeLog
4 Added: ca-certificates-20111025.ebuild
5 Log:
6 Bug #388845: version bump, includes new CACert intermediate SHA256 certs.
7
8 (Portage version: 2.2.0_alpha70/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.58 app-misc/ca-certificates/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.58&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.58&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?r1=1.57&r2=1.58
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v
20 retrieving revision 1.57
21 retrieving revision 1.58
22 diff -p -w -b -B -u -u -r1.57 -r1.58
23 --- ChangeLog 7 Sep 2011 16:31:55 -0000 1.57
24 +++ ChangeLog 29 Oct 2011 21:46:35 -0000 1.58
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-misc/ca-certificates
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v 1.57 2011/09/07 16:31:55 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v 1.58 2011/10/29 21:46:35 robbat2 Exp $
30 +
31 +*ca-certificates-20111025 (29 Oct 2011)
32 +
33 + 29 Oct 2011; Robin H. Johnson <robbat2@g.o>
34 + +ca-certificates-20111025.ebuild:
35 + Bug #388845: version bump, includes new CACert intermediate SHA256 certs.
36
37 07 Sep 2011; Fabian Groffen <grobian@g.o>
38 ca-certificates-20110502-r4.ebuild:
39
40
41
42 1.1 app-misc/ca-certificates/ca-certificates-20111025.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20111025.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20111025.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ca-certificates-20111025.ebuild
48 ===================================================================
49 # Copyright 1999-2011 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-20111025.ebuild,v 1.1 2011/10/29 21:46:35 robbat2 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 ~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 # openssl: we run `c_rehash`
70 # debianutils: we run `run-parts`
71 RDEPEND="${DEPEND}
72 dev-libs/openssl
73 sys-apps/debianutils"
74
75 S=${WORKDIR}
76
77 pkg_setup() {
78 # For the conversion to having it in CONFIG_PROTECT_MASK,
79 # we need to tell users about it once manually first.
80 [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
81 || ewarn "You should run update-ca-certificates manually after etc-update"
82 }
83
84 src_unpack() {
85 if [[ -n ${EPREFIX} ]] ; then
86 # need to perform everything in the offset, #381937
87 mkdir -p "./${EPREFIX}"
88 cd "./${EPREFIX}" || die
89 fi
90 unpack ${A}
91 unpack ./data.tar.gz
92 rm -f control.tar.gz data.tar.gz debian-binary
93 }
94
95 src_prepare() {
96 cd "./${EPREFIX}" || die
97 epatch "${FILESDIR}"/${PN}-20110502-root.patch
98 local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
99 sed -i \
100 -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
101 -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
102 usr/sbin/update-ca-certificates || die
103 }
104
105 src_compile() {
106 (
107 echo "# Automatically generated by ${CATEGORY}/${PF}"
108 echo "# $(date -u)"
109 echo "# Do not edit."
110 cd "${S}${EPREFIX}"/usr/share/ca-certificates
111 find * -name '*.crt' | LC_ALL=C sort
112 ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
113
114 sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
115 }
116
117 src_install() {
118 cp -pPR * "${D}"/ || die
119
120 mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
121 prepalldocs
122
123 echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
124 doenvd 98ca-certificates
125 }
126
127 pkg_postinst() {
128 if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
129 # if the user has local certs, we need to rebuild again
130 # to include their stuff in the db.
131 # However it's too overzealous when the user has custom certs in place.
132 # --fresh is to clean up dangling symlinks
133 "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
134 fi
135
136 local c badcerts=0
137 for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
138 ewarn "Broken symlink for a certificate at $c"
139 badcerts=1
140 done
141 if [ $badcerts -eq 1 ]; then
142 ewarn "You MUST remove the above broken symlinks"
143 ewarn "Otherwise any SSL validation that use the directory may fail!"
144 ewarn "To batch-remove them, run:"
145 ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
146 fi
147 }