# Template file for 'libcap-pam' pkgname=libcap-pam version=2.34 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 " license="GPL-2.0-only" homepage="http://sites.google.com/site/fullycapable/" changelog="https://sites.google.com/site/fullycapable/release-notes-for-libcap" distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/libcap-${version}.tar.xz" checksum=aecdd42015955068d3d94b7caa9590fcb2de5df53ce53c61a21b912bfc0b1611 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 }