summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-02-09 23:06:17 +0000
committerMike Frysinger <vapier@gentoo.org>2005-02-09 23:06:17 +0000
commit8571c7fb5061f6d4a7926297014c5ac17f832470 (patch)
treee384ff3a30adb12ffd0caa7455ea5227c1ee1ae2 /sys-libs/libcap/libcap-1.10-r5.ebuild
parentVersion bump. (diff)
downloadhistorical-8571c7fb5061f6d4a7926297014c5ac17f832470.tar.gz
historical-8571c7fb5061f6d4a7926297014c5ac17f832470.tar.bz2
historical-8571c7fb5061f6d4a7926297014c5ac17f832470.zip
Make sure we install a linker script in /usr/lib alongside the static library.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'sys-libs/libcap/libcap-1.10-r5.ebuild')
-rw-r--r--sys-libs/libcap/libcap-1.10-r5.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/sys-libs/libcap/libcap-1.10-r5.ebuild b/sys-libs/libcap/libcap-1.10-r5.ebuild
new file mode 100644
index 000000000000..c7fb90697721
--- /dev/null
+++ b/sys-libs/libcap/libcap-1.10-r5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r5.ebuild,v 1.3 2005/02/09 23:06:17 vapier Exp $
+
+inherit flag-o-matic eutils
+
+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
+ http://ftp.debian.org/debian/pool/main/libc/libcap/libcap_${PV}-${DEB_PVER}.diff.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
+IUSE="nocxx python static"
+
+#patch is in recent 2.2 kernels so it works there
+DEPEND="virtual/libc
+ virtual/os-headers
+ !nocxx? ( python? ( >=virtual/python-2.2.1 >=dev-lang/swig-1.3.10 ) )"
+RDEPEND="!nocxx? ( python? ( >=virtual/python-2.2.1 ) )
+ virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${WORKDIR}/libcap_${PV}-${DEB_PVER}.diff
+ epatch ${FILESDIR}/${PV}-python.patch
+ epatch ${FILESDIR}/libcap-1.10-r4-staticfix.diff
+ sed -i 's|WARNINGS=-ansi|WARNINGS=|' Make.Rules
+}
+
+src_compile() {
+ local PYTHONVER="`python -V 2>&1 | sed 's/^Python //'|sed 's/\([0-9]*\.[0-9]*\).*/\1/'`"
+ local myflags=""
+ use static && CFLAGS="${CFLAGS} -static" && LDFLAGS="${LDFLAGS} -static"
+ if ! use nocxx && use python ; then
+ myflags="${myflags} PYTHON=1 PYTHONMODDIR=/usr/$(get_libdir)/python${PYTHONVER}/site-packages"
+ append-flags -I/usr/include/python${PYTHONVER}
+ fi
+
+ emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" DEBUG="" ${myflags} || die
+}
+
+src_install() {
+ local PYTHONVER="`python -V 2>&1 | sed 's/^Python //'|sed 's/\([0-9]*\.[0-9]*\).*/\1/'`"
+ local myflags=""
+ if ! use nocxx && use python ; then
+ myflags="${myflags} PYTHON=1 PYTHONMODDIR=${D}/usr/$(get_libdir)/python${PYTHONVER}/site-packages"
+ fi
+ make install FAKEROOT="${D}" man_prefix=/usr/share LIBDIR="${D}/$(get_libdir)" ${myflags} || die
+ dodir /usr/$(get_libdir)
+ mv "${D}"/$(get_libdir)/libcap.a "${D}"/usr/$(get_libdir)
+ gen_usr_ldscript libcap.so
+ dodoc CHANGELOG README pgp.keys.asc doc/capability.notes capfaq-0.2.txt
+}