Lines 1-10
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= powerdns |
3 |
PORTNAME= powerdns |
4 |
DISTVERSION= 4.1.10 |
4 |
DISTVERSION= 4.2.0 |
5 |
PORTREVISION= 4 |
|
|
6 |
CATEGORIES= dns ipv6 |
5 |
CATEGORIES= dns ipv6 |
7 |
MASTER_SITES= http://downloads.powerdns.com/releases/ |
6 |
MASTER_SITES= https://downloads.powerdns.com/releases/ |
8 |
DISTNAME= pdns-${DISTVERSION} |
7 |
DISTNAME= pdns-${DISTVERSION} |
9 |
|
8 |
|
10 |
MAINTAINER= tremere@cainites.net |
9 |
MAINTAINER= tremere@cainites.net |
Lines 14-24
Link Here
|
14 |
|
13 |
|
15 |
BROKEN_sparc64= Does not compile: error: to_string is not a member of std |
14 |
BROKEN_sparc64= Does not compile: error: to_string is not a member of std |
16 |
|
15 |
|
17 |
LIB_DEPENDS= libboost_serialization.so:devel/boost-libs |
16 |
LIB_DEPENDS= libboost_serialization.so:devel/boost-libs \ |
|
|
17 |
libcurl.so:ftp/curl |
18 |
|
18 |
|
19 |
USES= compiler:c++11-lib cpe gmake libtool localbase:ldflags pathfix \ |
19 |
USES= compiler:c++11-lib cpe gmake libtool localbase:ldflags pathfix \ |
20 |
pkgconfig ssl tar:bzip2 |
20 |
pkgconfig ssl tar:bzip2 |
21 |
|
|
|
22 |
USE_LDCONFIG= YES |
21 |
USE_LDCONFIG= YES |
23 |
USE_RC_SUBR= pdns |
22 |
USE_RC_SUBR= pdns |
24 |
USE_SUBMAKE= YES |
23 |
USE_SUBMAKE= YES |
Lines 35-61
Link Here
|
35 |
SCRIPTS_ENV= CURDIR2="${.CURDIR}" DISTNAME="${DISTNAME}" MKDIR="${MKDIR}" \ |
34 |
SCRIPTS_ENV= CURDIR2="${.CURDIR}" DISTNAME="${DISTNAME}" MKDIR="${MKDIR}" \ |
36 |
POWERDNS_OPTIONS="${POWERDNS_OPTIONS}" \ |
35 |
POWERDNS_OPTIONS="${POWERDNS_OPTIONS}" \ |
37 |
WRKDIRPREFIX="${WRKDIRPREFIX}" |
36 |
WRKDIRPREFIX="${WRKDIRPREFIX}" |
38 |
|
|
|
39 |
SUB_FILES= pkg-message |
37 |
SUB_FILES= pkg-message |
40 |
|
38 |
|
41 |
OPTIONS_DEFINE= DOCS EXAMPLES LUAJIT MYDNS MYSQL OPENDBX OPENLDAP \ |
39 |
OPTIONS_DEFINE= DOCS EXAMPLES GEOIP LUABACKEND LUAJIT MYDNS \ |
42 |
OPTALGO PGSQL PROTOBUF REMOTE SQLITE3 TINYDNS TOOLS \ |
40 |
MYSQL OPENDBX OPENLDAP PGSQL PROTOBUF REMOTE \ |
43 |
UNIXODBC |
41 |
SQLITE3 TINYDNS TOOLS UNIXODBC |
44 |
OPTIONS_DEFAULT= MYSQL PGSQL SQLITE3 |
42 |
OPTIONS_DEFAULT= MYSQL PGSQL SQLITE3 |
45 |
|
43 |
OPTIONS_GROUP= GEOIPOPT REMOTEOPT |
46 |
OPTIONS_GROUP= EXPERIMENTAL REMOTEOPT |
|
|
47 |
OPTIONS_GROUP_EXPERIMENTAL= LUABACKEND |
48 |
OPTIONS_GROUP_REMOTEOPT= ZEROMQ |
44 |
OPTIONS_GROUP_REMOTEOPT= ZEROMQ |
49 |
|
45 |
|
50 |
OPTIONS_SUB= yes |
46 |
OPTIONS_SUB= yes |
51 |
|
47 |
|
52 |
LUABACKEND_DESC= Lua backend |
48 |
GEOIPOPT_DESC= GeoIP DB options |
|
|
49 |
GEOIP_DESC= GeoIP backend (GeoIP2 DB) |
50 |
LUABACKEND_DESC= Lua2 backend |
53 |
LUAJIT_DESC= Use LuaJIT instead of Lua |
51 |
LUAJIT_DESC= Use LuaJIT instead of Lua |
54 |
MYDNS_DESC= MyDNS backend |
52 |
MYDNS_DESC= MyDNS backend |
55 |
MYSQL_DESC= MySQL backend |
53 |
MYSQL_DESC= MySQL backend |
56 |
OPENDBX_DESC= OpenDBX backend |
54 |
OPENDBX_DESC= OpenDBX backend |
57 |
OPENLDAP_DESC= OpenLDAP backend |
55 |
OPENLDAP_DESC= OpenLDAP backend |
58 |
OPTALGO_DESC= Enable optional algorithms (12, 15 & 16) |
|
|
59 |
PGSQL_DESC= PostgreSQL backend |
56 |
PGSQL_DESC= PostgreSQL backend |
60 |
PROTOBUF_DESC= Protobuf support |
57 |
PROTOBUF_DESC= Protobuf support |
61 |
REMOTEOPT_DESC= Remote backend connectors |
58 |
REMOTEOPT_DESC= Remote backend connectors |
Lines 65-75
Link Here
|
65 |
TOOLS_DESC= Build extra tools |
62 |
TOOLS_DESC= Build extra tools |
66 |
ZEROMQ_DESC= Enable ZeroMQ connector (Implies REMOTE enabled) |
63 |
ZEROMQ_DESC= Enable ZeroMQ connector (Implies REMOTE enabled) |
67 |
|
64 |
|
68 |
LUABACKEND_VARS= MODULES+=lua |
65 |
GEOIP_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb \ |
|
|
66 |
libyaml-cpp.so:devel/yaml-cpp |
67 |
GEOIP_VARS= MODULES+=geoip |
69 |
|
68 |
|
|
|
69 |
LUABACKEND_VARS= MODULES+=lua2 |
70 |
|
70 |
LUAJIT_LIB_DEPENDS= libluajit-5.1.so.2:lang/luajit |
71 |
LUAJIT_LIB_DEPENDS= libluajit-5.1.so.2:lang/luajit |
71 |
LUAJIT_USES_OFF= lua |
72 |
LUAJIT_USES_OFF= lua |
72 |
LUAJIT_CONFIGURE_WITH= luajit |
73 |
LUAJIT_CONFIGURE_ON= --with-lua=luajit |
73 |
|
74 |
|
74 |
MYDNS_USES= mysql |
75 |
MYDNS_USES= mysql |
75 |
MYDNS_CONFIGURE_ON= --with-mysql=${LOCALBASE} |
76 |
MYDNS_CONFIGURE_ON= --with-mysql=${LOCALBASE} |
Lines 87-99
Link Here
|
87 |
OPENLDAP_CXXFLAGS= -DLDAP_DEPRECATED=1 |
88 |
OPENLDAP_CXXFLAGS= -DLDAP_DEPRECATED=1 |
88 |
OPENLDAP_VARS= MODULES+=ldap |
89 |
OPENLDAP_VARS= MODULES+=ldap |
89 |
|
90 |
|
90 |
OPTALGO_LIB_DEPENDS= libbotan-2.so:security/botan2 \ |
|
|
91 |
libdecaf.so:security/libdecaf \ |
92 |
libsodium.so:security/libsodium |
93 |
OPTALGO_CONFIGURE_ON= --enable-botan \ |
94 |
--enable-libdecaf \ |
95 |
--enable-libsodium |
96 |
|
97 |
PGSQL_USES= pgsql |
91 |
PGSQL_USES= pgsql |
98 |
PGSQL_CONFIGURE_ON= --with-pg-config=${LOCALBASE}/bin/pg_config |
92 |
PGSQL_CONFIGURE_ON= --with-pg-config=${LOCALBASE}/bin/pg_config |
99 |
PGSQL_VARS= MODULES+=gpgsql |
93 |
PGSQL_VARS= MODULES+=gpgsql |
Lines 120-128
Link Here
|
120 |
ZEROMQ_LIB_DEPENDS= libzmq.so:net/libzmq4 |
114 |
ZEROMQ_LIB_DEPENDS= libzmq.so:net/libzmq4 |
121 |
ZEROMQ_CONFIGURE_ON= --enable-remotebackend-zeromq |
115 |
ZEROMQ_CONFIGURE_ON= --enable-remotebackend-zeromq |
122 |
|
116 |
|
|
|
117 |
.include <bsd.port.pre.mk> |
118 |
|
119 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} != openssl111 |
120 |
CONFIGURE_ARGS+= --with-libdecaf \ |
121 |
--with-libsodium |
122 |
LIB_DEPENDS+= libdecaf.so:security/libdecaf \ |
123 |
libsodium.so:security/libsodium |
124 |
.endif |
125 |
|
123 |
post-install:: |
126 |
post-install:: |
124 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
127 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
125 |
@${STAGEDIR}${LOCALBASE}/sbin/pdns_server --module-dir=${STAGEDIR}${LOCALBASE}/lib/pdns --launch="pipe bind ${MODULES}" --config > ${STAGEDIR}${EXAMPLESDIR}/pdns.conf |
128 |
@${STAGEDIR}${LOCALBASE}/sbin/pdns_server --module-dir=${STAGEDIR}${LOCALBASE}/lib/pdns --launch="pipe bind ${MODULES}" --config > ${STAGEDIR}${EXAMPLESDIR}/pdns.conf |
126 |
@${REINPLACE_CMD} -e 's;${STAGEDIR};;' -i '' ${STAGEDIR}${EXAMPLESDIR}/pdns.conf |
129 |
@${REINPLACE_CMD} -e 's;${STAGEDIR};;' -i '' ${STAGEDIR}${EXAMPLESDIR}/pdns.conf |
127 |
|
130 |
|
128 |
.include <bsd.port.mk> |
131 |
.include <bsd.port.post.mk> |