summaryrefslogtreecommitdiff
path: root/net/exabgp/Makefile
blob: 7dbd4dcc09e7158bdec00102bb674098204fc9ff (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.15 2015/06/12 10:50:40 wiz Exp $

VERSION=	3.4.11
DISTNAME=	${VERSION}
PKGNAME=	exabgp-${VERSION}
PKGREVISION=	1
EGG_NAME=	exabgp-${VERSION}
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GITHUB:=Exa-Networks/exabgp/archive/}
DIST_SUBDIR=	exabgp

MAINTAINER=	pettai@NetBSD.org
HOMEPAGE=	https://github.com/Exa-Networks/exabgp/
COMMENT=	ExaBGP is a userspace BGP daemon written in python
LICENSE=	modified-bsd

WRKSRC=		${WRKDIR}/exabgp-${VERSION}

USE_TOOLS+=	perl:run

DEPENDS+=	${PYPKGPREFIX}-ipaddr>=0:../../devel/py-ipaddr
DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools

REPLACE_PERL+=		etc/exabgp/processes/dynamic-1.pl
REPLACE_PERL+=		etc/exabgp/processes/watchdog-1.pl

REPLACE_PYTHON+=	etc/exabgp/processes/healthcheck.py
REPLACE_PYTHON+=	etc/exabgp/processes/read-write.py
REPLACE_PYTHON+=	etc/exabgp/processes/stderr-1.py
REPLACE_PYTHON+=	etc/exabgp/processes/syslog-1.py
REPLACE_PYTHON+=	etc/exabgp/processes/tcp-server
REPLACE_PYTHON+=	lib/exabgp/application/bmp.py
REPLACE_PYTHON+=	lib/exabgp/application/cli.py
REPLACE_PYTHON+=	lib/exabgp/application/netlink.py
REPLACE_PYTHON+=	lib/exabgp/netlink/old.py
REPLACE_PYTHON+=	lib/exabgp/netlink/route.py
REPLACE_PYTHON+=	lib/exabgp/reactor/api/encoding.py

PYTHON_VERSIONS_INCOMPATIBLE=	33 34 # not yet ported as of 3.2.19

USE_LANGUAGES=  # none

INSTALLATION_DIRS+=	share/exabgp bin
INSTALLATION_DIRS+=	${PKGMANDIR}/man1 ${PKGMANDIR}/man5

pre-install:
	find ${WRKDIR} -name "*.orig" | xargs rm -f

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/man/exabgp.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_MAN} ${WRKSRC}/doc/man/exabgp.conf.5 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man5

.include "../../lang/python/distutils.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"