1 |
commit: 767a28c8f286223d32963ce409aed7b425f3bd8a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 21 20:17:05 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 21 20:17:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=767a28c8 |
7 |
|
8 |
sys-libs/libcap: Bump to version 2.51 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcap/Manifest | 1 + |
13 |
sys-libs/libcap/libcap-2.51.ebuild | 89 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 90 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest |
17 |
index bcb7ccd2a72..05e8d59113c 100644 |
18 |
--- a/sys-libs/libcap/Manifest |
19 |
+++ b/sys-libs/libcap/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST libcap-2.49.tar.xz 139568 BLAKE2B 5746dcdf2a737e747450bd50a701ee8543277b17b7fbf1304b79f707a088ea74dc6dc79c61ff89b55b718a460a7b0814f960f44d07944a97b832b78f4e14e07f SHA512 2934a2ded1370edeb9603dbf43d8ca23a2eb5d67efc5cec5d4ba96c707a8db2702da8aa9be0cb86c5ff100d37ec96115c7777a7566ad0ab2e0b4a288bbe357d0 |
22 |
DIST libcap-2.50.tar.xz 143792 BLAKE2B be83dfe1e55a4363936f53afb13edd2c1fd8c9bc27f7946bfda1eb8fb3046d0370997dcf85ba9dab7de10673527b4e8d15f104a75eaf407cba8ed0fc42465790 SHA512 6ac2df1ea9a9154e082c0595d343380ff8abed953b53c635a9297683289f2fa708eff488a42c6053e5ac556a5d90faa8709b3d98a47b2911f05bf80f2663a543 |
23 |
+DIST libcap-2.51.tar.xz 145440 BLAKE2B 9f004e28891fbbb3552016e2e9250eab38935b6b40ad9e808a64ab07eecb52c5fa9032caed0baab719df8afe9aeec98403d10b05336bebe15a50b64020e5afc2 SHA512 3b4a97ef864a2ce2f87056ebc282223b0c71ca71c539744dc629ffe7905ca5fdde937ca70c34ec84406fe54863d39abf32775818a5e5a6fdf3069706b1723a88 |
24 |
|
25 |
diff --git a/sys-libs/libcap/libcap-2.51.ebuild b/sys-libs/libcap/libcap-2.51.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..20f0382faa4 |
28 |
--- /dev/null |
29 |
+++ b/sys-libs/libcap/libcap-2.51.ebuild |
30 |
@@ -0,0 +1,89 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit multilib-minimal toolchain-funcs pam usr-ldscript |
37 |
+ |
38 |
+DESCRIPTION="POSIX 1003.1e capabilities" |
39 |
+HOMEPAGE="https://sites.google.com/site/fullycapable/" |
40 |
+SRC_URI="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${P}.tar.xz" |
41 |
+ |
42 |
+# it's available under either of the licenses |
43 |
+LICENSE="|| ( GPL-2 BSD )" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
46 |
+IUSE="pam static-libs" |
47 |
+ |
48 |
+# While the build system optionally uses gperf, we don't DEPEND on it because |
49 |
+# the build automatically falls back when it's unavailable. #604802 |
50 |
+RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}]" |
51 |
+PDEPEND="pam? ( sys-libs/pam[${MULTILIB_USEDEP}] )" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ ${PDEPEND} |
54 |
+ sys-kernel/linux-headers" |
55 |
+ |
56 |
+# Requires test suite being run as root (via sudo) |
57 |
+RESTRICT="test" |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/${PN}-2.50-build-system-fixes.patch |
61 |
+ "${FILESDIR}"/${PN}-2.38-no_perl.patch |
62 |
+ "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch |
63 |
+ "${FILESDIR}"/${PN}-2.21-include.patch |
64 |
+) |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ multilib_copy_sources |
69 |
+} |
70 |
+ |
71 |
+run_emake() { |
72 |
+ local args=( |
73 |
+ exec_prefix="${EPREFIX}" |
74 |
+ lib_prefix="${EPREFIX}/usr" |
75 |
+ lib="$(get_libdir)" |
76 |
+ prefix="${EPREFIX}/usr" |
77 |
+ PAM_CAP="$(usex pam yes no)" |
78 |
+ DYNAMIC=yes |
79 |
+ GOLANG=no |
80 |
+ CC="$(tc-getCC)" |
81 |
+ AR="$(tc-getAR)" |
82 |
+ RANLIB="$(tc-getRANLIB)" |
83 |
+ ) |
84 |
+ emake "${args[@]}" "$@" |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ tc-export AR CC RANLIB |
89 |
+ tc-export_build_env BUILD_CC |
90 |
+ multilib-minimal_src_configure |
91 |
+} |
92 |
+ |
93 |
+multilib_src_compile() { |
94 |
+ run_emake |
95 |
+} |
96 |
+ |
97 |
+multilib_src_install() { |
98 |
+ # no configure, needs explicit install line #444724#c3 |
99 |
+ run_emake DESTDIR="${D}" install |
100 |
+ |
101 |
+ gen_usr_ldscript -a cap |
102 |
+ gen_usr_ldscript -a psx |
103 |
+ if ! use static-libs ; then |
104 |
+ rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die |
105 |
+ fi |
106 |
+ |
107 |
+ if [[ -d "${ED}"/usr/$(get_libdir)/security ]] ; then |
108 |
+ rm -r "${ED}"/usr/$(get_libdir)/security || die |
109 |
+ fi |
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 |
+} |