feat(wrk): enable auto-update, upgrade to 4.2.0

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
This commit is contained in:
Aditya Alok 2022-04-16 16:03:14 +05:30
parent 2e83513ed8
commit 0c176b3ecd
No known key found for this signature in database
GPG Key ID: 345AE134142077D8
2 changed files with 11 additions and 13 deletions

View File

@ -1,8 +1,8 @@
--- ./Makefile.orig 2022-02-21 18:50:35.103778638 +0530
+++ ./Makefile 2022-02-21 18:51:47.323778610 +0530
--- ./Makefile.orig 2022-04-17 08:36:38.132700421 +0000
+++ ./Makefile 2022-04-17 19:16:25.686564910 +0000
@@ -1,5 +1,5 @@
-CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
-LIBS := -lpthread -lm -lssl -lcrypto
-LIBS := -lm -lssl -lcrypto -lpthread
+CFLAGS += -std=c99 -Wall -D_REENTRANT
+LIBS := -lm -lssl -lcrypto
@ -17,15 +17,12 @@
LDFLAGS += -L$(WITH_LUAJIT)/lib
else
CFLAGS += -I$(ODIR)/include/luajit-2.1
@@ -59,9 +59,9 @@
$(ODIR):
@mkdir -p $@
@@ -61,7 +61,7 @@
-$(ODIR)/bytecode.o: src/wrk.lua
+$(ODIR)/bytecode.c: src/wrk.lua
$(ODIR)/bytecode.c: src/wrk.lua $(DEPS)
@echo LUAJIT $<
- @$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b $(CURDIR)/$< $(CURDIR)/$@'
+ @$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b -a $(_ARCH) $(CURDIR)/$< $(CURDIR)/$@'
- @$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b "$(CURDIR)/$<" "$(CURDIR)/$@"'
+ @$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b -a $(_ARCH) "$(CURDIR)/$<" "$(CURDIR)/$@"'
$(ODIR)/version.o:
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -

View File

@ -2,12 +2,13 @@ TERMUX_PKG_HOMEPAGE=https://github.com/wg/wrk
TERMUX_PKG_DESCRIPTION="Modern HTTP benchmarking tool"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.1.0
TERMUX_PKG_REVISION=4
TERMUX_PKG_VERSION=4.2.0
TERMUX_PKG_SRCURL=https://github.com/wg/wrk/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e
TERMUX_PKG_SHA256=e255f696bff6e329f5d19091da6b06164b8d59d62cb9e673625bdcd27fe7bdad
TERMUX_PKG_DEPENDS="openssl, luajit"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
termux_step_make() {
local _ARCH