Contents of /trunk/core/libcap/libcap-2.22-r1.smage2
Parent Directory | Revision Log
Revision 9981 -
(show annotations)
(download)
Sun Jan 15 15:49:36 2012 UTC (12 years, 5 months ago) by niro
File size: 1658 byte(s)
Sun Jan 15 15:49:36 2012 UTC (12 years, 5 months ago) by niro
File size: 1658 byte(s)
-no check in Makefile
1 | # $Id$ |
2 | |
3 | PNAME="libcap" |
4 | PVER="2.22" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-libs" |
8 | |
9 | DESCRIPTION="POSIX 1003.1e capabilities." |
10 | HOMEPAGE="http://sites.google.com/site/fullycapable/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= virtual/kernel-headers" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools multilib |
19 | msetfeature "!check" |
20 | |
21 | SRC_URI=( |
22 | http://ftp.heanet.ie/mirrors/linux/libs/security/linux-privs/libcap2/${SRCFILE} |
23 | http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-2.22-build-system-fixes.patch |
26 | mirror://${PNAME}/${PNAME}-2.20-ignore-RAISE_SETFCAP-install-failures.patch |
27 | ) |
28 | |
29 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6 | grep ${PNAME}- | lasttarball gz" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} |
34 | cd ${SRCDIR} |
35 | |
36 | # fixes build issues |
37 | mpatch ${PNAME}-2.22-build-system-fixes.patch || die |
38 | mpatch ${PNAME}-2.20-ignore-RAISE_SETFCAP-install-failures.patch || die |
39 | |
40 | # fix libdir |
41 | all-abis 'sed -i "/^lib=/s:=.*:=$(mlibdir):" Make.Rules' || die |
42 | |
43 | # build dynamic libs |
44 | all-abis "sed -i '/^DYNAMIC/s:=.*:=yes:' Make.Rules" || die |
45 | |
46 | # disable pam |
47 | all-abis 'sed -i "/^PAM_CAP/s:=.*:=no:" Make.Rules' || die |
48 | |
49 | # disable attr |
50 | all-abis 'sed -i "/^LIBATTR/s:=.*:=no:" Make.Rules' || die |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | mmake || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | mmake DESTDIR=${BINDIR} install || die |
61 | |
62 | # move the static lib to a proper location |
63 | all-abis 'minstalldir /usr/$(mlibdir)' || die |
64 | all-abis 'mv ${BINDIR}/$(mlibdir)/libcap.a ${BINDIR}/usr/$(mlibdir)' || die |
65 | |
66 | minstalldocs CHANGELOG License README doc/capability.notes || die |
67 | } |