1 |
commit: 4f079de87d7964052b1dce00ded1f44c76f46c6d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 17 13:33:37 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 17 13:35:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f079de8 |
7 |
|
8 |
sys-libs/libcap: Bump to version 2.27 |
9 |
|
10 |
Package-Manager: Portage-2.3.63, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libcap/Manifest | 1 + |
14 |
sys-libs/libcap/libcap-2.27.ebuild | 81 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 82 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest |
18 |
index d2c104bfab3..51cf86f2078 100644 |
19 |
--- a/sys-libs/libcap/Manifest |
20 |
+++ b/sys-libs/libcap/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST libcap-2.25.tar.xz 63672 BLAKE2B 205790dea83f15b585e5151814ea520ab1545661d18fa57f36e8c8e597a7c0f0ff1d7b5ccffc36e313eb28606f1e71678233a06896e29cb28e5559b190dd47ed SHA512 c3ab491885292adc171cde542b96f1295e84132febb50112a46575c3bde3a3eb6fcf733f7a756b4b656e013c0abb5ed6571db24799f8c0b23d8f759f992864f9 |
23 |
DIST libcap-2.26.tar.xz 67172 BLAKE2B 9d1952bd03e1bba5ffa225a5088b8d841c2007219bbb9524f979ac65e472bf932db496acf93984fa77fe42e71d45b85cd603ca461a071fb4742526dfbc5f66eb SHA512 1c2d59f007226405a924950b2c2090393527e06f0692a84e6463e33915a070df61a9070b8f30a624d5630ddd39290eac117e5d440577d1edd48510195b9d12f0 |
24 |
+DIST libcap-2.27.tar.xz 67780 BLAKE2B 7b58d7afdd90281771a302cd9554f067b9e3636b0c052935973d8a0d890490c3933b3513874b788a8c10e37ab5ad9cfa766408c9629b7c8562cb17bfdef87747 SHA512 e32335fd3e0d1564574acc73df7030b5b0fd98875217bffabd76f2765f1a7a6f1369f03df2ee22a1782776838784e342378c10613ea1163d53ae5055ab6a62b6 |
25 |
|
26 |
diff --git a/sys-libs/libcap/libcap-2.27.ebuild b/sys-libs/libcap/libcap-2.27.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c5f72abafbf |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/libcap/libcap-2.27.ebuild |
31 |
@@ -0,0 +1,81 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit multilib multilib-minimal toolchain-funcs pam |
38 |
+ |
39 |
+DESCRIPTION="POSIX 1003.1e capabilities" |
40 |
+HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html" |
41 |
+SRC_URI="mirror://kernel/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 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="pam static-libs" |
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 |
+RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] |
52 |
+ pam? ( virtual/pam[${MULTILIB_USEDEP}] )" |
53 |
+DEPEND="${RDEPEND} |
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.25-build-system-fixes.patch |
61 |
+ "${FILESDIR}"/${PN}-2.26-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 |
+ ) |
80 |
+ emake "${args[@]}" "$@" |
81 |
+} |
82 |
+ |
83 |
+multilib_src_compile() { |
84 |
+ tc-export AR CC RANLIB |
85 |
+ local BUILD_CC |
86 |
+ tc-export_build_env BUILD_CC |
87 |
+ |
88 |
+ run_emake |
89 |
+} |
90 |
+ |
91 |
+multilib_src_install() { |
92 |
+ # no configure, needs explicit install line #444724#c3 |
93 |
+ run_emake DESTDIR="${D}" install |
94 |
+ |
95 |
+ gen_usr_ldscript -a cap |
96 |
+ if ! use static-libs ; then |
97 |
+ rm "${ED%/}"/usr/$(get_libdir)/libcap.a || die |
98 |
+ fi |
99 |
+ |
100 |
+ if [[ -d "${ED%/}"/usr/$(get_libdir)/security ]] ; then |
101 |
+ rm -r "${ED%/}"/usr/$(get_libdir)/security || die |
102 |
+ fi |
103 |
+ |
104 |
+ if use pam; then |
105 |
+ dopammod pam_cap/pam_cap.so |
106 |
+ dopamsecurity '' pam_cap/capability.conf |
107 |
+ fi |
108 |
+} |
109 |
+ |
110 |
+multilib_src_install_all() { |
111 |
+ dodoc CHANGELOG README doc/capability.notes |
112 |
+} |