void-packages/srcpkgs/libcap-pam/template

31 lines
943 B
Bash

# Template file for 'libcap-pam'
pkgname=libcap-pam
version=2.28
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=c0e70c3bcce288ada2bfe8d748e816b601590495312222e92e307cf18d6a38aa
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
}