diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-07-04 10:41:21 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-07-04 10:43:36 +0200 |
commit | 43afb45707470ff350717d6854fa5fe709293cc0 (patch) | |
tree | 361867216789419b0040a0606c401383e65b4b6e /sys-libs/libcap | |
parent | sys-apps/busybox: Version 1.29.0. (diff) | |
download | gentoo-43afb45707470ff350717d6854fa5fe709293cc0.tar.gz gentoo-43afb45707470ff350717d6854fa5fe709293cc0.tar.bz2 gentoo-43afb45707470ff350717d6854fa5fe709293cc0.zip |
sys-libs/libcap: EAPI-6 revbump.
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'sys-libs/libcap')
-rw-r--r-- | sys-libs/libcap/files/libcap-2.21-include.patch | 4 | ||||
-rw-r--r-- | sys-libs/libcap/libcap-2.25-r1.ebuild | 73 |
2 files changed, 75 insertions, 2 deletions
diff --git a/sys-libs/libcap/files/libcap-2.21-include.patch b/sys-libs/libcap/files/libcap-2.21-include.patch index 2a534246ee01..8ea6545659e3 100644 --- a/sys-libs/libcap/files/libcap-2.21-include.patch +++ b/sys-libs/libcap/files/libcap-2.21-include.patch @@ -1,5 +1,5 @@ ---- libcap/libcap.h.org 2011-06-15 07:25:58.912480899 +0200 -+++ libcap/libcap.h 2011-06-15 07:26:16.421329661 +0200 +--- a/libcap/libcap.h ++++ b/libcap/libcap.h @@ -13,6 +13,7 @@ #include <stdlib.h> #include <string.h> diff --git a/sys-libs/libcap/libcap-2.25-r1.ebuild b/sys-libs/libcap/libcap-2.25-r1.ebuild new file mode 100644 index 000000000000..8fd1ee61e274 --- /dev/null +++ b/sys-libs/libcap/libcap-2.25-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib multilib-minimal toolchain-funcs pam + +DESCRIPTION="POSIX 1003.1e capabilities" +HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html" +SRC_URI="mirror://kernel/linux/libs/security/linux-privs/libcap2/${P}.tar.xz" + +# it's available under either of the licenses +LICENSE="|| ( GPL-2 BSD )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="pam static-libs" + +# While the build system optionally uses gperf, we don't DEPEND on it because +# the build automatically falls back when it's unavailable. #604802 +RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] + pam? ( virtual/pam )" +DEPEND="${RDEPEND} + sys-kernel/linux-headers" + +PATCHES=( + "${FILESDIR}"/${PN}-2.25-build-system-fixes.patch + "${FILESDIR}"/${PN}-2.22-no-perl.patch + "${FILESDIR}"/${PN}-2.25-ignore-RAISE_SETFCAP-install-failures.patch + "${FILESDIR}"/${PN}-2.21-include.patch + "${FILESDIR}"/${PN}-2.25-gperf.patch +) + +src_prepare() { + default + multilib_copy_sources +} + +multilib_src_configure() { + sed -i \ + -e "/^PAM_CAP/s:=.*:=$(multilib_native_usex pam yes no):" \ + -e '/^DYNAMIC/s:=.*:=yes:' \ + -e '/^lib_prefix=/s:=.*:=$(prefix):' \ + -e "/^lib=/s:=.*:=$(get_libdir):" \ + Make.Rules +} + +multilib_src_compile() { + tc-export AR CC RANLIB + local BUILD_CC + tc-export_build_env BUILD_CC + + default +} + +multilib_src_install() { + # no configure, needs explicit install line #444724#c3 + emake install DESTDIR="${ED}" + + gen_usr_ldscript -a cap + if ! use static-libs ; then + rm "${ED%/}"/usr/$(get_libdir)/libcap.a || die + fi + + if multilib_is_native_abi && use pam; then + dopammod pam_cap/pam_cap.so + dopamsecurity '' pam_cap/capability.conf + fi +} + +multilib_src_install_all() { + rm -r "${ED%/}"/usr/$(get_libdir)/security || die + dodoc CHANGELOG README doc/capability.notes +} |