31 lines
943 B
Bash
31 lines
943 B
Bash
# Template file for 'libcap-pam'
|
|
pkgname=libcap-pam
|
|
version=2.30
|
|
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=a287bae0b0d95e5230a1c4177b835c70774511b631f87c7bd29e91a03e027f11
|
|
|
|
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
|
|
}
|