30 lines
943 B
Bash
30 lines
943 B
Bash
# Template file for 'libcap-pam'
|
|
pkgname=libcap-pam
|
|
version=2.32
|
|
revision=1
|
|
wrksrc="libcap-${version}"
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
make_install_args="RAISE_SETFCAP=no"
|
|
hostmakedepends="gperf perl pam-devel"
|
|
makedepends="pam-devel attr-devel"
|
|
short_desc="POSIX.1e capabilities suite - PAM module"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://sites.google.com/site/fullycapable/"
|
|
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/libcap-${version}.tar.xz"
|
|
checksum=1005e3d227f2340ad1e3360ef8b69d15e3c72a29c09f4894d7aac038bd26e2be
|
|
|
|
conf_files="/etc/security/capability.conf"
|
|
|
|
pre_build() {
|
|
vsed -e 's,CC :=,CC ?=,' -i Make.Rules
|
|
# Disable tests, as they cause cross-build failure
|
|
vsed -e '/test:/,/.sh/d' -e '/tests/d' -i Makefile
|
|
}
|
|
|
|
do_install() {
|
|
vinstall pam_cap/capability.conf 644 etc/security
|
|
vmkdir usr/lib/security
|
|
mv pam_cap/pam_cap.so ${DESTDIR}/usr/lib/security
|
|
}
|