Annotation of /trunk/core/libcap/libcap-2.17-r1.smage2
Parent Directory | Revision Log
Revision 3159 -
(hide annotations)
(download)
Tue Oct 13 22:47:08 2009 UTC (14 years, 11 months ago) by niro
File size: 1383 byte(s)
Tue Oct 13 22:47:08 2009 UTC (14 years, 11 months ago) by niro
File size: 1383 byte(s)
auto added: ver bump to 2.17-r1
1 | niro | 3159 | # $Id$ |
2 | |||
3 | PNAME="libcap" | ||
4 | PVER="2.17" | ||
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.16-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}-2.16-build-system-fixes.patch || die | ||
36 | |||
37 | # fix libdir | ||
38 | sed -i "/^lib=/s:=.*:=$(mlibdir):" 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 | |||
46 | # disable attr | ||
47 | sed -i "/^LIBATTR/s:=.*:=no:" Make.Rules || die | ||
48 | } | ||
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 |