diff --git a/packages/httping/build.sh b/packages/httping/build.sh index 39b994b15..381fb187b 100644 --- a/packages/httping/build.sh +++ b/packages/httping/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://www.vanheusden.com/httping/ TERMUX_PKG_DESCRIPTION="ping-like program for http-requests" TERMUX_PKG_VERSION=2.5 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://www.vanheusden.com/httping/httping-${TERMUX_PKG_VERSION}.tgz TERMUX_PKG_SHA256=3e895a0a6d7bd79de25a255a1376d4da88eb09c34efdd0476ab5a907e75bfaf8 TERMUX_PKG_BUILD_IN_SRC=yes diff --git a/packages/httping/fix-spam_file-path.patch b/packages/httping/fix-spam_file-path.patch new file mode 100644 index 000000000..9c37bc598 --- /dev/null +++ b/packages/httping/fix-spam_file-path.patch @@ -0,0 +1,12 @@ +diff -uNr httping-2.5/gen.h httping-2.5.mod/gen.h +--- httping-2.5/gen.h 2016-09-12 10:45:50.000000000 +0300 ++++ httping-2.5.mod/gen.h 2017-09-14 13:30:46.432863081 +0300 +@@ -12,7 +12,7 @@ + + #define RECV_BUFFER_SIZE (128 * 1024) + +-#define SPAM_FILE "/tmp/httping.dat" ++#define SPAM_FILE "@TERMUX_PREFIX@/tmp/httping.dat" + + #define MAX_SHOW_SUPPRESSION 3 +