aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libselinux/APKBUILD
blob: 7998aac4a791a37dd347d1d6a908bac773deb5e5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libselinux
pkgver=2.5
pkgrel=0
pkgdesc="SELinux library and simple utilities"
url="https://github.com/SELinuxProject/selinux/wiki"
arch="all"
license="Public Domain"
depends=""
depends_dev=""
makedepends="$depends_dev pcre-dev linux-headers libsepol-dev fts-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/libselinux-$pkgver.tar.gz
	libselinux-drop-usage-of-_D_ALLOC_NAMLEN.patch
	symlink.patch
	fts.patch
	"

builddir="$srcdir/libselinux-$pkgver"

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

utils() {
	pkgdesc="SELinux libselinux utilies"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/
}

md5sums="d1399f5c2fd2fbe0e9603d5143b30367  libselinux-2.5.tar.gz
04b40a63466aa62a99e74cebc2ccc074  libselinux-drop-usage-of-_D_ALLOC_NAMLEN.patch
55b8ac1062b9e95e28d1803525a4c3b9  symlink.patch
de426b7922c739e49c32ff0274e820ff  fts.patch"
sha256sums="94c9e97706280bedcc288f784f67f2b9d3d6136c192b2c9f812115edba58514f  libselinux-2.5.tar.gz
225c9c2dfefc0fa976d829910bc88fcd00744165dad971929d32cbd093904aff  libselinux-drop-usage-of-_D_ALLOC_NAMLEN.patch
b1db0ab90341417ac43dc75cf615b492685f7ebadb71eaac151e06b333e8d4ce  symlink.patch
759fd63af3a0176e937925604abb5f8f1a687442f9fa3daa449d7ddb387c5190  fts.patch"
sha512sums="1c6718aa6fa05c8635427cd6f5a89ce47fb6bb9bd2fec417293122826695d1ebb0e0b86e83711abb5c4fe71c67dce6f2e18745592833d1711f0ab2d01246b8c7  libselinux-2.5.tar.gz
957dac83abb87b004eb1d2b89a1584c91b0939cb8a94b69fce8586a014a38806ee3068336d56b9e99658f6b9d2ffb5292805088e3f522661f0b584e44d096424  libselinux-drop-usage-of-_D_ALLOC_NAMLEN.patch
3a4cefdcdd32df7430b38c961e9e20cebf1bdea9fa2fdba9680269426c07b6766d0f4e2f6a0b938c5d6d90110f71729413fe00877740ef592f96c706657b21f1  symlink.patch
3cd0bc14fad5b6fdbbcbf34070b65eb93c04aef8a7f714a97b27805ec9c384afd04fa0f487562b5f8001a70fb062e440334223e6c04ee977b2102fd71ab4075d  fts.patch"