2000-10-16 14:27:46 +00:00
|
|
|
# New ports collection makefile for: arping
|
|
|
|
# Date Created: 1 Oct 2000
|
|
|
|
# Whom: Roman Shterenzon <roman@xpert.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= arping
|
2006-05-23 04:18:58 +00:00
|
|
|
PORTVERSION= 2.05
|
2000-10-16 14:27:46 +00:00
|
|
|
CATEGORIES= net
|
2003-11-02 11:44:30 +00:00
|
|
|
MASTER_SITES= ftp://ftp.habets.pp.se/pub/synscan/
|
2000-10-16 14:27:46 +00:00
|
|
|
|
2006-05-26 16:26:07 +00:00
|
|
|
MAINTAINER= gavin.atkinson@ury.york.ac.uk
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= ARP level "ping" utility
|
2000-10-16 14:27:46 +00:00
|
|
|
|
2005-11-14 17:07:08 +00:00
|
|
|
BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
|
2000-10-16 14:27:46 +00:00
|
|
|
|
2003-04-08 12:09:49 +00:00
|
|
|
LDFLAGS+= -lpcap
|
|
|
|
|
2000-10-16 14:27:46 +00:00
|
|
|
MAN8= arping.8
|
2004-02-06 13:12:53 +00:00
|
|
|
PLIST_FILES= sbin/arping
|
2000-10-16 14:27:46 +00:00
|
|
|
|
2003-04-08 12:09:49 +00:00
|
|
|
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}
|
|
|
|
|
2000-10-16 14:27:46 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/arping ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/arping.8 ${PREFIX}/man/man8
|
|
|
|
|
2005-08-08 07:46:42 +00:00
|
|
|
.include <bsd.port.mk>
|