aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-08 20:09:49 +0800
committeredwin <edwin@FreeBSD.org>2003-04-08 20:09:49 +0800
commit42eccdd0a58453a863f972a767549fd46c2199e0 (patch)
tree9ef4907d6ee059bf42fd8e4c37acbe40ec8e8c77
parent04ebfcd83e1ac4cf93c81bed6a3b282f31b12c1a (diff)
downloadfreebsd-ports-gnome-42eccdd0a58453a863f972a767549fd46c2199e0.tar.gz
freebsd-ports-gnome-42eccdd0a58453a863f972a767549fd46c2199e0.tar.zst
freebsd-ports-gnome-42eccdd0a58453a863f972a767549fd46c2199e0.zip
Update port: net/arping
- Update to latest release. (bug fix) - Remove unnesscessary patch files - Maintainer CC'ed PR: ports/50718 Submitted by: "Michael L.Hostbaek" <mich@freebsdcluster.org> Approved by: talked to the maintainer earlier today about it (see ports/50322)
-rw-r--r--net/arping/Makefile14
-rw-r--r--net/arping/distinfo2
-rw-r--r--net/arping/files/patch-aa25
3 files changed, 13 insertions, 28 deletions
diff --git a/net/arping/Makefile b/net/arping/Makefile
index 2ecc8fa80721..6b8115a85e76 100644
--- a/net/arping/Makefile
+++ b/net/arping/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= arping
-PORTVERSION= 1.06
+PORTVERSION= 1.07
CATEGORIES= net
MASTER_SITES= ftp://ftp.habets.pp.se/pub/synscan/ \
ftp://ftp.cerias.purdue.edu/pub/tools/unix/netutils/arping/
@@ -16,9 +16,19 @@ COMMENT= ARP level "ping" utility
BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet
-ALL_TARGET= freebsd
+LDFLAGS+= -lpcap
+
MAN8= arping.8
+do-build:
+ cd ${WRKSRC} && \
+ ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
+ -DUSE_NETIF=1 -DFREEBSD=1 -c `libnet-config --defines` \
+ `libnet-config --cflags` ${PORTNAME}.c && \
+ ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
+ -DUSE_NETIF=1 -DFREEBSD=1 -o ${PORTNAME} ${PORTNAME}.o \
+ `libnet-config --libs` ${LDFLAGS}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arping ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/arping.8 ${PREFIX}/man/man8
diff --git a/net/arping/distinfo b/net/arping/distinfo
index 9398e1ac34f9..1d62155f9d9a 100644
--- a/net/arping/distinfo
+++ b/net/arping/distinfo
@@ -1 +1 @@
-MD5 (arping-1.06.tar.gz) = e6291334ba4c4c63e2001c0bccf9274d
+MD5 (arping-1.07.tar.gz) = 37fbbe6944d1aaf294db2c33ff02c288
diff --git a/net/arping/files/patch-aa b/net/arping/files/patch-aa
deleted file mode 100644
index a8e1510ec080..000000000000
--- a/net/arping/files/patch-aa
+++ /dev/null
@@ -1,25 +0,0 @@
---- Makefile.orig Sun Nov 18 19:25:43 2001
-+++ Makefile Sun Sep 29 22:46:11 2002
-@@ -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+=-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
-
- usage:
- @echo
-@@ -45,11 +45,11 @@
- all: $(TARGETS)
-
- arping.o: arping.c
-- gcc -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c
-+ ${CC} -Wall $(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) -g -o $@ $(O_arping) `libnet-config --libs` -lpcap
-
- clean:
- rm -f *.o $(TARGETS)