init package

This commit is contained in:
myeuler 2020-05-16 15:52:54 +08:00 committed by Gitee
parent d15e9a71d0
commit 9ce8193dd0
2 changed files with 32 additions and 0 deletions

BIN
http_load-09Mar2016.tar.gz Normal file

Binary file not shown.

View 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