02a5f6113a
- Add INSTALL_TARGET=install-strip Approved by: portmgr (implicit, bump unstaged port)
38 lines
986 B
Makefile
38 lines
986 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= arp-sk
|
|
PORTVERSION= 0.0.16
|
|
PORTREVISION= 4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://sid.rstack.org/arp-sk/files/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tool designed to manipulate ARP tables of all kinds of equipment
|
|
|
|
LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CFLAGS+= `${LIBNET_CONFIG} --cflags`
|
|
|
|
PLIST_FILES= sbin/arp-sk man/man1/arp-sk.1.gz
|
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
|
|
|
|
post-patch:
|
|
@${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}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/arp-sk ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/man/arp-sk.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|