openbsd-ports/net/firewalk/patches/patch-aa

31 lines
1001 B
Plaintext

--- Makefile.in.orig Tue Dec 15 18:58:01 1998
+++ Makefile.in Thu Dec 16 23:10:08 1999
@@ -11,14 +11,14 @@
DEFINES += #-D__DEBUG
FIREWALK = firewalk
-FIREWALK_LOC= /usr/local
+FIREWALK_LOC= @prefix@
FIREWALK_MAN= $(FIREWALK).1
INSTALL = ./install-sh
VER = 0.8
-DEFINES += @OS_S_DEFINES@
-CFLAGS = @CFLAGS@
+DEFINES += @OS_S_DEFINES@ `libnet-config --defines`
+CFLAGS = @CFLAGS@ -I@prefix@/include
CPPFLAGS = @CPPFLAGS@
-LIBS = -lnet -lpcap @ADDITIONAL_LIBS@
+LIBS = -L@prefix@/lib -lnet -lpcap @ADDITIONAL_LIBS@
OBJECTS = main.o firewalk.o ifaddrlist.o listener.o p_cap.o signal.o \
packet.o udptcpwalk.o port_list.o
.c.o:
@@ -36,7 +36,7 @@
@(cd ..; tar cvf $(FIREWALK)-$(VER).tar Firewalk/)
install: firewalk
- $(INSTALL) -c -m 0700 $(FIREWALK) $(FIREWALK_LOC)/bin
+ $(INSTALL) -c -m 0755 $(FIREWALK) $(FIREWALK_LOC)/sbin
$(INSTALL) -c -m 0644 $(FIREWALK_MAN) $(FIREWALK_LOC)/man/man1
clean: