summaryrefslogtreecommitdiff
path: root/net/mrtparse/Makefile
blob: b1c20a8cbe211ac865f599ea687715a075a955e5 (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
PORTNAME=	mrtparse
PORTVERSION=	2.0.0
DISTVERSIONPREFIX=	v
CATEGORIES=	net python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	olivier@FreeBSD.org
COMMENT=	MRT format data parser

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		python:3.6+ shebangfix

GH_ACCOUNT=	t2mune
GH_PROJECT=	${PORTNAME}

NO_ARCH=	yes
USE_GITHUB=	yes
USE_PYTHON=	autoplist distutils

SHEBANG_FILES=	examples/mrt2bgpdump.py \
		examples/mrt2exabgp.py

post-patch:
	@${MV} ${WRKSRC}/examples/mrt2bgpdump.py ${WRKSRC}/examples/mrt2bgpdump
	@${MV} ${WRKSRC}/examples/mrt2exabgp.py ${WRKSRC}/examples/mrt2exabgp
	@${RM} ${WRKSRC}/examples/README.rst

.include <bsd.port.mk>