blob: 8cc8c19a004bcabdfd6c796a5520c304c0c7a8b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# 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.ebuild,v 1.3 2003/06/22 05:10:31 seemant 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/linux-sources-2.2
python? ( >=virtual/python-2.2.1 >=dev-lang/swig-1.3.10 )"
RDEPEND=">=virtual/linux-sources-2.2
python? ( >=virtual/python-2.2.1 )"
S=${WORKDIR}/${P}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PF}-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
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
}
|