blob: 2bd4294a5700f3fc5b0557b49006fffaffa3c8cc (
plain)
1 # Description: POSIX.1e capabilities library
2 # URL: https://sites.google.com/site/fullycapable/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: linux-pam
5
6 name=libcap
7 version=2.66
8 release=1
9 source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
10
11 build() {
12 cd $name-$version
13
14 sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Make.Rules
15
16 make install \
17 GOLANG=no \
18 RAISE_SETFCAP=no \
19 PKGCONFIGDIR=/usr/lib/pkgconfig \
20 DESTDIR=$PKG
21
22 install -d $PKG/usr/lib
23 mv $PKG/lib/lib{cap.a,psx.*} $PKG/usr/lib
24 rm $PKG/lib/libcap.so
25 ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
26
27 sed '/^libdir/s|/lib|/usr/lib|' -i $PKG/usr/lib/pkgconfig/*.pc
28 }
|