aboutsummaryrefslogtreecommitdiffstats
path: root/testing/policycoreutils/APKBUILD
blob: 603069432bd9554964ae0a142ba986c4feb1d503 (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
# Maintainer: Tycho Andersen <tycho@docker.com>
pkgname=policycoreutils
pkgver=2.8
pkgrel=0
pkgdesc="SELinux policy core utilities"
url="https://selinuxproject.org/"
arch="all"
license="GPL-2.0"
depends=""
makedepends="
	gettext-dev
	libsepol-dev
	libselinux-dev 
	libsemanage-dev
	fts-dev
	linux-pam-dev
	libcap-ng-dev
	audit-dev

	gawk
	"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/policycoreutils-2.8.tar.gz
	0002-hack-around-GLOB-BRACE-TILDE.patch
	busybox-install-compat.patch
	"
builddir="$srcdir/policycoreutils-$pkgver"
options="suid"

build() {
	cd "$builddir"
	make LDLIBS="$LDLIBS -lintl" LSPP_PRIV=y
}

package() {
	cd "$builddir"
	make LSPP_PRIV=y DESTDIR="$pkgdir" install
}

sha512sums="2b4a70836fd8727a16b8f8d4afcc39c9461ab6f5bc1ba5ce5833d41150da921ebb3c9bdbd1cfa7dd31fd382ba18b5433ca9b63bce58bd290db81fa9bedfe29f3  policycoreutils-2.8.tar.gz
d611ca3107439fbdb9618a72f55cb66e299fa71392821b223343aa314c65af3e67d6e79ff40e93eca9a20dd0e90c660393c604a18048fcf293374cf2bc61e918  0002-hack-around-GLOB-BRACE-TILDE.patch
cc0244d19b0ef4c0453d5ba02144f9a47c61164b55e8ed946c25075e1fac6401edbd46b2efc8ac0e733e1989ec6755409512b8a5c3e6ff31d59ad43b3ba41783  busybox-install-compat.patch"