blob: c988c277df83b82e02a8c596e4d56ad763389019 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Created by: nbm
# $FreeBSD$
PORTNAME= arprelease
PORTVERSION= 1.2
PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Libnet tool to flush arp cache entries from devices (eg. routers)
LIB_DEPENDS= libnet.so:net/libnet
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/arprelease
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config
do-build:
(cd ${WRKSRC} && \
${CC} ${CFLAGS} `${LIBNET_CONFIG} --defines` \
`${LIBNET_CONFIG} --cflags` -o arprelease arprelease.c \
`${LIBNET_CONFIG} --libs`)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arprelease ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
|