Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcap/
Date: Fri, 23 Nov 2018 08:34:38
Message-Id: 1542962052.d974487bb60c61987c4e4490e615b8fc8963586e.polynomial-c@gentoo
1 commit: d974487bb60c61987c4e4490e615b8fc8963586e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 23 08:34:12 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 23 08:34:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d974487b
7
8 sys-libs/libcap: Revbump to restopre previous install locations
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 ...libcap-2.26-r1.ebuild => libcap-2.26-r2.ebuild} | 2 +-
14 sys-libs/libcap/libcap-2.26.ebuild | 78 ----------------------
15 2 files changed, 1 insertion(+), 79 deletions(-)
16
17 diff --git a/sys-libs/libcap/libcap-2.26-r1.ebuild b/sys-libs/libcap/libcap-2.26-r2.ebuild
18 similarity index 98%
19 rename from sys-libs/libcap/libcap-2.26-r1.ebuild
20 rename to sys-libs/libcap/libcap-2.26-r2.ebuild
21 index 6840c717a14..5e2452d4a65 100644
22 --- a/sys-libs/libcap/libcap-2.26-r1.ebuild
23 +++ b/sys-libs/libcap/libcap-2.26-r2.ebuild
24 @@ -39,7 +39,7 @@ src_prepare() {
25
26 run_emake() {
27 local args=(
28 - prefix="${EPREFIX}/usr"
29 + lib_prefix="${EPREFIX}/usr"
30 lib="$(get_libdir)"
31 PAM_CAP=$(usex pam yes no)
32 DYNAMIC=yes
33
34 diff --git a/sys-libs/libcap/libcap-2.26.ebuild b/sys-libs/libcap/libcap-2.26.ebuild
35 deleted file mode 100644
36 index 3a944d5dc0c..00000000000
37 --- a/sys-libs/libcap/libcap-2.26.ebuild
38 +++ /dev/null
39 @@ -1,78 +0,0 @@
40 -# Copyright 1999-2018 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=6
44 -
45 -inherit multilib multilib-minimal toolchain-funcs pam
46 -
47 -DESCRIPTION="POSIX 1003.1e capabilities"
48 -HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
49 -SRC_URI="mirror://kernel/linux/libs/security/linux-privs/libcap2/${P}.tar.xz"
50 -
51 -# it's available under either of the licenses
52 -LICENSE="|| ( GPL-2 BSD )"
53 -SLOT="0"
54 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
55 -IUSE="pam static-libs"
56 -
57 -# While the build system optionally uses gperf, we don't DEPEND on it because
58 -# the build automatically falls back when it's unavailable. #604802
59 -RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}]
60 - pam? ( virtual/pam )"
61 -DEPEND="${RDEPEND}
62 - sys-kernel/linux-headers"
63 -
64 -# Requires test suite being run as root (via sudo)
65 -RESTRICT="test"
66 -
67 -PATCHES=(
68 - "${FILESDIR}"/${PN}-2.25-build-system-fixes.patch
69 - "${FILESDIR}"/${PN}-2.26-no-perl.patch
70 - "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch
71 - "${FILESDIR}"/${PN}-2.21-include.patch
72 -)
73 -
74 -src_prepare() {
75 - default
76 - multilib_copy_sources
77 -}
78 -
79 -multilib_src_configure() {
80 - sed -i \
81 - -e "/^PAM_CAP/s:=.*:=$(multilib_native_usex pam yes no):" \
82 - -e '/^DYNAMIC/s:=.*:=yes:' \
83 - -e '/^lib_prefix=/s:=.*:=$(prefix):' \
84 - -e "/^lib=/s:=.*:=$(get_libdir):" \
85 - Make.Rules
86 -}
87 -
88 -multilib_src_compile() {
89 - tc-export AR CC RANLIB
90 - local BUILD_CC
91 - tc-export_build_env BUILD_CC
92 -
93 - default
94 -}
95 -
96 -multilib_src_install() {
97 - # no configure, needs explicit install line #444724#c3
98 - emake install DESTDIR="${ED}"
99 -
100 - gen_usr_ldscript -a cap
101 - if ! use static-libs ; then
102 - rm "${ED%/}"/usr/$(get_libdir)/libcap.a || die
103 - fi
104 -
105 - if [[ -d "${ED%/}"/usr/$(get_libdir)/security ]] ; then
106 - rm -r "${ED%/}"/usr/$(get_libdir)/security || die
107 - fi
108 -
109 - if multilib_is_native_abi && use pam; then
110 - dopammod pam_cap/pam_cap.so
111 - dopamsecurity '' pam_cap/capability.conf
112 - fi
113 -}
114 -
115 -multilib_src_install_all() {
116 - dodoc CHANGELOG README doc/capability.notes
117 -}