aboutsummaryrefslogtreecommitdiffstats
path: root/testing/policycoreutils/APKBUILD
blob: 0888ad4b7a042790968ae82631922c81e0873ef5 (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
# Maintainer: Tycho Andersen <tycho@docker.com>
pkgname=policycoreutils
pkgver=2.6
pkgrel=0
pkgdesc="SELinux policy core utilities"
url="http://www.selinuxproject.org"
arch="all"
license="GPL-2.0"
depends="libsepol libselinux libsemanage gettext linux-pam python audit-libs"
depends_dev=""
makedepends="$depends_dev fts-dev libsepol-dev libselinux-dev libsemanage-dev gawk bsd-compat-headers linux-headers gettext-dev linux-pam-dev libcap-ng-dev coreutils python audit-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/policycoreutils-$pkgver.tar.gz
	0001-drop-some-binaries-from-policycoreutils.patch
	0002-hack-around-GLOB-BRACE-TILDE.patch
"
builddir="$srcdir/policycoreutils-$pkgver"
options="suid"

build() {
	cd "$builddir"
	# we use the static library for libsepol because it's the only one that exports hasthab_ symbols; the .so doesn't
	make LDLIBS="-lintl -lselinux -laudit -lcap-ng -lpam -lpam_misc -lsemanage /usr/lib/libsepol.a" LSPP_PRIV=y || return 1
}

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

sha512sums="ba289060bc348f9315bce84a5e5daf145600274289fdd2206edc10bb0ee03f9b02a9e40e9c118809961ddfe7844dee7d8952d8c9a239af7282f4fc1614c21e9d  policycoreutils-2.6.tar.gz
50fe8865c13a2d05827bc639ce7f04f0754f8b04419cf8580611da5c97857da777183b3643f98c53beab480edfcee3d2b444b7b882d1553b98a899670b6dee03  0001-drop-some-binaries-from-policycoreutils.patch
d611ca3107439fbdb9618a72f55cb66e299fa71392821b223343aa314c65af3e67d6e79ff40e93eca9a20dd0e90c660393c604a18048fcf293374cf2bc61e918  0002-hack-around-GLOB-BRACE-TILDE.patch"