1 |
commit: eb8f6e0d5119d1b1c897d1f29bf642116571d087 |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Sat May 26 14:42:21 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Sat May 26 14:42:21 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=eb8f6e0d |
7 |
|
8 |
Update setools bindings |
9 |
|
10 |
--- |
11 |
app-admin/setools/ChangeLog | 316 +++++++++++++++++++++++++++++ |
12 |
app-admin/setools/metadata.xml | 6 + |
13 |
app-admin/setools/setools-3.3.7-r2.ebuild | 169 +++++++++++++++ |
14 |
3 files changed, 491 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog |
17 |
new file mode 100644 |
18 |
index 0000000..6789c2b |
19 |
--- /dev/null |
20 |
+++ b/app-admin/setools/ChangeLog |
21 |
@@ -0,0 +1,316 @@ |
22 |
+# ChangeLog for app-admin/setools |
23 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
24 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.73 2012/05/03 18:02:22 jdhore Exp $ |
25 |
+ |
26 |
+ 03 May 2012; Jeff Horelick <jdhore@g.o> setools-3.3.7-r1.ebuild: |
27 |
+ dev-util/pkgconfig -> virtual/pkgconfig |
28 |
+ |
29 |
+ 12 Nov 2011; <swift@g.o> -setools-3.3.7.ebuild: |
30 |
+ Remove obsoleted ebuilds |
31 |
+ |
32 |
+ 23 Oct 2011; <swift@g.o> setools-3.3.7-r1.ebuild: |
33 |
+ Stabilization (tracker #384231) |
34 |
+ |
35 |
+ 19 Aug 2011; <swift@g.o> -setools-2.4.ebuild, -setools-3.3.4.ebuild, |
36 |
+ -setools-3.3.5.ebuild, -setools-3.3.6.ebuild, |
37 |
+ -files/setools-3.3.6-headers.diff, -files/apol_tcl_fc.c.diff: |
38 |
+ Remove obsoleted versions of setools |
39 |
+ |
40 |
+*setools-3.3.7-r1 (19 Aug 2011) |
41 |
+ |
42 |
+ 19 Aug 2011; <swift@g.o> |
43 |
+ +files/fix-check-role_set_expand-libsepol-2.1.0.patch, |
44 |
+ +setools-3.3.7-r1.ebuild, +files/fix-implicit-def-fstat.patch: |
45 |
+ Fix #378943 where setools fails to build with new selinux userspace |
46 |
+ |
47 |
+ 08 Jul 2011; Samuli Suominen <ssuominen@g.o> setools-2.4.ebuild: |
48 |
+ Convert from "useq" to "use". |
49 |
+ |
50 |
+ 28 May 2011; Anthony G. Basile <blueness@g.o> setools-3.3.7.ebuild: |
51 |
+ Stable amd64 x86 |
52 |
+ |
53 |
+ 04 Apr 2011; Anthony G. Basile <blueness@g.o> setools-2.4.ebuild: |
54 |
+ Updated SRC_URI, bug #341929 |
55 |
+ |
56 |
+ 29 Mar 2011; Christoph Mende <angelos@g.o> setools-3.3.4.ebuild, |
57 |
+ setools-3.3.5.ebuild, setools-3.3.6.ebuild, setools-3.3.7.ebuild: |
58 |
+ Fixed slot deps |
59 |
+ |
60 |
+ 13 Feb 2011; Anthony G. Basile <blueness@g.o> metadata.xml: |
61 |
+ Updated metadata.xml to reflect new selinux herd. |
62 |
+ |
63 |
+ 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
64 |
+ setools-3.3.7.ebuild: |
65 |
+ Set SUPPORT_PYTHON_ABIS (bug #308279). Fix building with SWIG 2. |
66 |
+ |
67 |
+*setools-3.3.7 (12 May 2010) |
68 |
+ |
69 |
+ 12 May 2010; Chris PeBenito <pebenito@g.o> +setools-3.3.7.ebuild: |
70 |
+ New upstream release. |
71 |
+ |
72 |
+ 20 Sep 2009; Chris PeBenito <pebenito@g.o> setools-3.3.6.ebuild, |
73 |
+ +files/setools-3.3.6-headers.diff: |
74 |
+ Fix QA issues. |
75 |
+ |
76 |
+*setools-3.3.6 (08 Aug 2009) |
77 |
+ |
78 |
+ 08 Aug 2009; Chris PeBenito <pebenito@g.o> +setools-3.3.6.ebuild: |
79 |
+ New upstream release. |
80 |
+ |
81 |
+ 22 Jul 2009; Chris PeBenito <pebenito@g.o> setools-3.3.4.ebuild, |
82 |
+ setools-3.3.5.ebuild: |
83 |
+ Drop alpha, mips, ppc, sparc selinux support. |
84 |
+ |
85 |
+ 13 Jul 2009; Diego E. Pettenò <flameeyes@g.o> |
86 |
+ setools-3.3.5.ebuild: |
87 |
+ Use emake rather than make. |
88 |
+ |
89 |
+*setools-3.3.5 (02 Dec 2008) |
90 |
+ |
91 |
+ 02 Dec 2008; Chris PeBenito <pebenito@g.o> setools-2.4.ebuild, |
92 |
+ -setools-3.3.1.ebuild, -setools-3.3.3.ebuild, +setools-3.3.5.ebuild: |
93 |
+ New upstream bugfix release for libsepol 2.x additional features. |
94 |
+ Cleanup old ebuilds. |
95 |
+ |
96 |
+*setools-3.3.4 (31 Mar 2008) |
97 |
+ |
98 |
+ 31 Mar 2008; Chris PeBenito <pebenito@g.o> +setools-3.3.4.ebuild: |
99 |
+ Update with fixes for glibc 2.7, gcc 3.4, and tcl/tk 8.5. |
100 |
+ |
101 |
+*setools-3.3.3 (26 Feb 2008) |
102 |
+ |
103 |
+ 26 Feb 2008; Chris PeBenito <pebenito@g.o> +setools-3.3.3.ebuild: |
104 |
+ New upstream bugfix release. |
105 |
+ |
106 |
+*setools-3.3.1 (27 Aug 2007) |
107 |
+ |
108 |
+ 27 Aug 2007; Chris PeBenito <pebenito@g.o> -setools-3.0.ebuild, |
109 |
+ -setools-3.1.ebuild, -setools-3.2.ebuild, -setools-3.3.ebuild, |
110 |
+ +setools-3.3.1.ebuild: |
111 |
+ New upstream bugfix release. Clear out old unstable ebuilds. |
112 |
+ |
113 |
+ 20 Aug 2007; Chris PeBenito <pebenito@g.o> setools-3.1.ebuild, |
114 |
+ setools-3.2.ebuild: |
115 |
+ Set bwidget dep to 1.8 to fix #175415. |
116 |
+ |
117 |
+*setools-3.3 (04 Aug 2007) |
118 |
+ |
119 |
+ 04 Aug 2007; Chris PeBenito <pebenito@g.o> +setools-3.3.ebuild: |
120 |
+ New upstream release. |
121 |
+ |
122 |
+*setools-3.2 (09 May 2007) |
123 |
+ |
124 |
+ 09 May 2007; Chris PeBenito <pebenito@g.o> +setools-3.2.ebuild: |
125 |
+ New upstream release. |
126 |
+ |
127 |
+*setools-3.1 (16 Feb 2007) |
128 |
+ |
129 |
+ 16 Feb 2007; Chris PeBenito <pebenito@g.o> +setools-3.1.ebuild: |
130 |
+ New upstream release. |
131 |
+ |
132 |
+ 02 Feb 2007; Chris PeBenito <pebenito@g.o> setools-3.0.ebuild: |
133 |
+ Fix bug #156752. |
134 |
+ |
135 |
+*setools-3.0 (18 Oct 2006) |
136 |
+ |
137 |
+ 18 Oct 2006; Chris PeBenito <pebenito@g.o> |
138 |
+ -files/setools-2.2-nogui.diff, -setools-2.2.ebuild, -setools-2.3.ebuild, |
139 |
+ +setools-3.0.ebuild: |
140 |
+ New upstream release. |
141 |
+ |
142 |
+ 12 Sep 2006; Chris PeBenito <pebenito@g.o> setools-2.4.ebuild: |
143 |
+ Mark stable. |
144 |
+ |
145 |
+ 11 Sep 2006; Chris PeBenito <pebenito@g.o> |
146 |
+ +files/apol_tcl_fc.c.diff, setools-2.4.ebuild: |
147 |
+ Fixes to hopefully take care of #133028 |
148 |
+ |
149 |
+*setools-2.4 (09 May 2006) |
150 |
+ |
151 |
+ 09 May 2006; Chris PeBenito <pebenito@g.o> +setools-2.4.ebuild: |
152 |
+ New upstream release. |
153 |
+ |
154 |
+*setools-2.3 (03 Feb 2006) |
155 |
+ |
156 |
+ 03 Feb 2006; Chris PeBenito <pebenito@g.o> +setools-2.3.ebuild: |
157 |
+ New upstream release. |
158 |
+ |
159 |
+ 02 Jan 2006; Chris PeBenito <pebenito@g.o> -setools-2.1.2.ebuild, |
160 |
+ -setools-2.1.3.ebuild, setools-2.2.ebuild: |
161 |
+ Mark stable. |
162 |
+ |
163 |
+ 05 Dec 2005; Chris PeBenito <pebenito@g.o> metadata.xml, |
164 |
+ setools-2.1.2.ebuild, setools-2.1.3.ebuild, setools-2.2.ebuild: |
165 |
+ Update homepage and metadata. |
166 |
+ |
167 |
+ 12 Nov 2005; Chris PeBenito <pebenito@g.o> |
168 |
+ +files/setools-2.2-nogui.diff, setools-2.2.ebuild: |
169 |
+ Add patch to fix bug #112284. |
170 |
+ |
171 |
+*setools-2.2 (08 Nov 2005) |
172 |
+ |
173 |
+ 08 Nov 2005; Chris PeBenito <pebenito@g.o> +setools-2.2.ebuild: |
174 |
+ New upstream release. |
175 |
+ |
176 |
+*setools-2.1.3 (12 Oct 2005) |
177 |
+ |
178 |
+ 12 Oct 2005; Chris PeBenito <pebenito@g.o> -setools-2.1.0.ebuild, |
179 |
+ -setools-2.1.1.ebuild, +setools-2.1.3.ebuild: |
180 |
+ New upstream release. |
181 |
+ |
182 |
+ 08 Oct 2005; Chris PeBenito <pebenito@g.o> setools-2.1.2.ebuild: |
183 |
+ Mark stable. |
184 |
+ |
185 |
+ 07 Sep 2005; Chris PeBenito <pebenito@g.o> setools-2.1.0.ebuild, |
186 |
+ setools-2.1.1.ebuild, setools-2.1.2.ebuild: |
187 |
+ Fix changed URIs. |
188 |
+ |
189 |
+*setools-2.1.2 (07 Sep 2005) |
190 |
+ |
191 |
+ 07 Sep 2005; Chris PeBenito <pebenito@g.o> +setools-2.1.2.ebuild: |
192 |
+ New upstream release. |
193 |
+ |
194 |
+*setools-2.1.1 (20 May 2005) |
195 |
+ |
196 |
+ 20 May 2005; Chris PeBenito <pebenito@g.o> setools-2.1.0.ebuild, |
197 |
+ +setools-2.1.1.ebuild: |
198 |
+ Mark 2.1.0 stable, plus new upstream release. |
199 |
+ |
200 |
+ 21 Apr 2005; Simon Stelling <blubb@g.o> setools-2.0-r1.ebuild: |
201 |
+ stable on amd64 |
202 |
+ |
203 |
+*setools-2.1.0 (19 Apr 2005) |
204 |
+ |
205 |
+ 19 Apr 2005; Chris PeBenito <pebenito@g.o> +setools-2.1.0.ebuild: |
206 |
+ New upstream release. |
207 |
+ |
208 |
+*setools-2.0-r1 (09 Apr 2005) |
209 |
+ |
210 |
+ 09 Apr 2005; Chris PeBenito <pebenito@g.o> +setools-2.0-r1.ebuild: |
211 |
+ Fix for bug #88248. |
212 |
+ |
213 |
+ 29 Mar 2005; Chris PeBenito <pebenito@g.o> setools-2.0.ebuild: |
214 |
+ Mark stable. |
215 |
+ |
216 |
+ 06 Mar 2005; Chris PeBenito <pebenito@g.o> setools-2.0.ebuild: |
217 |
+ Went overboard on CFLAGS fixes, causing some compile failures on some machines. |
218 |
+ |
219 |
+ 04 Mar 2005; Chris PeBenito <pebenito@g.o> setools-2.0.ebuild: |
220 |
+ Fix DEPEND |
221 |
+ |
222 |
+*setools-2.0 (04 Mar 2005) |
223 |
+ |
224 |
+ 04 Mar 2005; Chris PeBenito <pebenito@g.o> setools-1.5.1.ebuild, |
225 |
+ +setools-2.0.ebuild: |
226 |
+ New upstream major release. Mark 1.5.1 stable for x86 and ppc. |
227 |
+ |
228 |
+*setools-1.5.1 (06 Nov 2004) |
229 |
+ |
230 |
+ 06 Nov 2004; Chris PeBenito <pebenito@g.o> +setools-1.5.1.ebuild: |
231 |
+ New upstream release |
232 |
+ |
233 |
+*setools-1.4.1-r1 (15 Sep 2004) |
234 |
+ |
235 |
+ 15 Sep 2004; Chris PeBenito <pebenito@g.o> -setools-1.3.1.ebuild, |
236 |
+ +setools-1.4.1-r1.ebuild, -setools-1.4.1.ebuild: |
237 |
+ Fix seuser.fc install. |
238 |
+ |
239 |
+*setools-1.4.1 (22 Aug 2004) |
240 |
+ |
241 |
+ 22 Aug 2004; Chris PeBenito <pebenito@g.o> +setools-1.4.1.ebuild, |
242 |
+ -setools-1.4.ebuild: |
243 |
+ Bugfix release. |
244 |
+ |
245 |
+ 24 Jul 2004; Joshua Brindle <method@g.o> setools-1.4.ebuild: |
246 |
+ add libselinux dependancy |
247 |
+ |
248 |
+*setools-1.4 (21 Jun 2004) |
249 |
+ |
250 |
+ 21 Jun 2004; Chris PeBenito <pebenito@g.o> +setools-1.4.ebuild: |
251 |
+ New upstream version. |
252 |
+ |
253 |
+ 21 Jun 2004; Chris PeBenito <pebenito@g.o> setools-1.3.1.ebuild: |
254 |
+ Fix for compiles that are USE="-selinux". |
255 |
+ |
256 |
+ 24 May 2004; Chris PeBenito <pebenito@g.o> setools-1.3.1.ebuild: |
257 |
+ Fix sandbox violations. |
258 |
+ |
259 |
+*setools-1.3.1 (05 May 2004) |
260 |
+ |
261 |
+ 05 May 2004; Chris PeBenito <pebenito@g.o> +setools-1.3.1.ebuild, |
262 |
+ -setools-1.3.ebuild: |
263 |
+ New upstream bugfix release. |
264 |
+ |
265 |
+ 04 May 2004; Chris PeBenito <pebenito@g.o> -setools-1.2.1.ebuild, |
266 |
+ setools-1.3.ebuild: |
267 |
+ Mark stable |
268 |
+ |
269 |
+ 29 Apr 2004; Chris PeBenito <pebenito@g.o> setools-1.2.1.ebuild, |
270 |
+ setools-1.3.ebuild: |
271 |
+ Add missing libxml2 dep. |
272 |
+ |
273 |
+*setools-1.3 (15 Apr 2004) |
274 |
+ |
275 |
+ 15 Apr 2004; Chris PeBenito <pebenito@g.o> +setools-1.3.ebuild: |
276 |
+ New upstream version. |
277 |
+ |
278 |
+ 03 Mar 2004; Chris PeBenito <pebenito@g.o> setools-1.2.1.ebuild: |
279 |
+ Mark stable. |
280 |
+ |
281 |
+*setools-1.2.1 (08 Feb 2004) |
282 |
+ |
283 |
+ 08 Feb 2004; Chris PeBenito <pebenito@g.o> setools-1.2.1.ebuild: |
284 |
+ New upstream bugfix release. |
285 |
+ |
286 |
+ 06 Feb 2004; Chris PeBenito <pebenito@g.o> setools-1.2.ebuild: |
287 |
+ Fix seuser file contexts and conf file. |
288 |
+ |
289 |
+*setools-1.2 (05 Feb 2004) |
290 |
+ |
291 |
+ 05 Feb 2004; Chris PeBenito <pebenito@g.o> setools-1.2.ebuild: |
292 |
+ New upstream version. |
293 |
+ |
294 |
+ 31 Jan 2004; Chris PeBenito <pebenito@g.o> setools-1.1.1.ebuild: |
295 |
+ Mark stable. |
296 |
+ |
297 |
+*setools-1.1.1 (06 Jan 2004) |
298 |
+ |
299 |
+ 06 Jan 2004; Chris PeBenito <pebenito@g.o> setools-1.1.1.ebuild: |
300 |
+ New upstream bugfix release. |
301 |
+ |
302 |
+ 28 Dec 2003; Chris PeBenito <pebenito@g.o> setools-1.1.ebuild: |
303 |
+ Eliminate install -Z. The context option is not needed, and causes sandbox |
304 |
+ violations. |
305 |
+ |
306 |
+ 22 Dec 2003; Chris PeBenito <pebenito@g.o> setools-1.1.ebuild, |
307 |
+ files/setools-1.1-fix_noX.diff: |
308 |
+ Treesys makefiles are broken. Add a hack to make it really work for non X |
309 |
+ systems. |
310 |
+ |
311 |
+*setools-1.1 (22 Dec 2003) |
312 |
+ |
313 |
+ 22 Dec 2003; Chris PeBenito <pebenito@g.o> setools-1.1.ebuild: |
314 |
+ New upstream version. Now X is optional, as there are command line tools. Also |
315 |
+ has a new optional gtk log analyzer for audit messages. |
316 |
+ |
317 |
+ 20 Nov 2003; Chris PeBenito <pebenito@g.o> setools-1.0.1.ebuild: |
318 |
+ Mark stable |
319 |
+ |
320 |
+*setools-1.0.1 (06 Nov 2003) |
321 |
+ |
322 |
+ 06 Nov 2003; Chris PeBenito <pebenito@g.o> setools-1.0.1.ebuild: |
323 |
+ New upstream minor version. |
324 |
+ |
325 |
+*setools-1.0 (23 Oct 2003) |
326 |
+ |
327 |
+ 23 Oct 2003; Chris PeBenito <pebenito@g.o> setools-1.0.ebuild: |
328 |
+ Setools for the new SELinux API. |
329 |
+ |
330 |
+ 22 Sep 2003; Chris PeBenito <pebenito@g.o> setools-20030609.ebuild: |
331 |
+ Overdue, mark stable. |
332 |
+ |
333 |
+*setools-20030609 (02 Jul 2003) |
334 |
+ |
335 |
+ 02 Jul 2003; Chris PeBenito <pebenito@g.o> setools-20030609.ebuild: |
336 |
+ Initial commit |
337 |
+ |
338 |
|
339 |
diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml |
340 |
new file mode 100644 |
341 |
index 0000000..3c35d57 |
342 |
--- /dev/null |
343 |
+++ b/app-admin/setools/metadata.xml |
344 |
@@ -0,0 +1,6 @@ |
345 |
+<?xml version="1.0" encoding="UTF-8"?> |
346 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
347 |
+<pkgmetadata> |
348 |
+ <herd>selinux</herd> |
349 |
+ <longdescription>SELinux policy analysis tools.</longdescription> |
350 |
+</pkgmetadata> |
351 |
|
352 |
diff --git a/app-admin/setools/setools-3.3.7-r2.ebuild b/app-admin/setools/setools-3.3.7-r2.ebuild |
353 |
new file mode 100644 |
354 |
index 0000000..dd85473 |
355 |
--- /dev/null |
356 |
+++ b/app-admin/setools/setools-3.3.7-r2.ebuild |
357 |
@@ -0,0 +1,169 @@ |
358 |
+# Copyright 1999-2012 Gentoo Foundation |
359 |
+# Distributed under the terms of the GNU General Public License v2 |
360 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r1.ebuild,v 1.3 2012/05/03 18:02:22 jdhore Exp $ |
361 |
+ |
362 |
+EAPI="2" |
363 |
+PYTHON_DEPEND="python? *" |
364 |
+SUPPORT_PYTHON_ABIS="1" |
365 |
+RESTRICT_PYTHON_ABIS="*-jython" |
366 |
+ |
367 |
+inherit autotools java-pkg-opt-2 python eutils |
368 |
+ |
369 |
+DESCRIPTION="SELinux policy tools" |
370 |
+HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml" |
371 |
+SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${P}/${P}.tar.bz2 |
372 |
+ http://dev.gentoo.org/~swift/patches/setools/${P}-01-fedora-patches.tar.gz |
373 |
+ http://dev.gentoo.org/~swift/patches/setools/${P}-02-gentoo-patches.tar.gz" |
374 |
+ |
375 |
+LICENSE="GPL-2" |
376 |
+SLOT="0" |
377 |
+KEYWORDS="~amd64 ~x86" |
378 |
+IUSE="X debug java python" |
379 |
+ |
380 |
+DEPEND=">=sys-libs/libsepol-2.1.4 |
381 |
+ sys-libs/libselinux |
382 |
+ sys-devel/bison |
383 |
+ sys-devel/flex |
384 |
+ >=dev-db/sqlite-3.2:3 |
385 |
+ dev-libs/libxml2:2 |
386 |
+ virtual/pkgconfig |
387 |
+ java? ( |
388 |
+ >=dev-lang/swig-2.0.4 |
389 |
+ >=virtual/jdk-1.4 |
390 |
+ ) |
391 |
+ python? ( >=dev-lang/swig-2.0.4 ) |
392 |
+ X? ( |
393 |
+ >=dev-lang/tk-8.4.9 |
394 |
+ >=gnome-base/libglade-2.0 |
395 |
+ >=x11-libs/gtk+-2.8:2 |
396 |
+ )" |
397 |
+ |
398 |
+RDEPEND=">=sys-libs/libsepol-2.1.4 |
399 |
+ sys-libs/libselinux |
400 |
+ >=dev-db/sqlite-3.2:3 |
401 |
+ dev-libs/libxml2:2 |
402 |
+ java? ( >=virtual/jre-1.4 ) |
403 |
+ X? ( |
404 |
+ >=dev-lang/tk-8.4.9 |
405 |
+ >=dev-tcltk/bwidget-1.8 |
406 |
+ >=gnome-base/libglade-2.0 |
407 |
+ >=x11-libs/gtk+-2.8:2 |
408 |
+ )" |
409 |
+ |
410 |
+RESTRICT="test" |
411 |
+ |
412 |
+pkg_setup() { |
413 |
+ if use java; then |
414 |
+ java-pkg-opt-2_pkg_setup |
415 |
+ fi |
416 |
+ |
417 |
+ if use python; then |
418 |
+ python_pkg_setup |
419 |
+ PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" |
420 |
+ fi |
421 |
+} |
422 |
+ |
423 |
+src_prepare() { |
424 |
+ EPATCH_MULTI_MSG="Applying various (Fedora-provided) setools fixes... " \ |
425 |
+ EPATCH_SUFFIX="patch" \ |
426 |
+ EPATCH_SOURCE="${WORKDIR}" \ |
427 |
+ EPATCH_FORCE="yes" \ |
428 |
+ epatch |
429 |
+ |
430 |
+ EPATCH_MULTI_MSG="Applying various (Gentoo) setool fixes... " \ |
431 |
+ EPATCH_SUFFIX="patch" \ |
432 |
+ EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
433 |
+ EPATCH_FORCE="yes" \ |
434 |
+ epatch |
435 |
+ |
436 |
+ # Disable broken check for SWIG version. |
437 |
+ sed -e "s/AC_PROG_SWIG(2.0.0)/AC_PROG_SWIG/" -i configure.ac || die "sed failed" |
438 |
+ # Fix build failure due to double __init__.py installation |
439 |
+ sed -e "s/^wrappedpy_DATA = qpol.py \$(pkgpython_PYTHON)/wrappedpy_DATA = qpol.py/" -i libqpol/swig/python/Makefile.am || die |
440 |
+ |
441 |
+ local dir |
442 |
+ for dir in ${PYTHON_DIRS}; do |
443 |
+ # Python bindings are built/installed manually. |
444 |
+ sed -e "s/MAYBE_PYSWIG = python/MAYBE_PYSWIG =/" -i ${dir%python}Makefile.am || die "sed failed" |
445 |
+ # Make PYTHON_LDFLAGS replaceable during running `make`. |
446 |
+ sed -e "/^AM_LDFLAGS =/s/@PYTHON_LDFLAGS@/\$(PYTHON_LDFLAGS)/" -i ${dir}/Makefile.am || die "sed failed" |
447 |
+ done |
448 |
+ |
449 |
+ eautoreconf |
450 |
+ |
451 |
+ # Disable byte-compilation of Python modules. |
452 |
+ echo '#!/bin/sh' > py-compile |
453 |
+} |
454 |
+ |
455 |
+src_configure() { |
456 |
+ econf \ |
457 |
+ --with-java-prefix=${JAVA_HOME} \ |
458 |
+ --disable-selinux-check \ |
459 |
+ --disable-bwidget-check \ |
460 |
+ $(use_enable python swig-python) \ |
461 |
+ $(use_enable java swig-java) \ |
462 |
+ $(use_enable X swig-tcl) \ |
463 |
+ $(use_enable X gui) \ |
464 |
+ $(use_enable debug) |
465 |
+ |
466 |
+ # work around swig c99 issues. it does not require |
467 |
+ # c99 anyway. |
468 |
+ sed -i -e 's/-std=gnu99//' "${S}/libseaudit/swig/python/Makefile" |
469 |
+} |
470 |
+ |
471 |
+src_compile() { |
472 |
+ default |
473 |
+ |
474 |
+ if use python; then |
475 |
+ local dir |
476 |
+ for dir in ${PYTHON_DIRS}; do |
477 |
+ python_copy_sources ${dir} |
478 |
+ building() { |
479 |
+ emake \ |
480 |
+ SWIG_PYTHON_CPPFLAGS="-I$(python_get_includedir)" \ |
481 |
+ PYTHON_LDFLAGS="$(python_get_library -l)" \ |
482 |
+ pyexecdir="$(python_get_sitedir)" \ |
483 |
+ pythondir="$(python_get_sitedir)" |
484 |
+ } |
485 |
+ python_execute_function \ |
486 |
+ --action-message "Building of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version)" \ |
487 |
+ --failure-message "Building of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version) failed" \ |
488 |
+ -s --source-dir ${dir} \ |
489 |
+ building |
490 |
+ done |
491 |
+ fi |
492 |
+} |
493 |
+ |
494 |
+src_install() { |
495 |
+ emake DESTDIR="${D}" install || die "emake install failed" |
496 |
+ |
497 |
+ if use python; then |
498 |
+ local dir |
499 |
+ for dir in ${PYTHON_DIRS}; do |
500 |
+ installation() { |
501 |
+ emake \ |
502 |
+ DESTDIR="${D}" \ |
503 |
+ pyexecdir="$(python_get_sitedir)" \ |
504 |
+ pythondir="$(python_get_sitedir)" \ |
505 |
+ install |
506 |
+ } |
507 |
+ python_execute_function \ |
508 |
+ --action-message "Installation of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version)" \ |
509 |
+ --failure-message "Installation of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version) failed" \ |
510 |
+ -s --source-dir ${dir} \ |
511 |
+ installation |
512 |
+ done |
513 |
+ fi |
514 |
+} |
515 |
+ |
516 |
+pkg_postinst() { |
517 |
+ if use python; then |
518 |
+ python_mod_optimize setools |
519 |
+ fi |
520 |
+} |
521 |
+ |
522 |
+pkg_postrm() { |
523 |
+ if use python; then |
524 |
+ python_mod_cleanup setools |
525 |
+ fi |
526 |
+} |