aboutsummaryrefslogtreecommitdiffstats
path: root/main/libcap-ng/APKBUILD
blob: 47d6e53317a1f15722e5a8d8eaaf92a941cc85fd (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap-ng
pkgver=0.7.3
pkgrel=0
pkgdesc="posix capabilities library"
url="http://people.redhat.com/sgrubb/libcap-ng/index.html"
arch="all"
license="GPL"
depends=
makedepends="python"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$pkgver.tar.gz
	fix-includes.patch
	CVE-2014-3215.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la
}

utils() {
	pkgdesc="posix capabilities utils"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
}
	
md5sums="610afb774f80a8032b711281df126283  libcap-ng-0.7.3.tar.gz
1fb40026b1439ff4cb6566c96f653775  fix-includes.patch
ae4866fe611b3d7656233c03244871de  CVE-2014-3215.patch"
sha256sums="5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1  libcap-ng-0.7.3.tar.gz
577db727f4918e89a2695de4035244a6dc3b5280a9338c1c80ad30567e7292c3  fix-includes.patch
c43d8705e5f79e69e9f7914b7b282f2a2cda4e28c70464e82583b568083d9d5f  CVE-2014-3215.patch"
sha512sums="f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2  libcap-ng-0.7.3.tar.gz
a7ffa9b196b92398755c9409b28e966faa0143bdd115cdd7409eb65b87f09fcd6fec2937b5cc847a2eed895134fe6dd79c075cce652cb11f146eb3f0889bca59  fix-includes.patch
adb564a66b6fb160671e1e169b67fa34f93478fb3c3d0358f82993e3eeb4cb8b772e3177d2ddfc29ecaa38ee5e1e9dbb84a000e3e63b6820dcf99dd46c8316b8  CVE-2014-3215.patch"