Magellan Linux

Annotation of /trunk/core/libcap/libcap-2.16-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1291 - (hide annotations) (download)
Tue Apr 28 16:28:57 2009 UTC (15 years ago) by niro
File size: 1389 byte(s)
-disabled attr support
1 niro 1290 # $Id$
2    
3     PNAME="libcap"
4     PVER="2.16"
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}-${PVER}-build-system-fixes.patch
25     )
26    
27     UP2DATE="updatecmd http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6 | grep ${PNAME}- | lasttarball gz"
28    
29     src_prepare()
30     {
31     munpack ${SRCFILE}
32     cd ${SRCDIR}
33    
34     # fixes build issues
35     mpatch ${PNAME}-${PVER}-build-system-fixes.patch || die
36    
37     # fix libdir
38     sed -i "/^lib=/s:=.*:=$(,libdir):" Make.Rules || die
39    
40     # build dynamic libs
41     sed -i '/^DYNAMIC/s:=.*:=yes:' Make.Rules || die
42    
43     # disable pam
44     sed -i "/^PAM_CAP/s:=.*:=no:" Make.Rules || die
45 niro 1291
46     # disable attr
47     sed -i "/^LIBATTR/s:=.*:=no:" Make.Rules || die
48 niro 1290 }
49    
50     src_compile()
51     {
52     cd ${SRCDIR}
53     mmake || die
54     }
55    
56     src_install()
57     {
58     cd ${SRCDIR}
59     mmake DESTDIR=${BINDIR} install || die
60    
61     # move the static lib to a proper location
62     minstalldir /usr/$(mlibdir) || die
63     mv ${BINDIR}/$(mlibdir)/libcap.a ${BINDIR}/usr/$(mlibdir) || die
64    
65     minstalldocs CHANGELOG License README doc/capability.notes || die
66     }

Properties

Name Value
svn:keywords Id