summaryrefslogtreecommitdiffstats
path: root/extra/libcap/Pkgfile
blob: 1cbf24b4d93ea144d5c9d3489f83b3320d4f71b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Description: Librairie posix 1003.1e version 2
# URL: http://www.kernel.org/pub/linux/libs/security/linux-privs/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libattr, linux-pam

name=libcap
version=2.16
release=1
source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$version.tar.bz2\
	http://nutyx.meticul.eu/files/$name/{$name-$version-makefile.patch,$name-$version-drop-linux-workarounds.patch})

build() {
	cd $name-$version
	patch -p0 -i $SRC/$name-$version-makefile.patch
	patch -p0 -i $SRC/$name-$version-drop-linux-workarounds.patch
	make
	make \
		INCDIR=$PKG/usr/include \
		LIBDIR=$PKG/usr/lib \
		SBINDIR=$PKG/usr/sbin \
		MANDIR=$PKG/usr/share/man install

	# man8 is empty, cap{set,get}(2) come from core/man-pages
	rm -rf $PKG/usr/share/man/man{2,8}

}