summaryrefslogtreecommitdiffstats
path: root/dns/bundy/Makefile
blob: ccca8c7c5b25e900c3b6cba60773cc5c24c6e579 (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
59
60
61
62
63
64
65
66
# Created by: Jeremy C. Reed
# $FreeBSD$

PORTNAME=	bundy
PORTVERSION=	0.20160125
PORTREVISION=	6
CATEGORIES=	dns
MASTER_SITES=	LOCAL/mat/bundy SF/boost/boost/1.55.0:boost
DISTFILES+=	boost_1_55_0.tar.bz2:boost

MAINTAINER=	mat@FreeBSD.org
COMMENT=	Bundy DNS server suite

LICENSE=	ISC
LICENSE_GROUPS=	FSF GPL OSI
LICENSE_NAME=	ISC License
LICENSE_FILE=	${WRKSRC}/COPYING
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

BUILD_DEPENDS=	${LOCALBASE}/include/log4cplus/logger.h:devel/log4cplus \
		sqlite3>=3.3.9:databases/sqlite3 \
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/${PYTHON_PKGNAMEPREFIX}sqlite3
LIB_DEPENDS=	libbotan-1.10.so:security/botan110 \
		liblog4cplus.so:devel/log4cplus \
		libicuuc.so:devel/icu \
		libgmp.so:math/gmp \
		libsqlite3.so:databases/sqlite3
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/${PYTHON_PKGNAMEPREFIX}sqlite3

USE_GITHUB=	yes
GH_ACCOUNT=	bundy-dns
GH_TAGNAME=	d310c5d

USE_OPENSSL=	yes

USES=	compiler:c++11-lang pathfix pkgconfig libtool python:3 autoreconf

USE_LDCONFIG=	yes
PATHFIX_MAKEFILEIN=	Makefile.am
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--localstatedir=/var	\
		--without-werror \
		--enable-install-configurations
INSTALL_TARGET=	install-strip

CPPFLAGS+=	-I${WRKDIR}/boost_1_55_0

OPTIONS_DEFINE=	DOCS

PLIST_SUB=	PYTHON_SUFFIX=cpython-${PYTHON_SUFFIX}

post-install:
	${MV} ${STAGEDIR}${ETCDIR}/cmdctl-certfile.pem ${STAGEDIR}${ETCDIR}/cmdctl-certfile.pem.sample
	${MV} ${STAGEDIR}${ETCDIR}/cmdctl-keyfile.pem ${STAGEDIR}${ETCDIR}/cmdctl-keyfile.pem.sample

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 3500
PYOEXTENSION=	pyo
.else
PYOEXTENSION=	opt-1.pyc
.endif

PLIST_SUB+=	PYOEXTENSION=${PYOEXTENSION}

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud