1 |
commit: 43afb45707470ff350717d6854fa5fe709293cc0 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 4 08:41:21 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 4 08:43:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43afb457 |
7 |
|
8 |
sys-libs/libcap: EAPI-6 revbump. |
9 |
|
10 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
11 |
|
12 |
sys-libs/libcap/files/libcap-2.21-include.patch | 4 +- |
13 |
sys-libs/libcap/libcap-2.25-r1.ebuild | 73 +++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/sys-libs/libcap/files/libcap-2.21-include.patch b/sys-libs/libcap/files/libcap-2.21-include.patch |
17 |
index 2a534246ee0..8ea6545659e 100644 |
18 |
--- a/sys-libs/libcap/files/libcap-2.21-include.patch |
19 |
+++ b/sys-libs/libcap/files/libcap-2.21-include.patch |
20 |
@@ -1,5 +1,5 @@ |
21 |
---- libcap/libcap.h.org 2011-06-15 07:25:58.912480899 +0200 |
22 |
-+++ libcap/libcap.h 2011-06-15 07:26:16.421329661 +0200 |
23 |
+--- a/libcap/libcap.h |
24 |
++++ b/libcap/libcap.h |
25 |
@@ -13,6 +13,7 @@ |
26 |
#include <stdlib.h> |
27 |
#include <string.h> |
28 |
|
29 |
diff --git a/sys-libs/libcap/libcap-2.25-r1.ebuild b/sys-libs/libcap/libcap-2.25-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..8fd1ee61e27 |
32 |
--- /dev/null |
33 |
+++ b/sys-libs/libcap/libcap-2.25-r1.ebuild |
34 |
@@ -0,0 +1,73 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit multilib multilib-minimal toolchain-funcs pam |
41 |
+ |
42 |
+DESCRIPTION="POSIX 1003.1e capabilities" |
43 |
+HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html" |
44 |
+SRC_URI="mirror://kernel/linux/libs/security/linux-privs/libcap2/${P}.tar.xz" |
45 |
+ |
46 |
+# it's available under either of the licenses |
47 |
+LICENSE="|| ( GPL-2 BSD )" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" |
50 |
+IUSE="pam static-libs" |
51 |
+ |
52 |
+# While the build system optionally uses gperf, we don't DEPEND on it because |
53 |
+# the build automatically falls back when it's unavailable. #604802 |
54 |
+RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] |
55 |
+ pam? ( virtual/pam )" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ sys-kernel/linux-headers" |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/${PN}-2.25-build-system-fixes.patch |
61 |
+ "${FILESDIR}"/${PN}-2.22-no-perl.patch |
62 |
+ "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch |
63 |
+ "${FILESDIR}"/${PN}-2.21-include.patch |
64 |
+ "${FILESDIR}"/${PN}-2.25-gperf.patch |
65 |
+) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ multilib_copy_sources |
70 |
+} |
71 |
+ |
72 |
+multilib_src_configure() { |
73 |
+ sed -i \ |
74 |
+ -e "/^PAM_CAP/s:=.*:=$(multilib_native_usex pam yes no):" \ |
75 |
+ -e '/^DYNAMIC/s:=.*:=yes:' \ |
76 |
+ -e '/^lib_prefix=/s:=.*:=$(prefix):' \ |
77 |
+ -e "/^lib=/s:=.*:=$(get_libdir):" \ |
78 |
+ Make.Rules |
79 |
+} |
80 |
+ |
81 |
+multilib_src_compile() { |
82 |
+ tc-export AR CC RANLIB |
83 |
+ local BUILD_CC |
84 |
+ tc-export_build_env BUILD_CC |
85 |
+ |
86 |
+ default |
87 |
+} |
88 |
+ |
89 |
+multilib_src_install() { |
90 |
+ # no configure, needs explicit install line #444724#c3 |
91 |
+ emake install DESTDIR="${ED}" |
92 |
+ |
93 |
+ gen_usr_ldscript -a cap |
94 |
+ if ! use static-libs ; then |
95 |
+ rm "${ED%/}"/usr/$(get_libdir)/libcap.a || die |
96 |
+ fi |
97 |
+ |
98 |
+ if multilib_is_native_abi && use pam; then |
99 |
+ dopammod pam_cap/pam_cap.so |
100 |
+ dopamsecurity '' pam_cap/capability.conf |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+multilib_src_install_all() { |
105 |
+ rm -r "${ED%/}"/usr/$(get_libdir)/security || die |
106 |
+ dodoc CHANGELOG README doc/capability.notes |
107 |
+} |