1 |
commit: 767483b0b05eb3f2abef887a9b22bb0b22a320fa |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 9 01:54:53 2022 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 9 02:54:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=767483b0 |
7 |
|
8 |
sys-libs/libsemanage: Drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libsemanage/Manifest | 2 - |
14 |
sys-libs/libsemanage/libsemanage-3.1-r1.ebuild | 128 ------------------------- |
15 |
sys-libs/libsemanage/libsemanage-3.2.ebuild | 127 ------------------------ |
16 |
3 files changed, 257 deletions(-) |
17 |
|
18 |
diff --git a/sys-libs/libsemanage/Manifest b/sys-libs/libsemanage/Manifest |
19 |
index eea237e73a74..501d9360dc86 100644 |
20 |
--- a/sys-libs/libsemanage/Manifest |
21 |
+++ b/sys-libs/libsemanage/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST libsemanage-3.1.tar.gz 179601 BLAKE2B 69450a4eda1f3728d339f65db1eec9940995fcea5208d17dca531ebc998aefbfec48fe91beffa3490e1502953aa550405fb696635d01b0eb8050c8f00f11106a SHA512 8609ca7d13b5c603677740f2b14558fea3922624af182d20d618237ba11fcf2559fab82fc68d1efa6ff118f064d426f005138521652c761de92cd66150102197 |
24 |
-DIST libsemanage-3.2.tar.gz 178839 BLAKE2B c0925812d784923a7a239ba919fc0a0e1d84cb528cbf4a357fb7938d3c06ebd2f0b60cd3eba40b76bf7c2922a081b99b16b32dc16638aa1bfce32553e241fb9f SHA512 6ad670bb298b1bab506217b12a3fda5d2209f4387a11410f0c1b65f765ffb579b0d70795dee19048909e0b72ef904fc318be60d5a01f80ab12742ce07647a084 |
25 |
DIST libsemanage-3.3.tar.gz 178890 BLAKE2B f1ff2d25f0c98e9794cb443365e6193db80a42104b645ef4edf783db2eb3d940d1f39cddfa59f9a86ba16957c77852159b3ced83c5d01ecb1811aa6255f8be83 SHA512 6026d9773c0886436ad801bc0c8beac888b6fb62034edeb863192dea4b6ef34a88e080758820fe635a20e048ac666beee505a0f946258f18571709cca5228aad |
26 |
|
27 |
diff --git a/sys-libs/libsemanage/libsemanage-3.1-r1.ebuild b/sys-libs/libsemanage/libsemanage-3.1-r1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 3fa67d4bf2af..000000000000 |
30 |
--- a/sys-libs/libsemanage/libsemanage-3.1-r1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,128 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
-PYTHON_COMPAT=( python3_{7..9} ) |
38 |
- |
39 |
-inherit python-r1 toolchain-funcs multilib-minimal |
40 |
- |
41 |
-MY_P="${P//_/-}" |
42 |
-MY_RELEASEDATE="20200710" |
43 |
- |
44 |
-SEPOL_VER="${PV}" |
45 |
-SELNX_VER="${PV}" |
46 |
- |
47 |
-DESCRIPTION="SELinux kernel and policy management library" |
48 |
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
49 |
- |
50 |
-if [[ ${PV} == 9999 ]]; then |
51 |
- inherit git-r3 |
52 |
- EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" |
53 |
- S="${WORKDIR}/${MY_P}/${PN}" |
54 |
-else |
55 |
- SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz" |
56 |
- KEYWORDS="amd64 ~arm ~arm64 ~mips x86" |
57 |
- S="${WORKDIR}/${MY_P}" |
58 |
-fi |
59 |
- |
60 |
-LICENSE="GPL-2" |
61 |
-SLOT="0" |
62 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
63 |
- |
64 |
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}] |
65 |
- >=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}] |
66 |
- >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] |
67 |
- ${PYTHON_DEPS}" |
68 |
-DEPEND="${RDEPEND}" |
69 |
-BDEPEND=">=dev-lang/swig-2.0.4-r1 |
70 |
- sys-devel/bison |
71 |
- sys-devel/flex |
72 |
- virtual/pkgconfig" |
73 |
- |
74 |
-# tests are not meant to be run outside of the |
75 |
-# full SELinux userland repo |
76 |
-RESTRICT="test" |
77 |
- |
78 |
-src_prepare() { |
79 |
- eapply_user |
80 |
- |
81 |
- echo >> "${S}/src/semanage.conf" |
82 |
- echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf" |
83 |
- echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf" |
84 |
- echo "# or debugging of policy." >> "${S}/src/semanage.conf" |
85 |
- echo "save-linked=false" >> "${S}/src/semanage.conf" |
86 |
- echo >> "${S}/src/semanage.conf" |
87 |
- echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf" |
88 |
- echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf" |
89 |
- echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf" |
90 |
- echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf" |
91 |
- echo "# would catch." >> "${S}/src/semanage.conf" |
92 |
- echo "expand-check=1" >> "${S}/src/semanage.conf" |
93 |
- echo >> "${S}/src/semanage.conf" |
94 |
- echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf" |
95 |
- echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf" |
96 |
- echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf" |
97 |
- echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf" |
98 |
- echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf" |
99 |
- echo "bzip-blocksize=0" >> "${S}/src/semanage.conf" |
100 |
- echo >> "${S}/src/semanage.conf" |
101 |
- echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf" |
102 |
- echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf" |
103 |
- echo "bzip-small=true" >> "${S}/src/semanage.conf" |
104 |
- |
105 |
- multilib_copy_sources |
106 |
-} |
107 |
- |
108 |
-multilib_src_compile() { |
109 |
- emake \ |
110 |
- AR="$(tc-getAR)" \ |
111 |
- CC="$(tc-getCC)" \ |
112 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
113 |
- all |
114 |
- |
115 |
- if multilib_is_native_abi; then |
116 |
- building_py() { |
117 |
- emake \ |
118 |
- AR="$(tc-getAR)" \ |
119 |
- CC="$(tc-getCC)" \ |
120 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
121 |
- "$@" |
122 |
- } |
123 |
- python_foreach_impl building_py swigify |
124 |
- python_foreach_impl building_py pywrap |
125 |
- fi |
126 |
-} |
127 |
- |
128 |
-multilib_src_install() { |
129 |
- emake \ |
130 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
131 |
- DESTDIR="${ED}" install |
132 |
- |
133 |
- if multilib_is_native_abi; then |
134 |
- installation_py() { |
135 |
- emake DESTDIR="${ED}" \ |
136 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
137 |
- install-pywrap |
138 |
- python_optimize # bug 531638 |
139 |
- } |
140 |
- python_foreach_impl installation_py |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-multiib_src_install_all() { |
145 |
- python_setup |
146 |
- python_fix_shebang "${ED}"/usr/libexec/selinux/semanage_migrate_store |
147 |
-} |
148 |
- |
149 |
-pkg_postinst() { |
150 |
- # Migrate the SELinux semanage configuration store if not done already |
151 |
- local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' "${EROOT}"/etc/selinux/config 2>/dev/null) |
152 |
- if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${selinuxtype}/active ] ; then |
153 |
- ewarn "Since the 2.4 SELinux userspace, the policy module store is moved" |
154 |
- ewarn "from /etc/selinux to /var/lib/selinux. The migration will be run now." |
155 |
- ewarn "If there are any issues, it can be done manually by running:" |
156 |
- ewarn "/usr/libexec/selinux/semanage_migrate_store" |
157 |
- ewarn "For more information, please see" |
158 |
- ewarn "- https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration" |
159 |
- fi |
160 |
-} |
161 |
|
162 |
diff --git a/sys-libs/libsemanage/libsemanage-3.2.ebuild b/sys-libs/libsemanage/libsemanage-3.2.ebuild |
163 |
deleted file mode 100644 |
164 |
index cea18c8179bf..000000000000 |
165 |
--- a/sys-libs/libsemanage/libsemanage-3.2.ebuild |
166 |
+++ /dev/null |
167 |
@@ -1,127 +0,0 @@ |
168 |
-# Copyright 1999-2021 Gentoo Authors |
169 |
-# Distributed under the terms of the GNU General Public License v2 |
170 |
- |
171 |
-EAPI=7 |
172 |
-PYTHON_COMPAT=( python3_{7..9} ) |
173 |
- |
174 |
-inherit python-r1 toolchain-funcs multilib-minimal |
175 |
- |
176 |
-MY_PV="${PV//_/-}" |
177 |
-MY_P="${PN}-${MY_PV}" |
178 |
- |
179 |
-DESCRIPTION="SELinux kernel and policy management library" |
180 |
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
181 |
- |
182 |
-if [[ ${PV} == 9999 ]]; then |
183 |
- inherit git-r3 |
184 |
- EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" |
185 |
- S="${WORKDIR}/${P}/${PN}" |
186 |
-else |
187 |
- SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz" |
188 |
- KEYWORDS="amd64 arm arm64 ~mips ~riscv x86" |
189 |
- S="${WORKDIR}/${MY_P}" |
190 |
-fi |
191 |
- |
192 |
-LICENSE="GPL-2" |
193 |
-SLOT="0/2" |
194 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
195 |
- |
196 |
-RDEPEND=">=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}] |
197 |
- >=sys-libs/libselinux-${PV}:=[${MULTILIB_USEDEP}] |
198 |
- >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] |
199 |
- ${PYTHON_DEPS}" |
200 |
-DEPEND="${RDEPEND}" |
201 |
-BDEPEND=">=dev-lang/swig-2.0.4-r1 |
202 |
- sys-devel/bison |
203 |
- sys-devel/flex |
204 |
- virtual/pkgconfig" |
205 |
- |
206 |
-# tests are not meant to be run outside of the |
207 |
-# full SELinux userland repo |
208 |
-RESTRICT="test" |
209 |
- |
210 |
-src_prepare() { |
211 |
- eapply_user |
212 |
- |
213 |
- echo >> "${S}/src/semanage.conf" |
214 |
- echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf" |
215 |
- echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf" |
216 |
- echo "# or debugging of policy." >> "${S}/src/semanage.conf" |
217 |
- echo "save-linked=false" >> "${S}/src/semanage.conf" |
218 |
- echo >> "${S}/src/semanage.conf" |
219 |
- echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf" |
220 |
- echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf" |
221 |
- echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf" |
222 |
- echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf" |
223 |
- echo "# would catch." >> "${S}/src/semanage.conf" |
224 |
- echo "expand-check=1" >> "${S}/src/semanage.conf" |
225 |
- echo >> "${S}/src/semanage.conf" |
226 |
- echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf" |
227 |
- echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf" |
228 |
- echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf" |
229 |
- echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf" |
230 |
- echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf" |
231 |
- echo "bzip-blocksize=0" >> "${S}/src/semanage.conf" |
232 |
- echo >> "${S}/src/semanage.conf" |
233 |
- echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf" |
234 |
- echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf" |
235 |
- echo "bzip-small=true" >> "${S}/src/semanage.conf" |
236 |
- |
237 |
- multilib_copy_sources |
238 |
-} |
239 |
- |
240 |
-multilib_src_compile() { |
241 |
- local -x CFLAGS="${CFLAGS} -fno-semantic-interposition" |
242 |
- |
243 |
- emake \ |
244 |
- AR="$(tc-getAR)" \ |
245 |
- CC="$(tc-getCC)" \ |
246 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
247 |
- all |
248 |
- |
249 |
- if multilib_is_native_abi; then |
250 |
- building_py() { |
251 |
- emake \ |
252 |
- AR="$(tc-getAR)" \ |
253 |
- CC="$(tc-getCC)" \ |
254 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
255 |
- "$@" |
256 |
- } |
257 |
- python_foreach_impl building_py swigify |
258 |
- python_foreach_impl building_py pywrap |
259 |
- fi |
260 |
-} |
261 |
- |
262 |
-multilib_src_install() { |
263 |
- emake \ |
264 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
265 |
- DESTDIR="${ED}" install |
266 |
- |
267 |
- if multilib_is_native_abi; then |
268 |
- installation_py() { |
269 |
- emake DESTDIR="${ED}" \ |
270 |
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
271 |
- install-pywrap |
272 |
- python_optimize # bug 531638 |
273 |
- } |
274 |
- python_foreach_impl installation_py |
275 |
- fi |
276 |
-} |
277 |
- |
278 |
-multiib_src_install_all() { |
279 |
- python_setup |
280 |
- python_fix_shebang "${ED}"/usr/libexec/selinux/semanage_migrate_store |
281 |
-} |
282 |
- |
283 |
-pkg_postinst() { |
284 |
- # Migrate the SELinux semanage configuration store if not done already |
285 |
- local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' "${EROOT}"/etc/selinux/config 2>/dev/null) |
286 |
- if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${selinuxtype}/active ] ; then |
287 |
- ewarn "Since the 2.4 SELinux userspace, the policy module store is moved" |
288 |
- ewarn "from /etc/selinux to /var/lib/selinux. The migration will be run now." |
289 |
- ewarn "If there are any issues, it can be done manually by running:" |
290 |
- ewarn "/usr/libexec/selinux/semanage_migrate_store" |
291 |
- ewarn "For more information, please see" |
292 |
- ewarn "- https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration" |
293 |
- fi |
294 |
-} |