summaryrefslogtreecommitdiff
path: root/net/firewalk/patches/patch-ab
blob: 08af77506507994648f878492b52efda5d466536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ab,v 1.1.1.1 2001/10/11 15:11:48 agc Exp $

--- Makefile.in.orig	Sat Feb  3 20:24:09 2001
+++ Makefile.in	Sun Sep  9 11:54:51 2001
@@ -7,13 +7,13 @@
 #   @configure_input@
 
 FIREWALK    =   firewalk
-FIREWALK_LOC=   /usr/local
+FIREWALK_LOC?=  /usr/local
 FIREWALK_MAN=   $(FIREWALK).1
 INSTALL     =   ./install-sh
 DEFINES     +=  @DEFS@ `libnet-config --defines`
 CFLAGS      =   @CFLAGS@
 CPPFLAGS    =   @CPPFLAGS@
-LIBS        =   -lnet -lpcap @FW_GTK_CONFIG@ `libnet-config --libs`
+LIBS        +=  -lnet -lpcap @FW_GTK_CONFIG@ `libnet-config --libs`
 OBJECTS     =   main.o firewalk.o watcher.o p_cap.o signal.o \
 		packet.o udptcpwalk.o port_list.o util.o @FW_GTK_OBJS@
 
@@ -31,6 +31,7 @@
 	sed -e 's/.*/static char version[] = "&";/' ./VERSION > $@
 
 install: firewalk
+	$(INSTALL) -d -m 0755 $(FIREWALK_LOC)/bin $(FIREWALK_LOC)/man/man1
 	$(INSTALL) -c -m 0700 $(FIREWALK) $(FIREWALK_LOC)/bin
 	$(INSTALL) -c -m 0644 $(FIREWALK_MAN) $(FIREWALK_LOC)/man/man1