Annotation of /trunk/core/libcap/libcap-2.16-r1.smage2
Parent Directory | Revision Log
Revision 1290 -
(hide annotations)
(download)
Tue Apr 28 16:25:12 2009 UTC (15 years, 5 months ago) by niro
File size: 1323 byte(s)
Tue Apr 28 16:25:12 2009 UTC (15 years, 5 months ago) by niro
File size: 1323 byte(s)
auto added: ver bump to 2.16-r1
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 | } | ||
46 | |||
47 | src_compile() | ||
48 | { | ||
49 | cd ${SRCDIR} | ||
50 | mmake || die | ||
51 | } | ||
52 | |||
53 | src_install() | ||
54 | { | ||
55 | cd ${SRCDIR} | ||
56 | mmake DESTDIR=${BINDIR} install || die | ||
57 | |||
58 | # move the static lib to a proper location | ||
59 | minstalldir /usr/$(mlibdir) || die | ||
60 | mv ${BINDIR}/$(mlibdir)/libcap.a ${BINDIR}/usr/$(mlibdir) || die | ||
61 | |||
62 | minstalldocs CHANGELOG License README doc/capability.notes || die | ||
63 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |