libcap-pam: update to 2.28

Update to 2.28 and some template cleanup

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
This commit is contained in:
Nathan Owens 2019-12-08 16:17:45 -06:00 committed by Helmut Pozimski
parent 1ea4c90e42
commit b1088a025e

View file

@ -1,8 +1,11 @@
# Template file for 'libcap-pam'
pkgname=libcap-pam
version=2.27
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"
@ -10,22 +13,18 @@ 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=dac1792d0118bee6aae6ba7fb93ff1602c6a9bda812fd63916eee1435b9c486a
checksum=c0e70c3bcce288ada2bfe8d748e816b601590495312222e92e307cf18d6a38aa
conf_files="/etc/security/capability.conf"
do_build() {
make CC="$CC" BUILD_CC=cc
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() {
_destdir=${wrksrc}/temp_install
make DESTDIR=${_destdir} MANDIR=/usr/share/man \
SBINDIR=/usr/sbin LIBDIR=/usr/lib \
RAISE_SETFCAP=no PKGCONFIGDIR=/usr/lib/pkgconfig install
vinstall pam_cap/capability.conf 644 etc/security
vmkdir usr/lib
mv ${_destdir}/usr/lib/security ${DESTDIR}/usr/lib
vmkdir usr/lib/security
mv pam_cap/pam_cap.so ${DESTDIR}/usr/lib/security
}