1 |
commit: b24c487352a3b7e6e81f32215061a6c6c207be97 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 8 09:20:39 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 8 09:23:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24c4873 |
7 |
|
8 |
sys-libs/libcap: Bump to version 2.30 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libcap/Manifest | 1 + |
14 |
sys-libs/libcap/libcap-2.30.ebuild | 84 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 85 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest |
18 |
index caa90c1b57d..2efadc1d2c7 100644 |
19 |
--- a/sys-libs/libcap/Manifest |
20 |
+++ b/sys-libs/libcap/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST libcap-2.26.tar.xz 67172 BLAKE2B 9d1952bd03e1bba5ffa225a5088b8d841c2007219b |
22 |
DIST libcap-2.27.tar.xz 67780 BLAKE2B 7b58d7afdd90281771a302cd9554f067b9e3636b0c052935973d8a0d890490c3933b3513874b788a8c10e37ab5ad9cfa766408c9629b7c8562cb17bfdef87747 SHA512 e32335fd3e0d1564574acc73df7030b5b0fd98875217bffabd76f2765f1a7a6f1369f03df2ee22a1782776838784e342378c10613ea1163d53ae5055ab6a62b6 |
23 |
DIST libcap-2.28.tar.xz 94244 BLAKE2B 9416ca78da0b985c25682746b5f5d052835d29ed40e2ffb2f70e3e59753423c91176a41f7d32b28d75800ccfccc5ed446050985a44471f0d0cc4cc9e0ef69661 SHA512 e693ac97483f575bb8a3f4d50262082e6d0d4906f2df48a4f52db4dde21014fcdc683d40712294c7c59d1be21740276bd20b486afee53815dc49e57a9938c5eb |
24 |
DIST libcap-2.29.tar.xz 97432 BLAKE2B 5e6de66350e79228b02b00737ce6e4be0982b88cb5e68cf89d33e46191f3444db5139b3fd241ec574204823d6c8a4862d1ea5a34845cff8d6789483cf5dd18fa SHA512 400a6883037bbc1f00847e2fcfb940d733784adec857969069972a3d5120dde6b554326ba6dd652670d854308433c66147944dda8b8b344ca249cef73ea866ef |
25 |
+DIST libcap-2.30.tar.xz 98528 BLAKE2B 83892df1dc4f2a7605dbbf7332e90f1b696e16060ceba20a3fa3cdd53cb30f6a28d2bd49a4a66b7bc46221f860307de7c22cd7b2f826bad86baad6f510d01e40 SHA512 b2d843b61c3dd583b97c11ad4737b9ea5493eda6bb40da1efdb88b68c0594aeb0a2cebb0a59c749da1c6268ad1f821802d3c9e125a07c2d2457a0eb9df8c0c40 |
26 |
|
27 |
diff --git a/sys-libs/libcap/libcap-2.30.ebuild b/sys-libs/libcap/libcap-2.30.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..019cf1be2c6 |
30 |
--- /dev/null |
31 |
+++ b/sys-libs/libcap/libcap-2.30.ebuild |
32 |
@@ -0,0 +1,84 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit multilib multilib-minimal toolchain-funcs pam usr-ldscript |
39 |
+ |
40 |
+DESCRIPTION="POSIX 1003.1e capabilities" |
41 |
+HOMEPAGE="https://sites.google.com/site/fullycapable/" |
42 |
+SRC_URI="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${P}.tar.xz" |
43 |
+ |
44 |
+# it's available under either of the licenses |
45 |
+LICENSE="|| ( GPL-2 BSD )" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
48 |
+IUSE="pam static-libs" |
49 |
+ |
50 |
+# While the build system optionally uses gperf, we don't DEPEND on it because |
51 |
+# the build automatically falls back when it's unavailable. #604802 |
52 |
+RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] |
53 |
+ pam? ( sys-libs/pam[${MULTILIB_USEDEP}] )" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ sys-kernel/linux-headers" |
56 |
+ |
57 |
+# Requires test suite being run as root (via sudo) |
58 |
+RESTRICT="test" |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}"/${PN}-2.29-build-system-fixes.patch |
62 |
+ "${FILESDIR}"/${PN}-2.28-no_perl.patch |
63 |
+ "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch |
64 |
+ "${FILESDIR}"/${PN}-2.21-include.patch |
65 |
+) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ multilib_copy_sources |
70 |
+} |
71 |
+ |
72 |
+run_emake() { |
73 |
+ local args=( |
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=no |
81 |
+ ) |
82 |
+ emake "${args[@]}" "$@" |
83 |
+} |
84 |
+ |
85 |
+multilib_src_compile() { |
86 |
+ tc-export AR CC RANLIB |
87 |
+ local BUILD_CC |
88 |
+ tc-export_build_env BUILD_CC |
89 |
+ |
90 |
+ run_emake |
91 |
+} |
92 |
+ |
93 |
+multilib_src_install() { |
94 |
+ # no configure, needs explicit install line #444724#c3 |
95 |
+ run_emake DESTDIR="${D}" install |
96 |
+ |
97 |
+ gen_usr_ldscript -a cap |
98 |
+ if ! use static-libs ; then |
99 |
+ # Don't remove libpsx.a! |
100 |
+ # See https://bugs.gentoo.org/703912 |
101 |
+ rm "${ED}"/usr/$(get_libdir)/libcap.a || die |
102 |
+ fi |
103 |
+ |
104 |
+ if [[ -d "${ED}"/usr/$(get_libdir)/security ]] ; then |
105 |
+ rm -r "${ED}"/usr/$(get_libdir)/security || die |
106 |
+ fi |
107 |
+ |
108 |
+ if use pam; then |
109 |
+ dopammod pam_cap/pam_cap.so |
110 |
+ dopamsecurity '' pam_cap/capability.conf |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+multilib_src_install_all() { |
115 |
+ dodoc CHANGELOG README doc/capability.notes |
116 |
+} |