Contents of /trunk/extras/libcap/libcap-1.10-r7.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1365 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1365 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/libcap/libcap-1.10-r7.smage2,v 1.1 2008/02/16 00:45:35 niro Exp $ |
2 | |
3 | PNAME="libcap" |
4 | PVER="1.10" |
5 | PBUILD="r7" |
6 | |
7 | PCATEGORIE="sys-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="POSIX 1003.1e capabilities." |
11 | HOMEPAGE="http://www.kernel.org/pub/linux/libs/security/linux-privs/" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | SDEPEND=">= virtual/kernel-headers" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mtools |
20 | |
21 | SRC_URI=( |
22 | http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/libcap_${PVER}-14.diff |
25 | mirror://${PNAME}/${PVER}-python.patch |
26 | mirror://${PNAME}/libcap-1.10-r4-staticfix.diff |
27 | ) |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} |
32 | cd ${SRCDIR} |
33 | |
34 | mpatch libcap_${PVER}-14.diff || die |
35 | mpatch ${PVER}-python.patch || die |
36 | mpatch libcap-1.10-r4-staticfix.diff || die |
37 | sed -i 's|WARNINGS=-ansi|WARNINGS=|' Make.Rules || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR} |
43 | mmake COPTFLAG="${CFLAGS} -fPIC" DEBUG="" || die |
44 | } |
45 | |
46 | src_install() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | minstalldir /usr/$(mlibdir) || die |
51 | |
52 | mmake FAKEROOT=${BINDIR} \ |
53 | man_prefix=/usr/share \ |
54 | LIBDIR=${BINDIR}/$(mlibdir) \ |
55 | install || die |
56 | |
57 | # move the static lib to a proper location |
58 | mv ${BINDIR}/$(mlibdir)/libcap.a ${BINDIR}/usr/$(mlibdir) || die |
59 | |
60 | minstalldocs CHANGELOG License README doc/capability.notes || die |
61 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |