aboutsummaryrefslogtreecommitdiffstats
path: root/net/arprelease/Makefile
blob: fa35f43f59d90c67eec0de39d8cb220802fb4e23 (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
31
32
33
34
# New ports collection makefile for: arprelease
# Date created:     02 Aug 2001
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   arprelease
PORTVERSION=    1.2
PORTREVISION=   2
CATEGORIES= net
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    Libnet tool to flush arp cache entries from devices (eg. routers)

BUILD_DEPENDS=  ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet

WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST_FILES=    bin/arprelease

LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-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 ${PREFIX}/bin

.include <bsd.port.mk>