diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-08-11 09:31:43 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-08-11 09:31:43 +0000 |
commit | b31189904dd4cd4d6e789acca0113d3eb3b59804 (patch) | |
tree | c277850ecec170cd4811ea2104ec0e7d0d382019 /sys-libs | |
parent | hopefully fix non-x86 bugs with -fPIC being needed (diff) | |
download | historical-b31189904dd4cd4d6e789acca0113d3eb3b59804.tar.gz historical-b31189904dd4cd4d6e789acca0113d3eb3b59804.tar.bz2 historical-b31189904dd4cd4d6e789acca0113d3eb3b59804.zip |
hopefully fix non-x86 bugs with -fPIC being needed
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libcap/Manifest | 4 | ||||
-rw-r--r-- | sys-libs/libcap/files/digest-libcap-1.10-r1 | 1 | ||||
-rw-r--r-- | sys-libs/libcap/libcap-1.10-r1.ebuild | 53 |
3 files changed, 56 insertions, 2 deletions
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest index 77c1c8658be3..5d1d9d110c41 100644 --- a/sys-libs/libcap/Manifest +++ b/sys-libs/libcap/Manifest @@ -1,6 +1,6 @@ MD5 5554935e5e3fbb06b2f1a780b0ab93f9 libcap-1.10.ebuild 1677 -MD5 bf862ebba3caaf5b31063995ac856c4c libcap-1.10-r1.ebuild 1726 -MD5 37bfcb829011fa9f01e29a7074c39c32 ChangeLog 471 +MD5 68d10f477cacd91a0ae27ac4004722a0 libcap-1.10-r1.ebuild 1733 +MD5 1e0f04cdeb4319f07e205feb6ec323ed ChangeLog 580 MD5 8f279ebf325d1b8efb6ad3c3a0d8cb5d files/libcap-1.10-python.patch 3353 MD5 f55c8f8c068940da50e21f4d4b840422 files/digest-libcap-1.10-r1 63 MD5 f55c8f8c068940da50e21f4d4b840422 files/digest-libcap-1.10 63 diff --git a/sys-libs/libcap/files/digest-libcap-1.10-r1 b/sys-libs/libcap/files/digest-libcap-1.10-r1 new file mode 100644 index 000000000000..b64fd78bbd27 --- /dev/null +++ b/sys-libs/libcap/files/digest-libcap-1.10-r1 @@ -0,0 +1 @@ +MD5 4426a413128142cab89eb2e6f13d8571 libcap-1.10.tar.bz2 26686 diff --git a/sys-libs/libcap/libcap-1.10-r1.ebuild b/sys-libs/libcap/libcap-1.10-r1.ebuild new file mode 100644 index 000000000000..71ab280df473 --- /dev/null +++ b/sys-libs/libcap/libcap-1.10-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r1.ebuild,v 1.1 2003/08/11 09:31:39 robbat2 Exp $ + +inherit base + +DESCRIPTION="POSIX 1003.1e capabilities" +HOMEPAGE="http://linux.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" +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~x86 ~arm ~mips ~hppa ~sparc ~ppc ~alpha" +IUSE="python" + +#patch is in recent 2.2 kernels so it works there +DEPEND="virtual/glibc + virtual/os-headers + python? ( >=virtual/python-2.2.1 >=dev-lang/swig-1.3.10 )" +RDEPEND="python? ( >=virtual/python-2.2.1 )" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/libcap-1.10-python.patch +} + +PYTHONVER="`python -V 2>&1 | sed 's/^Python //'|sed 's/\([0-9]*\.[0-9]*\).*/\1/'`" + +src_compile() { + local myflags + myflags="" + if [ "`use python`" ]; then + myflags="${myflags} PYTHON=1 PYTHONMODDIR=/usr/lib/python${PYTHONVER}/site-packages" + CFLAGS="${CFLAGS} -I/usr/include/python${PYTHONVER}" + fi + + # all 64 bit platforms need to get -fPIC + use alpha || use mips && append-flags -fPIC + + emake COPTFLAG="${CFLAGS}" DEBUG="" ${myflags} || die +} + +src_install() { + local myflags + myflags="" + if [ "`use python`" ]; then + myflags="${myflags} PYTHON=1 PYTHONMODDIR=${D}/usr/lib/python${PYTHONVER}/site-packages" + fi + make install FAKEROOT="${D}" man_prefix=/usr/share ${myflags} || die + dodoc CHANGELOG README License pgp.keys.asc doc/capability.notes +} |