Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcap/
Date: Mon, 17 Aug 2020 15:07:26
Message-Id: 1597676838.d36e42d8ba4ea5e5fa2734776ccc102524d809bf.whissi@gentoo
1 commit: d36e42d8ba4ea5e5fa2734776ccc102524d809bf
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 17 15:06:04 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 17 15:07:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d36e42d8
7
8 sys-libs/libcap: bump to v2.43
9
10 Package-Manager: Portage-3.0.2, Repoman-2.3.23
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-libs/libcap/Manifest | 1 +
14 sys-libs/libcap/libcap-2.43.ebuild | 87 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 88 insertions(+)
16
17 diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest
18 index ef641c0ce7f..cc017ffcf49 100644
19 --- a/sys-libs/libcap/Manifest
20 +++ b/sys-libs/libcap/Manifest
21 @@ -2,3 +2,4 @@ DIST libcap-2.26.tar.xz 67172 BLAKE2B 9d1952bd03e1bba5ffa225a5088b8d841c2007219b
22 DIST libcap-2.27.tar.xz 67780 BLAKE2B 7b58d7afdd90281771a302cd9554f067b9e3636b0c052935973d8a0d890490c3933b3513874b788a8c10e37ab5ad9cfa766408c9629b7c8562cb17bfdef87747 SHA512 e32335fd3e0d1564574acc73df7030b5b0fd98875217bffabd76f2765f1a7a6f1369f03df2ee22a1782776838784e342378c10613ea1163d53ae5055ab6a62b6
23 DIST libcap-2.41.tar.xz 139812 BLAKE2B 96630d2ff45e3cc40f18d0a739796bbed4c5b246a48db64b81870c6f200c6cedfed74ed0267261c3de712e9d14799015ccd1a2391e9a2a9c6d5c250864bf841f SHA512 efb778f1fee3da9ccbcc5c05d0e33dfced55a7fdfe17e1f40f121b6ec08b891c0cd95e91e5b6dce84a9cdb62d40f20efe2b26454013e1e898c25c3f9550af0f9
24 DIST libcap-2.42.tar.xz 141288 BLAKE2B 1ee5c3934ba88a8127a6d96780a539d8b291e99d2e621660338fb9a9d511470bedfc3406af0bc787fda0ee0c54ce491d65a11a3e92a8da9f5d494c0931de77db SHA512 2abe2d106583a48e3ee0dbc0f82e5ec92a3209cad2abcc1690a12f33364a1dab467b624670a1cdcac0c8d12761e86d5a05bca90aa4199fee75d46e181a695d50
25 +DIST libcap-2.43.tar.xz 125284 BLAKE2B bde36f8397f4adb74760eb403daa06bee1b8f45ddc253cc3c3ef1f6e95d0e4c76d0f2e6fa3335a8bc451f18ac7128c96230f6aba9ae0320fa4f9d669e7b4f715 SHA512 817add571fb2c54ad2a39974e6545b8fc8d855ecdcf2e00b2cc10e583802c49dfea2d8bca484c89ecd574fdacfc46565b51e3064a4407cf1985defb913240d45
26
27 diff --git a/sys-libs/libcap/libcap-2.43.ebuild b/sys-libs/libcap/libcap-2.43.ebuild
28 new file mode 100644
29 index 00000000000..acba4de6b6c
30 --- /dev/null
31 +++ b/sys-libs/libcap/libcap-2.43.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit multilib multilib-minimal toolchain-funcs pam usr-ldscript
39 +
40 +DESCRIPTION="POSIX 1003.1e capabilities"
41 +HOMEPAGE="https://sites.google.com/site/fullycapable/"
42 +SRC_URI="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${P}.tar.xz"
43 +
44 +# it's available under either of the licenses
45 +LICENSE="|| ( GPL-2 BSD )"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="pam static-libs"
49 +
50 +# While the build system optionally uses gperf, we don't DEPEND on it because
51 +# the build automatically falls back when it's unavailable. #604802
52 +RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}]"
53 +PDEPEND="pam? ( sys-libs/pam[${MULTILIB_USEDEP}] )"
54 +DEPEND="${RDEPEND}
55 + ${PDEPEND}
56 + sys-kernel/linux-headers"
57 +
58 +# Requires test suite being run as root (via sudo)
59 +RESTRICT="test"
60 +
61 +PATCHES=(
62 + "${FILESDIR}"/${PN}-2.42-build-system-fixes.patch
63 + "${FILESDIR}"/${PN}-2.38-no_perl.patch
64 + "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch
65 + "${FILESDIR}"/${PN}-2.21-include.patch
66 +)
67 +
68 +src_prepare() {
69 + default
70 + multilib_copy_sources
71 +}
72 +
73 +run_emake() {
74 + local args=(
75 + exec_prefix="${EPREFIX}"
76 + lib_prefix="${EPREFIX}/usr"
77 + lib="$(get_libdir)"
78 + prefix="${EPREFIX}/usr"
79 + PAM_CAP="$(usex pam yes no)"
80 + DYNAMIC=yes
81 + GOLANG=no
82 + )
83 + emake "${args[@]}" "$@"
84 +}
85 +
86 +src_configure() {
87 + tc-export AR CC RANLIB
88 + tc-export_build_env BUILD_CC
89 + multilib-minimal_src_configure
90 +}
91 +
92 +multilib_src_compile() {
93 + run_emake
94 +}
95 +
96 +multilib_src_install() {
97 + # no configure, needs explicit install line #444724#c3
98 + run_emake DESTDIR="${D}" install
99 +
100 + gen_usr_ldscript -a cap
101 + if ! use static-libs ; then
102 + # Don't remove libpsx.a!
103 + # See https://bugs.gentoo.org/703912
104 + rm "${ED}"/usr/$(get_libdir)/libcap.a || die
105 + fi
106 +
107 + if [[ -d "${ED}"/usr/$(get_libdir)/security ]] ; then
108 + rm -r "${ED}"/usr/$(get_libdir)/security || die
109 + fi
110 +
111 + if use pam; then
112 + dopammod pam_cap/pam_cap.so
113 + dopamsecurity '' pam_cap/capability.conf
114 + fi
115 +}
116 +
117 +multilib_src_install_all() {
118 + dodoc CHANGELOG README doc/capability.notes
119 +}