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: ca-certificates-20110502.ebuild ChangeLog |
Date: | Wed, 31 Aug 2011 17:25:43 |
Message-Id: | 20110831172531.952032004C@flycatcher.gentoo.org |
1 | robbat2 11/08/31 17:25:31 |
2 | |
3 | Modified: ChangeLog |
4 | Added: ca-certificates-20110502.ebuild |
5 | Log: |
6 | Version bump for bug #381169 |
7 | |
8 | (Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.43 app-misc/ca-certificates/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.43&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?rev=1.43&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ChangeLog?r1=1.42&r2=1.43 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v |
20 | retrieving revision 1.42 |
21 | retrieving revision 1.43 |
22 | diff -p -w -b -B -u -u -r1.42 -r1.43 |
23 | --- ChangeLog 16 May 2011 03:11:56 -0000 1.42 |
24 | +++ ChangeLog 31 Aug 2011 17:25:31 -0000 1.43 |
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.42 2011/05/16 03:11:56 vapier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ChangeLog,v 1.43 2011/08/31 17:25:31 robbat2 Exp $ |
30 | + |
31 | +*ca-certificates-20110502 (31 Aug 2011) |
32 | + |
33 | + 31 Aug 2011; Robin H. Johnson <robbat2@g.o> |
34 | + +ca-certificates-20110502.ebuild: |
35 | + Version bump for bug #381169 |
36 | |
37 | *ca-certificates-20110421 (16 May 2011) |
38 | |
39 | |
40 | |
41 | |
42 | 1.1 app-misc/ca-certificates/ca-certificates-20110502.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20110502.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20110502.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: ca-certificates-20110502.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-20110502.ebuild,v 1.1 2011/08/31 17:25:31 robbat2 Exp $ |
52 | |
53 | inherit eutils |
54 | |
55 | DESCRIPTION="Common CA Certificates PEM files" |
56 | HOMEPAGE="http://packages.debian.org/sid/ca-certificates" |
57 | SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}_all.deb" |
58 | |
59 | LICENSE="MPL-1.1" |
60 | SLOT="0" |
61 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
62 | IUSE="" |
63 | |
64 | DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )" |
65 | RDEPEND="${DEPEND} |
66 | dev-libs/openssl |
67 | sys-apps/debianutils" |
68 | |
69 | S=${WORKDIR} |
70 | |
71 | src_unpack() { |
72 | unpack ${A} |
73 | unpack ./data.tar.gz |
74 | rm -f control.tar.gz data.tar.gz debian-binary |
75 | } |
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 /etc/env.d/98ca-certificates ]] \ |
81 | || ewarn "You should run update-ca-certificates manually after etc-update" |
82 | } |
83 | |
84 | src_install() { |
85 | cp -pPR * "${D}"/ || die |
86 | |
87 | ( |
88 | echo "# Automatically generated by ${CATEGORY}/${PF}" |
89 | echo "# $(date -u)" |
90 | echo "# Do not edit." |
91 | cd "${D}"/usr/share/ca-certificates |
92 | find . -name '*.crt' | sort | cut -b3- |
93 | ) > "${D}"/etc/ca-certificates.conf |
94 | |
95 | mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die |
96 | prepalldocs |
97 | |
98 | echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates |
99 | doenvd 98ca-certificates |
100 | } |
101 | |
102 | pkg_postinst() { |
103 | if [ "${ROOT}" = "/" ] ; then |
104 | # However it's too overzealous when the user has custom certs in place. |
105 | # --fresh is to clean up dangling symlinks |
106 | update-ca-certificates |
107 | fi |
108 | |
109 | local c badcerts=0 |
110 | for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do |
111 | ewarn "Broken symlink for a certificate at $c" |
112 | badcerts=1 |
113 | done |
114 | if [ $badcerts -eq 1 ]; then |
115 | ewarn "You MUST remove the above broken symlinks" |
116 | ewarn "Otherwise any SSL validation that use the directory may fail!" |
117 | ewarn "To batch-remove them, run:" |
118 | ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +" |
119 | fi |
120 | } |