summaryrefslogtreecommitdiff
path: root/net/arp-sk/Makefile
blob: bc9ed3bfce7ad881f7db2c50332a073cecc90b8f (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
35
36
37
38
39
40
41
42
# ex:ts=8
# Ports collection makefile for:	arp-sk
# Date Created:			Apr 14, 2004
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	arp-sk
PORTVERSION=	0.0.16
PORTREVISION=	2
CATEGORIES=	net
MASTER_SITES=	http://sid.rstack.org/arp-sk/files/
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A tool designed to manipulate ARP tables of all kinds of equipment

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

GNU_CONFIGURE=	yes
CFLAGS+=	`${LIBNET_CONFIG} --cflags`

MAN1=	arp-sk.1
PLIST_FILES=	sbin/arp-sk

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 ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/man/arp-sk.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>