Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/selinux-python/
Date: Sat, 17 Aug 2019 10:09:32
Message-Id: 1566034639.f0a37207e556556e75992f7597b4529222be434d.perfinion@gentoo
1 commit: f0a37207e556556e75992f7597b4529222be434d
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 17 09:37:19 2019 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 17 09:37:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0a37207
7
8 sys-apps/selinux-python: drop old
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
12
13 sys-apps/selinux-python/Manifest | 2 -
14 sys-apps/selinux-python/metadata.xml | 3 -
15 sys-apps/selinux-python/selinux-python-2.7.ebuild | 97 ----------------------
16 sys-apps/selinux-python/selinux-python-2.8.ebuild | 95 ---------------------
17 .../selinux-python/selinux-python-2.9_rc1.ebuild | 95 ---------------------
18 5 files changed, 292 deletions(-)
19
20 diff --git a/sys-apps/selinux-python/Manifest b/sys-apps/selinux-python/Manifest
21 index 8b6ced41e2a..82d4f0fc4a5 100644
22 --- a/sys-apps/selinux-python/Manifest
23 +++ b/sys-apps/selinux-python/Manifest
24 @@ -1,4 +1,2 @@
25 -DIST selinux-python-2.7.tar.gz 2068004 BLAKE2B 57c7f324a8faddf57a576f9ec5c46c8dbbd085a3aff4355df645b0f391a0c2db718e8adb2719515cc4a9c386e11c3df053b5303d3f91ff4958fb91e80d440b51 SHA512 df8645e7ac9ca568f0c9d81c42b93d0abadc43c22f14d38451ab262b52132cfb7abd7742e3a00ab9c153f95dd5b23b3a496d84875debcd9787f75d940eb45c28
26 DIST selinux-python-2.8.tar.gz 2068101 BLAKE2B c28f12e4bd453955148a6ba82fd28621d1a4600f872ac63d97372f2e0153091adf1cf871f89765dd300bc6b7b2d610b96f87e3fc5accbfad713ed8a0d8f76f5a SHA512 e695c11122f7f8105b75d1ef98355fd2b82b40d93c2fd9e733dcd95d4d7c392f60b646df81203c43ad2a0e8447f9901083007e1572b78e17368ad2764ffa1aad
27 -DIST selinux-python-2.9-rc1.tar.gz 2082516 BLAKE2B d1e6e859308739daebd979fd26b3a8b0cbef050f2c69177a93da5b79f103444b0800ce761e5483ba79356b67ce7c6c246c758d19bc85ec7d1061e6b8ab31c6e3 SHA512 afd7686ed21c55aa3fc45934d252da1a7d8a44651ef210bf54d4feeedcb72b9092be2d3becc9ff9c8caba53088d33ad97824e0655e04a47c122b45ea6c3e6455
28 DIST selinux-python-2.9.tar.gz 2100185 BLAKE2B 8aad58264197dbf23dfa286ba6530150ca6ae1ddaeb1a58988c05d0b122420cfd7e9be2a1cb7082d73cd41f03c4df00ad81a0fb746b075db24e63f62f86a1bf1 SHA512 1138661128635004fec04dc5e39f035680b5f21beb1b79f3328690a1b93a3984d522a02724af793340112a5e647d363dda8a7d3536de959b34ffd69aa396254d
29
30 diff --git a/sys-apps/selinux-python/metadata.xml b/sys-apps/selinux-python/metadata.xml
31 index 94e50a7ff05..74f36a3eba2 100644
32 --- a/sys-apps/selinux-python/metadata.xml
33 +++ b/sys-apps/selinux-python/metadata.xml
34 @@ -10,9 +10,6 @@
35 that are required for basic operation of a SELinux system. These
36 include semanage, sepolicy and sepolgen.
37 </longdescription>
38 - <use>
39 - <flag name="audit">Enable support for <pkg>sys-process/audit</pkg> and use the audit_* functions (like audit_getuid instead of getuid())</flag>
40 - </use>
41 <upstream>
42 <remote-id type="github">SELinuxProject/selinux</remote-id>
43 </upstream>
44
45 diff --git a/sys-apps/selinux-python/selinux-python-2.7.ebuild b/sys-apps/selinux-python/selinux-python-2.7.ebuild
46 deleted file mode 100644
47 index 5f01a11222d..00000000000
48 --- a/sys-apps/selinux-python/selinux-python-2.7.ebuild
49 +++ /dev/null
50 @@ -1,97 +0,0 @@
51 -# Copyright 1999-2019 Gentoo Authors
52 -# Distributed under the terms of the GNU General Public License v2
53 -
54 -EAPI="6"
55 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
56 -PYTHON_REQ_USE="xml"
57 -
58 -inherit python-r1 toolchain-funcs
59 -
60 -MY_P="${P//_/-}"
61 -
62 -MY_RELEASEDATE="20170804"
63 -SEPOL_VER="${PV}"
64 -SELNX_VER="${PV}"
65 -SEMNG_VER="${PV}"
66 -
67 -IUSE="audit pam dbus"
68 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
69 -
70 -DESCRIPTION="SELinux core utilities"
71 -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
72 -
73 -if [[ ${PV} == 9999 ]] ; then
74 - inherit git-r3
75 - EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
76 - S="${WORKDIR}/${MY_P}/${PN#selinux-}"
77 -else
78 - SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
79 - KEYWORDS="amd64 ~arm64 ~mips x86"
80 - S="${WORKDIR}/${MY_P}"
81 -fi
82 -
83 -LICENSE="GPL-2"
84 -SLOT="0"
85 -
86 -DEPEND=">=sys-libs/libselinux-${SELNX_VER}:=[python]
87 - >=sys-libs/libsemanage-${SEMNG_VER}:=[python]
88 - >=sys-libs/libsepol-${SEPOL_VER}:=
89 - >=app-admin/setools-4.1.1[${PYTHON_USEDEP}]
90 - dev-python/ipy[${PYTHON_USEDEP}]
91 - !dev-python/sepolgen
92 - ${PYTHON_DEPS}"
93 -
94 -RDEPEND="${DEPEND}"
95 -
96 -src_prepare() {
97 - default
98 - sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
99 -
100 - python_copy_sources
101 -}
102 -
103 -src_compile() {
104 - building() {
105 - emake -C "${BUILD_DIR}" \
106 - CC="$(tc-getCC)" \
107 - PYLIBVER="${EPYTHON}" \
108 - LIBDIR="\$(PREFIX)/$(get_libdir)"
109 - }
110 - python_foreach_impl building
111 -}
112 -
113 -src_install() {
114 - installation() {
115 - emake -C "${BUILD_DIR}" \
116 - DESTDIR="${D}" \
117 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
118 - LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \
119 - install
120 - python_optimize
121 - }
122 - python_foreach_impl installation
123 -
124 - # Set version-specific scripts
125 - for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do
126 - python_replicate_script "${ED}/usr/bin/${pyscript}"
127 - done
128 - for pyscript in semanage; do
129 - python_replicate_script "${ED}/usr/sbin/${pyscript}"
130 - done
131 -
132 - # Create sepolgen.conf with different devel location definition
133 - if [[ -f /etc/selinux/config ]];
134 - then
135 - local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config);
136 - mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory";
137 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
138 - else
139 - local selinuxtype="${POLICY_TYPES%% *}";
140 - if [[ -n "${selinuxtype}" ]];
141 - then
142 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
143 - else
144 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf;
145 - fi
146 - fi
147 -}
148
149 diff --git a/sys-apps/selinux-python/selinux-python-2.8.ebuild b/sys-apps/selinux-python/selinux-python-2.8.ebuild
150 deleted file mode 100644
151 index 799855a2979..00000000000
152 --- a/sys-apps/selinux-python/selinux-python-2.8.ebuild
153 +++ /dev/null
154 @@ -1,95 +0,0 @@
155 -# Copyright 1999-2019 Gentoo Authors
156 -# Distributed under the terms of the GNU General Public License v2
157 -
158 -EAPI="6"
159 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
160 -PYTHON_REQ_USE="xml"
161 -
162 -inherit python-r1 toolchain-funcs
163 -
164 -MY_P="${P//_/-}"
165 -
166 -MY_RELEASEDATE="20180524"
167 -SEPOL_VER="${PV}"
168 -SELNX_VER="${PV}"
169 -SEMNG_VER="${PV}"
170 -
171 -IUSE=""
172 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
173 -
174 -DESCRIPTION="SELinux core utilities"
175 -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
176 -
177 -if [[ ${PV} == 9999 ]] ; then
178 - inherit git-r3
179 - EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
180 - S="${WORKDIR}/${MY_P}/${PN#selinux-}"
181 -else
182 - SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
183 - KEYWORDS="amd64 ~arm64 ~mips x86"
184 - S="${WORKDIR}/${MY_P}"
185 -fi
186 -
187 -LICENSE="GPL-2"
188 -SLOT="0"
189 -
190 -DEPEND=">=sys-libs/libselinux-${SELNX_VER}:=[python]
191 - >=sys-libs/libsemanage-${SEMNG_VER}:=[python]
192 - >=sys-libs/libsepol-${SEPOL_VER}:=
193 - >=app-admin/setools-4.1.1[${PYTHON_USEDEP}]
194 - dev-python/ipy[${PYTHON_USEDEP}]
195 - !dev-python/sepolgen
196 - ${PYTHON_DEPS}"
197 -
198 -RDEPEND="${DEPEND}"
199 -
200 -src_prepare() {
201 - default
202 - sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
203 -
204 - python_copy_sources
205 -}
206 -
207 -src_compile() {
208 - building() {
209 - emake -C "${BUILD_DIR}" \
210 - CC="$(tc-getCC)" \
211 - LIBDIR="\$(PREFIX)/$(get_libdir)"
212 - }
213 - python_foreach_impl building
214 -}
215 -
216 -src_install() {
217 - installation() {
218 - emake -C "${BUILD_DIR}" \
219 - DESTDIR="${D}" \
220 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
221 - install
222 - python_optimize
223 - }
224 - python_foreach_impl installation
225 -
226 - # Set version-specific scripts
227 - for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do
228 - python_replicate_script "${ED}/usr/bin/${pyscript}"
229 - done
230 - for pyscript in semanage; do
231 - python_replicate_script "${ED}/usr/sbin/${pyscript}"
232 - done
233 -
234 - # Create sepolgen.conf with different devel location definition
235 - if [[ -f /etc/selinux/config ]];
236 - then
237 - local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config);
238 - mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory";
239 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
240 - else
241 - local selinuxtype="${POLICY_TYPES%% *}";
242 - if [[ -n "${selinuxtype}" ]];
243 - then
244 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
245 - else
246 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf;
247 - fi
248 - fi
249 -}
250
251 diff --git a/sys-apps/selinux-python/selinux-python-2.9_rc1.ebuild b/sys-apps/selinux-python/selinux-python-2.9_rc1.ebuild
252 deleted file mode 100644
253 index e68742e64f4..00000000000
254 --- a/sys-apps/selinux-python/selinux-python-2.9_rc1.ebuild
255 +++ /dev/null
256 @@ -1,95 +0,0 @@
257 -# Copyright 1999-2019 Gentoo Authors
258 -# Distributed under the terms of the GNU General Public License v2
259 -
260 -EAPI="6"
261 -PYTHON_COMPAT=( python{3_5,3_6} )
262 -PYTHON_REQ_USE="xml"
263 -
264 -inherit python-r1 toolchain-funcs
265 -
266 -MY_P="${P//_/-}"
267 -
268 -MY_RELEASEDATE="20190125"
269 -SEPOL_VER="${PV}"
270 -SELNX_VER="${PV}"
271 -SEMNG_VER="${PV}"
272 -
273 -IUSE=""
274 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
275 -
276 -DESCRIPTION="SELinux core utilities"
277 -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
278 -
279 -if [[ ${PV} == 9999 ]] ; then
280 - inherit git-r3
281 - EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
282 - S="${WORKDIR}/${MY_P}/${PN#selinux-}"
283 -else
284 - SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz"
285 - KEYWORDS="~amd64 ~arm64 ~mips ~x86"
286 - S="${WORKDIR}/${MY_P}"
287 -fi
288 -
289 -LICENSE="GPL-2"
290 -SLOT="0"
291 -
292 -DEPEND=">=sys-libs/libselinux-${SELNX_VER}:=[python]
293 - >=sys-libs/libsemanage-${SEMNG_VER}:=[python]
294 - >=sys-libs/libsepol-${SEPOL_VER}:=
295 - >=app-admin/setools-4.2.0[${PYTHON_USEDEP}]
296 - dev-python/ipy[${PYTHON_USEDEP}]
297 - !dev-python/sepolgen
298 - ${PYTHON_DEPS}"
299 -
300 -RDEPEND="${DEPEND}"
301 -
302 -src_prepare() {
303 - default
304 - sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
305 -
306 - python_copy_sources
307 -}
308 -
309 -src_compile() {
310 - building() {
311 - emake -C "${BUILD_DIR}" \
312 - CC="$(tc-getCC)" \
313 - LIBDIR="\$(PREFIX)/$(get_libdir)"
314 - }
315 - python_foreach_impl building
316 -}
317 -
318 -src_install() {
319 - installation() {
320 - emake -C "${BUILD_DIR}" \
321 - DESTDIR="${D}" \
322 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
323 - install
324 - python_optimize
325 - }
326 - python_foreach_impl installation
327 -
328 - # Set version-specific scripts
329 - for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do
330 - python_replicate_script "${ED}/usr/bin/${pyscript}"
331 - done
332 - for pyscript in semanage; do
333 - python_replicate_script "${ED}/usr/sbin/${pyscript}"
334 - done
335 -
336 - # Create sepolgen.conf with different devel location definition
337 - if [[ -f /etc/selinux/config ]];
338 - then
339 - local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config);
340 - mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory";
341 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
342 - else
343 - local selinuxtype="${POLICY_TYPES%% *}";
344 - if [[ -n "${selinuxtype}" ]];
345 - then
346 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
347 - else
348 - echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf;
349 - fi
350 - fi
351 -}