2004-04-14 05:51:01 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: arp-sk
|
|
|
|
# Date Created: Apr 14, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= arp-sk
|
2005-02-17 07:13:59 +00:00
|
|
|
PORTVERSION= 0.0.16
|
2007-01-31 14:09:55 +00:00
|
|
|
PORTREVISION= 2
|
2004-04-14 05:51:01 +00:00
|
|
|
CATEGORIES= net
|
2006-02-17 19:04:23 +00:00
|
|
|
MASTER_SITES= http://sid.rstack.org/arp-sk/files/
|
2004-04-14 05:51:01 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= A tool designed to manipulate ARP tables of all kinds of equipment
|
|
|
|
|
2007-01-31 14:09:55 +00:00
|
|
|
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
|
2004-04-14 05:51:01 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2007-01-31 14:09:55 +00:00
|
|
|
CFLAGS+= `${LIBNET_CONFIG} --cflags`
|
2004-04-14 05:51:01 +00:00
|
|
|
|
|
|
|
MAN1= arp-sk.1
|
|
|
|
PLIST_FILES= sbin/arp-sk
|
|
|
|
|
2007-01-31 14:09:55 +00:00
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
|
|
|
|
|
2004-04-14 05:51:01 +00:00
|
|
|
post-patch:
|
2007-01-31 14:09:55 +00:00
|
|
|
@${REINPLACE_CMD} -Ee \
|
|
|
|
's| -pedantic -g||; \
|
|
|
|
s|test -f \$${prefix}/include/libnet\.h|${TRUE}|; \
|
|
|
|
s|\$$NETINC/libnet\.h|libnet.h|; \
|
|
|
|
s|(NETINC=).*|\1"`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`"|; \
|
|
|
|
s|(NETLIB=).*|\1"`${LIBNET_CONFIG} --libs`"|' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2004-04-14 05:51:01 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/arp-sk ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/arp-sk.1 ${MAN1PREFIX}/man/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|