1 |
commit: e5c183da286b54e8c6d6f7446821972be7a7831c |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 15:59:35 2016 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 16:28:25 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5c183da |
7 |
|
8 |
sys-libs/libselinux: Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sys-libs/libselinux/Manifest | 5 - |
13 |
.../0006-build-related-fixes-bug-500674.patch | 67 ---------- |
14 |
sys-libs/libselinux/libselinux-2.2.2-r5.ebuild | 95 -------------- |
15 |
sys-libs/libselinux/libselinux-2.3-r2.ebuild | 145 --------------------- |
16 |
sys-libs/libselinux/libselinux-2.4.ebuild | 145 --------------------- |
17 |
5 files changed, 457 deletions(-) |
18 |
|
19 |
diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest |
20 |
index 6cfaca0..81ff468 100644 |
21 |
--- a/sys-libs/libselinux/Manifest |
22 |
+++ b/sys-libs/libselinux/Manifest |
23 |
@@ -1,6 +1 @@ |
24 |
-DIST libselinux-2.2.2.tar.gz 171013 SHA256 30ab363416806da907b86b97f1d31c252473e3200358bb1570f563c8312b5a3e SHA512 1270cba11ec0795a2cea3706ac5547655d0e65dcd2141932000526f3d0c781b6ae114051b2bb53950b8ef207a318335329280b9fc9fd81796e8e4a27cf6ae841 WHIRLPOOL a444e44225ced35b126bbd2e8924aaf5c9f4da7abb9663d20a32b97babe750245c22d75e2238de0958b73295cf582b8aec39e23312886b96417120c600ed37dc |
25 |
-DIST libselinux-2.3.tar.gz 171254 SHA256 0b1e0b43ecd84a812713d09564019b08e7c205d89072b5cbcd07b052cd8e77b2 SHA512 8cfcd20ab0b43ffbb32389e0498b21e43cde643dcdf471a2354f1ca557f11641d250871ed5e71b9dde4c5f47ac1048746fe514f8f6cfad668fa179ed5136e802 WHIRLPOOL e975a391559aca3f8b251d2aa484cf8e344d09caa43ff56dd929e75a0ad195cf8d9a88b950679f589f4deb74aea0d22be4e7ad00b11eacc080288df0b5ac7ccb |
26 |
-DIST libselinux-2.4.tar.gz 165931 SHA256 46043091f4c5ba4f43e8d3715f30d665a2d571c9126c1f03945c9ea4ed380f7b SHA512 f7c7ceabcc6ca7bb5cb24fd04b8ea4771af7e509a11ce601fb50d52bd14b291ab6136b7f5193912d02b61b132a2fdd1666f229478598d0b20b99bdea0f5e69d6 WHIRLPOOL d1499818fc885c3bd07785d41466b4ea4bcf56fafe8cbc9bd1a517fe0d2d528b10911fa6df08756ca63aebc411fd69c7f01283685c8a858a81301e203dfd3ec2 |
27 |
DIST libselinux-2.5.tar.gz 189019 SHA256 94c9e97706280bedcc288f784f67f2b9d3d6136c192b2c9f812115edba58514f SHA512 1c6718aa6fa05c8635427cd6f5a89ce47fb6bb9bd2fec417293122826695d1ebb0e0b86e83711abb5c4fe71c67dce6f2e18745592833d1711f0ab2d01246b8c7 WHIRLPOOL 96192b856d32a82b9b4413137085e69ad52cbf2e0d274603a90d904e9a318a80c83f337aef26f54c685a689972432955f0f9de67949e0bb4f844611df22d3589 |
28 |
-DIST patchbundle-libselinux-2.2.2-r5.tar.gz 2304 SHA256 ad77f499c05ec3b5707cb9db518a891dd9c84ccb77db07e686c87e5799e1802c SHA512 a01db39a7aade27b0127dd0e2f3185587ff4d913b7b1be7beac36dc2d3e1007de5e6bae8a11bc84567385420fff064ba54892d8e113c8fd54ad3c598dde7648d WHIRLPOOL 5886d9de6fcf073d54ca5e0eac3f8b4754c44382e7044debb223f94ecc81ea0e26b7638037eef17eb6f8ce4cc5046a4bb9f93b9b7767480908ee5b2ced0413ac |
29 |
-DIST patchbundle-libselinux-4.tar.gz 2631 SHA256 91bf43c84ce3d3178c8d21fdcf97380a635fa2465d1611fe4e0e3838a586c78c SHA512 bd2f9762f095e3dbc67e77ee04968cb8e87d460fdf10feff91cb1ce6027e19a660bb57617887e44608d39720e8f95500c451c4b284d58c0a756a04b08fa305c2 WHIRLPOOL 07a6a69d33c46c443907aae2ae4f3646a0360565e28d0a50cbcf81f8b5d8c259812d3e086841fc21c2a8104ce9863fc6c9c1d32e28ea08ebc7baf2d45af3509f |
30 |
|
31 |
diff --git a/sys-libs/libselinux/files/0006-build-related-fixes-bug-500674.patch b/sys-libs/libselinux/files/0006-build-related-fixes-bug-500674.patch |
32 |
deleted file mode 100644 |
33 |
index cec91b1..00000000 |
34 |
--- a/sys-libs/libselinux/files/0006-build-related-fixes-bug-500674.patch |
35 |
+++ /dev/null |
36 |
@@ -1,67 +0,0 @@ |
37 |
-https://bugs.gentoo.org/500674 |
38 |
- |
39 |
-random fixes: |
40 |
- - make sure PCRE_CFLAGS get used |
41 |
- - use PCRE_LIBS via pkg-config |
42 |
- - move LDFLAGS to before objects, not after |
43 |
- - do not hardcode -L$(LIBDIR) (let the toolchain handle it) |
44 |
- - do not hardcode -I$(INCLUDEDIR) (let the toolchain handle it) |
45 |
- |
46 |
---- a/src/Makefile |
47 |
-+++ b/src/Makefile |
48 |
-@@ -75,7 +75,7 @@ CFLAGS ?= -O -Wall -W -Wundef -Wformat-y2k -Wformat-security -Winit-self -Wmissi |
49 |
- -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const \ |
50 |
- -Werror -Wno-aggregate-return -Wno-redundant-decls |
51 |
- |
52 |
--override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(EMFLAGS) |
53 |
-+override CFLAGS += -I../include $(PCRE_CFLAGS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(EMFLAGS) |
54 |
- |
55 |
- SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter \ |
56 |
- -Wno-shadow -Wno-uninitialized -Wno-missing-prototypes -Wno-missing-declarations |
57 |
-@@ -104,17 +104,17 @@ $(SWIGRUBYLOBJ): $(SWIGRUBYCOUT) |
58 |
- $(CC) $(CFLAGS) $(SWIG_CFLAGS) $(RUBYINC) -fPIC -DSHARED -c -o $@ $< |
59 |
- |
60 |
- $(SWIGSO): $(SWIGLOBJ) |
61 |
-- $(CC) $(CFLAGS) -shared -o $@ $< -L. -lselinux $(LDFLAGS) -L$(LIBDIR) |
62 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lselinux |
63 |
- |
64 |
- $(SWIGRUBYSO): $(SWIGRUBYLOBJ) |
65 |
-- $(CC) $(CFLAGS) -shared -o $@ $^ -L. -lselinux $(LDFLAGS) -L$(LIBDIR) |
66 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux |
67 |
- |
68 |
- $(LIBA): $(OBJS) |
69 |
- $(AR) rcs $@ $^ |
70 |
- $(RANLIB) $@ |
71 |
- |
72 |
- $(LIBSO): $(LOBJS) |
73 |
-- $(CC) $(CFLAGS) -shared -o $@ $^ -lpcre -ldl $(LDFLAGS) -L$(LIBDIR) -Wl,-soname,$(LIBSO),-z,defs,-z,relro |
74 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -ldl $(PCRE_LIBS) -Wl,-soname,$(LIBSO),-z,defs,-z,relro |
75 |
- ln -sf $@ $(TARGET) |
76 |
- |
77 |
- $(LIBPC): $(LIBPC).in ../VERSION |
78 |
-@@ -127,7 +127,7 @@ $(AUDIT2WHYLOBJ): audit2why.c |
79 |
- $(CC) $(filter-out -Werror, $(CFLAGS)) $(PYINC) -fPIC -DSHARED -c -o $@ $< |
80 |
- |
81 |
- $(AUDIT2WHYSO): $(AUDIT2WHYLOBJ) |
82 |
-- $(CC) $(CFLAGS) -shared -o $@ $^ -L. $(LDFLAGS) -lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR) |
83 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux $(LIBDIR)/libsepol.a |
84 |
- |
85 |
- %.o: %.c policy.h |
86 |
- $(CC) $(CFLAGS) $(TLSFLAGS) -c -o $@ $< |
87 |
---- a/utils/Makefile |
88 |
-+++ b/utils/Makefile |
89 |
-@@ -24,11 +24,12 @@ CFLAGS ?= -O -Wall -W -Wundef -Wformat-y2k -Wformat-security -Winit-self -Wmissi |
90 |
- -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const \ |
91 |
- -Werror -Wno-aggregate-return -Wno-redundant-decls |
92 |
- override CFLAGS += -I../include -D_GNU_SOURCE $(EMFLAGS) |
93 |
--LDLIBS += -L../src -lselinux -L$(LIBDIR) |
94 |
-+LDLIBS += -L../src -lselinux |
95 |
- |
96 |
- TARGETS=$(patsubst %.c,%,$(wildcard *.c)) |
97 |
- |
98 |
--sefcontext_compile: LDLIBS += -lpcre |
99 |
-+sefcontext_compile: CFLAGS += $(PCRE_CFLAGS) |
100 |
-+sefcontext_compile: LDLIBS += $(PCRE_LIBS) |
101 |
- |
102 |
- ifeq ($(DISABLE_AVC),y) |
103 |
- UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel |
104 |
|
105 |
diff --git a/sys-libs/libselinux/libselinux-2.2.2-r5.ebuild b/sys-libs/libselinux/libselinux-2.2.2-r5.ebuild |
106 |
deleted file mode 100644 |
107 |
index 271cc3a..00000000 |
108 |
--- a/sys-libs/libselinux/libselinux-2.2.2-r5.ebuild |
109 |
+++ /dev/null |
110 |
@@ -1,95 +0,0 @@ |
111 |
-# Copyright 1999-2015 Gentoo Foundation |
112 |
-# Distributed under the terms of the GNU General Public License v2 |
113 |
-# $Id$ |
114 |
- |
115 |
-EAPI="5" |
116 |
-PYTHON_COMPAT=( python2_7 python3_3 ) |
117 |
- |
118 |
-inherit multilib python-r1 toolchain-funcs eutils multilib-minimal |
119 |
- |
120 |
-SEPOL_VER="2.2" |
121 |
- |
122 |
-DESCRIPTION="SELinux userland library" |
123 |
-HOMEPAGE="http://userspace.selinuxproject.org" |
124 |
-SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz |
125 |
- https://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}-r5.tar.gz" |
126 |
- |
127 |
-LICENSE="public-domain" |
128 |
-SLOT="0" |
129 |
-KEYWORDS="amd64 x86" |
130 |
-IUSE="python static-libs" |
131 |
- |
132 |
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} |
133 |
- >=dev-libs/libpcre-8.30-r2[static-libs?] |
134 |
- python? ( ${PYTHON_DEPS} )" |
135 |
-DEPEND="${RDEPEND} |
136 |
- virtual/pkgconfig |
137 |
- python? ( >=dev-lang/swig-2.0.9 )" |
138 |
- |
139 |
-src_prepare() { |
140 |
- EPATCH_MULTI_MSG="Applying libselinux patches ... " \ |
141 |
- EPATCH_SUFFIX="patch" \ |
142 |
- EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
143 |
- EPATCH_FORCE="yes" \ |
144 |
- epatch |
145 |
- |
146 |
- epatch_user |
147 |
- |
148 |
- multilib_copy_sources |
149 |
-} |
150 |
- |
151 |
-multilib_src_compile() { |
152 |
- tc-export PKG_CONFIG RANLIB |
153 |
- local PCRE_CFLAGS=$(${PKG_CONFIG} libpcre --cflags) |
154 |
- local PCRE_LIBS=$(${PKG_CONFIG} libpcre --libs) |
155 |
- export PCRE_{CFLAGS,LIBS} |
156 |
- |
157 |
- emake \ |
158 |
- AR="$(tc-getAR)" \ |
159 |
- CC="$(tc-getCC)" \ |
160 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
161 |
- SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
162 |
- LDFLAGS="-fPIC ${LDFLAGS} -pthread" \ |
163 |
- all |
164 |
- |
165 |
- if multilib_is_native_abi && use python; then |
166 |
- building() { |
167 |
- python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
168 |
- emake \ |
169 |
- CC="$(tc-getCC)" \ |
170 |
- PYINC="-I${PYTHON_INCLUDEDIR}" \ |
171 |
- PYTHONLIBDIR="${PYTHON_LIBPATH}" \ |
172 |
- PYPREFIX="${EPYTHON##*/}" \ |
173 |
- LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
174 |
- pywrap |
175 |
- } |
176 |
- python_foreach_impl building |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
-multilib_src_install() { |
181 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
182 |
- emake DESTDIR="${D}" install |
183 |
- |
184 |
- if multilib_is_native_abi && use python; then |
185 |
- installation() { |
186 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" install-pywrap |
187 |
- } |
188 |
- python_foreach_impl installation |
189 |
- fi |
190 |
- |
191 |
- use static-libs || rm "${D}"/usr/lib*/*.a |
192 |
-} |
193 |
- |
194 |
-pkg_postinst() { |
195 |
- # Fix bug 473502 |
196 |
- for POLTYPE in ${POLICY_TYPES}; |
197 |
- do |
198 |
- mkdir -p /etc/selinux/${POLTYPE}/contexts/files |
199 |
- touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local |
200 |
- # Fix bug 516608 |
201 |
- for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do |
202 |
- sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}; |
203 |
- done |
204 |
- done |
205 |
-} |
206 |
|
207 |
diff --git a/sys-libs/libselinux/libselinux-2.3-r2.ebuild b/sys-libs/libselinux/libselinux-2.3-r2.ebuild |
208 |
deleted file mode 100644 |
209 |
index 5955eca..00000000 |
210 |
--- a/sys-libs/libselinux/libselinux-2.3-r2.ebuild |
211 |
+++ /dev/null |
212 |
@@ -1,145 +0,0 @@ |
213 |
-# Copyright 1999-2015 Gentoo Foundation |
214 |
-# Distributed under the terms of the GNU General Public License v2 |
215 |
-# $Id$ |
216 |
- |
217 |
-EAPI="5" |
218 |
-PYTHON_COMPAT=( python2_7 python3_3 python3_4 ) |
219 |
-USE_RUBY="ruby19 ruby20" |
220 |
- |
221 |
-PATCHBUNDLE="4" |
222 |
- |
223 |
-# No, I am not calling ruby-ng |
224 |
-inherit multilib python-r1 toolchain-funcs eutils multilib-minimal |
225 |
- |
226 |
-MY_P="${P//_/-}" |
227 |
- |
228 |
-SEPOL_VER="2.3" |
229 |
- |
230 |
-DESCRIPTION="SELinux userland library" |
231 |
-HOMEPAGE="http://userspace.selinuxproject.org" |
232 |
-SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140506/${MY_P}.tar.gz |
233 |
- https://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${PN}-${PATCHBUNDLE}.tar.gz" |
234 |
- |
235 |
-LICENSE="public-domain" |
236 |
-SLOT="0" |
237 |
-KEYWORDS="amd64 x86" |
238 |
- |
239 |
-IUSE="python ruby static-libs ruby_targets_ruby19 ruby_targets_ruby20" |
240 |
- |
241 |
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}] |
242 |
- >=dev-libs/libpcre-8.33-r1[static-libs?,${MULTILIB_USEDEP}] |
243 |
- python? ( ${PYTHON_DEPS} ) |
244 |
- ruby? ( |
245 |
- ruby_targets_ruby19? ( dev-lang/ruby:1.9 ) |
246 |
- ruby_targets_ruby20? ( dev-lang/ruby:2.0 ) |
247 |
- )" |
248 |
-DEPEND="${RDEPEND} |
249 |
- virtual/pkgconfig |
250 |
- python? ( >=dev-lang/swig-2.0.9 )" |
251 |
- |
252 |
-S="${WORKDIR}/${MY_P}" |
253 |
- |
254 |
-src_prepare() { |
255 |
- EPATCH_MULTI_MSG="Applying libselinux patches ... " \ |
256 |
- EPATCH_SUFFIX="patch" \ |
257 |
- EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
258 |
- EPATCH_FORCE="yes" \ |
259 |
- epatch |
260 |
- |
261 |
- epatch_user |
262 |
- |
263 |
- multilib_copy_sources |
264 |
-} |
265 |
- |
266 |
-multilib_src_compile() { |
267 |
- tc-export PKG_CONFIG RANLIB |
268 |
- local PCRE_CFLAGS=$(${PKG_CONFIG} libpcre --cflags) |
269 |
- local PCRE_LIBS=$(${PKG_CONFIG} libpcre --libs) |
270 |
- export PCRE_{CFLAGS,LIBS} |
271 |
- |
272 |
- emake \ |
273 |
- AR="$(tc-getAR)" \ |
274 |
- CC="$(tc-getCC)" \ |
275 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
276 |
- SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
277 |
- LDFLAGS="-fPIC ${LDFLAGS} -pthread" \ |
278 |
- all |
279 |
- |
280 |
- if multilib_is_native_abi && use python; then |
281 |
- building() { |
282 |
- python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
283 |
- emake \ |
284 |
- CC="$(tc-getCC)" \ |
285 |
- PYINC="-I${PYTHON_INCLUDEDIR}" \ |
286 |
- PYTHONLIBDIR="${PYTHON_LIBPATH}" \ |
287 |
- PYPREFIX="${EPYTHON##*/}" \ |
288 |
- LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
289 |
- pywrap |
290 |
- } |
291 |
- python_foreach_impl building |
292 |
- fi |
293 |
- |
294 |
- if multilib_is_native_abi && use ruby; then |
295 |
- building() { |
296 |
- einfo "Calling rubywrap for ${1}" |
297 |
- # Clean up .lo file to force rebuild |
298 |
- test -f src/selinuxswig_ruby_wrap.lo && rm src/selinuxswig_ruby_wrap.lo |
299 |
- emake \ |
300 |
- CC="$(tc-getCC)" \ |
301 |
- RUBY=${1} \ |
302 |
- RUBYINSTALL=$(${1} -e 'print RbConfig::CONFIG["vendorarchdir"]') \ |
303 |
- LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
304 |
- rubywrap |
305 |
- } |
306 |
- for RUBYTARGET in ${USE_RUBY}; do |
307 |
- use ruby_targets_${RUBYTARGET} || continue |
308 |
- |
309 |
- building ${RUBYTARGET} |
310 |
- done |
311 |
- fi |
312 |
-} |
313 |
- |
314 |
-multilib_src_install() { |
315 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
316 |
- emake DESTDIR="${D}" install |
317 |
- |
318 |
- if multilib_is_native_abi && use python; then |
319 |
- installation() { |
320 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" install-pywrap |
321 |
- python_optimize # bug 531638 |
322 |
- } |
323 |
- python_foreach_impl installation |
324 |
- fi |
325 |
- |
326 |
- if multilib_is_native_abi && use ruby; then |
327 |
- installation() { |
328 |
- einfo "Calling install-rubywrap for ${1}" |
329 |
- # Forcing (re)build here as otherwise the resulting SO file is used for all ruby versions |
330 |
- rm src/selinuxswig_ruby_wrap.lo |
331 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" \ |
332 |
- RUBY=${1} \ |
333 |
- RUBYINSTALL="${D}/$(${1} -e 'print RbConfig::CONFIG["vendorarchdir"]')" \ |
334 |
- install-rubywrap |
335 |
- } |
336 |
- for RUBYTARGET in ${USE_RUBY}; do |
337 |
- use ruby_targets_${RUBYTARGET} || continue |
338 |
- |
339 |
- installation ${RUBYTARGET} |
340 |
- done |
341 |
- fi |
342 |
- |
343 |
- use static-libs || rm "${D}"/usr/lib*/*.a |
344 |
-} |
345 |
- |
346 |
-pkg_postinst() { |
347 |
- # Fix bug 473502 |
348 |
- for POLTYPE in ${POLICY_TYPES}; |
349 |
- do |
350 |
- mkdir -p /etc/selinux/${POLTYPE}/contexts/files |
351 |
- touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local |
352 |
- # Fix bug 516608 |
353 |
- for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do |
354 |
- sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}; |
355 |
- done |
356 |
- done |
357 |
-} |
358 |
|
359 |
diff --git a/sys-libs/libselinux/libselinux-2.4.ebuild b/sys-libs/libselinux/libselinux-2.4.ebuild |
360 |
deleted file mode 100644 |
361 |
index 5889b3e..00000000 |
362 |
--- a/sys-libs/libselinux/libselinux-2.4.ebuild |
363 |
+++ /dev/null |
364 |
@@ -1,145 +0,0 @@ |
365 |
-# Copyright 1999-2015 Gentoo Foundation |
366 |
-# Distributed under the terms of the GNU General Public License v2 |
367 |
-# $Id$ |
368 |
- |
369 |
-EAPI="5" |
370 |
-PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 ) |
371 |
-USE_RUBY="ruby19 ruby20" |
372 |
- |
373 |
-# No, I am not calling ruby-ng |
374 |
-inherit multilib python-r1 toolchain-funcs eutils multilib-minimal |
375 |
- |
376 |
-MY_P="${P//_/-}" |
377 |
-SEPOL_VER="${PV}" |
378 |
- |
379 |
-DESCRIPTION="SELinux userland library" |
380 |
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
381 |
-SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/${MY_P}.tar.gz" |
382 |
- |
383 |
-LICENSE="public-domain" |
384 |
-SLOT="0" |
385 |
-KEYWORDS="amd64 ~arm ~arm64 ~mips x86" |
386 |
- |
387 |
-IUSE="python ruby static-libs ruby_targets_ruby19 ruby_targets_ruby20" |
388 |
- |
389 |
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}] |
390 |
- >=dev-libs/libpcre-8.33-r1[static-libs?,${MULTILIB_USEDEP}] |
391 |
- python? ( ${PYTHON_DEPS} ) |
392 |
- ruby? ( |
393 |
- ruby_targets_ruby19? ( dev-lang/ruby:1.9 ) |
394 |
- ruby_targets_ruby20? ( dev-lang/ruby:2.0 ) |
395 |
- )" |
396 |
-DEPEND="${RDEPEND} |
397 |
- virtual/pkgconfig |
398 |
- python? ( >=dev-lang/swig-2.0.9 )" |
399 |
- |
400 |
-S="${WORKDIR}/${MY_P}" |
401 |
- |
402 |
-src_prepare() { |
403 |
- epatch "${FILESDIR}/0005-use-ruby-include-with-rubylibver.patch" |
404 |
- epatch "${FILESDIR}/0006-build-related-fixes-bug-500674.patch" |
405 |
- |
406 |
- epatch_user |
407 |
- |
408 |
- multilib_copy_sources |
409 |
-} |
410 |
- |
411 |
-multilib_src_compile() { |
412 |
- tc-export PKG_CONFIG RANLIB |
413 |
- local PCRE_CFLAGS=$(${PKG_CONFIG} libpcre --cflags) |
414 |
- local PCRE_LIBS=$(${PKG_CONFIG} libpcre --libs) |
415 |
- export PCRE_{CFLAGS,LIBS} |
416 |
- |
417 |
- emake \ |
418 |
- AR="$(tc-getAR)" \ |
419 |
- CC="$(tc-getCC)" \ |
420 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
421 |
- SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
422 |
- LDFLAGS="-fPIC ${LDFLAGS} -pthread" \ |
423 |
- all |
424 |
- |
425 |
- if multilib_is_native_abi && use python; then |
426 |
- building() { |
427 |
- python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
428 |
- emake \ |
429 |
- CC="$(tc-getCC)" \ |
430 |
- PYINC="-I${PYTHON_INCLUDEDIR}" \ |
431 |
- PYTHONLIBDIR="${PYTHON_LIBPATH}" \ |
432 |
- PYPREFIX="${EPYTHON##*/}" \ |
433 |
- LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
434 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
435 |
- SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
436 |
- pywrap |
437 |
- } |
438 |
- python_foreach_impl building |
439 |
- fi |
440 |
- |
441 |
- if multilib_is_native_abi && use ruby; then |
442 |
- building() { |
443 |
- einfo "Calling rubywrap for ${1}" |
444 |
- # Clean up .lo file to force rebuild |
445 |
- rm -f src/selinuxswig_ruby_wrap.lo || die |
446 |
- emake \ |
447 |
- CC="$(tc-getCC)" \ |
448 |
- RUBY=${1} \ |
449 |
- RUBYINSTALL=$(${1} -e 'print RbConfig::CONFIG["vendorarchdir"]') \ |
450 |
- LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
451 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
452 |
- SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
453 |
- rubywrap |
454 |
- } |
455 |
- for RUBYTARGET in ${USE_RUBY}; do |
456 |
- use ruby_targets_${RUBYTARGET} || continue |
457 |
- |
458 |
- building ${RUBYTARGET} |
459 |
- done |
460 |
- fi |
461 |
-} |
462 |
- |
463 |
-multilib_src_install() { |
464 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
465 |
- emake DESTDIR="${D}" install |
466 |
- |
467 |
- if multilib_is_native_abi && use python; then |
468 |
- installation() { |
469 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" install-pywrap |
470 |
- python_optimize # bug 531638 |
471 |
- } |
472 |
- python_foreach_impl installation |
473 |
- fi |
474 |
- |
475 |
- if multilib_is_native_abi && use ruby; then |
476 |
- installation() { |
477 |
- einfo "Calling install-rubywrap for ${1}" |
478 |
- # Forcing (re)build here as otherwise the resulting SO file is used for all ruby versions |
479 |
- rm src/selinuxswig_ruby_wrap.lo |
480 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" \ |
481 |
- RUBY=${1} \ |
482 |
- RUBYINSTALL="${D}/$(${1} -e 'print RbConfig::CONFIG["vendorarchdir"]')" \ |
483 |
- install-rubywrap |
484 |
- } |
485 |
- for RUBYTARGET in ${USE_RUBY}; do |
486 |
- use ruby_targets_${RUBYTARGET} || continue |
487 |
- |
488 |
- installation ${RUBYTARGET} |
489 |
- done |
490 |
- fi |
491 |
- |
492 |
- use static-libs || rm "${D}"/usr/lib*/*.a || die |
493 |
-} |
494 |
- |
495 |
-pkg_postinst() { |
496 |
- # Fix bug 473502 |
497 |
- for POLTYPE in ${POLICY_TYPES}; |
498 |
- do |
499 |
- mkdir -p /etc/selinux/${POLTYPE}/contexts/files || die |
500 |
- touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local || die |
501 |
- # Fix bug 516608 |
502 |
- for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do |
503 |
- if [[ -f ${EXPRFILE} ]]; then |
504 |
- sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE} \ |
505 |
- || die "Failed to recompile contexts" |
506 |
- fi |
507 |
- done |
508 |
- done |
509 |
-} |