summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-11-26 16:03:15 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-11-26 16:03:15 +0000
commit002806096475c180b700b868a2bd916077acc892 (patch)
treea5cb20b30858d6db865e6921e19a98709af636e1 /sys-libs/libcap
parentadded prefix support (bug #444730) (diff)
downloadgentoo-2-002806096475c180b700b868a2bd916077acc892.tar.gz
gentoo-2-002806096475c180b700b868a2bd916077acc892.tar.bz2
gentoo-2-002806096475c180b700b868a2bd916077acc892.zip
added prefix support (bug #444724)
(Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key C2000586)
Diffstat (limited to 'sys-libs/libcap')
-rw-r--r--sys-libs/libcap/ChangeLog7
-rw-r--r--sys-libs/libcap/libcap-2.22-r1.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/sys-libs/libcap/ChangeLog b/sys-libs/libcap/ChangeLog
index 31c6ef4451b7..c95ff7458309 100644
--- a/sys-libs/libcap/ChangeLog
+++ b/sys-libs/libcap/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/libcap
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.120 2012/09/23 23:56:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.121 2012/11/26 16:03:15 ottxor Exp $
+
+*libcap-2.22-r1 (26 Nov 2012)
+
+ 26 Nov 2012; Christoph Junghans <ottxor@gentoo.org> +libcap-2.22-r1.ebuild:
+ added prefix support (bug #444724)
23 Sep 2012; Mike Frysinger <vapier@gentoo.org>
files/libcap-2.22-build-system-fixes.patch:
diff --git a/sys-libs/libcap/libcap-2.22-r1.ebuild b/sys-libs/libcap/libcap-2.22-r1.ebuild
new file mode 100644
index 000000000000..31436c9256c7
--- /dev/null
+++ b/sys-libs/libcap/libcap-2.22-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-2.22-r1.ebuild,v 1.1 2012/11/26 16:03:15 ottxor Exp $
+
+EAPI="4"
+
+inherit eutils multilib toolchain-funcs pam
+
+DESCRIPTION="POSIX 1003.1e capabilities"
+HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
+SRC_URI="mirror://kernel/linux/libs/security/linux-privs/libcap${PV:0:1}/${P}.tar.bz2"
+
+# it's available under either of the licenses
+LICENSE="|| ( GPL-2 BSD )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
+IUSE="pam"
+
+RDEPEND="sys-apps/attr
+ pam? ( virtual/pam )"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.22-build-system-fixes.patch
+ epatch "${FILESDIR}"/${PN}-2.22-no-perl.patch
+ epatch "${FILESDIR}"/${PN}-2.20-ignore-RAISE_SETFCAP-install-failures.patch
+ epatch "${FILESDIR}"/${PN}-2.21-include.patch
+ sed -i \
+ -e "/^PAM_CAP/s:=.*:=$(usex pam):" \
+ -e '/^DYNAMIC/s:=.*:=yes:' \
+ -e "/^lib=/s:=.*:=/usr/$(get_libdir):" \
+ Make.Rules
+}
+
+src_configure() {
+ tc-export_build_env BUILD_CC
+ tc-export CC AR RANLIB
+}
+
+src_install() {
+ # no configure, needs explicit install line #444724#c3
+ emake install DESTDIR="${ED}"
+
+ gen_usr_ldscript -a cap
+
+ rm -rf "${ED}"/usr/$(get_libdir)/security
+ dopammod pam_cap/pam_cap.so
+ dopamsecurity '' pam_cap/capability.conf
+
+ dodoc CHANGELOG README doc/capability.notes
+}