libcap: 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:
parent
b1088a025e
commit
565e0f8f32
1 changed files with 10 additions and 16 deletions
|
@ -1,15 +1,19 @@
|
||||||
# Template file for 'libcap'
|
# Template file for 'libcap'
|
||||||
pkgname=libcap
|
pkgname=libcap
|
||||||
version=2.27
|
version=2.28
|
||||||
revision=1
|
revision=1
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
|
build_style=gnu-makefile
|
||||||
|
make_install_args="SBINDIR=/usr/bin exec_prefix=/usr
|
||||||
|
LIBDIR=/usr/lib PKGCONFIGDIR=/usr/lib/pkgconfig RAISE_SETFCAP=no"
|
||||||
|
make_use_env=yes
|
||||||
makedepends="attr-devel"
|
makedepends="attr-devel"
|
||||||
short_desc="POSIX.1e capabilities suite"
|
short_desc="POSIX.1e capabilities suite"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
homepage="http://sites.google.com/site/fullycapable/"
|
homepage="http://sites.google.com/site/fullycapable/"
|
||||||
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
|
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
|
||||||
checksum=dac1792d0118bee6aae6ba7fb93ff1602c6a9bda812fd63916eee1435b9c486a
|
checksum=c0e70c3bcce288ada2bfe8d748e816b601590495312222e92e307cf18d6a38aa
|
||||||
|
|
||||||
if [ "$CHROOT_READY" ]; then
|
if [ "$CHROOT_READY" ]; then
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
|
@ -18,20 +22,10 @@ if [ "$CHROOT_READY" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_configure() {
|
pre_build() {
|
||||||
sed -i 's/CFLAGS :=/CFLAGS +=/g' Make.Rules
|
vsed -e 's,CC :=,CC ?=,' -i Make.Rules
|
||||||
sed -i 's/LDFLAGS :=/LDFLAGS +=/g' Make.Rules
|
# Disable tests, as they cause cross-build failure
|
||||||
sed -i '/BUILD_CFLAGS/s/$(CFLAGS)//' Make.Rules
|
vsed -e '/test:/,/.sh/d' -e '/tests/d' -i Makefile
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make CC="$CC" BUILD_CC=cc
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
make DESTDIR=${DESTDIR} MANDIR=/usr/share/man \
|
|
||||||
SBINDIR=/usr/bin LIBDIR=/usr/lib \
|
|
||||||
RAISE_SETFCAP=no PKGCONFIGDIR=/usr/lib/pkgconfig install
|
|
||||||
}
|
}
|
||||||
|
|
||||||
libcap-devel_package() {
|
libcap-devel_package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue