1 |
commit: 285a3e8c9a58d6f98c01fe538d2727d91f921b46 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 16:27:19 2016 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 16:28:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=285a3e8c |
7 |
|
8 |
app-admin/setools: Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-admin/setools/Manifest | 2 - |
13 |
app-admin/setools/setools-3.3.8-r5.ebuild | 160 ------------------------------ |
14 |
2 files changed, 162 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest |
17 |
index c1d439d..eb53483 100644 |
18 |
--- a/app-admin/setools/Manifest |
19 |
+++ b/app-admin/setools/Manifest |
20 |
@@ -1,5 +1,3 @@ |
21 |
-DIST setools-3.3.8-01-fedora-patches.tar.gz 1128 SHA256 420b852d4209d07b73cec84586e000e7a6a719135ea677711abf97d420840bb6 SHA512 1aa2cc50c307929b522e029a552bfd545aef07656d1983289b0ea9be67aa94c07272a59c17630fc09fd79b06845ada318cdfa48d6cc243a24026e015c23b9634 WHIRLPOOL 25ae2b15fb15060fd0d34c55f4cc098b70a3a616f5334b092657a9c5df037b7fcf00fd185f33ba142e47d46c36b2fb7e9434021d6e987832fe833367a50d7449 |
22 |
-DIST setools-3.3.8-03-gentoo-patches.tar.gz 6584 SHA256 8eac460b7dc2ee5e2f23148cdbf187316edd78ce0ec7ebbb6b0f68d6ad33d86a SHA512 5458dab5775b558e287f946c299753be5cb5eb6c1c2b9df0e32c7cfa758bb5316d142aa6338d3019f5f1eeb72876e4d5ed4939b0dbfe7b7e01c08a19a086bacc WHIRLPOOL e1afa6bb28f3aee2f3acdc66efd8ca02548c4f8e5707052ea455f1db558126f069d63278251630ee68bf4987157279161006975cb14d44055492228fa476cd72 |
23 |
DIST setools-3.3.8-04-gentoo-patches.tar.bz2 94986 SHA256 9a8a43ac97606fde9b2610ceed65f640638929853f871ce530982bedfd919b64 SHA512 39bf00b6aaf31821c6e2e2fb4c460dd1914fba4bf8385acebedf88f1533da990f1fb925dd49d75827aebef3f394a50a1edea46a07204193b58c65a066a064e6a WHIRLPOOL 4a92e4cf6930584de931c5d0805815aacd1c1af4434ca8e73414eda33588a55ef8d7bdfe4195be642889eee480128cbe12d1c5612e07ea304021b230e0b74816 |
24 |
DIST setools-3.3.8.tar.bz2 951428 SHA256 44387ecc9a231ec536a937783440cd8960a72c51f14bffc1604b7525e341e999 SHA512 2c42ee9904174ed6c6fc129e374ec3591925094ab0ef65001b0104e365c5634bf4a79f28369608c80199d8f59fafaa5f274107c04c129c380eeef7adb0c32667 WHIRLPOOL 11c4065809909764f4364b78df1a8030d189315601b882919ccacb5fb147c1b3a061c5bbf9ced3c243d4615ab7727e9db0c89e931a884ae8b317ae3a879e5371 |
25 |
DIST setools-4.0.1.tar.gz 399888 SHA256 4c2049877f2f68e4485b72bc280fe20127b49a019169a2cf1d8295c908bdcdfe SHA512 d0a36cfddc6a6f47ecaa8402141271558e97467b6c449d18b98bf6fe894189f29a32fb672e3ff573efdb44964bd361283c68c2906d02f8a9c1269b6b71903bc2 WHIRLPOOL 017e709c113b28175787249af8aa1dcc99a5034eadcc76e97a394f9f89afcc1e7fe3eeb8ec105c541a6260d8a2eb4b1aa8155ba2297ecdf6d640ba112857a442 |
26 |
|
27 |
diff --git a/app-admin/setools/setools-3.3.8-r5.ebuild b/app-admin/setools/setools-3.3.8-r5.ebuild |
28 |
deleted file mode 100644 |
29 |
index 595afd3..00000000 |
30 |
--- a/app-admin/setools/setools-3.3.8-r5.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,160 +0,0 @@ |
33 |
-# Copyright 1999-2016 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI="5" |
38 |
-PYTHON_COMPAT=( python2_7 ) |
39 |
- |
40 |
-inherit autotools java-pkg-opt-2 python-r1 eutils toolchain-funcs |
41 |
- |
42 |
-DESCRIPTION="SELinux policy tools" |
43 |
-HOMEPAGE="https://github.com/TresysTechnology/setools/wiki" |
44 |
-SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${P}/${P}.tar.bz2 |
45 |
- https://dev.gentoo.org/~swift/patches/setools/${P}-01-fedora-patches.tar.gz |
46 |
- https://dev.gentoo.org/~swift/patches/setools/${P}-03-gentoo-patches.tar.gz" |
47 |
- |
48 |
-LICENSE="GPL-2" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="amd64 x86" |
51 |
-IUSE="X debug java python" |
52 |
- |
53 |
-DEPEND=">=sys-libs/libsepol-2.1.4 |
54 |
- >=sys-libs/libselinux-2.3 |
55 |
- sys-devel/bison |
56 |
- sys-devel/flex |
57 |
- >=dev-db/sqlite-3.2:3 |
58 |
- dev-libs/libxml2:2 |
59 |
- virtual/pkgconfig |
60 |
- java? ( |
61 |
- dev-lang/swig:1 |
62 |
- >=virtual/jdk-1.4 |
63 |
- ) |
64 |
- python? ( |
65 |
- ${PYTHON_DEPS} |
66 |
- dev-lang/swig:1 |
67 |
- ) |
68 |
- X? ( |
69 |
- >=dev-lang/tk-8.4.9 |
70 |
- >=gnome-base/libglade-2.0 |
71 |
- >=x11-libs/gtk+-2.8:2 |
72 |
- )" |
73 |
- |
74 |
-RDEPEND=">=sys-libs/libsepol-2.1.4 |
75 |
- >=sys-libs/libselinux-2.3 |
76 |
- >=dev-db/sqlite-3.2:3 |
77 |
- dev-libs/libxml2:2 |
78 |
- java? ( >=virtual/jre-1.4 ) |
79 |
- X? ( |
80 |
- >=dev-lang/tk-8.4.9:0= |
81 |
- >=dev-tcltk/bwidget-1.8 |
82 |
- >=gnome-base/libglade-2.0 |
83 |
- >=x11-libs/gtk+-2.8:2 |
84 |
- )" |
85 |
- |
86 |
-RESTRICT="test" |
87 |
-# setools dirs that contain python code to build |
88 |
-PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" |
89 |
- |
90 |
-pkg_setup() { |
91 |
- if use java; then |
92 |
- java-pkg-opt-2_pkg_setup |
93 |
- fi |
94 |
-} |
95 |
- |
96 |
-src_prepare() { |
97 |
- EPATCH_MULTI_MSG="Applying various (Fedora-provided) setools fixes... " \ |
98 |
- EPATCH_SUFFIX="patch" \ |
99 |
- EPATCH_SOURCE="${WORKDIR}" \ |
100 |
- EPATCH_FORCE="yes" \ |
101 |
- epatch |
102 |
- |
103 |
- EPATCH_MULTI_MSG="Applying various (Gentoo) setool fixes... " \ |
104 |
- EPATCH_SUFFIX="patch" \ |
105 |
- EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
106 |
- EPATCH_FORCE="yes" \ |
107 |
- epatch |
108 |
- |
109 |
- # Disable broken check for SWIG version. |
110 |
- sed -e "s/AC_PROG_SWIG(2.0.0)/AC_PROG_SWIG/" -i configure.ac || die "sed failed" |
111 |
- # Use swig1.3 |
112 |
- sed -e 's/AC_PATH_PROG(\[SWIG\],\[swig\])/AC_PATH_PROG([SWIG],[swig1.3])/' -i m4/ac_pkg_swig.m4 || die "failed to set swig1.3" |
113 |
- # Fix build failure due to double __init__.py installation |
114 |
- sed -e "s/^wrappedpy_DATA = qpol.py \$(pkgpython_PYTHON)/wrappedpy_DATA = qpol.py/" -i libqpol/swig/python/Makefile.am || die |
115 |
- |
116 |
- local dir |
117 |
- for dir in ${PYTHON_DIRS}; do |
118 |
- # Python bindings are built/installed manually. |
119 |
- sed -e "s/MAYBE_PYSWIG = python/MAYBE_PYSWIG =/" -i ${dir%python}Makefile.am || die "sed failed" |
120 |
- # Make PYTHON_LDFLAGS replaceable during running `make`. |
121 |
- sed -e "/^AM_LDFLAGS =/s/@PYTHON_LDFLAGS@/\$(PYTHON_LDFLAGS)/" -i ${dir}/Makefile.am || die "sed failed" |
122 |
- done |
123 |
- |
124 |
- # temporary work around bug #424581 until automake-1.12 is stable (then |
125 |
- # depend on it). Need to use MKDIR_P in the mean time for 1.12+. |
126 |
- has_version ">=sys-devel/automake-1.12.1" && { find . -name 'Makefile.*' -exec sed -i -e 's:mkdir_p:MKDIR_P:g' {} + || die; } |
127 |
- |
128 |
- eautoreconf |
129 |
- |
130 |
- # Disable byte-compilation of Python modules. |
131 |
- echo '#!/bin/sh' > py-compile |
132 |
- |
133 |
- epatch_user |
134 |
-} |
135 |
- |
136 |
-src_configure() { |
137 |
- tc-ld-disable-gold #467136 |
138 |
- econf \ |
139 |
- --with-java-prefix=${JAVA_HOME} \ |
140 |
- --disable-selinux-check \ |
141 |
- --disable-bwidget-check \ |
142 |
- $(use_enable python swig-python) \ |
143 |
- $(use_enable java swig-java) \ |
144 |
- $(use_enable X swig-tcl) \ |
145 |
- $(use_enable X gui) \ |
146 |
- $(use_enable debug) |
147 |
- |
148 |
- # work around swig c99 issues. it does not require |
149 |
- # c99 anyway. |
150 |
- sed -i -e 's/-std=gnu99//' "${S}/libseaudit/swig/python/Makefile" |
151 |
-} |
152 |
- |
153 |
-src_compile() { |
154 |
- emake |
155 |
- |
156 |
- if use python; then |
157 |
- building() { |
158 |
- python_export PYTHON_INCLUDEDIR |
159 |
- python_export PYTHON_SITEDIR |
160 |
- python_export PYTHON_LIBS |
161 |
- emake \ |
162 |
- SWIG_PYTHON_CPPFLAGS="-I${PYTHON_INCLUDEDIR}" \ |
163 |
- PYTHON_LDFLAGS="${PYTHON_LIBS}" \ |
164 |
- pyexecdir="${PYTHON_SITEDIR}" \ |
165 |
- pythondir="${PYTHON_SITEDIR}" \ |
166 |
- -C "$1" |
167 |
- } |
168 |
- local dir |
169 |
- for dir in ${PYTHON_DIRS}; do |
170 |
- python_foreach_impl building ${dir} |
171 |
- done |
172 |
- fi |
173 |
-} |
174 |
- |
175 |
-src_install() { |
176 |
- emake DESTDIR="${D}" install |
177 |
- |
178 |
- if use python; then |
179 |
- installation() { |
180 |
- python_export PYTHON_SITEDIR |
181 |
- emake DESTDIR="${D}" \ |
182 |
- pyexecdir="${PYTHON_SITEDIR}" \ |
183 |
- pythondir="${PYTHON_SITEDIR}" \ |
184 |
- -C "$1" install |
185 |
- } |
186 |
- |
187 |
- local dir |
188 |
- for dir in ${PYTHON_DIRS}; do |
189 |
- python_foreach_impl installation "${dir}" |
190 |
- done |
191 |
- fi |
192 |
-} |