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