Magellan Linux

Contents of /branches/magellan-next/core/libcap/libcap-2.20-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7666 - (show annotations) (download)
Sun May 29 20:05:26 2011 UTC (12 years, 11 months ago) by niro
File size: 1533 byte(s)
-fixed patches
1 # $Id$
2
3 PNAME="libcap"
4 PVER="2.20"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-libs"
8 STATE="unstable"
9
10 DESCRIPTION="POSIX 1003.1e capabilities."
11 HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
12
13 DEPEND=">= virtual/glibc"
14 SDEPEND=">= virtual/kernel-headers"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
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.6/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-2.20-build-system-fixes.patch
25 mirror://${PNAME}/${PNAME}-2.20-ignore-RAISE_SETFCAP-install-failures.patch
26 )
27
28 UP2DATE="updatecmd http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6 | grep ${PNAME}- | lasttarball gz"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE}
33 cd ${SRCDIR}
34
35 # fixes build issues
36 mpatch ${PNAME}-2.20-build-system-fixes.patch || die
37 mpatch ${PNAME}-2.20-ignore-RAISE_SETFCAP-install-failures.patch || die
38
39 # fix libdir
40 sed -i "/^lib=/s:=.*:=$(mlibdir):" Make.Rules || die
41
42 # build dynamic libs
43 sed -i '/^DYNAMIC/s:=.*:=yes:' Make.Rules || die
44
45 # disable pam
46 sed -i "/^PAM_CAP/s:=.*:=no:" Make.Rules || die
47
48 # disable attr
49 sed -i "/^LIBATTR/s:=.*:=no:" Make.Rules || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55 mmake || die
56 }
57
58 src_install()
59 {
60 cd ${SRCDIR}
61 mmake DESTDIR=${BINDIR} install || die
62
63 # move the static lib to a proper location
64 minstalldir /usr/$(mlibdir) || die
65 mv ${BINDIR}/$(mlibdir)/libcap.a ${BINDIR}/usr/$(mlibdir) || die
66
67 minstalldocs CHANGELOG License README doc/capability.notes || die
68 }