39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.3 2002/10/25 09:33:37 wiz Exp $
|
|
|
|
--- Makefile.orig Fri Jan 4 06:54:43 2002
|
|
+++ Makefile
|
|
@@ -9,14 +9,14 @@
|
|
# http://www.openssl.org/ Make sure the SSL_TREE definition points to the
|
|
# tree with your OpenSSL installation - depending on how you installed it,
|
|
# it may be in /usr/local instead of /usr/local/ssl.
|
|
-#SSL_TREE = /usr/local/ssl
|
|
-#SSL_DEFS = -DUSE_SSL
|
|
-#SSL_INC = -I$(SSL_TREE)/include
|
|
-#SSL_LIBS = -L$(SSL_TREE)/lib -lssl -lcrypto
|
|
+SSL_TREE = ${SSLBASE}
|
|
+SSL_DEFS = -DUSE_SSL
|
|
+SSL_INC = -I$(SSL_TREE)/include
|
|
+SSL_LIBS = -L$(SSL_TREE)/lib -Wl,-R$(SSL_TREE)/lib -lssl -lcrypto
|
|
|
|
|
|
-BINDIR = /usr/local/bin
|
|
-MANDIR = /usr/local/man/man1
|
|
+BINDIR = $(PREFIX)/bin
|
|
+MANDIR = $(PREFIX)/man/man1
|
|
CC = gcc -Wall
|
|
CFLAGS = -O $(SRANDOM_DEFS) $(SSL_DEFS) $(SSL_INC)
|
|
#CFLAGS = -g $(SRANDOM_DEFS) $(SSL_DEFS) $(SSL_INC)
|
|
@@ -35,10 +35,9 @@ timers.o: timers.c timers.h
|
|
$(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)
|
|
+ $(INSTALL) -d $(BINDIR) $(MANDIR)
|
|
+ $(INSTALL) -c -o root -m 555 http_load $(BINDIR)/http_load
|
|
+ $(INSTALL) -c -o root -m 444 http_load.1 $(MANDIR)/http_load.1
|
|
|
|
clean:
|
|
rm -f http_load *.o core core.* *.core
|