1 |
commit: 5fabc829df331d1d0d968af88e50cecaa230dd62 |
2 |
Author: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 3 13:30:17 2022 +0000 |
4 |
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 4 01:03:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fabc829 |
7 |
|
8 |
sys-libs/libsepol: bump to 3.4 |
9 |
|
10 |
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libsepol/Manifest | 1 + |
13 |
sys-libs/libsepol/libsepol-3.4.ebuild | 50 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest |
17 |
index eb73f8961d92..07f8085874ea 100644 |
18 |
--- a/sys-libs/libsepol/Manifest |
19 |
+++ b/sys-libs/libsepol/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST libsepol-3.3.tar.gz 482546 BLAKE2B 977996f68807f73a5bc0bd3a07b605640eb02a7bc67971882d489def166539ff7cfd00e474adde7e923fbebebdfcdcb71d17a43e3396c3176e25fd7d3bd65238 SHA512 fb6bb69f8e43a911a1a9cbd791593215386e93cb9292e003f5d8efe6e86e0ce5d0287e95d52fe2fbce518a618beaf9b1135aea0d04eaebcdbd8c6d07ee67b500 |
22 |
DIST libsepol-3.4-rc1.tar.gz 488545 BLAKE2B 9df7ba2e6f0275347d0170cf4115b6bc6f2d2a631100517d18a14d337ca12639632cdbfbd1060350c32ace8bbc33ef80bc962f4c9911e227f116e1cf595fd373 SHA512 9933e7c47d9f4018974d112499a2bea25667e31e673af3cee187c7120ed3b7aa425b2c81682ba14257744215f63216332c5cb61e788075fc50b33b9b44494cb8 |
23 |
+DIST libsepol-3.4.tar.gz 490628 BLAKE2B 65a71e7e0b07589c3ca636e821b7aed7c15f0588a3bcd59860fba2da18606ce18c757bb2ad5edb52e10069310f1239c415a0a9fc17495a7d6274764c1eb213fb SHA512 5e47e6ac626f2bfc10a9f2f24c2e66c4d7f291ca778ebd81c7d565326e036e821d3eb92e5d7540517b1c715466232a7d7da895ab48811d037ad92d423ed934b6 |
24 |
|
25 |
diff --git a/sys-libs/libsepol/libsepol-3.4.ebuild b/sys-libs/libsepol/libsepol-3.4.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..7a3db223026b |
28 |
--- /dev/null |
29 |
+++ b/sys-libs/libsepol/libsepol-3.4.ebuild |
30 |
@@ -0,0 +1,50 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+inherit toolchain-funcs multilib-minimal |
37 |
+ |
38 |
+MY_PV="${PV//_/-}" |
39 |
+MY_P="${PN}-${MY_PV}" |
40 |
+ |
41 |
+DESCRIPTION="SELinux binary policy representation library" |
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}/${P}/${PN}" |
48 |
+else |
49 |
+ SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz" |
50 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86" |
51 |
+ S="${WORKDIR}/${MY_P}" |
52 |
+fi |
53 |
+ |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0/2" |
56 |
+ |
57 |
+# tests are not meant to be run outside of the full SELinux userland repo |
58 |
+RESTRICT="test" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ eapply_user |
62 |
+ multilib_copy_sources |
63 |
+} |
64 |
+ |
65 |
+multilib_src_compile() { |
66 |
+ tc-export CC AR RANLIB |
67 |
+ |
68 |
+ local -x CFLAGS="${CFLAGS} -fno-semantic-interposition" |
69 |
+ |
70 |
+ emake \ |
71 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
72 |
+ SHLIBDIR="/$(get_libdir)" |
73 |
+} |
74 |
+ |
75 |
+multilib_src_install() { |
76 |
+ emake DESTDIR="${D}" \ |
77 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
78 |
+ SHLIBDIR="/$(get_libdir)" \ |
79 |
+ install |
80 |
+} |