summaryrefslogtreecommitdiff
path: root/net-mgmt/sendip/Makefile
blob: 68ceac220e368c092c2a68da8819c403f042c7d2 (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: joseph@randomnetworks.com

PORTNAME=	sendip
PORTVERSION=	2.5
PORTREVISION=	4
CATEGORIES=	net-mgmt
MASTER_SITES=	http://www.earth.li/projectpurple/files/

MAINTAINER=	coco@executive-computing.de
COMMENT=	Command-line tool for sending arbitrary IP packets

LICENSE=	GPLv2

BUILD_DEPENDS=	help2man:misc/help2man

USES=		gmake perl5 compiler

USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

.if ${COMPILER_TYPE} == clang
CFLAGS+=	-Wno-empty-body -Wno-constant-conversion
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip
.for slib in ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so ripng.so ntp.so \
bgp.so
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib}
.endfor

.include <bsd.port.post.mk>