diff --git a/http_load-09Mar2016.tar.gz b/http_load-09Mar2016.tar.gz new file mode 100644 index 0000000..99b57d4 Binary files /dev/null and b/http_load-09Mar2016.tar.gz differ diff --git a/http_load-fix-install-path-issue.patch b/http_load-fix-install-path-issue.patch new file mode 100644 index 0000000..c7aa280 --- /dev/null +++ b/http_load-fix-install-path-issue.patch @@ -0,0 +1,32 @@ +diff -urN http_load-09Mar2016-bak/Makefile http_load-09Mar2016/Makefile +--- http_load-09Mar2016-bak/Makefile 2020-05-02 00:17:25.002098785 +0800 ++++ http_load-09Mar2016/Makefile 2020-05-02 00:26:03.961730206 +0800 +@@ -15,8 +15,8 @@ + #SSL_LIBS = -L$(SSL_TREE)/lib -lssl -lcrypto + + +-BINDIR = /usr/local/bin +-MANDIR = /usr/local/man/man1 ++BINDIR = ${PREFIX}/usr/bin ++MANDIR = ${PREFIX}//usr/share/man/man1 + CC = cc + CFLAGS = -O $(SRANDOM_DEFS) $(SSL_DEFS) $(SSL_INC) -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long + LDFLAGS = -s $(SSL_LIBS) $(SYSV_LIBS) +@@ -30,10 +30,12 @@ + $(CC) $(CFLAGS) -c timers.c + + install: all +- rm -f $(BINDIR)/http_load +- cp http_load $(BINDIR) +- rm -f $(MANDIR)/http_load.1 +- cp http_load.1 $(MANDIR) ++ mkdir -p ${BINDIR};\ ++ mkdir -p ${MANDIR};\ ++ cp http_load $(BINDIR); \ ++ cp http_load.1 $(MANDIR); \ ++ chmod 755 ${BINDIR}/http_load; \ ++ chmod 644 ${MANDIR}/http_load.1 + + clean: + rm -f http_load *.o core core.* *.core +