1 |
commit: 0284eecd70db11f4c08e23ba79f2cfe55cf027ae |
2 |
Author: Jonathan Davies <jpds <AT> protonmail <DOT> com> |
3 |
AuthorDate: Sun Oct 24 11:45:35 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 31 02:50:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0284eecd |
7 |
|
8 |
sys-libs/libsepol: Version updated to 3.3. |
9 |
|
10 |
Bug: https://bugs.gentoo.org/810101 |
11 |
|
12 |
Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com> |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
sys-libs/libsepol/Manifest | 1 + |
16 |
sys-libs/libsepol/libsepol-3.3.ebuild | 50 +++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 51 insertions(+) |
18 |
|
19 |
diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest |
20 |
index abf164a0089..2dfd96f02d0 100644 |
21 |
--- a/sys-libs/libsepol/Manifest |
22 |
+++ b/sys-libs/libsepol/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST libsepol-3.1.tar.gz 473842 BLAKE2B ef1d596c4d53cc0a87e899ef4aeb5bf29c9d6b8303632ddc866c100d30debd8aedd0e8b38cb4ce3141b80421cd914148ff072e492d63dc2dacf03ac2ce59ca5a SHA512 4b5f4e82853ff3e9b4fac2dbdea5c2fc3bb7b508af912217ac4b75da6540fbcd77aa314ab95cd9dfa94fbc4a885000656a663c1a152f65b4cf6970ea0b6034ab |
25 |
DIST libsepol-3.2.tar.gz 477749 BLAKE2B 6f35387c0373869672080e151f212c081389f6799539124353aa1749ae2648669b2e237a271297c1c212b7a9e0c35f05edfff1bb724c8a15993e8fb8c599ac2e SHA512 1a6b3489ff766958a4b444b9be63a794267243aed303d3e7d87278f11be492dbf603a0c8181c4c5e01cb0e1ceb43810a77f738f0b9bd1d7d2be67053f9c67a6f |
26 |
+DIST libsepol-3.3.tar.gz 482546 BLAKE2B 977996f68807f73a5bc0bd3a07b605640eb02a7bc67971882d489def166539ff7cfd00e474adde7e923fbebebdfcdcb71d17a43e3396c3176e25fd7d3bd65238 SHA512 fb6bb69f8e43a911a1a9cbd791593215386e93cb9292e003f5d8efe6e86e0ce5d0287e95d52fe2fbce518a618beaf9b1135aea0d04eaebcdbd8c6d07ee67b500 |
27 |
|
28 |
diff --git a/sys-libs/libsepol/libsepol-3.3.ebuild b/sys-libs/libsepol/libsepol-3.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..0878e192477 |
31 |
--- /dev/null |
32 |
+++ b/sys-libs/libsepol/libsepol-3.3.ebuild |
33 |
@@ -0,0 +1,50 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="7" |
38 |
+ |
39 |
+inherit toolchain-funcs multilib-minimal |
40 |
+ |
41 |
+MY_PV="${PV//_/-}" |
42 |
+MY_P="${PN}-${MY_PV}" |
43 |
+ |
44 |
+DESCRIPTION="SELinux binary policy representation library" |
45 |
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
46 |
+ |
47 |
+if [[ ${PV} == 9999 ]]; then |
48 |
+ inherit git-r3 |
49 |
+ EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" |
50 |
+ S="${WORKDIR}/${P}/${PN}" |
51 |
+else |
52 |
+ SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86" |
54 |
+ S="${WORKDIR}/${MY_P}" |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="GPL-2" |
58 |
+SLOT="0/2" |
59 |
+ |
60 |
+# tests are not meant to be run outside of the full SELinux userland repo |
61 |
+RESTRICT="test" |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ eapply_user |
65 |
+ multilib_copy_sources |
66 |
+} |
67 |
+ |
68 |
+multilib_src_compile() { |
69 |
+ tc-export CC AR RANLIB |
70 |
+ |
71 |
+ local -x CFLAGS="${CFLAGS} -fno-semantic-interposition" |
72 |
+ |
73 |
+ emake \ |
74 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
75 |
+ SHLIBDIR="/$(get_libdir)" |
76 |
+} |
77 |
+ |
78 |
+multilib_src_install() { |
79 |
+ emake DESTDIR="${D}" \ |
80 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
81 |
+ SHLIBDIR="/$(get_libdir)" \ |
82 |
+ install |
83 |
+} |