Gentoo Archives: gentoo-commits

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libselinux/
Date: Wed, 13 Jul 2011 21:57:45
Message-Id: 13081b493ad8872afb6181e5450cb8bf3757702a.SwifT@gentoo
1 commit: 13081b493ad8872afb6181e5450cb8bf3757702a
2 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
3 AuthorDate: Wed Jul 13 21:54:21 2011 +0000
4 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
5 CommitDate: Wed Jul 13 21:54:21 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=13081b49
7
8 Bump to 2.0.98
9
10 ---
11 sys-libs/libselinux/ChangeLog | 323 ++++++++++++++++++++++++++
12 sys-libs/libselinux/libselinux-2.0.98.ebuild | 83 +++++++
13 sys-libs/libselinux/metadata.xml | 10 +
14 3 files changed, 416 insertions(+), 0 deletions(-)
15
16 diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLog
17 new file mode 100644
18 index 0000000..dd16fa4
19 --- /dev/null
20 +++ b/sys-libs/libselinux/ChangeLog
21 @@ -0,0 +1,323 @@
22 +# ChangeLog for sys-libs/libselinux
23 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
24 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.71 2011/05/28 05:24:03 blueness Exp $
25 +
26 + 13 Jul 2011; <swift@g.o> +libselinux-2.0.98.ebuild, +metadata.xml:
27 + Bump to 2.0.98
28 +
29 +*libselinux-2.0.98 (12 Jul 2011)
30 +
31 + 12 Jul 2011; <swift@g.o> +libselinux-2.0.98.ebuild, +metadata.xml:
32 + Bump to 2.0.98
33 +
34 + 28 May 2011; Anthony G. Basile <blueness@g.o>
35 + libselinux-2.0.94.ebuild:
36 + Stable amd64 x86
37 +
38 + 13 Feb 2011; Anthony G. Basile <blueness@g.o> metadata.xml:
39 + Updated metadata.xml to reflect new selinux herd.
40 +
41 + 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
42 + libselinux-2.0.94.ebuild:
43 + Add "python" USE flag.
44 +
45 + 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
46 + libselinux-2.0.94.ebuild:
47 + Set SUPPORT_PYTHON_ABIS (bug #353763). Respect AR and CC.
48 +
49 +*libselinux-2.0.94 (05 Feb 2011)
50 +
51 + 05 Feb 2011; Anthony G. Basile <blueness@g.o>
52 + +libselinux-2.0.94.ebuild:
53 + New upstream release.
54 +
55 + 29 Sep 2010; Mike Frysinger <vapier@g.o> libselinux-2.0.85.ebuild,
56 + +files/libselinux-2.0.85-headers.patch:
57 + Fix by Chris Richards for building with glibc-2.12 #338302.
58 +
59 + 16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
60 + libselinux-2.0.71.ebuild, libselinux-2.0.85.ebuild:
61 + Delete calls to deprecated python_version().
62 +
63 + 02 Aug 2009; Chris PeBenito <pebenito@g.o>
64 + libselinux-2.0.71.ebuild, libselinux-2.0.85.ebuild:
65 + Add python_need_rebuild.
66 +
67 +*libselinux-2.0.85 (02 Aug 2009)
68 +
69 + 02 Aug 2009; Chris PeBenito <pebenito@g.o>
70 + +libselinux-2.0.85.ebuild:
71 + New upstream release.
72 +
73 + 18 Jul 2009; Chris PeBenito <pebenito@g.o>
74 + -libselinux-1.34.14.ebuild, libselinux-2.0.71.ebuild:
75 + Mark stable. Remove old ebuilds.
76 +
77 +*libselinux-2.0.71 (03 Oct 2008)
78 +
79 + 03 Oct 2008; Chris PeBenito <pebenito@g.o>
80 + +libselinux-2.0.71.ebuild:
81 + Initial commit of 2.0 libselinux.
82 +
83 + 29 May 2008; Ali Polatel <hawking@g.o> libselinux-1.34.14.ebuild:
84 + python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
85 +
86 + 13 May 2008; Chris PeBenito <pebenito@g.o>
87 + -libselinux-1.28-r1.ebuild, -libselinux-1.30.ebuild,
88 + -libselinux-1.34.0.ebuild, -libselinux-1.34.13.ebuild,
89 + libselinux-1.34.14.ebuild:
90 + Mark 1.34.14 stable, clear old ebuilds.
91 +
92 + 11 May 2008; Chris PeBenito <pebenito@g.o>
93 + libselinux-1.34.0.ebuild, libselinux-1.34.13.ebuild,
94 + libselinux-1.34.14.ebuild:
95 + Fix bug #221501.
96 +
97 +*libselinux-1.34.14 (29 Jan 2008)
98 +
99 + 29 Jan 2008; Chris PeBenito <pebenito@g.o>
100 + +libselinux-1.34.14.ebuild:
101 + New upstream bugfix release.
102 +
103 +*libselinux-1.34.13 (18 Oct 2007)
104 +
105 + 18 Oct 2007; Chris PeBenito <pebenito@g.o>
106 + +libselinux-1.34.13.ebuild:
107 + New upstream release.
108 +
109 + 04 Jun 2007; Chris PeBenito <pebenito@g.o>
110 + libselinux-1.34.0.ebuild:
111 + Mark stable.
112 +
113 + 16 Feb 2007; Stephen Bennett <spb@g.o> libselinux-1.34.0.ebuild:
114 + Add missing swig depend. Bug #167007
115 +
116 +*libselinux-1.34.0 (15 Feb 2007)
117 +
118 + 15 Feb 2007; Chris PeBenito <pebenito@g.o>
119 + +libselinux-1.34.0.ebuild:
120 + New upstream release.
121 +
122 + 23 Oct 2006; Chris PeBenito <pebenito@g.o>
123 + libselinux-1.30.29.ebuild:
124 + Fix depend for glibc
125 +
126 + 09 Oct 2006; Chris PeBenito <pebenito@g.o>
127 + libselinux-1.30.29.ebuild:
128 + Stable to make repoman happy.
129 +
130 +*libselinux-1.30.29 (05 Oct 2006)
131 +
132 + 05 Oct 2006; Chris PeBenito <pebenito@g.o>
133 + +libselinux-1.30.29.ebuild:
134 + Add SVN snapshot.
135 +
136 + 31 Jul 2006; Chris PeBenito <pebenito@g.o> libselinux-1.30.ebuild:
137 + Mark stable, long overdue.
138 +
139 + 07 Apr 2006; Chris PeBenito <pebenito@g.o> libselinux-1.30.ebuild:
140 + Split python wrapper compile into a separate emake to ensure the main
141 + library is built before trying to build the wrapper. Fixes bug #129074.
142 +
143 + 22 Mar 2006; Chris PeBenito <pebenito@g.o> -libselinux-1.24.ebuild,
144 + -libselinux-1.28.ebuild, libselinux-1.28-r1.ebuild:
145 + Mark 1.28-r1 stable, clean out old ebuilds.
146 +
147 +*libselinux-1.30 (18 Mar 2006)
148 +
149 + 18 Mar 2006; Chris PeBenito <pebenito@g.o> +libselinux-1.30.ebuild:
150 + New upstream release.
151 +
152 + 22 Feb 2006; Stephen Bennett <spb@g.o> libselinux-1.28.ebuild:
153 + Alpha stable
154 +
155 +*libselinux-1.28-r1 (20 Feb 2006)
156 +
157 + 20 Feb 2006; Chris PeBenito <pebenito@g.o> +files/compat.py,
158 + +libselinux-1.28-r1.ebuild:
159 + Add python-selinux compatability aliases to swig wrapper.
160 +
161 + 19 Feb 2006; Joshua Kinard <kumba@g.o> libselinux-1.28.ebuild:
162 + Marked stable on mips.
163 +
164 + 09 Feb 2006; Chris PeBenito <pebenito@g.o> libselinux-1.28.ebuild:
165 + Move python_version out of global scope.
166 +
167 + 29 Jan 2006; Chris PeBenito <pebenito@g.o> libselinux-1.28.ebuild:
168 + Add python version handling to fix #120829, and add -fPIC to LDFLAGS to
169 + hopefully fix #119271.
170 +
171 + 17 Jan 2006; Chris PeBenito <pebenito@g.o> libselinux-1.28.ebuild:
172 + Mark stable, x86, amd64, ppc, sparc.
173 +
174 + 14 Jan 2006; Stephen Bennett <spb@g.o> libselinux-1.28.ebuild:
175 + Added ~alpha
176 +
177 + 15 Dec 2005; Chris PeBenito <pebenito@g.o> libselinux-1.28.ebuild:
178 + Tighten up versioning to try to prevent mismatch problems as seen in #112348.
179 +
180 +*libselinux-1.28 (09 Dec 2005)
181 +
182 + 09 Dec 2005; Chris PeBenito <pebenito@g.o>
183 + -files/libselinux-1.22.diff, -libselinux-1.22-r1.ebuild,
184 + +libselinux-1.28.ebuild:
185 + New upstream release.
186 +
187 + 09 Sep 2005; Chris PeBenito <pebenito@g.o> libselinux-1.24.ebuild:
188 + Mark stable.
189 +
190 +*libselinux-1.24 (25 Jun 2005)
191 +
192 + 25 Jun 2005; Chris PeBenito <pebenito@g.o> -libselinux-1.20.ebuild,
193 + -libselinux-1.22.ebuild, +libselinux-1.24.ebuild:
194 + New upstream release.
195 +
196 + 13 May 2005; Chris PeBenito <pebenito@g.o>
197 + libselinux-1.22-r1.ebuild:
198 + Mark stable.
199 +
200 + 10 May 2005; Stephen Bennett <spb@g.o> libselinux-1.22.ebuild:
201 + mips stable
202 +
203 +*libselinux-1.22-r1 (08 May 2005)
204 +
205 + 08 May 2005; Chris PeBenito <pebenito@g.o>
206 + +files/libselinux-1.22.diff, +libselinux-1.22-r1.ebuild:
207 + A couple fixes, including one for bug #91921.
208 +
209 + 01 May 2005; Stephen Bennett <spb@g.o> libselinux-1.22.ebuild:
210 + Mark ~mips.
211 +
212 + 01 May 2005; Chris PeBenito <pebenito@g.o> libselinux-1.22.ebuild:
213 + Mark stable.
214 +
215 +*libselinux-1.22 (13 Mar 2005)
216 +
217 + 13 Mar 2005; Chris PeBenito <pebenito@g.o> +libselinux-1.22.ebuild:
218 + New upstream release.
219 +
220 + 13 Feb 2005; Chris PeBenito <pebenito@g.o> libselinux-1.20.ebuild:
221 + Mark stable.
222 +
223 +*libselinux-1.20 (07 Jan 2005)
224 +
225 + 07 Jan 2005; Chris PeBenito <pebenito@g.o> libselinux-1.18.ebuild,
226 + +libselinux-1.20.ebuild:
227 + New upstream release. Mark 1.18 stable.
228 +
229 + 03 Jan 2005; Chris PeBenito <pebenito@g.o> libselinux-1.16.ebuild,
230 + libselinux-1.18.ebuild:
231 + Switch to libc virtual for DEP since uclibc now has xattr support.
232 +
233 +*libselinux-1.18 (14 Nov 2004)
234 +
235 + 14 Nov 2004; Chris PeBenito <pebenito@g.o>
236 + +files/selinuxconfig.c.diff, +libselinux-1.18.ebuild:
237 + New upstream release.
238 +
239 +*libselinux-1.16 (07 Sep 2004)
240 +
241 + 07 Sep 2004; Chris PeBenito <pebenito@g.o> +libselinux-1.16.ebuild:
242 + New upstream release.
243 +
244 +*libselinux-1.14 (02 Jul 2004)
245 +
246 + 02 Jul 2004; Chris PeBenito <pebenito@g.o> +libselinux-1.14.ebuild:
247 + New upstream version.
248 +
249 + 11 Jun 2004; Chris PeBenito <pebenito@g.o> -libselinux-1.10.ebuild,
250 + libselinux-1.12.ebuild:
251 + Mark stable
252 +
253 +*libselinux-1.12 (14 May 2004)
254 +
255 + 14 May 2004; Chris PeBenito <pebenito@g.o> +libselinux-1.12.ebuild:
256 + New upstream release.
257 +
258 +*libselinux-1.10 (17 Apr 2004)
259 +
260 + 17 Apr 2004; Chris PeBenito <pebenito@g.o> +libselinux-1.10.ebuild:
261 + New upstream version.
262 +
263 + 08 Apr 2004; Chris PeBenito <pebenito@g.o> libselinux-1.8.ebuild:
264 + Mark stable for 2004.1
265 +
266 +*libselinux-1.8 (12 Mar 2004)
267 +
268 + 12 Mar 2004; Chris PeBenito <pebenito@g.o> libselinux-1.8.ebuild:
269 + New upstream release.
270 +
271 +*libselinux-1.6 (24 Feb 2004)
272 +
273 + 24 Feb 2004; Chris PeBenito <pebenito@g.o> libselinux-1.6.ebuild:
274 + New upstream release.
275 +
276 + 16 Dec 2003; Chris PeBenito <pebenito@g.o> libselinux-1.4.ebuild:
277 + Mark stable.
278 +
279 +*libselinux-1.4 (06 Dec 2003)
280 +
281 + 06 Dec 2003; Chris PeBenito <pebenito@g.o> libselinux-1.4.ebuild:
282 + New upstream version.
283 +
284 + 29 Oct 2003; Joshua Brindle <method@g.o> libselinux-1.2-r2.ebuild:
285 + added sparc
286 +
287 +*libselinux-1.2-r2 (20 Oct 2003)
288 +
289 + 20 Oct 2003; Chris PeBenito <pebenito@g.o> libselinux-1.2-r2.ebuild,
290 + files/libselinux-1.2-attr.diff:
291 + Compile against sys-apps/attr only if linux-headers are older than 2.4.20.
292 +
293 +*libselinux-1.2-r1 (07 Oct 2003)
294 +
295 + 07 Oct 2003; Chris PeBenito <pebenito@g.o> libselinux-1.2-r1.ebuild,
296 + files/libselinux-1.2-gentoo.diff:
297 + Move libraries to /lib, to fix problems with having a separate /usr during
298 + booting.
299 +
300 +*libselinux-1.2 (03 Oct 2003)
301 +
302 + 03 Oct 2003; Chris PeBenito <pebenito@g.o> libselinux-1.2.ebuild,
303 + files/libselinux-1.2-const.diff:
304 + New upstream version.
305 +
306 + 22 Sep 2003; <paul@g.o> metadata.xml:
307 + Fix metadata.xml
308 +
309 + 21 Aug 2003; Chris PeBenito <pebenito@g.o> libselinux-1.1-r1.ebuild:
310 + Add a dep for portage. The newer versions have labelling support for the old
311 + API.
312 +
313 + 18 Aug 2003; Chris PeBenito <pebenito@g.o> libselinux-1.1-r1.ebuild,
314 + metadata.xml:
315 + Fix license, this is public-domain, not GPL-2. Use package description in RPM
316 + spec file as metadata.xml long description.
317 +
318 + 15 Aug 2003; Chris PeBenito <pebenito@g.o> libselinux-1.0.ebuild,
319 + libselinux-1.1-r1.ebuild, files/libselinux-1.0-gentoo.diff:
320 + Mark stable
321 +
322 +*libselinux-1.1-r1 (14 Aug 2003)
323 +
324 + 14 Aug 2003; Chris PeBenito <pebenito@g.o> libselinux-1.1-r1.ebuild,
325 + libselinux-1.1.ebuild, files/libselinux-1.1-linkfix.diff:
326 + Add fix for a random linking problem that causes libselinux to work
327 + incorrectly.
328 +
329 +*libselinux-1.1 (14 Aug 2003)
330 +
331 + 14 Aug 2003; Chris PeBenito <pebenito@g.o> libselinux-1.1.ebuild,
332 + files/libselinux-1.1-gentoo.diff:
333 + New upstream version
334 +
335 + 04 Aug 2003; Chris PeBenito <pebenito@g.o>
336 + files/libselinux-1.0-gentoo.diff:
337 + Add on a NSA nullbyte patch to the gentoo patch
338 +
339 +*libselinux-1.0 (03 Aug 2003)
340 +
341 + 03 Aug 2003; Chris PeBenito <pebenito@g.o> libselinux-1.0.ebuild,
342 + metadata.xml, files/libselinux-1.0-gentoo.diff:
343 + Initial commit
344 +
345
346 diff --git a/sys-libs/libselinux/libselinux-2.0.98.ebuild b/sys-libs/libselinux/libselinux-2.0.98.ebuild
347 new file mode 100644
348 index 0000000..120b251
349 --- /dev/null
350 +++ b/sys-libs/libselinux/libselinux-2.0.98.ebuild
351 @@ -0,0 +1,83 @@
352 +# Copyright 1999-2011 Gentoo Foundation
353 +# Distributed under the terms of the GNU General Public License v2
354 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v 1.5 2011/05/28 05:24:03 blueness Exp $
355 +
356 +EAPI="2"
357 +PYTHON_DEPEND="python? 2"
358 +SUPPORT_PYTHON_ABIS="1"
359 +RESTRICT_PYTHON_ABIS="3.* *-jython"
360 +
361 +inherit multilib python toolchain-funcs
362 +
363 +SEPOL_VER="2.0.42"
364 +
365 +DESCRIPTION="SELinux userland library"
366 +HOMEPAGE="http://userspace.selinuxproject.org"
367 +SRC_URI="http://userspace.selinuxproject.org/releases/20101221/devel/${P}.tar.gz"
368 +
369 +LICENSE="public-domain"
370 +SLOT="0"
371 +KEYWORDS="~amd64 ~x86"
372 +IUSE="python ruby"
373 +
374 +RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
375 + ruby? ( dev-lang/ruby )"
376 +DEPEND="${RDEPEND}
377 + ruby? ( dev-lang/swig )"
378 +
379 +pkg_setup() {
380 + if use python; then
381 + python_pkg_setup
382 + fi
383 +}
384 +
385 +src_prepare() {
386 + # fix up paths for multilib
387 + sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \
388 + || die "Fix for multilib LIBDIR failed."
389 + sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \
390 + || die "Fix for multilib SHLIBDIR failed."
391 +}
392 +
393 +src_compile() {
394 + emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die
395 +
396 + if use python; then
397 + python_copy_sources src
398 + building() {
399 + emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap
400 + }
401 + python_execute_function -s --source-dir src building
402 + fi
403 +
404 + if use ruby; then
405 + emake CC="$(tc-getCC)" rubywrap || die
406 + fi
407 +}
408 +
409 +src_install() {
410 + emake DESTDIR="${D}" install || die
411 +
412 + if use python; then
413 + installation() {
414 + emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install-pywrap
415 + }
416 + python_execute_function -s --source-dir src installation
417 + fi
418 +
419 + if use ruby; then
420 + emake DESTDIR="${D}" install-rubywrap || die
421 + fi
422 +}
423 +
424 +pkg_postinst() {
425 + if use python; then
426 + python_mod_optimize selinux
427 + fi
428 +}
429 +
430 +pkg_postrm() {
431 + if use python; then
432 + python_mod_cleanup selinux
433 + fi
434 +}
435
436 diff --git a/sys-libs/libselinux/metadata.xml b/sys-libs/libselinux/metadata.xml
437 new file mode 100644
438 index 0000000..0c7f186
439 --- /dev/null
440 +++ b/sys-libs/libselinux/metadata.xml
441 @@ -0,0 +1,10 @@
442 +<?xml version="1.0" encoding="UTF-8"?>
443 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
444 +<pkgmetadata>
445 + <herd>selinux</herd>
446 + <longdescription>
447 + Libselinux provides an API for SELinux applications to get and set
448 + process and file security contexts and to obtain security policy
449 + decisions. Required for any applications that use the SELinux API.
450 + </longdescription>
451 +</pkgmetadata>