summaryrefslogtreecommitdiffstats
path: root/net/arping/Makefile
blob: 64c9f73f54cd4678e543b53d8006b9b97c8b8316 (plain)
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
35
36
# New ports collection makefile for:	arping
# Date Created:				1 Oct 2000
# Whom:					Roman Shterenzon <roman@xpert.com>
#
# $FreeBSD$
#

PORTNAME=	arping
PORTVERSION=	2.05
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.habets.pp.se/pub/synscan/

MAINTAINER=	gavin.atkinson@ury.york.ac.uk
COMMENT=	ARP level "ping" utility

BUILD_DEPENDS=	libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10

LDFLAGS+=	-lpcap

MAN8=		arping.8
PLIST_FILES=	sbin/arping

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}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/arping ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/arping.8 ${PREFIX}/man/man8

.include <bsd.port.mk>
OpenPOWER on IntegriCloud