void-packages/srcpkgs/libcap/template

67 lines
1.6 KiB
Bash

# Template file for 'libcap'
pkgname=libcap
version=2.70
revision=1
bootstrap=yes
build_style=gnu-makefile
make_build_args="GOLANG=no"
make_use_env=yes
make_check_target="test"
short_desc="POSIX.1e capabilities suite"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="GPL-2.0-only, BSD-3-Clause"
homepage="https://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=23a6ef8aadaf1e3e875f633bb2d116cfef8952dba7bc7c569b13458e1952b30f
if [ "$CROSS_BUILD" ]; then
make_build_args+=" CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
fi
if [ "$CHROOT_READY" ]; then
hostmakedepends="gperf"
makedepends="pam-devel"
make_build_args+=" PAM_CAP=yes"
else
make_build_args+=" PAM_CAP=no"
fi
make_install_args="${make_build_args} SBINDIR=/usr/bin exec_prefix=/usr
LIBDIR=/usr/lib PKGCONFIGDIR=/usr/lib/pkgconfig RAISE_SETFCAP=no"
post_install() {
vlicense License
}
libcap-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/libcap.a
vmove usr/lib/libcap.so
vmove usr/lib/libpsx.a
vmove usr/lib/libpsx.so
vmove usr/share/man/man3
vmove usr/lib/pkgconfig
}
}
libcap-progs_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}
libcap-pam_package() {
conf_files="/etc/security/capability.conf"
short_desc+=" - PAM module"
pkg_install() {
vinstall pam_cap/capability.conf 644 etc/security
vmove usr/lib/security
}
}