summaryrefslogtreecommitdiff
path: root/net-mgmt/irrtoolset/Makefile
blob: 5431d7c330f208817256f58be1e42e4e81ee6536 (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
43
44
45
46
47
48
# New ports collection makefile for:	IRRToolSet
# Date created:				May 4th 1997
# Whom:	      				James FitzGibbon <jfitz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	irrtoolset
PORTVERSION=	4.8.4
PORTREVISION=	1
CATEGORIES=	net-mgmt
MASTER_SITES=	${MASTER_SITE_ISC} \
		ftp://ftp.ripe.net/tools/
MASTER_SITE_SUBDIR=IRRToolSet/${DISTNAME}
DISTNAME=	IRRToolSet-${PORTVERSION}

MAINTAINER=	oberman@es.net
COMMENT=	A suite of routing policy tools to interact with the IRR

PLIST_FILES=	bin/rpslcheck bin/peval bin/RtConfig

USE_BISON=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	Yes
CONFIGURE_ARGS=	--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include

MAN1=		RtConfig.1 peval.1 rpslcheck.1 IRR-Errors.1
MAN3=		librpsl.3

.include <bsd.port.pre.mk>

post-extract:
	@${RM} ${WRKSRC}/man/man1/CIDRAdvisor.1 ${WRKSRC}/man/man1/prpath.1
	@${RM} ${WRKSRC}/man/man1/prtraceroute.1 ${WRKSRC}/man/man1/?oe.1
	@${MV} ${WRKSRC}/man/man1/Errors.1 ${WRKSRC}/man/man1/IRR-Errors.1

post-patch:
	@${SED} -i.orig -e 's|#include <malloc.h>|/* #include <malloc.h> */|' \
	${WRKSRC}/src/irr/birdwhoisc.cc
	@${RM} ${WRKSRC}/man/man1/*.orig

ALL_TARGET=	depend all

.if ${OSVERSION} < 500000
BROKEN=		Does not compile on 4.x
.endif

.include <bsd.port.post.mk>