1 |
commit: 6218496ac8f79b071fcd1ae30fe492d453e629a2 |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Fri Nov 23 21:05:13 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Fri Nov 23 21:05:13 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=6218496a |
7 |
|
8 |
Moved to main tree |
9 |
|
10 |
--- |
11 |
app-admin/setools/ChangeLog | 12 -- |
12 |
app-admin/setools/metadata.xml | 6 - |
13 |
app-admin/setools/setools-3.3.7-r6.ebuild | 175 ----------------------------- |
14 |
3 files changed, 0 insertions(+), 193 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog |
17 |
deleted file mode 100644 |
18 |
index 21186e9..0000000 |
19 |
--- a/app-admin/setools/ChangeLog |
20 |
+++ /dev/null |
21 |
@@ -1,12 +0,0 @@ |
22 |
-# ChangeLog for app-admin/setools |
23 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
24 |
-# $Header: $ |
25 |
- |
26 |
- 18 Nov 2012; <swift@g.o> +setools-3.3.7-r6.ebuild, +metadata.xml: |
27 |
- Fix bug #430262 |
28 |
- |
29 |
-*setools-3.3.7-r6 (18 Nov 2012) |
30 |
- |
31 |
- 18 Nov 2012; <swift@g.o> +setools-3.3.7-r6.ebuild, +metadata.xml: |
32 |
- Trying removal of swig-changes and use different method for fixing |
33 |
- |
34 |
|
35 |
diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml |
36 |
deleted file mode 100644 |
37 |
index 3c35d57..0000000 |
38 |
--- a/app-admin/setools/metadata.xml |
39 |
+++ /dev/null |
40 |
@@ -1,6 +0,0 @@ |
41 |
-<?xml version="1.0" encoding="UTF-8"?> |
42 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
43 |
-<pkgmetadata> |
44 |
- <herd>selinux</herd> |
45 |
- <longdescription>SELinux policy analysis tools.</longdescription> |
46 |
-</pkgmetadata> |
47 |
|
48 |
diff --git a/app-admin/setools/setools-3.3.7-r6.ebuild b/app-admin/setools/setools-3.3.7-r6.ebuild |
49 |
deleted file mode 100644 |
50 |
index 841a3be..0000000 |
51 |
--- a/app-admin/setools/setools-3.3.7-r6.ebuild |
52 |
+++ /dev/null |
53 |
@@ -1,175 +0,0 @@ |
54 |
-# Copyright 1999-2012 Gentoo Foundation |
55 |
-# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r5.ebuild,v 1.2 2012/11/18 08:49:57 swift Exp $ |
57 |
- |
58 |
-EAPI="2" |
59 |
-PYTHON_DEPEND="python? *" |
60 |
-SUPPORT_PYTHON_ABIS="1" |
61 |
-RESTRICT_PYTHON_ABIS="*-jython *-pypy-* 3.*" |
62 |
- |
63 |
-inherit autotools java-pkg-opt-2 python eutils |
64 |
- |
65 |
-DESCRIPTION="SELinux policy tools" |
66 |
-HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml" |
67 |
-SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${P}/${P}.tar.bz2 |
68 |
- http://dev.gentoo.org/~swift/patches/setools/${P}-01-fedora-patches.tar.gz |
69 |
- http://dev.gentoo.org/~swift/patches/setools/${P}-06-gentoo-patches.tar.gz" |
70 |
- |
71 |
-LICENSE="GPL-2" |
72 |
-SLOT="0" |
73 |
-KEYWORDS="~amd64 ~x86" |
74 |
-IUSE="X debug java python" |
75 |
- |
76 |
-DEPEND=">=sys-libs/libsepol-2.1.4 |
77 |
- sys-libs/libselinux |
78 |
- sys-devel/bison |
79 |
- sys-devel/flex |
80 |
- >=dev-db/sqlite-3.2:3 |
81 |
- dev-libs/libxml2:2 |
82 |
- virtual/pkgconfig |
83 |
- java? ( |
84 |
- <dev-lang/swig-2.0 |
85 |
- >=virtual/jdk-1.4 |
86 |
- ) |
87 |
- python? ( <dev-lang/swig-2.0 ) |
88 |
- X? ( |
89 |
- >=dev-lang/tk-8.4.9 |
90 |
- >=gnome-base/libglade-2.0 |
91 |
- >=x11-libs/gtk+-2.8:2 |
92 |
- )" |
93 |
- |
94 |
-RDEPEND=">=sys-libs/libsepol-2.1.4 |
95 |
- sys-libs/libselinux |
96 |
- >=dev-db/sqlite-3.2:3 |
97 |
- dev-libs/libxml2:2 |
98 |
- java? ( >=virtual/jre-1.4 ) |
99 |
- X? ( |
100 |
- >=dev-lang/tk-8.4.9 |
101 |
- >=dev-tcltk/bwidget-1.8 |
102 |
- >=gnome-base/libglade-2.0 |
103 |
- >=x11-libs/gtk+-2.8:2 |
104 |
- )" |
105 |
- |
106 |
-RESTRICT="test" |
107 |
- |
108 |
-pkg_setup() { |
109 |
- if use java; then |
110 |
- java-pkg-opt-2_pkg_setup |
111 |
- fi |
112 |
- |
113 |
- if use python; then |
114 |
- python_pkg_setup |
115 |
- PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" |
116 |
- fi |
117 |
-} |
118 |
- |
119 |
-src_prepare() { |
120 |
- EPATCH_MULTI_MSG="Applying various (Fedora-provided) setools fixes... " \ |
121 |
- EPATCH_SUFFIX="patch" \ |
122 |
- EPATCH_SOURCE="${WORKDIR}" \ |
123 |
- EPATCH_FORCE="yes" \ |
124 |
- epatch |
125 |
- |
126 |
- EPATCH_MULTI_MSG="Applying various (Gentoo) setool fixes... " \ |
127 |
- EPATCH_SUFFIX="patch" \ |
128 |
- EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
129 |
- EPATCH_FORCE="yes" \ |
130 |
- epatch |
131 |
- |
132 |
- # Disable broken check for SWIG version. |
133 |
- sed -e "s/AC_PROG_SWIG(2.0.0)/AC_PROG_SWIG/" -i configure.ac || die "sed failed" |
134 |
- # Fix build failure due to double __init__.py installation |
135 |
- sed -e "s/^wrappedpy_DATA = qpol.py \$(pkgpython_PYTHON)/wrappedpy_DATA = qpol.py/" -i libqpol/swig/python/Makefile.am || die |
136 |
- |
137 |
- local dir |
138 |
- for dir in ${PYTHON_DIRS}; do |
139 |
- # Python bindings are built/installed manually. |
140 |
- sed -e "s/MAYBE_PYSWIG = python/MAYBE_PYSWIG =/" -i ${dir%python}Makefile.am || die "sed failed" |
141 |
- # Make PYTHON_LDFLAGS replaceable during running `make`. |
142 |
- sed -e "/^AM_LDFLAGS =/s/@PYTHON_LDFLAGS@/\$(PYTHON_LDFLAGS)/" -i ${dir}/Makefile.am || die "sed failed" |
143 |
- done |
144 |
- |
145 |
- # temporary work around bug #424581 until automake-1.12 is stable (then |
146 |
- # depend on it). Need to use MKDIR_P in the mean time for 1.12+. |
147 |
- has_version ">=sys-devel/automake-1.12.1" && { find . -name 'Makefile.*' -exec sed -i -e 's:mkdir_p:MKDIR_P:g' {} + || die; } |
148 |
- |
149 |
- eautoreconf |
150 |
- |
151 |
- # Disable byte-compilation of Python modules. |
152 |
- echo '#!/bin/sh' > py-compile |
153 |
- |
154 |
- epatch_user |
155 |
-} |
156 |
- |
157 |
-src_configure() { |
158 |
- econf \ |
159 |
- --with-java-prefix=${JAVA_HOME} \ |
160 |
- --disable-selinux-check \ |
161 |
- --disable-bwidget-check \ |
162 |
- $(use_enable python swig-python) \ |
163 |
- $(use_enable java swig-java) \ |
164 |
- $(use_enable X swig-tcl) \ |
165 |
- $(use_enable X gui) \ |
166 |
- $(use_enable debug) |
167 |
- |
168 |
- # work around swig c99 issues. it does not require |
169 |
- # c99 anyway. |
170 |
- sed -i -e 's/-std=gnu99//' "${S}/libseaudit/swig/python/Makefile" |
171 |
-} |
172 |
- |
173 |
-src_compile() { |
174 |
- default |
175 |
- |
176 |
- if use python; then |
177 |
- local dir |
178 |
- for dir in ${PYTHON_DIRS}; do |
179 |
- python_copy_sources ${dir} |
180 |
- building() { |
181 |
- emake \ |
182 |
- SWIG_PYTHON_CPPFLAGS="-I$(python_get_includedir)" \ |
183 |
- PYTHON_LDFLAGS="$(python_get_library -l)" \ |
184 |
- pyexecdir="$(python_get_sitedir)" \ |
185 |
- pythondir="$(python_get_sitedir)" |
186 |
- } |
187 |
- python_execute_function \ |
188 |
- --action-message "Building of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version)" \ |
189 |
- --failure-message "Building of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version) failed" \ |
190 |
- -s --source-dir ${dir} \ |
191 |
- building |
192 |
- done |
193 |
- fi |
194 |
-} |
195 |
- |
196 |
-src_install() { |
197 |
- emake DESTDIR="${D}" install || die "emake install failed" |
198 |
- |
199 |
- if use python; then |
200 |
- local dir |
201 |
- for dir in ${PYTHON_DIRS}; do |
202 |
- installation() { |
203 |
- emake \ |
204 |
- DESTDIR="${D}" \ |
205 |
- pyexecdir="$(python_get_sitedir)" \ |
206 |
- pythondir="$(python_get_sitedir)" \ |
207 |
- install |
208 |
- } |
209 |
- python_execute_function \ |
210 |
- --action-message "Installation of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version)" \ |
211 |
- --failure-message "Installation of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version) failed" \ |
212 |
- -s --source-dir ${dir} \ |
213 |
- installation |
214 |
- done |
215 |
- fi |
216 |
-} |
217 |
- |
218 |
-pkg_postinst() { |
219 |
- if use python; then |
220 |
- python_mod_optimize setools |
221 |
- fi |
222 |
-} |
223 |
- |
224 |
-pkg_postrm() { |
225 |
- if use python; then |
226 |
- python_mod_cleanup setools |
227 |
- fi |
228 |
-} |