1 |
commit: 8cae4c7e6f714d33d3f027182b05c93fec6098a5 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 28 02:27:54 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 28 02:27:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cae4c7e |
7 |
|
8 |
sys-libs/libcap: add 2.59 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcap/Manifest | 1 + |
13 |
sys-libs/libcap/libcap-2.59.ebuild | 88 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 89 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest |
17 |
index 99cb021a483..a4d5b5187a4 100644 |
18 |
--- a/sys-libs/libcap/Manifest |
19 |
+++ b/sys-libs/libcap/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST libcap-2.49.tar.xz 139568 BLAKE2B 5746dcdf2a737e747450bd50a701ee8543277b17b7fbf1304b79f707a088ea74dc6dc79c61ff89b55b718a460a7b0814f960f44d07944a97b832b78f4e14e07f SHA512 2934a2ded1370edeb9603dbf43d8ca23a2eb5d67efc5cec5d4ba96c707a8db2702da8aa9be0cb86c5ff100d37ec96115c7777a7566ad0ab2e0b4a288bbe357d0 |
22 |
DIST libcap-2.57.tar.xz 167740 BLAKE2B e0c004f3d11caf824d907315e6102707bb34c0ef3e9d430f23c191d711f073267ef6dc44463e2ce8041b8d13658b0c20560f7f3c6387f770ff9e66b81ff9f5d3 SHA512 5c70b3c6a1248ca0de92538614f0d0d516d72f6f25b135c92738c377b67533662e6fd6b0b61cb051ec99f406387d3334fcc7ddb54789626e4c387bcf46ebffbf |
23 |
DIST libcap-2.58.tar.xz 168520 BLAKE2B 9f160c08e7e8bcb9eb49ab6a7a0805145461613a946ccfebeadc269b26331eadc9f467437b2f5b022e9a545b034ea4fd8fed4d5893e84d9a48dd85318810b974 SHA512 092e45f82113293e1c2db7e51dca7298496c2a3af08eb41107e8c2b4798c25d3c9059e152181dc048b232fe0e59c4c3beaa158da2e5798cd6e1013d85226a9cf |
24 |
+DIST libcap-2.59.tar.xz 168404 BLAKE2B 5db562b389f2c4034b5fa840a14f7fd7ada49470fea8d13828b2c302a7d768831a6215593d21938b8e1d5bd65fa0581628809526fa5f6091ca4eac5e884cd38c SHA512 296c11259e1b4d577b3527ab5e2160be3f94a2bee7d63d1b7feadc603f7e160b72f8c8ede34dec269f5eb7595304ff290693803be778bdbbe088de0e99a33812 |
25 |
|
26 |
diff --git a/sys-libs/libcap/libcap-2.59.ebuild b/sys-libs/libcap/libcap-2.59.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ea1e6af4976 |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/libcap/libcap-2.59.ebuild |
31 |
@@ -0,0 +1,88 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit multilib-minimal toolchain-funcs pam usr-ldscript |
38 |
+ |
39 |
+DESCRIPTION="POSIX 1003.1e capabilities" |
40 |
+HOMEPAGE="https://sites.google.com/site/fullycapable/" |
41 |
+SRC_URI="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${P}.tar.xz" |
42 |
+ |
43 |
+# it's available under either of the licenses |
44 |
+LICENSE="|| ( GPL-2 BSD )" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="pam static-libs tools" |
48 |
+ |
49 |
+# While the build system optionally uses gperf, we don't DEPEND on it because |
50 |
+# the build automatically falls back when it's unavailable. #604802 |
51 |
+PDEPEND="pam? ( sys-libs/pam[${MULTILIB_USEDEP}] )" |
52 |
+DEPEND="${PDEPEND} |
53 |
+ sys-kernel/linux-headers" |
54 |
+BDEPEND="tools? ( dev-lang/go )" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${PN}-2.38-no_perl.patch |
58 |
+ "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch |
59 |
+) |
60 |
+ |
61 |
+QA_FLAGS_IGNORED="sbin/captree" # go binaries don't use LDFLAGS |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ multilib_copy_sources |
66 |
+} |
67 |
+ |
68 |
+run_emake() { |
69 |
+ local args=( |
70 |
+ AR="$(tc-getAR)" |
71 |
+ CC="$(tc-getCC)" |
72 |
+ OBJCOPY="$(tc-getOBJCOPY)" |
73 |
+ RANLIB="$(tc-getRANLIB)" |
74 |
+ exec_prefix="${EPREFIX}" |
75 |
+ lib_prefix="${EPREFIX}/usr" |
76 |
+ lib="$(get_libdir)" |
77 |
+ prefix="${EPREFIX}/usr" |
78 |
+ PAM_CAP="$(usex pam yes no)" |
79 |
+ DYNAMIC=yes |
80 |
+ GOLANG="$(multilib_native_usex tools yes no)" |
81 |
+ ) |
82 |
+ emake "${args[@]}" "$@" |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ tc-export_build_env BUILD_CC |
87 |
+ multilib-minimal_src_configure |
88 |
+} |
89 |
+ |
90 |
+multilib_src_compile() { |
91 |
+ run_emake |
92 |
+} |
93 |
+ |
94 |
+multilib_src_test() { |
95 |
+ run_emake test |
96 |
+} |
97 |
+ |
98 |
+multilib_src_install() { |
99 |
+ # no configure, needs explicit install line #444724#c3 |
100 |
+ run_emake DESTDIR="${D}" install |
101 |
+ |
102 |
+ gen_usr_ldscript -a cap |
103 |
+ gen_usr_ldscript -a psx |
104 |
+ if ! use static-libs ; then |
105 |
+ rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die |
106 |
+ fi |
107 |
+ |
108 |
+ # install pam plugins ourselves |
109 |
+ rm -rf "${ED}"/usr/$(get_libdir)/security || die |
110 |
+ |
111 |
+ if use pam ; then |
112 |
+ dopammod pam_cap/pam_cap.so |
113 |
+ dopamsecurity '' pam_cap/capability.conf |
114 |
+ fi |
115 |
+} |
116 |
+ |
117 |
+multilib_src_install_all() { |
118 |
+ dodoc CHANGELOG README doc/capability.notes |
119 |
+} |