From 0c176b3ecd161dc6b0bda8dcb7866ac15a28e8e5 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Sat, 16 Apr 2022 16:03:14 +0530 Subject: [PATCH] feat(wrk): enable auto-update, upgrade to 4.2.0 Signed-off-by: Aditya Alok --- packages/wrk/Makefile.patch | 17 +++++++---------- packages/wrk/build.sh | 7 ++++--- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/packages/wrk/Makefile.patch b/packages/wrk/Makefile.patch index 3e5e58c9c..066b75b4d 100644 --- a/packages/wrk/Makefile.patch +++ b/packages/wrk/Makefile.patch @@ -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 $@ - diff --git a/packages/wrk/build.sh b/packages/wrk/build.sh index d45e52819..476722057 100644 --- a/packages/wrk/build.sh +++ b/packages/wrk/build.sh @@ -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