openbsd-ports/net/arping/patches/patch-Makefile
2003-05-04 17:53:36 +00:00

37 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2003/05/04 17:53:36 jcs Exp $
--- Makefile.orig Sun Nov 3 13:57:57 2002
+++ Makefile Sun May 4 12:28:51 2003
@@ -9,7 +9,7 @@
MACOSX=0
# explicit pcap include dir is for redhat which is fux0red
-CFLAGS=-g -I/usr/local/include -L/usr/local/lib -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX) -I/usr/include/pcap
+CFLAGS=-I${LOCALBASE}/include -L${LOCALBASE}/lib -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX)
usage:
@echo
@@ -53,17 +53,19 @@
make USE_NETIF=0 SOLARIS=1 all
install:
- install -c arping /usr/local/bin/arping
- install arping.8 /usr/local/man/man8/arping.8
+ ${BSD_INSTALL_PROGRAM} -c arping ${PREFIX}/bin/arping
+ ${BSD_INSTALL_MAN} arping.8 ${PREFIX}/man/man8/arping.8
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/arping
+ ${BSD_INSTALL_DATA} README ${PREFIX}/share/doc/arping/README
all: $(TARGETS)
arping.o: arping.c
- gcc -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c
+ ${CC} $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c
O_arping=arping.o
arping: $(O_arping)
- gcc $(CFLAGS) -g -o $@ $(O_arping) `libnet-config --libs` -lpcap
+ ${CC} $(CFLAGS) -o $@ $(O_arping) `libnet-config --libs` -lpcap
O_arping2=arping-2/arping.c
arping2: arping-2/arping