858c80952a
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).
26 lines
781 B
Bash
26 lines
781 B
Bash
# Template file for 'gatling'
|
|
pkgname=gatling
|
|
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.0-only"
|
|
homepage="http://www.fefe.de/gatling"
|
|
distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
|
|
checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b
|
|
|
|
CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon"
|
|
|
|
pre_build() {
|
|
vsed -i GNUmakefile \
|
|
-e "s;^CFLAGS=.*;CFLAGS=${CFLAGS};" \
|
|
-e "s;\$(CC) \$(LDFLAGS);\$(CC) \$(CFLAGS) \$(LDFLAGS);"
|
|
}
|
|
|
|
pre_install() {
|
|
vmkdir usr/share/man/man1
|
|
}
|