commit
14fb7798ae
BIN
http_load-09Mar2016.tar.gz
Normal file
BIN
http_load-09Mar2016.tar.gz
Normal file
Binary file not shown.
32
http_load-fix-install-path-issue.patch
Normal file
32
http_load-fix-install-path-issue.patch
Normal file
@ -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
|
||||||
|
|
||||||
44
http_load.spec
Normal file
44
http_load.spec
Normal file
@ -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 <myeuler@163.com>
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user