aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/sing/Makefile
blob: 2cc3343c357dedea095c5d642c1791192fec00c3 (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
# Created by: Roman Shterenzon <roman@xpert.com>
# $FreeBSD$

PORTNAME=	sing
PORTVERSION=	1.1
PORTREVISION=	2
CATEGORIES=	net-mgmt security
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20sources/${PORTVERSION}
DISTNAME=	SING-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tool for sending customized ICMP packets

LICENSE=	GPLv2

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

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-libpcap-prefix=/usr
CONFIGURE_ENV=	LIBS="`${LIBNET_CONFIG} --libs`"
CPPFLAGS+=	`${LIBNET_CONFIG} --defines` \
		`${LIBNET_CONFIG} --cflags`
PLIST_FILES=	sbin/sing \
		man/man8/sing.8.gz

LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet10-config

post-extract:
	@${RM} -rf ${WRKSRC}/libpcap-* ;\
	${RM} -rf ${WRKSRC}/Libnet-*

.include <bsd.port.mk>