diff --git a/http_load-09Mar2016.tar.gz b/http_load-09Mar2016.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..99b57d4634c1dd055b15e2b4b059a21ac2798799 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 0000000000000000000000000000000000000000..c7aa280662ab9c265bc9a2d4c6024591676f2e00 --- /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 + diff --git a/http_load.spec b/http_load.spec new file mode 100644 index 0000000000000000000000000000000000000000..22fa8235b5676718e9f0713aa7dd11940a13543d --- /dev/null +++ b/http_load.spec @@ -0,0 +1,44 @@ +%global debug_package %{nil} + +Name: http_load +Version: 09Mar2016 +Release: 1 +Summary: multiprocessing http test client +License: BSD +URL: http://www.acme.com/software +Source0: http://www.acme.com/software/http_load/%{name}-%{version}.tar.gz + +Patch0: http_load-fix-install-path-issue.patch + +BuildRequires: gcc + +%description +http_load runs multiple http fetches in parallel, to test the throughput of a web server. However unlike most such test clients, it runs in a single process, so it doesn't bog down the client machine. It can be configured to do https fetches as well + +%prep +%setup -q -n %{name}-%{version}/ + +%patch0 -p1 + +%build +make + +%install +%{__make} install PREFIX="%{buildroot}" + +%pre +%preun +%post +%postun + +%check + +%files +%doc README +%{_bindir}/* +%{_mandir}/* + +%changelog +* Sun Mar 29 2020 Wei Xiong +- Package init +