summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2007-04-02 00:15:04 +0000
committerChris PeBenito <pebenito@gentoo.org>2007-04-02 00:15:04 +0000
commitf2b6cef8e4649359c1a3ab7722ccba4cbdd7a7f1 (patch)
treef5dd288d51efcab058a4f7f859e66362d03651b9 /sys-libs
parentmask >=media-gfx/hugin-0.7_beta4 for testing, see bug 141617 (diff)
downloadgentoo-2-f2b6cef8e4649359c1a3ab7722ccba4cbdd7a7f1.tar.gz
gentoo-2-f2b6cef8e4649359c1a3ab7722ccba4cbdd7a7f1.tar.bz2
gentoo-2-f2b6cef8e4649359c1a3ab7722ccba4cbdd7a7f1.zip
bump libcap to add audit capabilities
(Portage version: 2.1.2.3)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libcap/ChangeLog8
-rw-r--r--sys-libs/libcap/files/digest-libcap-1.10-r106
-rw-r--r--sys-libs/libcap/files/libcap-1.10-auditcaps.diff14
-rw-r--r--sys-libs/libcap/libcap-1.10-r10.ebuild70
4 files changed, 97 insertions, 1 deletions
diff --git a/sys-libs/libcap/ChangeLog b/sys-libs/libcap/ChangeLog
index 9cbc1ca20d79..067f20798894 100644
--- a/sys-libs/libcap/ChangeLog
+++ b/sys-libs/libcap/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-libs/libcap
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.48 2007/02/13 23:48:02 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.49 2007/04/02 00:15:04 pebenito Exp $
+
+*libcap-1.10-r10 (02 Apr 2007)
+
+ 02 Apr 2007; Chris PeBenito <pebenito@gentoo.org>
+ +files/libcap-1.10-auditcaps.diff, +libcap-1.10-r10.ebuild:
+ Update capability.h with #defines for audit capabilities.
13 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org> libcap-1.10-r9.ebuild:
Stable on ppc wrt bug #165742.
diff --git a/sys-libs/libcap/files/digest-libcap-1.10-r10 b/sys-libs/libcap/files/digest-libcap-1.10-r10
new file mode 100644
index 000000000000..766f3c805465
--- /dev/null
+++ b/sys-libs/libcap/files/digest-libcap-1.10-r10
@@ -0,0 +1,6 @@
+MD5 4426a413128142cab89eb2e6f13d8571 libcap-1.10.tar.bz2 26686
+RMD160 c1fad30889f0651039efc9db34e72060c4567f71 libcap-1.10.tar.bz2 26686
+SHA256 66c3f033fdc8f9ba0bd9d0ae2d1f2c11f9fa51bf0d1418e5cb75e29e6577a5bc libcap-1.10.tar.bz2 26686
+MD5 b867a0c1db9e8ff568415bbcd1fa65dc libcap_1.10-14.diff.gz 12928
+RMD160 7fbf66ca5795ae8ee05d208d74a76619ad81afae libcap_1.10-14.diff.gz 12928
+SHA256 e8fdb798774d49439dd07a6a2858da08a27e6b8057e0f87456a0bc223b74f706 libcap_1.10-14.diff.gz 12928
diff --git a/sys-libs/libcap/files/libcap-1.10-auditcaps.diff b/sys-libs/libcap/files/libcap-1.10-auditcaps.diff
new file mode 100644
index 000000000000..efb0a8bc4a89
--- /dev/null
+++ b/sys-libs/libcap/files/libcap-1.10-auditcaps.diff
@@ -0,0 +1,14 @@
+diff -urN libcap-1.10.orig/libcap/include/sys/capability.h libcap-1.10/libcap/include/sys/capability.h
+--- libcap-1.10.orig/libcap/include/sys/capability.h 2007-04-01 19:54:19.660718912 -0400
++++ libcap-1.10/libcap/include/sys/capability.h 2007-04-01 19:56:04.272759689 -0400
+@@ -311,6 +311,10 @@
+
+ #define CAP_LEASE 28
+
++#define CAP_AUDIT_WRITE 29
++
++#define CAP_AUDIT_CONTROL 30
++
+ #endif /* !_LINUX_CAPABILITY_H */
+
+
diff --git a/sys-libs/libcap/libcap-1.10-r10.ebuild b/sys-libs/libcap/libcap-1.10-r10.ebuild
new file mode 100644
index 000000000000..1ec7409760a3
--- /dev/null
+++ b/sys-libs/libcap/libcap-1.10-r10.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r10.ebuild,v 1.1 2007/04/02 00:15:04 pebenito Exp $
+
+inherit flag-o-matic eutils python multilib toolchain-funcs
+
+DEB_PVER="14"
+DESCRIPTION="POSIX 1003.1e capabilities"
+HOMEPAGE="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
+SRC_URI="http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${P}.tar.bz2
+ mirror://debian/pool/main/libc/libcap/libcap_${PV}-${DEB_PVER}.diff.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="python"
+
+#patch is in recent 2.2 kernels so it works there
+DEPEND="virtual/os-headers
+ python? ( >=virtual/python-2.2.1 >=dev-lang/swig-1.3.10 )"
+RDEPEND="python? ( >=virtual/python-2.2.1 )"
+
+src_unpack() {
+ unpack ${P}.tar.bz2
+ cd "${S}"
+ epatch "${DISTDIR}"/libcap_${PV}-${DEB_PVER}.diff.gz
+ epatch "${FILESDIR}"/${PV}-python.patch
+ epatch "${FILESDIR}"/libcap-1.10-r4-staticfix.diff
+ epatch "${FILESDIR}"/libcap-1.10-nostrip.patch
+ epatch "${FILESDIR}"/libcap-1.10-headers.patch
+ epatch "${FILESDIR}"/libcap-1.10-auditcaps.diff
+ sed -i -e 's|WARNINGS=-ansi|WARNINGS=|' Make.Rules
+}
+
+src_compile() {
+ local myflags=
+ if ! tc-is-cross-compiler && use python ; then
+ python_version
+ myflags="${myflags} PYTHON=1 PYTHONMODDIR=/usr/$(get_libdir)/python${PYVER}/site-packages"
+ append-flags "-I/usr/include/python${PYVER}"
+ fi
+
+ emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${myflags} || die
+}
+
+src_install() {
+ into /
+ dosbin progs/{sucap,execcap,setpcaps,getpcaps} || die
+ dolib.so libcap/libcap.so.${PV} || die
+ dosym libcap.so.${PV} /$(get_libdir)/libcap.so.1
+ dosym libcap.so.1 /$(get_libdir)/libcap.so
+ gen_usr_ldscript libcap.so
+ into /usr
+ dolib.a libcap/libcap.a
+
+ insinto /usr/include/sys
+ doins libcap/include/sys/capability.h
+
+ dodoc CHANGELOG README pgp.keys.asc doc/capability.notes capfaq-0.2.txt
+ doman doc/*.3
+
+ if ! tc-is-cross-compiler && use python ; then
+ python_version
+ local PYTHONMODDIR="/usr/$(get_libdir)/python${PYVER}/site-packages"
+ exeinto "${PYTHONMODDIR}"
+ doexe libcap/libcapmodule.so
+ insinto "${PYTHONMODDIR}"
+ doins libcap/libcap.py
+ fi
+}