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, 08 Jan 2020 09:23:55
Message-Id: 1578475427.bec99c6532b2b4e2d5829cfd4e00c940962d35cd.polynomial-c@gentoo
1 commit: bec99c6532b2b4e2d5829cfd4e00c940962d35cd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 8 09:22:50 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 8 09:23:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bec99c65
7
8 sys-libs/libcap: Removed old
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/libcap-2.29-r1.ebuild | 84 -----------------------------------
14 1 file changed, 84 deletions(-)
15
16 diff --git a/sys-libs/libcap/libcap-2.29-r1.ebuild b/sys-libs/libcap/libcap-2.29-r1.ebuild
17 deleted file mode 100644
18 index ef7995547d3..00000000000
19 --- a/sys-libs/libcap/libcap-2.29-r1.ebuild
20 +++ /dev/null
21 @@ -1,84 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -inherit multilib multilib-minimal toolchain-funcs pam usr-ldscript
28 -
29 -DESCRIPTION="POSIX 1003.1e capabilities"
30 -HOMEPAGE="https://sites.google.com/site/fullycapable/"
31 -SRC_URI="https://www.kernel.org/pub/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 ~riscv ~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? ( sys-libs/pam[${MULTILIB_USEDEP}] )"
43 -DEPEND="${RDEPEND}
44 - sys-kernel/linux-headers"
45 -
46 -# Requires test suite being run as root (via sudo)
47 -RESTRICT="test"
48 -
49 -PATCHES=(
50 - "${FILESDIR}"/${PN}-2.29-build-system-fixes.patch
51 - "${FILESDIR}"/${PN}-2.28-no_perl.patch
52 - "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch
53 - "${FILESDIR}"/${PN}-2.21-include.patch
54 -)
55 -
56 -src_prepare() {
57 - default
58 - multilib_copy_sources
59 -}
60 -
61 -run_emake() {
62 - local args=(
63 - exec_prefix="${EPREFIX}"
64 - lib_prefix="${EPREFIX}/usr"
65 - lib="$(get_libdir)"
66 - prefix="${EPREFIX}/usr"
67 - PAM_CAP="$(usex pam yes no)"
68 - DYNAMIC=yes
69 - GOLANG=no
70 - )
71 - emake "${args[@]}" "$@"
72 -}
73 -
74 -multilib_src_compile() {
75 - tc-export AR CC RANLIB
76 - local BUILD_CC
77 - tc-export_build_env BUILD_CC
78 -
79 - run_emake
80 -}
81 -
82 -multilib_src_install() {
83 - # no configure, needs explicit install line #444724#c3
84 - run_emake DESTDIR="${D}" install
85 -
86 - gen_usr_ldscript -a cap
87 - if ! use static-libs ; then
88 - # Don't remove libpsx.a!
89 - # See https://bugs.gentoo.org/703912
90 - rm "${ED}"/usr/$(get_libdir)/libcap.a || die
91 - fi
92 -
93 - if [[ -d "${ED}"/usr/$(get_libdir)/security ]] ; then
94 - rm -r "${ED}"/usr/$(get_libdir)/security || die
95 - fi
96 -
97 - if use pam; then
98 - dopammod pam_cap/pam_cap.so
99 - dopamsecurity '' pam_cap/capability.conf
100 - fi
101 -}
102 -
103 -multilib_src_install_all() {
104 - dodoc CHANGELOG README doc/capability.notes
105 -}