Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/mit-krb5: mit-krb5-1.10.2-r1.ebuild ChangeLog mit-krb5-1.9.4-r1.ebuild
Date: Wed, 01 Aug 2012 16:38:13
Message-Id: 20120801163800.551002004B@flycatcher.gentoo.org
1 eras 12/08/01 16:38:00
2
3 Modified: ChangeLog
4 Added: mit-krb5-1.10.2-r1.ebuild mit-krb5-1.9.4-r1.ebuild
5 Log:
6 Security bump - bug #429324
7
8 (Portage version: 2.1.11.9/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.330 app-crypt/mit-krb5/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5/ChangeLog?rev=1.330&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5/ChangeLog?rev=1.330&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5/ChangeLog?r1=1.329&r2=1.330
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v
20 retrieving revision 1.329
21 retrieving revision 1.330
22 diff -u -r1.329 -r1.330
23 --- ChangeLog 9 Jul 2012 05:18:26 -0000 1.329
24 +++ ChangeLog 1 Aug 2012 16:38:00 -0000 1.330
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-crypt/mit-krb5
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.329 2012/07/09 05:18:26 xmw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.330 2012/08/01 16:38:00 eras Exp $
30 +
31 +*mit-krb5-1.10.2-r1 (01 Aug 2012)
32 +*mit-krb5-1.9.4-r1 (01 Aug 2012)
33 +
34 + 01 Aug 2012; Eray Aslan <eras@g.o> +mit-krb5-1.9.4-r1.ebuild,
35 + +mit-krb5-1.10.2-r1.ebuild, +files/CVE-2012-1014.patch,
36 + +files/CVE-2012-1015.patch:
37 + Security bump - bug #429324
38
39 09 Jul 2012; Michael Weber <xmw@g.o> mit-krb5-1.9.4.ebuild:
40 ppc stable (bug 419765)
41
42
43
44 1.1 app-crypt/mit-krb5/mit-krb5-1.10.2-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.10.2-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.10.2-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mit-krb5-1.10.2-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.10.2-r1.ebuild,v 1.1 2012/08/01 16:38:00 eras Exp $
54
55 EAPI=4
56 inherit eutils flag-o-matic versionator
57
58 MY_P="${P/mit-}"
59 P_DIR=$(get_version_component_range 1-2)
60 DESCRIPTION="MIT Kerberos V"
61 HOMEPAGE="http://web.mit.edu/kerberos/www/"
62 SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar"
63
64 LICENSE="as-is"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86"
67 IUSE="doc +keyutils openldap +pkinit +threads test xinetd"
68
69 RDEPEND="!!app-crypt/heimdal
70 >=sys-libs/e2fsprogs-libs-1.41.0
71 dev-libs/libverto
72 keyutils? ( sys-apps/keyutils )
73 openldap? ( net-nds/openldap )
74 xinetd? ( sys-apps/xinetd )"
75 DEPEND="${RDEPEND}
76 virtual/yacc
77 doc? ( virtual/latex-base )
78 test? ( dev-lang/tcl
79 dev-lang/python
80 dev-util/dejagnu )"
81
82 S=${WORKDIR}/${MY_P}/src
83
84 src_unpack() {
85 unpack ${A}
86 unpack ./"${MY_P}".tar.gz
87 }
88
89 src_prepare() {
90 epatch "${FILESDIR}/${PN}-1.10.1_uninitialized_extra.patch"
91 epatch "${FILESDIR}/${PN}-1.10.1_uninitialized_extra-2.patch"
92 epatch "${FILESDIR}/${PN}-1.10.1_gcc470.patch"
93 epatch "${FILESDIR}"/CVE-2012-1014.patch
94 epatch "${FILESDIR}"/CVE-2012-1015.patch
95 }
96
97 src_configure() {
98 append-cppflags "-I${EPREFIX}/usr/include/et"
99 # QA
100 append-flags -fno-strict-aliasing
101 append-flags -fno-strict-overflow
102 [[ $(gcc-version) == "4.7" ]] && replace-flags -O? -O0
103
104 use keyutils || export ac_cv_header_keyutils_h=no
105 econf \
106 $(use_with openldap ldap) \
107 "$(use_with test tcl "${EPREFIX}/usr")" \
108 $(use_enable pkinit) \
109 $(use_enable threads thread-support) \
110 --without-hesiod \
111 --enable-shared \
112 --with-system-et \
113 --with-system-ss \
114 --enable-dns-for-realm \
115 --enable-kdc-lookaside-cache \
116 --with-system-verto \
117 --disable-rpath
118 }
119
120 src_compile() {
121 emake -j1
122
123 if use doc ; then
124 cd ../doc
125 for dir in api implement ; do
126 emake -C "${dir}"
127 done
128 fi
129 }
130
131 src_install() {
132 emake \
133 DESTDIR="${D}" \
134 EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
135 install
136
137 # default database dir
138 keepdir /var/lib/krb5kdc
139
140 cd ..
141 dodoc NOTICE README
142 dodoc doc/*.{ps,txt}
143 doinfo doc/*.info*
144 dohtml -r doc/*.html
145
146 if use doc ; then
147 dodoc doc/{api,implement}/*.ps
148 fi
149
150 newinitd "${FILESDIR}"/mit-krb5kadmind.initd mit-krb5kadmind
151 newinitd "${FILESDIR}"/mit-krb5kdc.initd mit-krb5kdc
152 newinitd "${FILESDIR}"/mit-krb5kpropd.initd mit-krb5kpropd
153
154 insinto /etc
155 newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
156 insinto /var/lib/krb5kdc
157 newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
158
159 if use openldap ; then
160 insinto /etc/openldap/schema
161 doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
162 fi
163
164 if use xinetd ; then
165 insinto /etc/xinetd.d
166 newins "${FILESDIR}/kpropd.xinetd" kpropd
167 fi
168 }
169
170 pkg_preinst() {
171 if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
172 elog "MIT split the Kerberos applications from the base Kerberos"
173 elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp,"
174 elog "ftp clients and telnet, ftp deamons now live in"
175 elog "\"app-crypt/mit-krb5-appl\" package."
176 fi
177 }
178
179
180
181 1.1 app-crypt/mit-krb5/mit-krb5-1.9.4-r1.ebuild
182
183 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.9.4-r1.ebuild?rev=1.1&view=markup
184 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.9.4-r1.ebuild?rev=1.1&content-type=text/plain
185
186 Index: mit-krb5-1.9.4-r1.ebuild
187 ===================================================================
188 # Copyright 1999-2012 Gentoo Foundation
189 # Distributed under the terms of the GNU General Public License v2
190 # $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.9.4-r1.ebuild,v 1.1 2012/08/01 16:38:00 eras Exp $
191
192 EAPI=4
193 inherit eutils flag-o-matic versionator
194
195 MY_P="${P/mit-}"
196 P_DIR=$(get_version_component_range 1-2)
197 DESCRIPTION="MIT Kerberos V"
198 HOMEPAGE="http://web.mit.edu/kerberos/www/"
199 SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar"
200
201 LICENSE="as-is"
202 SLOT="0"
203 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
204 IUSE="doc +keyutils openldap +pkinit +threads test xinetd"
205
206 RDEPEND="!!app-crypt/heimdal
207 >=sys-libs/e2fsprogs-libs-1.41.0
208 keyutils? ( sys-apps/keyutils )
209 openldap? ( net-nds/openldap )
210 xinetd? ( sys-apps/xinetd )"
211 DEPEND="${RDEPEND}
212 virtual/yacc
213 doc? ( virtual/latex-base )
214 test? ( dev-lang/tcl
215 dev-lang/python
216 dev-util/dejagnu )"
217
218 S=${WORKDIR}/${MY_P}/src
219
220 src_unpack() {
221 unpack ${A}
222 unpack ./"${MY_P}".tar.gz
223 }
224
225 src_prepare() {
226 epatch "${FILESDIR}"/CVE-2012-1015.patch
227 }
228
229 src_configure() {
230 # QA
231 append-flags -fno-strict-aliasing
232 append-flags -fno-strict-overflow
233 use keyutils || export ac_cv_header_keyutils_h=no
234 econf \
235 $(use_with openldap ldap) \
236 "$(use_with test tcl "${EPREFIX}/usr")" \
237 $(use_enable pkinit) \
238 $(use_enable threads thread-support) \
239 --without-hesiod \
240 --enable-shared \
241 --with-system-et \
242 --with-system-ss \
243 --enable-dns-for-realm \
244 --enable-kdc-lookaside-cache \
245 --disable-rpath
246 }
247
248 src_compile() {
249 emake -j1
250
251 if use doc ; then
252 cd ../doc
253 for dir in api implement ; do
254 emake -C "${dir}" || die "doc emake failed"
255 done
256 fi
257 }
258
259 src_install() {
260 emake \
261 DESTDIR="${D}" \
262 EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
263 install
264
265 # default database dir
266 keepdir /var/lib/krb5kdc
267
268 cd ..
269 dodoc NOTICE README
270 dodoc doc/*.{ps,txt}
271 doinfo doc/*.info*
272 dohtml -r doc/*.html
273
274 # die if we cannot respect a USE flag
275 if use doc ; then
276 dodoc doc/{api,implement}/*.ps
277 fi
278
279 newinitd "${FILESDIR}"/mit-krb5kadmind.initd mit-krb5kadmind
280 newinitd "${FILESDIR}"/mit-krb5kdc.initd mit-krb5kdc
281 newinitd "${FILESDIR}"/mit-krb5kpropd.initd mit-krb5kpropd
282
283 insinto /etc
284 newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
285 insinto /var/lib/krb5kdc
286 newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
287
288 if use openldap ; then
289 insinto /etc/openldap/schema
290 doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
291 fi
292
293 if use xinetd ; then
294 insinto /etc/xinetd.d
295 newins "${FILESDIR}/kpropd.xinetd" kpropd
296 fi
297 }
298
299 pkg_preinst() {
300 if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
301 elog "MIT split the Kerberos applications from the base Kerberos"
302 elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp,"
303 elog "ftp clients and telnet, ftp deamons now live in"
304 elog "\"app-crypt/mit-krb5-appl\" package."
305 fi
306 }