1 |
grobian 11/09/05 19:56:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ca-certificates-20110502-r3.ebuild |
5 |
Log: |
6 |
Fix for Prefix migration gone bad. Make sure update-ca-certificates knows about the offset, such that it doesn't generate symlinks pointing outside the offset. Bug #381937 |
7 |
|
8 |
(Portage version: 2.2.01.19120-prefix/cvs/Darwin i386) |
9 |
|
10 |
Revision Changes Path |
11 |
1.53 app-misc/ca-certificates/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.53&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.53&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?r1=1.52&r2=1.53 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v |
20 |
retrieving revision 1.52 |
21 |
retrieving revision 1.53 |
22 |
diff -u -r1.52 -r1.53 |
23 |
--- ChangeLog 3 Sep 2011 17:33:45 -0000 1.52 |
24 |
+++ ChangeLog 5 Sep 2011 19:56:46 -0000 1.53 |
25 |
@@ -1,6 +1,14 @@ |
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.52 2011/09/03 17:33:45 grobian Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v 1.53 2011/09/05 19:56:46 grobian Exp $ |
30 |
+ |
31 |
+*ca-certificates-20110502-r3 (05 Sep 2011) |
32 |
+ |
33 |
+ 05 Sep 2011; Fabian Groffen <grobian@g.o> |
34 |
+ +ca-certificates-20110502-r3.ebuild: |
35 |
+ Fix for Prefix migration gone bad. Make sure update-ca-certificates knows |
36 |
+ about the offset, such that it doesn't generate symlinks pointing outside the |
37 |
+ offset. Bug #381937 |
38 |
|
39 |
03 Sep 2011; Fabian Groffen <grobian@g.o> |
40 |
ca-certificates-20110502-r2.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: ca-certificates-20110502-r3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild,v 1.1 2011/09/05 19:56:46 grobian Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
|
57 |
inherit eutils |
58 |
|
59 |
DESCRIPTION="Common CA Certificates PEM files" |
60 |
HOMEPAGE="http://packages.debian.org/sid/ca-certificates" |
61 |
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb" |
62 |
|
63 |
LICENSE="MPL-1.1" |
64 |
SLOT="0" |
65 |
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" |
66 |
IUSE="" |
67 |
|
68 |
DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )" |
69 |
RDEPEND="${DEPEND} |
70 |
dev-libs/openssl |
71 |
sys-apps/debianutils |
72 |
kernel_AIX? ( app-arch/deb2targz )" # platforms like AIX don't have a good ar |
73 |
|
74 |
S=${WORKDIR} |
75 |
|
76 |
pkg_setup() { |
77 |
# For the conversion to having it in CONFIG_PROTECT_MASK, |
78 |
# we need to tell users about it once manually first. |
79 |
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \ |
80 |
|| ewarn "You should run update-ca-certificates manually after etc-update" |
81 |
} |
82 |
|
83 |
src_unpack() { |
84 |
if [[ -n ${EPREFIX} ]] ; then |
85 |
# need to perform everything in the offset, #381937 |
86 |
mkdir -p "./${EPREFIX}" |
87 |
cd "./${EPREFIX}" || die |
88 |
fi |
89 |
unpack ${A} |
90 |
unpack ./data.tar.gz |
91 |
rm -f control.tar.gz data.tar.gz debian-binary |
92 |
} |
93 |
|
94 |
src_prepare() { |
95 |
cd "./${EPREFIX}" || die |
96 |
epatch "${FILESDIR}"/${PN}-20090709-root.patch |
97 |
sed -i -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \ |
98 |
usr/sbin/update-ca-certificates || die |
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
( |
103 |
echo "# Automatically generated by ${CATEGORY}/${PF}" |
104 |
echo "# $(date -u)" |
105 |
echo "# Do not edit." |
106 |
cd "${S}${EPREFIX}"/usr/share/ca-certificates |
107 |
find * -name '*.crt' | LC_ALL=C sort |
108 |
) > "${S}${EPREFIX}"/etc/ca-certificates.conf |
109 |
|
110 |
"${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
cp -pPR * "${D}"/ || die |
115 |
|
116 |
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die |
117 |
prepalldocs |
118 |
|
119 |
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates |
120 |
doenvd 98ca-certificates |
121 |
} |
122 |
|
123 |
pkg_postinst() { |
124 |
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then |
125 |
# if the user has local certs, we need to rebuild again |
126 |
# to include their stuff in the db. |
127 |
# However it's too overzealous when the user has custom certs in place. |
128 |
# --fresh is to clean up dangling symlinks |
129 |
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}" |
130 |
fi |
131 |
|
132 |
local c badcerts=0 |
133 |
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do |
134 |
ewarn "Broken symlink for a certificate at $c" |
135 |
badcerts=1 |
136 |
done |
137 |
if [ $badcerts -eq 1 ]; then |
138 |
ewarn "You MUST remove the above broken symlinks" |
139 |
ewarn "Otherwise any SSL validation that use the directory may fail!" |
140 |
ewarn "To batch-remove them, run:" |
141 |
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +" |
142 |
fi |
143 |
} |