aboutsummaryrefslogtreecommitdiffstats
path: root/main/libcap-ng/APKBUILD
blob: 6231b9e9a25dd2a1517ef4830c0594676a6f7247 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap-ng
pkgver=0.7.3
pkgrel=1
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
	CVE-2014-3215.patch
	"

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

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

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	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
ae4866fe611b3d7656233c03244871de  CVE-2014-3215.patch"
sha256sums="5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1  libcap-ng-0.7.3.tar.gz
c43d8705e5f79e69e9f7914b7b282f2a2cda4e28c70464e82583b568083d9d5f  CVE-2014-3215.patch"
sha512sums="f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2  libcap-ng-0.7.3.tar.gz
adb564a66b6fb160671e1e169b67fa34f93478fb3c3d0358f82993e3eeb4cb8b772e3177d2ddfc29ecaa38ee5e1e9dbb84a000e3e63b6820dcf99dd46c8316b8  CVE-2014-3215.patch"