1 |
commit: 1787b1aa0e99cdf8bac5d699efaf4d7cd72af224 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 7 04:17:05 2021 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 7 04:17:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1787b1aa |
7 |
|
8 |
sys-apps/selinux-python: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
11 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
12 |
|
13 |
.../selinux-python/selinux-python-3.1-r1.ebuild | 95 ---------------------- |
14 |
1 file changed, 95 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/selinux-python/selinux-python-3.1-r1.ebuild b/sys-apps/selinux-python/selinux-python-3.1-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 8bafa3c13fb..00000000000 |
19 |
--- a/sys-apps/selinux-python/selinux-python-3.1-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,95 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI="7" |
26 |
-PYTHON_COMPAT=( python{3_7,3_8} ) |
27 |
-PYTHON_REQ_USE="xml" |
28 |
- |
29 |
-inherit python-r1 toolchain-funcs |
30 |
- |
31 |
-MY_P="${P//_/-}" |
32 |
- |
33 |
-MY_RELEASEDATE="20200710" |
34 |
-SEPOL_VER="${PV}" |
35 |
-SELNX_VER="${PV}" |
36 |
-SEMNG_VER="${PV}" |
37 |
- |
38 |
-IUSE="" |
39 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
40 |
- |
41 |
-DESCRIPTION="SELinux core utilities" |
42 |
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
43 |
- |
44 |
-if [[ ${PV} == 9999 ]] ; then |
45 |
- inherit git-r3 |
46 |
- EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" |
47 |
- S="${WORKDIR}/${MY_P}/${PN#selinux-}" |
48 |
-else |
49 |
- SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz" |
50 |
- KEYWORDS="amd64 ~arm64 ~mips x86" |
51 |
- S="${WORKDIR}/${MY_P}" |
52 |
-fi |
53 |
- |
54 |
-LICENSE="GPL-2" |
55 |
-SLOT="0" |
56 |
- |
57 |
-DEPEND=">=sys-libs/libselinux-${SELNX_VER}:=[python] |
58 |
- >=sys-libs/libsemanage-${SEMNG_VER}:=[python(+)] |
59 |
- >=sys-libs/libsepol-${SEPOL_VER}:= |
60 |
- >=app-admin/setools-4.2.0[${PYTHON_USEDEP}] |
61 |
- dev-python/ipy[${PYTHON_USEDEP}] |
62 |
- >=sys-process/audit-1.5.1[python,${PYTHON_USEDEP}] |
63 |
- ${PYTHON_DEPS}" |
64 |
- |
65 |
-RDEPEND="${DEPEND}" |
66 |
- |
67 |
-src_prepare() { |
68 |
- default |
69 |
- sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror" |
70 |
- |
71 |
- python_copy_sources |
72 |
-} |
73 |
- |
74 |
-src_compile() { |
75 |
- building() { |
76 |
- emake -C "${BUILD_DIR}" \ |
77 |
- CC="$(tc-getCC)" \ |
78 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" |
79 |
- } |
80 |
- python_foreach_impl building |
81 |
-} |
82 |
- |
83 |
-src_install() { |
84 |
- installation() { |
85 |
- emake -C "${BUILD_DIR}" \ |
86 |
- DESTDIR="${D}" \ |
87 |
- LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
88 |
- install |
89 |
- python_optimize |
90 |
- } |
91 |
- python_foreach_impl installation |
92 |
- |
93 |
- # Set version-specific scripts |
94 |
- for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do |
95 |
- python_replicate_script "${ED}/usr/bin/${pyscript}" |
96 |
- done |
97 |
- for pyscript in semanage; do |
98 |
- python_replicate_script "${ED}/usr/sbin/${pyscript}" |
99 |
- done |
100 |
- |
101 |
- # Create sepolgen.conf with different devel location definition |
102 |
- if [[ -f /etc/selinux/config ]]; |
103 |
- then |
104 |
- local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config); |
105 |
- mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory"; |
106 |
- echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf; |
107 |
- else |
108 |
- local selinuxtype="${POLICY_TYPES%% *}"; |
109 |
- if [[ -n "${selinuxtype}" ]]; |
110 |
- then |
111 |
- echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf; |
112 |
- else |
113 |
- echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf; |
114 |
- fi |
115 |
- fi |
116 |
-} |