gatling: update to 0.16, fix lint

Gatling 0.16 grew a header dependency on capability.h. However, it
doesn't appear to actually use anything from libcap so until that
changes, patch gatling.c to use linux/capability.h (from
kernel-libc-headers) instead of sys/capability.h (from libcap-devel).
This commit is contained in:
Colin Booth 2021-04-04 14:37:48 -07:00 committed by Érico Nogueira Rolim
parent c542b9b53e
commit 858c80952a
2 changed files with 19 additions and 8 deletions

View file

@ -0,0 +1,12 @@
# patch gatling.c to use capability headers from the kernel instead of libcap
--- gatling.c.orig 2021-04-04 21:51:17.641001871 +0000
+++ gatling.c 2021-04-04 21:51:49.798095616 +0000
@@ -62,7 +62,7 @@
#ifdef __linux__
#include <sys/auxv.h>
-#include <sys/capability.h>
+#include <linux/capability.h>
#endif
char serverroot[1024];

View file

@ -1,17 +1,17 @@
# Template file for 'gatling'
pkgname=gatling
version=0.15
revision=10
version=0.16
revision=1
build_style=gnu-makefile
make_build_target="gatling dl getlinks"
make_install_args="prefix=/usr MANDIR=/usr/share/man"
makedepends="libowfat openssl-devel zlib-devel"
short_desc="High performance web server"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2"
homepage="http://www.fefe.de/$pkgname/"
license="GPL-2.0-only"
homepage="http://www.fefe.de/gatling"
distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
checksum=6fa329d0ced0c80deb8dde5460e9d9e984bee94f265043d7fdec0e253dce9aa4
make_build_target="gatling dl getlinks"
make_install_args="prefix=/usr MANDIR=/usr/share/man"
checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b
CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon"
@ -24,4 +24,3 @@ pre_build() {
pre_install() {
vmkdir usr/share/man/man1
}