View | Details | Raw Unified | Return to bug 194057 | Differences between
and this patch

Collapse All | Expand All

(-)b/.gitignore (+4 lines)
Lines 1-3 Link Here
1
/distfiles
1
/distfiles
2
/packages
2
/packages
3
/*/*/work
3
/*/*/work
4
/*/*/Makefile.local
5
.poudriere.stamp
6
INDEX-10
7
INDEX-10.db
(-)b/dns/powerdns-devel/Makefile (-27 / +10 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD: head/dns/powerdns-devel/Makefile 366392 2014-08-28 10:58:05Z marino $
2
2
3
PORTNAME=	powerdns
3
PORTNAME=	powerdns
4
PORTVERSION=	3.3.1
4
PORTVERSION=	3.4.0
5
PORTREVISION=	5
6
PORTEPOCH=	1
5
PORTEPOCH=	1
7
CATEGORIES=	dns ipv6
6
CATEGORIES=	dns ipv6
8
PKGNAMESUFFIX=	-devel
7
PKGNAMESUFFIX=	-devel
Lines 20-33 LIB_DEPENDS= libboost_serialization.so:${PORTSDIR}/devel/boost-libs Link Here
20
USE_GITHUB=	YES
19
USE_GITHUB=	YES
21
GH_ACCOUNT=	PowerDNS
20
GH_ACCOUNT=	PowerDNS
22
GH_PROJECT=	pdns
21
GH_PROJECT=	pdns
23
GH_TAGNAME=	auth-3.3.1
22
GH_COMMIT=	91da674
24
GH_COMMIT=	8e1c18b
23
GH_TAGNAME=	auth-3.4.0
25
24
26
CONFLICTS=	powerdns-[2-3].[0-9]*
25
CONFLICTS=	powerdns-[2-3].[0-9]*
27
26
28
USES=		bison gmake libtool lua:51 pkgconfig
27
USES=		bison gmake libtool lua:51 pkgconfig
29
USE_SUBMAKE=	YES
28
USE_SUBMAKE=	YES
30
USE_AUTOTOOLS=	autoconf:env automake:env libtoolize:env
29
USE_AUTOTOOLS=	autoconf:env automake:env libtoolize:env
30
USE_LDCONFIG=	YES
31
GNU_CONFIGURE=	YES
31
GNU_CONFIGURE=	YES
32
INSTALL_TARGET=	install-strip
32
INSTALL_TARGET=	install-strip
33
CXXFLAGS+=	-I${LOCALBASE}/include
33
CXXFLAGS+=	-I${LOCALBASE}/include
Lines 50-57 USE_RC_SUBR+= pdns Link Here
50
OPTIONS_DEFINE=	GEO MYSQL MYSQL_LOCAL OPENDBX OPENLDAP OPENLDAP_LOCAL \
50
OPTIONS_DEFINE=	GEO MYSQL MYSQL_LOCAL OPENDBX OPENLDAP OPENLDAP_LOCAL \
51
		PGSQL PGSQL_LOCAL POLARSSL SQLITE3 TOOLS
51
		PGSQL PGSQL_LOCAL POLARSSL SQLITE3 TOOLS
52
OPTIONS_GROUP=	DNSSEC EXPERIMENTAL
52
OPTIONS_GROUP=	DNSSEC EXPERIMENTAL
53
OPTIONS_GROUP_DNSSEC=	BOTAN110 CRYPTOPP
53
OPTIONS_GROUP_DNSSEC=	BOTAN110
54
OPTIONS_GROUP_EXPERIMENTAL=	LUA MYDNS REMOTE REMOTE_HTTP TINYDNS
54
OPTIONS_GROUP_EXPERIMENTAL=	LUA MYDNS REMOTE TINYDNS
55
55
56
PGSQL_DESC=		PostgreSQL backend
56
PGSQL_DESC=		PostgreSQL backend
57
PGSQL_LOCAL_DESC=	RUN_DEPEND on PostgreSQL server
57
PGSQL_LOCAL_DESC=	RUN_DEPEND on PostgreSQL server
Lines 65-76 GEO_DESC= Geo backend Link Here
65
DNSSEC_DESC=		Enable extra DNSSEC options
65
DNSSEC_DESC=		Enable extra DNSSEC options
66
EXPERIMENTAL_DESC=	Experimental backends
66
EXPERIMENTAL_DESC=	Experimental backends
67
BOTAN110_DESC=		Faster signing + ECDSA & GOST algorithms
67
BOTAN110_DESC=		Faster signing + ECDSA & GOST algorithms
68
CRYPTOPP_DESC=		ECDSA algorithms
69
POLARSSL_DESC=		Use embedded PolarSSL
68
POLARSSL_DESC=		Use embedded PolarSSL
70
LUA_DESC=		Lua backend
69
LUA_DESC=		Lua backend
71
MYDNS_DESC=		MyDNS backend
70
MYDNS_DESC=		MyDNS backend
72
REMOTE_DESC=		Remote backend
71
REMOTE_DESC=		Remote backend
73
REMOTE_HTTP_DESC=	Enable HTTP for the Remote backend
74
TINYDNS_DESC=		TinyDNS backend
72
TINYDNS_DESC=		TinyDNS backend
75
TOOLS_DESC=		Build extra tools
73
TOOLS_DESC=		Build extra tools
76
74
Lines 85-92 TOOLS_CONFIGURE_ON= --enable-tools Link Here
85
83
86
PGSQL_CONFIGURE_ON=	--with-pgsql=${LOCALBASE}
84
PGSQL_CONFIGURE_ON=	--with-pgsql=${LOCALBASE}
87
PGSQL_CONFIGURE_OFF=	--without-pgsql
85
PGSQL_CONFIGURE_OFF=	--without-pgsql
88
PGSQL_USE=		PGSQL=YES
86
PGSQL_USE=		USES+=pgsql
89
PGSQL_LOCAL_USE=	PGSQL=server
87
PGSQL_LOCAL_USE=	WANT_PGSQL=server
90
88
91
MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
89
MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
92
MYSQL_CONFIGURE_OFF=	--without-mysql
90
MYSQL_CONFIGURE_OFF=	--without-mysql
Lines 101-109 OPENLDAP_CXXFLAGS= -DLDAP_DEPRECATED=1 Link Here
101
OPENLDAP_USE=		OPENLDAP=YES
99
OPENLDAP_USE=		OPENLDAP=YES
102
OPENLDAP_LOCAL_RUN_DEPENDS=	openldap-server>=0:${PORTSDIR}/net/openldap24-server
100
OPENLDAP_LOCAL_RUN_DEPENDS=	openldap-server>=0:${PORTSDIR}/net/openldap24-server
103
101
104
REMOTE_HTTP_CONFIGURE_ON=	--enable-remotebackend-http
105
REMOTE_HTTP_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
106
107
SQLITE3_USE=	SQLITE=3
102
SQLITE3_USE=	SQLITE=3
108
103
109
OPENDBX_LIB_DEPENDS=	libopendbx.so:${PORTSDIR}/databases/opendbx
104
OPENDBX_LIB_DEPENDS=	libopendbx.so:${PORTSDIR}/databases/opendbx
Lines 114-120 BOTAN110_LIB_DEPENDS= libbotan-1.10.so:${PORTSDIR}/security/botan110 Link Here
114
TINYDNS_LIB_DEPENDS=		libcdb.so:${PORTSDIR}/databases/tinycdb
109
TINYDNS_LIB_DEPENDS=		libcdb.so:${PORTSDIR}/databases/tinycdb
115
TINYDNS_CONFIGURE_ON=		CDB_LIBS="-L${LOCALBASE}/lib -lcdb" CDB_CFLAGS="-I${LOCALBASE}/include"
110
TINYDNS_CONFIGURE_ON=		CDB_LIBS="-L${LOCALBASE}/lib -lcdb" CDB_CFLAGS="-I${LOCALBASE}/include"
116
111
117
CRYPTOPP_CONFIGURE_ON=	--enable-cryptopp
112
DOCSDIR=		${PREFIX}/share/doc/pdns
118
113
119
.include <bsd.port.options.mk>
114
.include <bsd.port.options.mk>
120
115
Lines 182-195 CONFIGURE_ARGS+= --without-system-polarssl Link Here
182
LIB_DEPENDS+=		libpolarssl.so:${PORTSDIR}/security/polarssl
177
LIB_DEPENDS+=		libpolarssl.so:${PORTSDIR}/security/polarssl
183
.endif
178
.endif
184
179
185
.if ${PORT_OPTIONS:MCRYPTOPP}
186
.	if exists(${LOCALBASE}/lib/libcryptopp.so)
187
LIB_DEPENDS+=		libcryptopp.so:${PORTSDIR}/security/cryptopp
188
.	else
189
BUILD_DEPENDS+=		${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp
190
.	endif
191
.endif
192
193
pre-patch:
180
pre-patch:
194
	@${REINPLACE_CMD} -e "s;/bin/bash;/usr/bin/env bash;" \
181
	@${REINPLACE_CMD} -e "s;/bin/bash;/usr/bin/env bash;" \
195
		-e "s;sed -r;sed -E -e;g" \
182
		-e "s;sed -r;sed -E -e;g" \
Lines 213-222 pre-patch: Link Here
213
	@${REINPLACE_CMD} -E -e 's;(PGSQL_inc_check="\$$withval/include/pgsql)";\1 \$$withval/include";' \
200
	@${REINPLACE_CMD} -E -e 's;(PGSQL_inc_check="\$$withval/include/pgsql)";\1 \$$withval/include";' \
214
		${WRKSRC}/configure.ac
201
		${WRKSRC}/configure.ac
215
.endif
202
.endif
216
.if ${PORT_OPTIONS:MREMOTE_HTTP}
217
	@${REINPLACE_CMD} -E -e 's;-module -avoid-version;-module -avoid-version \$$(LIBCURL_LIBS);' \
218
		${WRKSRC}/modules/remotebackend/Makefile.am
219
.endif
220
203
221
pre-configure:
204
pre-configure:
222
	(cd ${WRKSRC} && ${WRKSRC}/build-scripts/set-version-auth git-${GH_TAGNAME} 0.0.${GH_TAGNAME} 0.0.${GH_TAGNAME} && ${WRKSRC}/bootstrap)
205
	(cd ${WRKSRC} && ${WRKSRC}/build-scripts/set-version-auth git-${GH_TAGNAME} 0.0.${GH_TAGNAME} 0.0.${GH_TAGNAME} && ${WRKSRC}/bootstrap)
(-)b/dns/powerdns-devel/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (auth-3.3.1.tar.gz) = 1ea90c58ffcb0c048bc952b3edf234a763f43fcb35adefe5b4448e185f0568c0
1
SHA256 (auth-3.4.0.tar.gz) = bbade4342ccd83d59923a5b5e5cec5ef1af5397f5d173c0e179dbd7d5a819834
2
SIZE (auth-3.3.1.tar.gz) = 1809736
2
SIZE (auth-3.4.0.tar.gz) = 1978809
(-)b/dns/powerdns-devel/files/pdns.conf (-142 / +1175 lines)
Lines 1-155 Link Here
1
# MySQL
1
# Autogenerated configuration file template
2
#launch=gmysql
2
#################################
3
#gmysql-host=127.0.0.1
3
# allow-axfr-ips	Allow zonetransfers only to these subnets
4
#gmysql-dbname=pdns
4
#
5
#gmysql-user=pdns
5
# allow-axfr-ips=127.0.0.0/8,::1
6
#gmysql-password=pdns
6
7
7
#################################
8
# PostgreSQL
8
# allow-dnsupdate-from	A global setting to allow DNS updates from these IP ranges.
9
#launch=gpgsql
9
#
10
#gpgsql-host=127.0.0.1
10
# allow-dnsupdate-from=127.0.0.0/8,::1
11
#gpgsql-dbname=pdns
11
12
#gpgsql-user=pdns
12
#################################
13
#gpgsql-password=pdns
13
# allow-recursion	List of subnets that are allowed to recurse
14
14
#
15
# SQLite 2
15
# allow-recursion=0.0.0.0/0
16
#launch=gsqlite
16
17
#gsqlite-database=<path to your SQLite database>
17
#################################
18
18
# also-notify	When notifying a domain, also notify these nameservers
19
# SQLite 3
19
#
20
#launch=gsqlite3
20
# also-notify=
21
#gsqlite3-database=<path to your SQLite database>
21
22
22
#################################
23
# LDAP (check http://www.linuxnetworks.de for more information)
23
# any-to-tcp	Answer ANY queries with tc=1, shunting to TCP
24
#launch=ldap
24
#
25
#ldap-host (default "127.0.0.1:389")
25
# any-to-tcp=no
26
#ldap-starttls (default "no")
26
27
#ldap-basedn (default "")
27
#################################
28
#ldap-binddn (default "")
28
# cache-ttl	Seconds to store packets in the PacketCache
29
#ldap-secret (default "")
29
#
30
#ldap-method (default "simple")
30
# cache-ttl=20
31
#ldap-filter-axfr (default "(:target:)" )
31
32
#ldap-filter-lookup (default "(:target:)" )
32
#################################
33
33
# carbon-interval	Number of seconds between carbon (graphite) updates
34
# OpenDBX (check http://www.linuxnetworks.de for more information)
34
#
35
#launch=opendbx
35
# carbon-interval=30
36
#opendbx-backend (default "mysql")
36
37
#opendbx-host-read (default "127.0.0.1")
37
#################################
38
#opendbx-host-write (default "127.0.0.1")
38
# carbon-ourname	If set, overrides our reported hostname for carbon stats
39
#opendbx-database (default "powerdns")
39
#
40
#opendbx-username (default "powerdns")
40
# carbon-ourname=
41
#opendbx-password (default "")
41
42
#################################
43
# carbon-server	If set, send metrics in carbon (graphite) format to this server
44
#
45
# carbon-server=
46
47
#################################
48
# chroot	If set, chroot to this directory for more security
49
#
50
# chroot=
51
52
#################################
53
# config-dir	Location of configuration directory (pdns.conf)
54
#
55
# config-dir=/usr/local/etc/pdns
56
57
#################################
58
# config-name	Name of this virtual configuration - will rename the binary image
59
#
60
# config-name=
61
62
#################################
63
# control-console	Debugging switch - don't use
64
#
65
# control-console=no
66
67
#################################
68
# daemon	Operate as a daemon
69
#
70
# daemon=no
71
72
#################################
73
# default-ksk-algorithms	Default KSK algorithms
74
#
75
# default-ksk-algorithms=rsasha256
76
77
#################################
78
# default-ksk-size	Default KSK size (0 means default)
79
#
80
# default-ksk-size=0
81
82
#################################
83
# default-soa-mail	mail address to insert in the SOA record if none set in the backend
84
#
85
# default-soa-mail=
86
87
#################################
88
# default-soa-name	name to insert in the SOA record if none set in the backend
89
#
90
# default-soa-name=a.misconfigured.powerdns.server
91
92
#################################
93
# default-ttl	Seconds a result is valid if not set otherwise
94
#
95
# default-ttl=3600
96
97
#################################
98
# default-zsk-algorithms	Default ZSK algorithms
99
#
100
# default-zsk-algorithms=rsasha256
101
102
#################################
103
# default-zsk-size	Default ZSK size (0 means default)
104
#
105
# default-zsk-size=0
106
107
#################################
108
# direct-dnskey	Fetch DNSKEY RRs from backend during DNSKEY synthesis
109
#
110
# direct-dnskey=no
111
112
#################################
113
# disable-axfr	Disable zonetransfers but do allow TCP queries
114
#
115
# disable-axfr=no
116
117
#################################
118
# disable-axfr-rectify	Disable the rectify step during an outgoing AXFR. Only required for regression testing.
119
#
120
# disable-axfr-rectify=no
121
122
#################################
123
# disable-tcp	Do not listen to TCP queries
124
#
125
# disable-tcp=no
126
127
#################################
128
# distributor-threads	Default number of Distributor (backend) threads to start
129
#
130
# distributor-threads=3
131
132
#################################
133
# do-ipv6-additional-processing	Do AAAA additional processing
134
#
135
# do-ipv6-additional-processing=yes
136
137
#################################
138
# edns-subnet-processing	If we should act on EDNS Subnet options
139
#
140
# edns-subnet-processing=no
141
142
#################################
143
# entropy-source	If set, read entropy from this file
144
#
145
# entropy-source=/dev/urandom
146
147
#################################
148
# experimental-api-readonly	If the JSON API should disallow data modification
149
#
150
# experimental-api-readonly=no
151
152
#################################
153
# experimental-dname-processing	If we should support DNAME records
154
#
155
# experimental-dname-processing=no
156
157
#################################
158
# experimental-dnsupdate	Enable/Disable DNS update (RFC2136) support. Default is no.
159
#
160
# experimental-dnsupdate=no
161
162
#################################
163
# experimental-json-interface	If the webserver should serve JSON data
164
#
165
# experimental-json-interface=no
166
167
#################################
168
# experimental-logfile	Filename of the log file for JSON parser
169
#
170
# experimental-logfile=/var/log/pdns.log
171
172
#################################
173
# forward-dnsupdate	A global setting to allow DNS update packages that are for a Slave domain, to be forwarded to the master.
174
#
175
# forward-dnsupdate=yes
176
177
#################################
178
# geo-ip-map-zonefile	path to the rbldnsd format zonefile
179
#
180
# geo-ip-map-zonefile=zz.countries.nerd.dk.rbldnsd
181
182
#################################
183
# geo-maps	list of paths to director maps or directories containing director map files
184
#
185
# geo-maps=
186
187
#################################
188
# geo-ns-records	targets of the NS records, comma separated.
189
#
190
# geo-ns-records=
191
192
#################################
193
# geo-ns-ttl	TTL value for NS records
194
#
195
# geo-ns-ttl=86400
196
197
#################################
198
# geo-soa-values	values of the SOA master nameserver and hostmaster fields, comma separated
199
#
200
# geo-soa-values=
201
202
#################################
203
# geo-ttl	TTL value for geo records
204
#
205
# geo-ttl=3600
206
207
#################################
208
# geo-zone	zonename to be served
209
#
210
# geo-zone=
211
212
#################################
213
# gmysql-activate-domain-key-query	
214
#
215
# gmysql-activate-domain-key-query=update cryptokeys set active=1 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d
216
217
#################################
218
# gmysql-add-domain-key-query	
219
#
220
# gmysql-add-domain-key-query=insert into cryptokeys (domain_id, flags, active, content) select id, %d, %d, '%s' from domains where name='%s'
221
222
#################################
223
# gmysql-any-id-query	Any with ID query
224
#
225
# gmysql-any-id-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='%s' and domain_id=%d
226
227
#################################
228
# gmysql-any-query	Any query
229
#
230
# gmysql-any-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='%s'
231
232
#################################
233
# gmysql-basic-query	Basic query
234
#
235
# gmysql-basic-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='%s' and name='%s'
236
237
#################################
238
# gmysql-clear-domain-all-keys-query	
239
#
240
# gmysql-clear-domain-all-keys-query=delete from cryptokeys where domain_id=(select id from domains where name='%s')
241
242
#################################
243
# gmysql-clear-domain-all-metadata-query	
244
#
245
# gmysql-clear-domain-all-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name='%s')
246
247
#################################
248
# gmysql-clear-domain-metadata-query	
249
#
250
# gmysql-clear-domain-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name='%s') and domainmetadata.kind='%s'
251
252
#################################
253
# gmysql-dbname	Pdns backend database name to connect to
254
#
255
# gmysql-dbname=powerdns
256
257
#################################
258
# gmysql-deactivate-domain-key-query	
259
#
260
# gmysql-deactivate-domain-key-query=update cryptokeys set active=0 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d
261
262
#################################
263
# gmysql-delete-comment-rrset-query	
264
#
265
# gmysql-delete-comment-rrset-query=DELETE FROM comments WHERE domain_id=%d AND name='%s' AND type='%s'
266
267
#################################
268
# gmysql-delete-comments-query	
269
#
270
# gmysql-delete-comments-query=DELETE FROM comments WHERE domain_id=%d
271
272
#################################
273
# gmysql-delete-domain-query	
274
#
275
# gmysql-delete-domain-query=delete from domains where name='%s'
276
277
#################################
278
# gmysql-delete-empty-non-terminal-query	delete empty non-terminal from zone
279
#
280
# gmysql-delete-empty-non-terminal-query=delete from records where domain_id='%d' and name='%s' and type is null
281
282
#################################
283
# gmysql-delete-names-query	
284
#
285
# gmysql-delete-names-query=delete from records where domain_id = %d and name='%s'
286
287
#################################
288
# gmysql-delete-rrset-query	
289
#
290
# gmysql-delete-rrset-query=delete from records where domain_id=%d and name='%s' and type='%s'
291
292
#################################
293
# gmysql-delete-tsig-key-query	
294
#
295
# gmysql-delete-tsig-key-query=delete from tsigkeys where name='%s'
296
297
#################################
298
# gmysql-delete-zone-query	
299
#
300
# gmysql-delete-zone-query=delete from records where domain_id=%d
301
302
#################################
303
# gmysql-dnssec	Enable DNSSEC processing
304
#
305
# gmysql-dnssec=no
306
307
#################################
308
# gmysql-get-all-domain-metadata-query	
309
#
310
# gmysql-get-all-domain-metadata-query=select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s'
311
312
#################################
313
# gmysql-get-all-domains-query	Retrieve all domains
314
#
315
# gmysql-get-all-domains-query=select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=0 OR %d
316
317
#################################
318
# gmysql-get-domain-metadata-query	
319
#
320
# gmysql-get-domain-metadata-query=select content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s' and domainmetadata.kind='%s'
321
322
#################################
323
# gmysql-get-order-after-query	DNSSEC Ordering Query, after
324
#
325
# gmysql-get-order-after-query=select min(ordername) from records where ordername > '%s' and domain_id=%d and disabled=0 and ordername is not null
326
327
#################################
328
# gmysql-get-order-before-query	DNSSEC Ordering Query, before
329
#
330
# gmysql-get-order-before-query=select ordername, name from records where ordername <= '%s' and domain_id=%d and disabled=0 and ordername is not null order by 1 desc limit 1
331
332
#################################
333
# gmysql-get-order-first-query	DNSSEC Ordering Query, first
334
#
335
# gmysql-get-order-first-query=select ordername, name from records where domain_id=%d and disabled=0 and ordername is not null order by 1 asc limit 1
336
337
#################################
338
# gmysql-get-order-last-query	DNSSEC Ordering Query, last
339
#
340
# gmysql-get-order-last-query=select ordername, name from records where ordername != '' and domain_id=%d and disabled=0 and ordername is not null order by 1 desc limit 1
341
342
#################################
343
# gmysql-get-tsig-key-query	
344
#
345
# gmysql-get-tsig-key-query=select algorithm, secret from tsigkeys where name='%s'
346
347
#################################
348
# gmysql-get-tsig-keys-query	
349
#
350
# gmysql-get-tsig-keys-query=select name,algorithm, secret from tsigkeys
351
352
#################################
353
# gmysql-group	Pdns backend MySQL 'group' to connect as
354
#
355
# gmysql-group=client
356
357
#################################
358
# gmysql-host	Database backend host to connect to
359
#
360
# gmysql-host=
361
362
#################################
363
# gmysql-id-query	Basic with ID query
364
#
365
# gmysql-id-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='%s' and name='%s' and domain_id=%d
366
367
#################################
368
# gmysql-info-all-master-query	
369
#
370
# gmysql-info-all-master-query=select id,name,master,last_check,notified_serial,type from domains where type='MASTER'
371
372
#################################
373
# gmysql-info-all-slaves-query	
374
#
375
# gmysql-info-all-slaves-query=select id,name,master,last_check,type from domains where type='SLAVE'
376
377
#################################
378
# gmysql-info-zone-query	
379
#
380
# gmysql-info-zone-query=select id,name,master,last_check,notified_serial,type from domains where name='%s'
381
382
#################################
383
# gmysql-innodb-read-committed	Use InnoDB READ-COMMITTED transaction isolation level
384
#
385
# gmysql-innodb-read-committed=yes
386
387
#################################
388
# gmysql-insert-comment-query	
389
#
390
# gmysql-insert-comment-query=INSERT INTO comments (domain_id, name, type, modified_at, account, comment) VALUES (%d, '%s', '%s', %d, '%s', '%s')
391
392
#################################
393
# gmysql-insert-empty-non-terminal-query	insert empty non-terminal in zone
394
#
395
# gmysql-insert-empty-non-terminal-query=insert into records (domain_id,name,type,disabled,auth) values ('%d','%s',null,0,'1')
396
397
#################################
398
# gmysql-insert-ent-order-query	insert empty non-terminal in zone
399
#
400
# gmysql-insert-ent-order-query=insert into records (type,domain_id,disabled,name,ordername,auth) values (null,'%d',0,'%s','%s','%d')
401
402
#################################
403
# gmysql-insert-ent-query	insert empty non-terminal in zone
404
#
405
# gmysql-insert-ent-query=insert into records (type,domain_id,disabled,name,auth) values (null,'%d',0,'%s','%d')
406
407
#################################
408
# gmysql-insert-record-order-query	
409
#
410
# gmysql-insert-record-order-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,ordername,auth) values ('%s',%d,%d,'%s',%d,%d,'%s','%s','%d')
411
412
#################################
413
# gmysql-insert-record-query	
414
#
415
# gmysql-insert-record-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,auth) values ('%s',%d,%d,'%s',%d,%d,'%s','%d')
416
417
#################################
418
# gmysql-insert-slave-query	
419
#
420
# gmysql-insert-slave-query=insert into domains (type,name,master,account) values('SLAVE','%s','%s','%s')
421
422
#################################
423
# gmysql-insert-zone-query	
424
#
425
# gmysql-insert-zone-query=insert into domains (type,name) values('NATIVE','%s')
426
427
#################################
428
# gmysql-list-comments-query	
429
#
430
# gmysql-list-comments-query=SELECT domain_id,name,type,modified_at,account,comment FROM comments WHERE domain_id=%d
431
432
#################################
433
# gmysql-list-domain-keys-query	
434
#
435
# gmysql-list-domain-keys-query=select cryptokeys.id, flags, active, content from domains, cryptokeys where cryptokeys.domain_id=domains.id and name='%s'
436
437
#################################
438
# gmysql-list-query	AXFR query
439
#
440
# gmysql-list-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE (disabled=0 OR %d) and domain_id='%d' order by name, type
441
442
#################################
443
# gmysql-list-subzone-query	Subzone listing
444
#
445
# gmysql-list-subzone-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and (name='%s' OR name like '%s') and domain_id='%d'
446
447
#################################
448
# gmysql-master-zone-query	Data
449
#
450
# gmysql-master-zone-query=select master from domains where name='%s' and type='SLAVE'
451
452
#################################
453
# gmysql-nullify-ordername-and-auth-query	DNSSEC nullify ordername and auth query
454
#
455
# gmysql-nullify-ordername-and-auth-query=update records set ordername=NULL,auth=0 where name='%s' and type='%s' and domain_id='%d' and disabled=0
456
457
#################################
458
# gmysql-nullify-ordername-and-update-auth-query	DNSSEC nullify ordername and update auth query
459
#
460
# gmysql-nullify-ordername-and-update-auth-query=update records set ordername=NULL,auth=%d where domain_id='%d' and name='%s' and disabled=0
461
462
#################################
463
# gmysql-password	Pdns backend password to connect with
464
#
465
# gmysql-password=
466
467
#################################
468
# gmysql-port	Database backend port to connect to
469
#
470
# gmysql-port=0
471
472
#################################
473
# gmysql-remove-domain-key-query	
474
#
475
# gmysql-remove-domain-key-query=delete from cryptokeys where domain_id=(select id from domains where name='%s') and cryptokeys.id=%d
476
477
#################################
478
# gmysql-remove-empty-non-terminals-from-zone-query	remove all empty non-terminals from zone
479
#
480
# gmysql-remove-empty-non-terminals-from-zone-query=delete from records where domain_id='%d' and type is null
481
482
#################################
483
# gmysql-set-auth-on-ds-record-query	DNSSEC set auth on a DS record
484
#
485
# gmysql-set-auth-on-ds-record-query=update records set auth=1 where domain_id='%d' and name='%s' and type='DS' and disabled=0
486
487
#################################
488
# gmysql-set-domain-metadata-query	
489
#
490
# gmysql-set-domain-metadata-query=insert into domainmetadata (domain_id, kind, content) select id, '%s', '%s' from domains where name='%s'
491
492
#################################
493
# gmysql-set-order-and-auth-query	DNSSEC set ordering query
494
#
495
# gmysql-set-order-and-auth-query=update records set ordername='%s',auth=%d where name='%s' and domain_id='%d' and disabled=0
496
497
#################################
498
# gmysql-set-tsig-key-query	
499
#
500
# gmysql-set-tsig-key-query=replace into tsigkeys (name,algorithm,secret) values('%s','%s','%s')
501
502
#################################
503
# gmysql-socket	Pdns backend socket to connect to
504
#
505
# gmysql-socket=
506
507
#################################
508
# gmysql-supermaster-name-to-ips	
509
#
510
# gmysql-supermaster-name-to-ips=select ip,account from supermasters where nameserver='%s' and account='%s'
511
512
#################################
513
# gmysql-supermaster-query	
514
#
515
# gmysql-supermaster-query=select account from supermasters where ip='%s' and nameserver='%s'
516
517
#################################
518
# gmysql-update-kind-query	
519
#
520
# gmysql-update-kind-query=update domains set type='%s' where name='%s'
521
522
#################################
523
# gmysql-update-lastcheck-query	
524
#
525
# gmysql-update-lastcheck-query=update domains set last_check=%d where id=%d
526
527
#################################
528
# gmysql-update-master-query	
529
#
530
# gmysql-update-master-query=update domains set master='%s' where name='%s'
531
532
#################################
533
# gmysql-update-serial-query	
534
#
535
# gmysql-update-serial-query=update domains set notified_serial=%d where id=%d
536
537
#################################
538
# gmysql-user	Database backend user to connect as
539
#
540
# gmysql-user=powerdns
541
542
#################################
543
# gmysql-zone-lastchange-query	
544
#
545
# gmysql-zone-lastchange-query=select max(change_date) from records where domain_id=%d
546
547
#################################
548
# gpgsql-activate-domain-key-query	
549
#
550
# gpgsql-activate-domain-key-query=update cryptokeys set active=true where domain_id=(select id from domains where name=E'%s') and  cryptokeys.id=%d
551
552
#################################
553
# gpgsql-add-domain-key-query	
554
#
555
# gpgsql-add-domain-key-query=insert into cryptokeys (domain_id, flags, active, content) select id, %d, (%d = 1), '%s' from domains where name=E'%s'
556
557
#################################
558
# gpgsql-any-id-query	Any with ID query
559
#
560
# gpgsql-any-id-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and name=E'%s' and domain_id=%d
561
562
#################################
563
# gpgsql-any-query	Any query
564
#
565
# gpgsql-any-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and name=E'%s'
566
567
#################################
568
# gpgsql-basic-query	Basic query
569
#
570
# gpgsql-basic-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and type='%s' and name=E'%s'
571
572
#################################
573
# gpgsql-clear-domain-all-keys-query	
574
#
575
# gpgsql-clear-domain-all-keys-query=delete from cryptokeys where domain_id=(select id from domains where name=E'%s')
576
577
#################################
578
# gpgsql-clear-domain-all-metadata-query	
579
#
580
# gpgsql-clear-domain-all-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name=E'%s')
581
582
#################################
583
# gpgsql-clear-domain-metadata-query	
584
#
585
# gpgsql-clear-domain-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name=E'%s') and domainmetadata.kind=E'%s'
586
587
#################################
588
# gpgsql-dbname	Pdns backend database name to connect to
589
#
590
# gpgsql-dbname=
591
592
#################################
593
# gpgsql-deactivate-domain-key-query	
594
#
595
# gpgsql-deactivate-domain-key-query=update cryptokeys set active=false where domain_id=(select id from domains where name=E'%s') and  cryptokeys.id=%d
596
597
#################################
598
# gpgsql-delete-comment-rrset-query	
599
#
600
# gpgsql-delete-comment-rrset-query=DELETE FROM comments WHERE domain_id=%d AND name=E'%s' AND type=E'%s'
601
602
#################################
603
# gpgsql-delete-comments-query	
604
#
605
# gpgsql-delete-comments-query=DELETE FROM comments WHERE domain_id=%d
606
607
#################################
608
# gpgsql-delete-domain-query	
609
#
610
# gpgsql-delete-domain-query=delete from domains where name=E'%s'
611
612
#################################
613
# gpgsql-delete-empty-non-terminal-query	delete empty non-terminal from zone
614
#
615
# gpgsql-delete-empty-non-terminal-query=delete from records where domain_id='%d' and name='%s' and type is null
616
617
#################################
618
# gpgsql-delete-names-query	
619
#
620
# gpgsql-delete-names-query=delete from records where domain_id=%d and name=E'%s'
621
622
#################################
623
# gpgsql-delete-rrset-query	
624
#
625
# gpgsql-delete-rrset-query=delete from records where domain_id=%d and name=E'%s' and type=E'%s'
626
627
#################################
628
# gpgsql-delete-tsig-key-query	
629
#
630
# gpgsql-delete-tsig-key-query=delete from tsigkeys where name='%s'
631
632
#################################
633
# gpgsql-delete-zone-query	
634
#
635
# gpgsql-delete-zone-query=delete from records where domain_id=%d
636
637
#################################
638
# gpgsql-dnssec	Enable DNSSEC processing
639
#
640
# gpgsql-dnssec=no
641
642
#################################
643
# gpgsql-get-all-domain-metadata-query	
644
#
645
# gpgsql-get-all-domain-metadata-query=select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name=E'%s'
646
647
#################################
648
# gpgsql-get-all-domains-query	Retrieve all domains
649
#
650
# gpgsql-get-all-domains-query=select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=false OR %d::bool
651
652
#################################
653
# gpgsql-get-domain-metadata-query	
654
#
655
# gpgsql-get-domain-metadata-query=select content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name=E'%s' and domainmetadata.kind=E'%s'
656
657
#################################
658
# gpgsql-get-order-after-query	DNSSEC Ordering Query, after
659
#
660
# gpgsql-get-order-after-query=select ordername from records where disabled=false and ordername ~>~ E'%s' and domain_id=%d and ordername is not null order by 1 using ~<~ limit 1
661
662
#################################
663
# gpgsql-get-order-before-query	DNSSEC Ordering Query, before
664
#
665
# gpgsql-get-order-before-query=select ordername, name from records where disabled=false and ordername ~<=~ E'%s' and domain_id=%d and ordername is not null order by 1 using ~>~ limit 1
666
667
#################################
668
# gpgsql-get-order-first-query	DNSSEC Ordering Query, last
669
#
670
# gpgsql-get-order-first-query=select ordername, name from records where disabled=false and domain_id=%d and ordername is not null order by 1 using ~<~ limit 1
671
672
#################################
673
# gpgsql-get-order-last-query	DNSSEC Ordering Query, last
674
#
675
# gpgsql-get-order-last-query=select ordername, name from records where disabled=false and ordername != '' and domain_id=%d and ordername is not null order by 1 using ~>~ limit 1
676
677
#################################
678
# gpgsql-get-tsig-key-query	
679
#
680
# gpgsql-get-tsig-key-query=select algorithm, secret from tsigkeys where name=E'%s'
681
682
#################################
683
# gpgsql-get-tsig-keys-query	
684
#
685
# gpgsql-get-tsig-keys-query=select name,algorithm, secret from tsigkeys
686
687
#################################
688
# gpgsql-host	Pdns backend host to connect to
689
#
690
# gpgsql-host=
691
692
#################################
693
# gpgsql-id-query	Basic with ID query
694
#
695
# gpgsql-id-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and type='%s' and name=E'%s' and domain_id=%d
696
697
#################################
698
# gpgsql-info-all-master-query	
699
#
700
# gpgsql-info-all-master-query=select id,name,master,last_check,notified_serial,type from domains where type='MASTER'
701
702
#################################
703
# gpgsql-info-all-slaves-query	
704
#
705
# gpgsql-info-all-slaves-query=select id,name,master,last_check,type from domains where type='SLAVE'
706
707
#################################
708
# gpgsql-info-zone-query	
709
#
710
# gpgsql-info-zone-query=select id,name,master,last_check,notified_serial,type from domains where name=E'%s'
711
712
#################################
713
# gpgsql-insert-comment-query	
714
#
715
# gpgsql-insert-comment-query=INSERT INTO comments (domain_id, name, type, modified_at, account, comment) VALUES (%d, E'%s', E'%s', %d, E'%s', E'%s')
716
717
#################################
718
# gpgsql-insert-empty-non-terminal-query	insert empty non-terminal in zone
719
#
720
# gpgsql-insert-empty-non-terminal-query=insert into records (domain_id,name,type,disabled,auth) values ('%d','%s',null,false,true)
721
722
#################################
723
# gpgsql-insert-ent-order-query	insert empty non-terminal in zone
724
#
725
# gpgsql-insert-ent-order-query=insert into records (type,domain_id,disabled,name,ordername,auth) values (null,'%d',false,E'%s',E'%s','%d')
726
727
#################################
728
# gpgsql-insert-ent-query	insert empty non-terminal in zone
729
#
730
# gpgsql-insert-ent-query=insert into records (type,domain_id,disabled,name,auth) values (null,'%d',false,E'%s','%d')
731
732
#################################
733
# gpgsql-insert-record-order-query	
734
#
735
# gpgsql-insert-record-order-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,ordername,auth) values (E'%s',%d,%d,'%s',%d,%d::bool,E'%s',E'%s','%d')
736
737
#################################
738
# gpgsql-insert-record-query	
739
#
740
# gpgsql-insert-record-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,auth) values (E'%s',%d,%d,'%s',%d,%d::bool,E'%s','%d')
741
742
#################################
743
# gpgsql-insert-slave-query	
744
#
745
# gpgsql-insert-slave-query=insert into domains (type,name,master,account) values('SLAVE',E'%s',E'%s',E'%s')
746
747
#################################
748
# gpgsql-insert-zone-query	
749
#
750
# gpgsql-insert-zone-query=insert into domains (type,name) values('NATIVE',E'%s')
751
752
#################################
753
# gpgsql-list-comments-query	
754
#
755
# gpgsql-list-comments-query=SELECT domain_id,name,type,modified_at,account,comment FROM comments WHERE domain_id=%d
756
757
#################################
758
# gpgsql-list-domain-keys-query	
759
#
760
# gpgsql-list-domain-keys-query=select cryptokeys.id, flags, case when active then 1 else 0 end as active, content from domains, cryptokeys where cryptokeys.domain_id=domains.id and name=E'%s'
761
762
#################################
763
# gpgsql-list-query	AXFR query
764
#
765
# gpgsql-list-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE (disabled=false OR %d::bool) and domain_id='%d' order by name, type
766
767
#################################
768
# gpgsql-list-subzone-query	Subzone listing
769
#
770
# gpgsql-list-subzone-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and (name=E'%s' OR name like E'%s') and domain_id='%d'
771
772
#################################
773
# gpgsql-master-zone-query	Data
774
#
775
# gpgsql-master-zone-query=select master from domains where name=E'%s' and type='SLAVE'
776
777
#################################
778
# gpgsql-nullify-ordername-and-auth-query	DNSSEC nullify ordername and auth query
779
#
780
# gpgsql-nullify-ordername-and-auth-query=update records set ordername=NULL,auth=false where name=E'%s' and type=E'%s' and domain_id='%d' and disabled=false
781
782
#################################
783
# gpgsql-nullify-ordername-and-update-auth-query	DNSSEC nullify ordername and update auth query
784
#
785
# gpgsql-nullify-ordername-and-update-auth-query=update records set ordername=NULL,auth=%d::bool where domain_id='%d' and name='%s' and disabled=false
786
787
#################################
788
# gpgsql-password	Pdns backend password to connect with
789
#
790
# gpgsql-password=
791
792
#################################
793
# gpgsql-port	Database backend port to connect to
794
#
795
# gpgsql-port=
796
797
#################################
798
# gpgsql-remove-domain-key-query	
799
#
800
# gpgsql-remove-domain-key-query=delete from cryptokeys where domain_id=(select id from domains where name=E'%s') and cryptokeys.id=%d
42
801
43
# Autogenerated configuration file template
44
#################################
802
#################################
45
# allow-axfr-ips	Allow zonetransfers only to these subnets
803
# gpgsql-remove-empty-non-terminals-from-zone-query	remove all empty non-terminals from zone
46
#
804
#
47
# allow-axfr-ips=0.0.0.0/0,::/0
805
# gpgsql-remove-empty-non-terminals-from-zone-query=delete from records where domain_id='%d' and type is null
48
806
49
#################################
807
#################################
50
# allow-recursion	List of subnets that are allowed to recurse
808
# gpgsql-set-auth-on-ds-record-query	DNSSEC set auth on a DS record
51
#
809
#
52
# allow-recursion=0.0.0.0/0
810
# gpgsql-set-auth-on-ds-record-query=update records set auth=true where domain_id='%d' and name='%s' and type='DS' and disabled=false
53
811
54
#################################
812
#################################
55
# allow-recursion-override	Set this so that local data fully overrides the recursor
813
# gpgsql-set-domain-metadata-query	
56
#
814
#
57
# allow-recursion-override=no
815
# gpgsql-set-domain-metadata-query=insert into domainmetadata (domain_id, kind, content) select id, '%s', '%s' from domains where name=E'%s'
58
816
59
#################################
817
#################################
60
# cache-ttl	Seconds to store packets in the PacketCache
818
# gpgsql-set-order-and-auth-query	DNSSEC set ordering query
61
#
819
#
62
# cache-ttl=20
820
# gpgsql-set-order-and-auth-query=update records set ordername=E'%s',auth=%d::bool where name=E'%s' and domain_id='%d' and disabled=false
63
821
64
#################################
822
#################################
65
# chroot	If set, chroot to this directory for more security
823
# gpgsql-set-tsig-key-query	
66
#
824
#
67
# chroot=
825
# gpgsql-set-tsig-key-query=insert into tsigkeys (name,algorithm,secret) values('%s','%s','%s')
68
826
69
#################################
827
#################################
70
# config-dir	Location of configuration directory (pdns.conf)
828
# gpgsql-supermaster-name-to-ips	
71
#
829
#
72
# config-dir=/usr/local/etc/pdns
830
# gpgsql-supermaster-name-to-ips=select ip,account from supermasters where nameserver=E'%s' and account=E'%s'
73
831
74
#################################
832
#################################
75
# config-name	Name of this virtual configuration - will rename the binary image
833
# gpgsql-supermaster-query	
76
#
834
#
77
# config-name=
835
# gpgsql-supermaster-query=select account from supermasters where ip='%s' and nameserver=E'%s'
78
836
79
#################################
837
#################################
80
# control-console	Debugging switch - don't use
838
# gpgsql-update-kind-query	
81
#
839
#
82
# control-console=no
840
# gpgsql-update-kind-query=update domains set type='%s' where name='%s'
83
841
84
#################################
842
#################################
85
# daemon	Operate as a daemon
843
# gpgsql-update-lastcheck-query	
86
#
844
#
87
# daemon=no
845
# gpgsql-update-lastcheck-query=update domains set last_check=%d where id=%d
88
846
89
#################################
847
#################################
90
# default-soa-name	name to insert in the SOA record if none set in the backend
848
# gpgsql-update-master-query	
91
#
849
#
92
# default-soa-name=a.misconfigured.powerdns.server
850
# gpgsql-update-master-query=update domains set master='%s' where name='%s'
93
851
94
#################################
852
#################################
95
# default-ttl	Seconds a result is valid if not set otherwise
853
# gpgsql-update-serial-query	
96
#
854
#
97
# default-ttl=3600
855
# gpgsql-update-serial-query=update domains set notified_serial=%d where id=%d
98
856
99
#################################
857
#################################
100
# disable-axfr	Disable zonetransfers but do allow TCP queries
858
# gpgsql-user	Pdns backend user to connect as
101
#
859
#
102
# disable-axfr=no
860
# gpgsql-user=
103
861
104
#################################
862
#################################
105
# disable-tcp	Do not listen to TCP queries
863
# gpgsql-zone-lastchange-query	
106
#
864
#
107
# disable-tcp=no
865
# gpgsql-zone-lastchange-query=select max(change_date) from records where domain_id=%d
108
866
109
#################################
867
#################################
110
# distributor-threads	Default number of Distributor (backend) threads to start
868
# guardian	Run within a guardian process
111
#
869
#
112
# distributor-threads=3
870
# guardian=no
113
871
114
#################################
872
#################################
115
# do-ipv6-additional-processing	Do AAAA additional processing
873
# include-dir	Include *.conf files from this directory
874
#
875
# include-dir=
876
877
#################################
878
# launch	Which backends to launch and order to query them in
116
#
879
#
117
# do-ipv6-additional-processing=no
880
# launch=geo,gmysql,gpgsql,ldap,lua,mydns,opendbx,remote,tinydns
118
881
119
#################################
882
#################################
120
# edns-subnet-option-number	EDNS option number to use
883
# ldap-basedn	Search root in ldap tree (must be set)
121
#
884
#
122
# edns-subnet-option-number=20730
885
# ldap-basedn=
123
886
124
#################################
887
#################################
125
# edns-subnet-processing	If we should act on EDNS Subnet options
888
# ldap-basedn-axfr-override	Override base dn for AXFR subtree search
126
#
889
#
127
# edns-subnet-processing=no
890
# ldap-basedn-axfr-override=no
128
891
129
#################################
892
#################################
130
# entropy-source	If set, read entropy from this file
893
# ldap-binddn	User dn for non anonymous binds
131
#
894
#
132
# entropy-source=/dev/urandom
895
# ldap-binddn=
133
896
134
#################################
897
#################################
135
# fancy-records	Process URL and MBOXFW records
898
# ldap-disable-ptrrecord	Deprecated, use ldap-method=strict instead
136
#
899
#
137
# fancy-records=no
900
# ldap-disable-ptrrecord=no
138
901
139
#################################
902
#################################
140
# guardian	Run within a guardian process
903
# ldap-filter-axfr	LDAP filter for limiting AXFR results
141
#
904
#
142
# guardian=no
905
# ldap-filter-axfr=(:target:)
143
906
144
#################################
907
#################################
145
# launch	Which backends to launch and order to query them in
908
# ldap-filter-lookup	LDAP filter for limiting IP or name lookups
909
#
910
# ldap-filter-lookup=(:target:)
911
912
#################################
913
# ldap-host	One or more LDAP server with ports or LDAP URIs (separated by spaces)
914
#
915
# ldap-host=ldap://127.0.0.1:389/
916
917
#################################
918
# ldap-method	How to search entries (simple, strict or tree)
146
#
919
#
147
# launch=
920
# ldap-method=simple
148
921
149
#################################
922
#################################
150
# lazy-recursion	Only recurse if question cannot be answered locally
923
# ldap-secret	User password for non anonymous binds
151
#
924
#
152
# lazy-recursion=yes
925
# ldap-secret=
926
927
#################################
928
# ldap-starttls	Use TLS to encrypt connection (unused for LDAP URIs)
929
#
930
# ldap-starttls=no
931
932
#################################
933
# ldap-timeout	Seconds before connecting to server fails
934
#
935
# ldap-timeout=5
153
936
154
#################################
937
#################################
155
# load-modules	Load this module - supply absolute or relative path
938
# load-modules	Load this module - supply absolute or relative path
Lines 162-172 Link Here
162
# local-address=0.0.0.0
945
# local-address=0.0.0.0
163
946
164
#################################
947
#################################
948
# local-address-nonexist-fail	Fail to start if one or more of the local-address's do not exist on this server
949
#
950
# local-address-nonexist-fail=yes
951
952
#################################
165
# local-ipv6	Local IP address to which we bind
953
# local-ipv6	Local IP address to which we bind
166
#
954
#
167
# local-ipv6=
955
# local-ipv6=
168
956
169
#################################
957
#################################
958
# local-ipv6-nonexist-fail	Fail to start if one or more of the local-ipv6 addresses do not exist on this server
959
#
960
# local-ipv6-nonexist-fail=yes
961
962
#################################
170
# local-port	The port on which we listen
963
# local-port	The port on which we listen
171
#
964
#
172
# local-port=53
965
# local-port=53
Lines 174-180 Link Here
174
#################################
967
#################################
175
# log-dns-details	If PDNS should log DNS non-erroneous details
968
# log-dns-details	If PDNS should log DNS non-erroneous details
176
#
969
#
177
# log-dns-details=
970
# log-dns-details=no
178
971
179
#################################
972
#################################
180
# log-dns-queries	If PDNS should log all incoming DNS queries
973
# log-dns-queries	If PDNS should log all incoming DNS queries
Lines 182-205 Link Here
182
# log-dns-queries=no
975
# log-dns-queries=no
183
976
184
#################################
977
#################################
185
# log-failed-updates	If PDNS should log failed update requests
978
# logging-facility	Log under a specific facility
979
#
980
# logging-facility=
981
982
#################################
983
# loglevel	Amount of logging. Higher is more. Do not set below 3
186
#
984
#
187
# log-failed-updates=
985
# loglevel=4
188
986
189
#################################
987
#################################
190
# logfile	Logfile to use (Windows only)
988
# lua-filename	Filename of the script for lua backend
191
#
989
#
192
# logfile=pdns.log
990
# lua-filename=powerdns-luabackend.lua
193
991
194
#################################
992
#################################
195
# logging-facility	Log under a specific facility
993
# lua-logging-query	Logging of the LUA Backend
196
#
994
#
197
# logging-facility=
995
# lua-logging-query=no
198
996
199
#################################
997
#################################
200
# loglevel	Amount of logging. Higher is more. Do not set below 3
998
# lua-prequery-script	Lua script with prequery handler
201
#
999
#
202
# loglevel=4
1000
# lua-prequery-script=
203
1001
204
#################################
1002
#################################
205
# master	Act as a master
1003
# master	Act as a master
Lines 212-222 Link Here
212
# max-cache-entries=1000000
1010
# max-cache-entries=1000000
213
1011
214
#################################
1012
#################################
1013
# max-ent-entries	Maximum number of empty non-terminals in a zone
1014
#
1015
# max-ent-entries=100000
1016
1017
#################################
1018
# max-nsec3-iterations	Limit the number of NSEC3 hash iterations
1019
#
1020
# max-nsec3-iterations=500
1021
1022
#################################
215
# max-queue-length	Maximum queuelength before considering situation lost
1023
# max-queue-length	Maximum queuelength before considering situation lost
216
#
1024
#
217
# max-queue-length=5000
1025
# max-queue-length=5000
218
1026
219
#################################
1027
#################################
1028
# max-signature-cache-entries	Maximum number of signatures cache entries
1029
#
1030
# max-signature-cache-entries=
1031
1032
#################################
220
# max-tcp-connections	Maximum number of TCP connections
1033
# max-tcp-connections	Maximum number of TCP connections
221
#
1034
#
222
# max-tcp-connections=10
1035
# max-tcp-connections=10
Lines 224-233 Link Here
224
#################################
1037
#################################
225
# module-dir	Default directory for modules
1038
# module-dir	Default directory for modules
226
#
1039
#
227
# module-dir=/usr/local/lib
1040
# module-dir=/usr/local/lib/pdns
1041
1042
#################################
1043
# mydns-dbname	Pdns backend database name to connect to
1044
#
1045
# mydns-dbname=mydns
1046
1047
#################################
1048
# mydns-host	Pdns backend host to connect to
1049
#
1050
# mydns-host=
1051
1052
#################################
1053
# mydns-password	Pdns backend password to connect with
1054
#
1055
# mydns-password=
1056
1057
#################################
1058
# mydns-port	Pdns backend host to connect to
1059
#
1060
# mydns-port=
1061
1062
#################################
1063
# mydns-rr-active	Use the active column in the RR table
1064
#
1065
# mydns-rr-active=yes
1066
1067
#################################
1068
# mydns-rr-table	Name of RR table to use
1069
#
1070
# mydns-rr-table=rr
1071
1072
#################################
1073
# mydns-rr-where	Additional WHERE clause for RR
1074
#
1075
# mydns-rr-where=1 = 1
1076
1077
#################################
1078
# mydns-soa-active	Use the active column in the SOA table
1079
#
1080
# mydns-soa-active=yes
1081
1082
#################################
1083
# mydns-soa-table	Name of SOA table to use
1084
#
1085
# mydns-soa-table=soa
1086
1087
#################################
1088
# mydns-soa-where	Additional WHERE clause for SOA
1089
#
1090
# mydns-soa-where=1 = 1
1091
1092
#################################
1093
# mydns-socket	Pdns backend socket to connect to
1094
#
1095
# mydns-socket=
1096
1097
#################################
1098
# mydns-use-minimal-ttl	Setting this to 'yes' will make the backend behave like MyDNS on the TTL values. Setting it to 'no' will make it ignore the minimal-ttl of the zone.
1099
#
1100
# mydns-use-minimal-ttl=yes
228
1101
229
#################################
1102
#################################
230
# negquery-cache-ttl	Seconds to store packets in the PacketCache
1103
# mydns-user	Pdns backend user to connect as
1104
#
1105
# mydns-user=powerdns
1106
1107
#################################
1108
# negquery-cache-ttl	Seconds to store negative query results in the QueryCache
231
#
1109
#
232
# negquery-cache-ttl=60
1110
# negquery-cache-ttl=60
233
1111
Lines 237-242 Link Here
237
# no-shuffle=off
1115
# no-shuffle=off
238
1116
239
#################################
1117
#################################
1118
# only-notify	Only send AXFR NOTIFY to these IP addresses or netmasks
1119
#
1120
# only-notify=0.0.0.0/0,::/0
1121
1122
#################################
1123
# opendbx-backend	OpenDBX backend
1124
#
1125
# opendbx-backend=mysql
1126
1127
#################################
1128
# opendbx-database	Database name containing the DNS records
1129
#
1130
# opendbx-database=powerdns
1131
1132
#################################
1133
# opendbx-host	deprecated, use host-read and host-write instead
1134
#
1135
# opendbx-host=
1136
1137
#################################
1138
# opendbx-host-read	Name or address of one or more DBMS server to read from
1139
#
1140
# opendbx-host-read=127.0.0.1
1141
1142
#################################
1143
# opendbx-host-write	Name or address of one or more DBMS server used for updates
1144
#
1145
# opendbx-host-write=127.0.0.1
1146
1147
#################################
1148
# opendbx-password	Password for connecting to the DBMS
1149
#
1150
# opendbx-password=
1151
1152
#################################
1153
# opendbx-port	Port the DBMS server are listening to
1154
#
1155
# opendbx-port=
1156
1157
#################################
1158
# opendbx-sql-infomasters	Get all updated masters
1159
#
1160
# opendbx-sql-infomasters=SELECT d."id", d."name", d."master", d."last_check", d."notified_serial", d."auto_serial", r."content" FROM "domains" d LEFT JOIN "records" r ON ( d."id"=r."domain_id" AND r."type"='SOA' ) WHERE d."status"='A' AND d."type"='MASTER'
1161
1162
#################################
1163
# opendbx-sql-infoslaves	Get all unfresh slaves
1164
#
1165
# opendbx-sql-infoslaves=SELECT d."id", d."name", d."master", d."last_check", d."notified_serial", d."auto_serial", r."content" FROM "domains" d LEFT JOIN "records" r ON ( d."id"=r."domain_id" AND r."type"='SOA' ) WHERE d."status"='A' AND d."type"='SLAVE'
1166
1167
#################################
1168
# opendbx-sql-insert-record	Feed record into table
1169
#
1170
# opendbx-sql-insert-record=INSERT INTO "records" ( "domain_id", "name", "type", "ttl", "prio", "content" ) VALUES ( %d, '%s', '%s', %d, %d, '%s' )
1171
1172
#################################
1173
# opendbx-sql-insert-slave	Add slave domain
1174
#
1175
# opendbx-sql-insert-slave=INSERT INTO "domains" ( "name", "type", "master", "account" ) VALUES ( '%s', 'SLAVE', '%s', '%s' )
1176
1177
#################################
1178
# opendbx-sql-list	AXFR query
1179
#
1180
# opendbx-sql-list=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."domain_id"=:id
1181
1182
#################################
1183
# opendbx-sql-lookup	Lookup query
1184
#
1185
# opendbx-sql-lookup=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."name"=':name'
1186
1187
#################################
1188
# opendbx-sql-lookupid	Lookup query with id
1189
#
1190
# opendbx-sql-lookupid=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."domain_id"=:id AND r."name"=':name'
1191
1192
#################################
1193
# opendbx-sql-lookupsoa	Lookup query for SOA record
1194
#
1195
# opendbx-sql-lookupsoa=SELECT d."id", d."auto_serial", r."ttl", r."content" FROM "records" r JOIN "domains" d ON r."domain_id"=d."id" WHERE r."name"=':name' AND r."type"='SOA' AND d."status"='A'
1196
1197
#################################
1198
# opendbx-sql-lookuptype	Lookup query with type
1199
#
1200
# opendbx-sql-lookuptype=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."name"=':name' AND r."type"=':type'
1201
1202
#################################
1203
# opendbx-sql-lookuptypeid	Lookup query with type and id
1204
#
1205
# opendbx-sql-lookuptypeid=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."domain_id"=:id AND r."name"=':name' AND r."type"=':type'
1206
1207
#################################
1208
# opendbx-sql-master	Get master record for zone
1209
#
1210
# opendbx-sql-master=SELECT d."master" FROM "domains" d WHERE d."name"=':name' AND d."status"='A' AND d."type"='SLAVE'
1211
1212
#################################
1213
# opendbx-sql-supermaster	Get supermaster info
1214
#
1215
# opendbx-sql-supermaster=SELECT s."account" FROM "supermasters" s WHERE s."ip"=':ip' AND s."nameserver"=':ns'
1216
1217
#################################
1218
# opendbx-sql-transactabort	Abort transaction
1219
#
1220
# opendbx-sql-transactabort=ROLLBACK
1221
1222
#################################
1223
# opendbx-sql-transactbegin	Start transaction
1224
#
1225
# opendbx-sql-transactbegin=BEGIN
1226
1227
#################################
1228
# opendbx-sql-transactend	Finish transaction
1229
#
1230
# opendbx-sql-transactend=COMMIT
1231
1232
#################################
1233
# opendbx-sql-update-lastcheck	Set time of last check
1234
#
1235
# opendbx-sql-update-lastcheck=UPDATE "domains" SET "last_check"=%d WHERE "id"=%d
1236
1237
#################################
1238
# opendbx-sql-update-serial	Set zone to notified
1239
#
1240
# opendbx-sql-update-serial=UPDATE "domains" SET "notified_serial"=%d WHERE "id"=%d
1241
1242
#################################
1243
# opendbx-sql-zonedelete	Delete all records for this zone
1244
#
1245
# opendbx-sql-zonedelete=DELETE FROM "records" WHERE "domain_id"=:id
1246
1247
#################################
1248
# opendbx-sql-zoneinfo	Get domain info
1249
#
1250
# opendbx-sql-zoneinfo=SELECT d."id", d."name", d."type", d."master", d."last_check", d."auto_serial", r."content" FROM "domains" d LEFT JOIN "records" r ON ( d."id"=r."domain_id" AND r."type"='SOA' ) WHERE d."name"=':name' AND d."status"='A'
1251
1252
#################################
1253
# opendbx-username	User for connecting to the DBMS
1254
#
1255
# opendbx-username=powerdns
1256
1257
#################################
240
# out-of-zone-additional-processing	Do out of zone additional processing
1258
# out-of-zone-additional-processing	Do out of zone additional processing
241
#
1259
#
242
# out-of-zone-additional-processing=yes
1260
# out-of-zone-additional-processing=yes
Lines 247-263 Link Here
247
# overload-queue-length=0
1265
# overload-queue-length=0
248
1266
249
#################################
1267
#################################
250
# per-zone-axfr-acls	When set, backends that implement it perform per-zone AXFL ACL checks
1268
# pipebackend-abi-version	Version of the pipe backend ABI
251
#
1269
#
252
# per-zone-axfr-acls=off
1270
# pipebackend-abi-version=1
253
1271
254
#################################
1272
#################################
255
# pipebackend-abi-version	Version of the pipe backend ABI
1273
# prevent-self-notification	Don't send notifications to what we think is ourself
256
#
1274
#
257
# pipebackend-abi-version=1
1275
# prevent-self-notification=yes
258
1276
259
#################################
1277
#################################
260
# query-cache-ttl	Seconds to store packets in the PacketCache
1278
# query-cache-ttl	Seconds to store query results in the QueryCache
261
#
1279
#
262
# query-cache-ttl=20
1280
# query-cache-ttl=20
263
1281
Lines 282-293 Link Here
282
# queue-limit=1500
1300
# queue-limit=1500
283
1301
284
#################################
1302
#################################
285
# receiver-threads	Default number of Distributor (backend) threads to start
1303
# receiver-threads	Default number of receiver threads to start
286
#
1304
#
287
# receiver-threads=1
1305
# receiver-threads=1
288
1306
289
#################################
1307
#################################
290
# recursive-cache-ttl	Seconds to store packets in the PacketCache
1308
# recursive-cache-ttl	Seconds to store packets for recursive queries in the PacketCache
291
#
1309
#
292
# recursive-cache-ttl=10
1310
# recursive-cache-ttl=10
293
1311
Lines 297-313 Link Here
297
# recursor=no
1315
# recursor=no
298
1316
299
#################################
1317
#################################
1318
# remote-connection-string	Connection string
1319
#
1320
# remote-connection-string=
1321
1322
#################################
1323
# remote-dnssec	Enable dnssec support
1324
#
1325
# remote-dnssec=no
1326
1327
#################################
300
# retrieval-threads	Number of AXFR-retrieval threads for slave operation
1328
# retrieval-threads	Number of AXFR-retrieval threads for slave operation
301
#
1329
#
302
# retrieval-threads=2
1330
# retrieval-threads=2
303
1331
304
#################################
1332
#################################
1333
# reuseport	Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket
1334
#
1335
# reuseport=no
1336
1337
#################################
305
# send-root-referral	Send out old-fashioned root-referral instead of ServFail in case of no authority
1338
# send-root-referral	Send out old-fashioned root-referral instead of ServFail in case of no authority
306
#
1339
#
307
# send-root-referral=no
1340
# send-root-referral=no
308
1341
309
#################################
1342
#################################
310
# server-id	Returned when queried for 'server.id' TXT or NSID, defaults to hostname
1343
# server-id	Returned when queried for 'server.id' TXT or NSID, defaults to hostname - disabled or custom
311
#
1344
#
312
# server-id=
1345
# server-id=
313
1346
Lines 327-337 Link Here
327
# signing-threads=3
1360
# signing-threads=3
328
1361
329
#################################
1362
#################################
330
# skip-cname	Do not perform CNAME indirection for each query
331
#
332
# skip-cname=no
333
334
#################################
335
# slave	Act as a slave
1363
# slave	Act as a slave
336
#
1364
#
337
# slave=no
1365
# slave=no
Lines 347-363 Link Here
347
# slave-renotify=no
1375
# slave-renotify=no
348
1376
349
#################################
1377
#################################
350
# smtpredirector	Our smtpredir MX host
351
#
352
# smtpredirector=a.misconfigured.powerdns.smtp.server
353
354
#################################
355
# soa-expire-default	Default SOA expire
1378
# soa-expire-default	Default SOA expire
356
#
1379
#
357
# soa-expire-default=604800
1380
# soa-expire-default=604800
358
1381
359
#################################
1382
#################################
360
# soa-minimum-ttl	Default SOA mininum ttl
1383
# soa-minimum-ttl	Default SOA minimum ttl
361
#
1384
#
362
# soa-minimum-ttl=3600
1385
# soa-minimum-ttl=3600
363
1386
Lines 372-392 Link Here
372
# soa-retry-default=3600
1395
# soa-retry-default=3600
373
1396
374
#################################
1397
#################################
375
# soa-serial-offset	Make sure that no SOA serial is less than this number
376
#
377
# soa-serial-offset=0
378
379
#################################
380
# socket-dir	Where the controlsocket will live
1398
# socket-dir	Where the controlsocket will live
381
#
1399
#
382
# socket-dir=/var/run
1400
# socket-dir=/var/run
383
1401
384
#################################
1402
#################################
385
# strict-rfc-axfrs	Perform strictly rfc compliant axfrs (very slow)
386
#
387
# strict-rfc-axfrs=no
388
389
#################################
390
# tcp-control-address	If set, PowerDNS can be controlled over TCP on this address
1403
# tcp-control-address	If set, PowerDNS can be controlled over TCP on this address
391
#
1404
#
392
# tcp-control-address=
1405
# tcp-control-address=
Lines 407-425 Link Here
407
# tcp-control-secret=
1420
# tcp-control-secret=
408
1421
409
#################################
1422
#################################
410
# trusted-notification-proxy	IP address of incoming notification proxy
1423
# tinydns-dbfile	Location of the cdb data file
411
#
1424
#
412
# trusted-notification-proxy=
1425
# tinydns-dbfile=data.cdb
1426
1427
#################################
1428
# tinydns-ignore-bogus-records	The data.cdb file might have some wront record data, this causes PowerDNS to fail, where tinydns would send out truncated data. This option makes powerdns ignore that data!
1429
#
1430
# tinydns-ignore-bogus-records=no
1431
1432
#################################
1433
# tinydns-locations	Enable or Disable location support in the backend. Changing the value to 'no' will make the backend ignore the locations. This then returns all records!
1434
#
1435
# tinydns-locations=yes
1436
1437
#################################
1438
# tinydns-notify-on-startup	Tell the TinyDNSBackend to notify all the slave nameservers on startup. Default is no.
1439
#
1440
# tinydns-notify-on-startup=no
1441
1442
#################################
1443
# tinydns-tai-adjust	This adjusts the TAI value if timestamps are used. These seconds will be added to the start point (1970) and will allow you to adjust for leap seconds. The default is 11.
1444
#
1445
# tinydns-tai-adjust=11
1446
1447
#################################
1448
# traceback-handler	Enable the traceback handler (Linux only)
1449
#
1450
# traceback-handler=yes
413
1451
414
#################################
1452
#################################
415
# urlredirector	Where we send hosts to that need to be url redirected
1453
# trusted-notification-proxy	IP address of incoming notification proxy
416
#
1454
#
417
# urlredirector=127.0.0.1
1455
# trusted-notification-proxy=
418
1456
419
#################################
1457
#################################
420
# use-logfile	Use a log file (Windows only)
1458
# udp-truncation-threshold	Maximum UDP response size before we truncate
421
#
1459
#
422
# use-logfile=no
1460
# udp-truncation-threshold=1680
423
1461
424
#################################
1462
#################################
425
# version-string	PowerDNS version in packets - full, anonymous, powerdns or custom
1463
# version-string	PowerDNS version in packets - full, anonymous, powerdns or custom
Lines 437-442 Link Here
437
# webserver-address=127.0.0.1
1475
# webserver-address=127.0.0.1
438
1476
439
#################################
1477
#################################
1478
# webserver-allow-from	Webserver access is only allowed from these subnets
1479
#
1480
# webserver-allow-from=0.0.0.0/0,::/0
1481
1482
#################################
440
# webserver-password	Password required for accessing the webserver
1483
# webserver-password	Password required for accessing the webserver
441
#
1484
#
442
# webserver-password=
1485
# webserver-password=
Lines 451-464 Link Here
451
#
1494
#
452
# webserver-print-arguments=no
1495
# webserver-print-arguments=no
453
1496
454
#################################
455
# wildcard-url	Process URL and MBOXFW records
456
#
457
# wildcard-url=no
458
459
#################################
460
# wildcards	Honor wildcards in the database
461
#
462
# wildcards=
463
464
1497
(-)b/dns/powerdns-devel/files/pdns.in (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD$
3
# $FreeBSD: head/dns/powerdns-devel/files/pdns.in 340859 2014-01-23 20:16:57Z danilo $
4
#
4
#
5
5
6
# PROVIDE: pdns_server
6
# PROVIDE: pdns_server
(-)b/dns/powerdns-devel/pkg-plist (-11 / +25 lines)
Lines 5-10 bin/zone2ldap Link Here
5
bin/zone2sql
5
bin/zone2sql
6
sbin/pdns_server
6
sbin/pdns_server
7
%%TOOLS%%bin/dnsbulktest
7
%%TOOLS%%bin/dnsbulktest
8
%%TOOLS%%bin/dnsdist
8
%%TOOLS%%bin/dnsreplay
9
%%TOOLS%%bin/dnsreplay
9
%%TOOLS%%bin/dnsscan
10
%%TOOLS%%bin/dnsscan
10
%%TOOLS%%bin/dnsscope
11
%%TOOLS%%bin/dnsscope
Lines 12-29 sbin/pdns_server Link Here
12
%%TOOLS%%bin/dnswasher
13
%%TOOLS%%bin/dnswasher
13
%%TOOLS%%bin/nproxy
14
%%TOOLS%%bin/nproxy
14
%%TOOLS%%bin/nsec3dig
15
%%TOOLS%%bin/nsec3dig
15
%%PGSQL%%lib/libgpgsqlbackend.so
16
%%TOOLS%%bin/saxfr
16
%%MYSQL%%lib/libgmysqlbackend.so
17
%%PGSQL%%lib/pdns/libgpgsqlbackend.so
17
%%SQLITE3%%lib/libgsqlite3backend.so
18
%%MYSQL%%lib/pdns/libgmysqlbackend.so
18
%%OPENLDAP%%lib/libldapbackend.so
19
%%SQLITE3%%lib/pdns/libgsqlite3backend.so
19
%%OPENDBX%%lib/libopendbxbackend.so
20
%%OPENLDAP%%lib/pdns/libldapbackend.so
20
%%GEO%%lib/libgeobackend.so
21
%%OPENDBX%%lib/pdns/libopendbxbackend.so
21
%%TINYDNS%%lib/libtinydnsbackend.so
22
%%GEO%%lib/pdns/libgeobackend.so
22
%%REMOTE%%lib/libremotebackend.so
23
%%TINYDNS%%lib/pdns/libtinydnsbackend.so
23
%%MYDNS%%lib/libmydnsbackend.so
24
%%REMOTE%%lib/pdns/libremotebackend.so
24
%%LUA%%lib/libluabackend.so
25
%%MYDNS%%lib/pdns/libmydnsbackend.so
25
lib/libpipebackend.so
26
%%LUA%%lib/pdns/libluabackend.so
27
lib/pdns/libpipebackend.so
26
%%TOOLS%%man/man1/dnstcpbench.1.gz
28
%%TOOLS%%man/man1/dnstcpbench.1.gz
29
%%TOOLS%%man/man1/dnsdist.1.gz
27
%%TOOLS%%man/man8/dnsreplay.8.gz
30
%%TOOLS%%man/man8/dnsreplay.8.gz
28
%%TOOLS%%man/man8/dnsscope.8.gz
31
%%TOOLS%%man/man8/dnsscope.8.gz
29
%%TOOLS%%man/man8/dnswasher.8.gz
32
%%TOOLS%%man/man8/dnswasher.8.gz
Lines 37-40 etc/pdns/pdns.conf-dist Link Here
37
@exec [ -f %B/pdns.conf ] || cp %B/%f %B/pdns.conf
40
@exec [ -f %B/pdns.conf ] || cp %B/%f %B/pdns.conf
38
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf
41
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf
39
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
42
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
43
%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.mysql.sql
44
%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.pgsql.sql
45
%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.sqlite3.sql
46
%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.mysql.sql
47
%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.pgsql.sql
48
%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql
49
%%MYDNS%%%%PORTDOCS%%%%DOCSDIR%%/schema.mydns.sql
50
%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/schema.mysql.sql
51
%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/schema.pgsql.sql
52
%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/schema.sqlite3.sql
53
%%PORTDOCS%%@dirrm %%DOCSDIR%%
40
@dirrmtry etc/pdns
54
@dirrmtry etc/pdns
(-)b/dns/powerdns/Makefile (-55 / +30 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD: head/dns/powerdns/Makefile 365753 2014-08-23 16:23:12Z marino $
2
2
3
PORTNAME=	powerdns
3
PORTNAME=	powerdns
4
PORTVERSION=	3.3.1
4
PORTVERSION=	3.4.0
5
PORTREVISION=	5
6
CATEGORIES=	dns ipv6
5
CATEGORIES=	dns ipv6
7
MASTER_SITES=	http://downloads.powerdns.com/releases/
6
MASTER_SITES=	http://downloads.powerdns.com/releases/
8
DISTNAME=	pdns-${PORTVERSION}
7
DISTNAME=	pdns-${PORTVERSION}
Lines 16-30 LIB_DEPENDS= libboost_serialization.so:${PORTSDIR}/devel/boost-libs Link Here
16
15
17
CONFLICTS=	powerdns-devel-[2-3].[0-9]*
16
CONFLICTS=	powerdns-devel-[2-3].[0-9]*
18
17
19
USES=		gmake libtool lua:51 pkgconfig
18
USES=		gmake libtool lua:51 pkgconfig tar:bzip2
19
USE_LDCONFIG=	YES
20
USE_SUBMAKE=	YES
20
USE_SUBMAKE=	YES
21
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	YES
22
INSTALL_TARGET=	install-strip
22
INSTALL_TARGET=	install-strip
23
CXXFLAGS+=	-I${LOCALBASE}/include
23
CXXFLAGS+=	-I${LOCALBASE}/include
24
LDFLAGS+=	-L${LOCALBASE}/lib
24
LDFLAGS+=	-L${LOCALBASE}/lib
25
CONFIGURE_ARGS=	--disable-static \
25
CONFIGURE_ARGS=	--disable-static \
26
		--with-modules="" \
26
		--with-modules="" \
27
		--with-dynmodules="pipe ${MODULES}" \
27
		--with-dynmodules="pipe bind ${MODULES}" \
28
		--sysconfdir="${PREFIX}/etc/pdns" \
28
		--sysconfdir="${PREFIX}/etc/pdns" \
29
		--with-boost="${LOCALBASE}"
29
		--with-boost="${LOCALBASE}"
30
SCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
30
SCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
Lines 32-69 SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ Link Here
32
		MKDIR="${MKDIR}" \
32
		MKDIR="${MKDIR}" \
33
		DISTNAME="${DISTNAME}" \
33
		DISTNAME="${DISTNAME}" \
34
		POWERDNS_OPTIONS="${POWERDNS_OPTIONS}"
34
		POWERDNS_OPTIONS="${POWERDNS_OPTIONS}"
35
DOCSDIR=	${PREFIX}/share/doc/pdns
35
36
36
SUB_FILES=	pkg-message
37
SUB_FILES=	pkg-message
37
38
38
USE_RC_SUBR=	pdns
39
USE_RC_SUBR=	pdns
39
40
40
OPTIONS_DEFINE=	GEO MYSQL MYSQL_LOCAL OPENDBX OPENLDAP OPENLDAP_LOCAL \
41
OPTIONS_DEFINE=	GEO MYSQL OPENDBX OPENLDAP PGSQL POLARSSL REMOTE SQLITE3 TOOLS
41
		PGSQL PGSQL_LOCAL POLARSSL SQLITE3 TOOLS
42
OPTIONS_GROUP=	DNSSEC EXPERIMENTAL
42
OPTIONS_GROUP=	DNSSEC EXPERIMENTAL
43
OPTIONS_GROUP_DNSSEC=	BOTAN110 CRYPTOPP
43
OPTIONS_GROUP_DNSSEC=	BOTAN110
44
OPTIONS_GROUP_EXPERIMENTAL=	LUA MYDNS REMOTE REMOTE_HTTP TINYDNS
44
OPTIONS_GROUP_EXPERIMENTAL=	GEOIP LMDB LUA MYDNS TINYDNS
45
45
46
PGSQL_DESC=		PostgreSQL backend
46
PGSQL_DESC=		PostgreSQL backend
47
PGSQL_LOCAL_DESC=	RUN_DEPEND on PostgreSQL server
48
MYSQL_DESC=		MySQL backend
47
MYSQL_DESC=		MySQL backend
49
MYSQL_LOCAL_DESC=	RUN_DEPEND on MySQL server
50
OPENDBX_DESC=		OpenDBX backend
48
OPENDBX_DESC=		OpenDBX backend
51
OPENLDAP_DESC=		OpenLDAP backend
49
OPENLDAP_DESC=		OpenLDAP backend
52
OPENLDAP_LOCAL_DESC=	RUN_DEPEND on OpenLDAP server
53
SQLITE3_DESC=		SQLite 3 backend
50
SQLITE3_DESC=		SQLite 3 backend
54
GEO_DESC=		Geo backend
51
GEO_DESC=		Geo backend
52
GEOIP_DESC=		GeoIP backend
55
DNSSEC_DESC=		Extra DNSSEC options
53
DNSSEC_DESC=		Extra DNSSEC options
56
BOTAN110_DESC=		Faster signing + ECDSA & GOST algorithms
54
BOTAN110_DESC=		Faster signing + ECDSA & GOST algorithms
57
CRYPTOPP_DESC=		ECDSA algorithms
58
POLARSSL_DESC=		Use embedded PolarSSL
55
POLARSSL_DESC=		Use embedded PolarSSL
56
LMDB_DESC=		LMDB backend
59
LUA_DESC=		Lua backend
57
LUA_DESC=		Lua backend
60
MYDNS_DESC=		MyDNS backend
58
MYDNS_DESC=		MyDNS backend
61
REMOTE_DESC=		Remote backend
59
REMOTE_DESC=		Remote backend
62
REMOTE_HTTP_DESC=	Enable HTTP for the Remote backed
63
TINYDNS_DESC=		TinyDNS backend
60
TINYDNS_DESC=		TinyDNS backend
64
TOOLS_DESC=		Build extra tools
61
TOOLS_DESC=		Build extra tools
65
62
66
OPTIONS_DEFAULT=	PGSQL DNSSEC BOTAN110 POLARSSL
63
OPTIONS_DEFAULT=	PGSQLDB DNSSEC BOTAN110 POLARSSL
67
64
68
OPTIONS_SUB=	yes
65
OPTIONS_SUB=	yes
69
66
Lines 74-116 TOOLS_CONFIGURE_ON= --enable-tools Link Here
74
71
75
PGSQL_CONFIGURE_ON=	--with-pgsql=${LOCALBASE}
72
PGSQL_CONFIGURE_ON=	--with-pgsql=${LOCALBASE}
76
PGSQL_CONFIGURE_OFF=	--without-pgsql
73
PGSQL_CONFIGURE_OFF=	--without-pgsql
77
PGSQL_USE=		PGSQL=YES
74
PGSQL_USE=		USES+= pgsql
78
PGSQL_LOCAL_USE=	PGSQL=server
79
75
80
MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
76
MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
81
MYSQL_CONFIGURE_OFF=	--without-mysql
77
MYSQL_CONFIGURE_OFF=	--without-mysql
82
MYSQL_USE=		MYSQL=YES
78
MYSQL_USE=		MYSQL=YES
83
MYSQL_LOCAL_USE=	MYSQL=server
84
79
85
MYDNS_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
80
MYDNS_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
86
MYDNS_USE=		MYSQL=YES
81
MYDNS_USE=		MYSQL=YES
87
MYDNS_LOCAL_USE=	MYSQL=server
88
82
89
OPENLDAP_CXXFLAGS=	-DLDAP_DEPRECATED=1
83
OPENLDAP_CXXFLAGS=	-DLDAP_DEPRECATED=1
90
OPENLDAP_USE=		OPENLDAP=YES
84
OPENLDAP_USE=		OPENLDAP=YES
91
OPENLDAP_LOCAL_RUN_DEPENDS=	openldap-server>=0:${PORTSDIR}/net/openldap24-server
92
85
93
REMOTE_HTTP_CONFIGURE_ON=	--enable-remotebackend-http
86
SQLITE3_USE=		SQLITE=3
94
REMOTE_HTTP_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
95
96
CRYPTOPP_CONFIGURE_ON=		--enable-cryptopp
97
98
SQLITE3_USE=	SQLITE=3
99
87
100
OPENDBX_LIB_DEPENDS=	libopendbx.so:${PORTSDIR}/databases/opendbx
88
OPENDBX_LIB_DEPENDS=	libopendbx.so:${PORTSDIR}/databases/opendbx
101
89
102
BOTAN110_CONFIGURE_ON=		--enable-botan1.10
90
BOTAN110_CONFIGURE_ON=	--enable-botan1.10
103
BOTAN110_LIB_DEPENDS=		libbotan-1.10.so:${PORTSDIR}/security/botan110
91
BOTAN110_LIB_DEPENDS=	libbotan-1.10.so:${PORTSDIR}/security/botan110
104
92
105
TINYDNS_LIB_DEPENDS=	libcdb.so:${PORTSDIR}/databases/tinycdb
93
TINYDNS_LIB_DEPENDS=	libcdb.so:${PORTSDIR}/databases/tinycdb
106
TINYDNS_CONFIGURE_ON=	CDB_LIBS="-L${LOCALBASE}/lib -lcdb" CDB_CFLAGS="-I${LOCALBASE}/include"
94
TINYDNS_CONFIGURE_ON=	CDB_LIBS="-L${LOCALBASE}/lib -lcdb" CDB_CFLAGS="-I${LOCALBASE}/include"
107
95
96
LMDB_LIB_DEPENDS=	liblmdb.so:${PORTSDIR}/databases/lmdb
97
98
GEOIP_LIB_DEPENDS=	libyaml-cpp.so:${PORTSDIR}/devel/yaml-cpp \
99
			libGeoIP.so:${PORTSDIR}/net/GeoIP
100
108
.include <bsd.port.options.mk>
101
.include <bsd.port.options.mk>
109
102
110
.if ${PORT_OPTIONS:MGEO}
103
.if ${PORT_OPTIONS:MGEO}
111
MODULES+=	geo
104
MODULES+=	geo
112
.endif
105
.endif
113
106
107
.if ${PORT_OPTIONS:MGEOIP}
108
MODULES+=	geoip
109
.endif
110
114
.if ${PORT_OPTIONS:MPGSQL}
111
.if ${PORT_OPTIONS:MPGSQL}
115
MODULES+=	gpgsql
112
MODULES+=	gpgsql
116
.endif
113
.endif
Lines 119-150 MODULES+= gpgsql Link Here
119
MODULES+=	gmysql
116
MODULES+=	gmysql
120
.endif
117
.endif
121
118
122
.if ${PORT_OPTIONS:MPGSQL_LOCAL}
123
SUB_LIST+=	PGSQL_REQ=postgresql
124
.else
125
SUB_LIST+=	PGSQL_REQ=
126
.endif
127
128
.if ${PORT_OPTIONS:MMYSQL_LOCAL}
129
SUB_LIST+=	MYSQL_REQ=mysql
130
.else
131
SUB_LIST+=	MYSQL_REQ=
132
.endif
133
134
.if ${PORT_OPTIONS:MOPENLDAP}
119
.if ${PORT_OPTIONS:MOPENLDAP}
135
MODULES+=	ldap
120
MODULES+=	ldap
136
.endif
121
.endif
137
122
138
.if ${PORT_OPTIONS:MOPENLDAP_LOCAL}
139
SUB_LIST+=	SLAPD_REQ=slapd
140
.else
141
SUB_LIST+=	SLAPD_REQ=
142
.endif
143
144
.if ${PORT_OPTIONS:MSQLITE3}
123
.if ${PORT_OPTIONS:MSQLITE3}
145
MODULES+=	gsqlite3
124
MODULES+=	gsqlite3
146
.endif
125
.endif
147
126
127
.if ${PORT_OPTIONS:MLMDB}
128
MODULES+=	lmdb
129
.endif
130
148
.if ${PORT_OPTIONS:MLUA}
131
.if ${PORT_OPTIONS:MLUA}
149
MODULES+=	lua
132
MODULES+=	lua
150
.endif
133
.endif
Lines 165-178 MODULES+= tinydns Link Here
165
MODULES+=	opendbx
148
MODULES+=	opendbx
166
.endif
149
.endif
167
150
168
.if ${PORT_OPTIONS:MCRYPTOPP}
169
.	if exists(${LOCALBASE}/lib/libcryptopp.so)
170
LIB_DEPENDS+=	libcryptopp.so:${PORTSDIR}/security/cryptopp
171
.	else
172
BUILD_DEPENDS+=	${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp
173
.	endif
174
.endif
175
176
.if ${PORT_OPTIONS:MPOLARSSL}
151
.if ${PORT_OPTIONS:MPOLARSSL}
177
CONFIGURE_ARGS+=	--without-system-polarssl
152
CONFIGURE_ARGS+=	--without-system-polarssl
178
.else
153
.else
(-)b/dns/powerdns/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pdns-3.3.1.tar.gz) = feb566994725e049391e9b862c9437ca545f1bb970143d2387e474a6ff645bf3
1
SHA256 (pdns-3.4.0.tar.bz2) = 0780f7a7fe768f9debc9decadb5d3a555b716eed14296e7c41f355bf8db4825e
2
SIZE (pdns-3.3.1.tar.gz) = 1403435
2
SIZE (pdns-3.4.0.tar.bz2) = 1234318
(-)b/dns/powerdns/files/patch-pdns__Makefile.in (-49 / +20 lines)
Lines 1-49 Link Here
1
--- ./pdns/Makefile.in.orig	2013-12-17 14:47:45.000000000 +0100
1
--- pdns/Makefile.in.orig	2014-09-30 09:23:53 UTC
2
+++ ./pdns/Makefile.in	2014-01-16 13:37:09.328942976 +0100
2
+++ pdns/Makefile.in
3
@@ -66,7 +66,7 @@
3
@@ -70,7 +70,7 @@
4
 	nproxy$(EXEEXT) notify$(EXEEXT) pdnssec$(EXEEXT) \
4
 	notify$(EXEEXT) dnsbulktest$(EXEEXT) nsec3dig$(EXEEXT) \
5
 	dnsbulktest$(EXEEXT) nsec3dig$(EXEEXT)
5
 	saxfr$(EXEEXT)
6
 @BOTAN110_TRUE@am__append_4 = botan110signers.cc botansigners.cc
6
 @BOTAN110_TRUE@am__append_5 = botan110signers.cc botansigners.cc
7
-@BOTAN110_TRUE@am__append_5 = $(BOTAN110_LIBS) -lgmp -lrt
7
-@BOTAN110_TRUE@am__append_6 = $(BOTAN110_LIBS) -lgmp -lrt
8
+@BOTAN110_TRUE@am__append_5 = $(BOTAN110_LIBS)
8
+@BOTAN110_TRUE@am__append_6 = $(BOTAN110_LIBS)
9
 @BOTAN18_TRUE@am__append_6 = botan18signers.cc botansigners.cc
9
 @BOTAN18_TRUE@am__append_7 = botan18signers.cc botansigners.cc
10
 @BOTAN18_TRUE@am__append_7 = $(BOTAN18_LIBS) -lgmp
10
 @BOTAN18_TRUE@am__append_8 = $(BOTAN18_LIBS) -lgmp
11
 @CRYPTOPP_TRUE@am__append_8 = cryptoppsigners.cc
11
 @CRYPTOPP_TRUE@am__append_9 = cryptoppsigners.cc
12
@@ -74,7 +74,7 @@
12
@@ -81,7 +81,7 @@
13
 @SQLITE3_TRUE@am__append_10 = ssqlite3.cc ssqlite3.hh
13
 @PKCS11_TRUE@am__append_14 = $(P11KIT1_LIBS)
14
 @ORACLE_TRUE@am__append_11 = $(ORACLE_LIBS)
14
 @LMDB_TRUE@am__append_15 = zone2lmdb
15
 @BOTAN110_TRUE@am__append_12 = botan110signers.cc botansigners.cc
15
 @BOTAN110_TRUE@am__append_16 = botan110signers.cc botansigners.cc
16
-@BOTAN110_TRUE@am__append_13 = $(BOTAN110_LIBS) -lgmp -lrt
16
-@BOTAN110_TRUE@am__append_17 = $(BOTAN110_LIBS) -lgmp -lrt
17
+@BOTAN110_TRUE@am__append_13 = $(BOTAN110_LIBS)
17
+@BOTAN110_TRUE@am__append_17 = $(BOTAN110_LIBS)
18
 @BOTAN18_TRUE@am__append_14 = botan18signers.cc botansigners.cc
18
 @BOTAN18_TRUE@am__append_18 = botan18signers.cc botansigners.cc
19
 @BOTAN18_TRUE@am__append_15 = $(BOTAN18_LIBS) -lgmp
19
 @BOTAN18_TRUE@am__append_19 = $(BOTAN18_LIBS) -lgmp
20
 @CRYPTOPP_TRUE@am__append_16 = cryptoppsigners.cc
20
 @CRYPTOPP_TRUE@am__append_20 = cryptoppsigners.cc
21
@@ -750,8 +750,8 @@
22
 top_builddir = @top_builddir@
23
 top_srcdir = @top_srcdir@
24
 AM_CXXFLAGS = -DSYSCONFDIR=\"@sysconfdir@\" -DLIBDIR=\"@libdir@\" -DLOCALSTATEDIR=\"@socketdir@\" -Ibackends/bind @THREADFLAGS@ $(LUA_CFLAGS) $(SQLITE3_CFLAGS) $(POLARSSL_CFLAGS) -Iext/rapidjson/include
25
-AM_CPPFLAGS = -Ibackends/bind $(BOOST_CPPFLAGS) @THREADFLAGS@ \
26
-	$(LIBCURL_CFLAGS) $(am__append_1) $(am__append_2)
27
+AM_CPPFLAGS = -Ibackends/bind @THREADFLAGS@ \
28
+	$(am__append_1) $(am__append_2) $(BOOST_CPPFLAGS)
29
 EXTRA_DIST = dnslabeltext.rl dnslabeltext.cc mtasker.cc inflighter.cc docs/pdns_control.8  \
30
 	docs/pdns_server.8 docs/zone2sql.8 docs/zone2ldap.8 docs/pdnssec.8 \
31
 	docs/dnsreplay.8 docs/dnsscope.8 docs/dnswasher.8 docs/pdnssec.8 docs/zone2ldap.8 \
32
@@ -797,7 +797,7 @@
33
 #
34
 pdns_server_LDFLAGS = @moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@  $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic
35
 pdns_server_LDADD = $(POLARSSL_LIBS) $(BOOST_SERIALIZATION_LIBS) \
36
-	$(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(am__append_5) \
37
+	$(LUA_LIBS) $(SQLITE3_LIBS) $(am__append_5) \
38
 	$(am__append_7) $(am__append_9) $(am__append_11)
39
 pdnssec_SOURCES = pdnssec.cc dbdnsseckeeper.cc sstuff.hh dnsparser.cc \
40
 	dnsparser.hh dnsrecords.cc dnswriter.cc dnswriter.hh misc.cc \
41
@@ -819,7 +819,7 @@
42
 	$(am__append_18)
43
 pdnssec_LDFLAGS = @moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) 
44
 pdnssec_LDADD = $(POLARSSL_LIBS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
45
-	$(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) \
46
+	$(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) \
47
 	$(am__append_13) $(am__append_15) $(am__append_17) \
48
 	$(am__append_19)
49
 sdig_SOURCES = sdig.cc sstuff.hh dnsparser.cc dnsparser.hh dnsrecords.cc dnswriter.cc dnslabeltext.cc dnswriter.hh \
(-)b/dns/powerdns/files/pdns.conf (-137 / +1500 lines)
Lines 1-140 Link Here
1
# MySQL
1
# Autogenerated configuration file template
2
#launch=gmysql
2
#################################
3
#gmysql-host=127.0.0.1
3
# allow-axfr-ips	Allow zonetransfers only to these subnets
4
#gmysql-dbname=pdns
4
#
5
#gmysql-user=pdns
5
# allow-axfr-ips=127.0.0.0/8,::1
6
#gmysql-password=pdns
6
7
7
#################################
8
# PostgreSQL
8
# allow-dnsupdate-from	A global setting to allow DNS updates from these IP ranges.
9
#launch=gpgsql
9
#
10
#gpgsql-host=127.0.0.1
10
# allow-dnsupdate-from=127.0.0.0/8,::1
11
#gpgsql-dbname=pdns
11
12
#gpgsql-user=pdns
12
#################################
13
#gpgsql-password=pdns
13
# allow-recursion	List of subnets that are allowed to recurse
14
14
#
15
# SQLite 2
15
# allow-recursion=0.0.0.0/0
16
#launch=gsqlite
16
17
#gsqlite-database=<path to your SQLite database>
17
#################################
18
18
# also-notify	When notifying a domain, also notify these nameservers
19
# SQLite 3
19
#
20
#launch=gsqlite3
20
# also-notify=
21
#gsqlite3-database=<path to your SQLite database>
21
22
22
#################################
23
# LDAP (check http://www.linuxnetworks.de for more information)
23
# any-to-tcp	Answer ANY queries with tc=1, shunting to TCP
24
#launch=ldap
24
#
25
#ldap-host (default "127.0.0.1:389")
25
# any-to-tcp=no
26
#ldap-starttls (default "no")
26
27
#ldap-basedn (default "")
27
#################################
28
#ldap-binddn (default "")
28
# bind-check-interval	Interval for zonefile changes
29
#ldap-secret (default "")
29
#
30
#ldap-method (default "simple")
30
# bind-check-interval=0
31
#ldap-filter-axfr (default "(:target:)" )
31
32
#ldap-filter-lookup (default "(:target:)" )
32
#################################
33
33
# bind-config	Location of named.conf
34
# OpenDBX (check http://www.linuxnetworks.de for more information)
34
#
35
#launch=opendbx
35
# bind-config=
36
#opendbx-backend (default "mysql")
36
37
#opendbx-host-read (default "127.0.0.1")
37
#################################
38
#opendbx-host-write (default "127.0.0.1")
38
# bind-dnssec-db	Filename to store & access our DNSSEC metadatabase, empty for none
39
#opendbx-database (default "powerdns")
39
#
40
#opendbx-username (default "powerdns")
40
# bind-dnssec-db=
41
#opendbx-password (default "")
41
42
#################################
43
# bind-hybrid	Store DNSSEC metadata in other backend
44
#
45
# bind-hybrid=no
46
47
#################################
48
# bind-ignore-broken-records	Ignore records that are out-of-bound for the zone.
49
#
50
# bind-ignore-broken-records=no
51
52
#################################
53
# bind-supermaster-config	Location of (part of) named.conf where pdns can write zone-statements to
54
#
55
# bind-supermaster-config=
56
57
#################################
58
# bind-supermaster-destdir	Destination directory for newly added slave zones
59
#
60
# bind-supermaster-destdir=/usr/local/etc/pdns
61
62
#################################
63
# bind-supermasters	List of IP-addresses of supermasters
64
#
65
# bind-supermasters=
66
67
#################################
68
# cache-ttl	Seconds to store packets in the PacketCache
69
#
70
# cache-ttl=20
71
72
#################################
73
# carbon-interval	Number of seconds between carbon (graphite) updates
74
#
75
# carbon-interval=30
76
77
#################################
78
# carbon-ourname	If set, overrides our reported hostname for carbon stats
79
#
80
# carbon-ourname=
81
82
#################################
83
# carbon-server	If set, send metrics in carbon (graphite) format to this server
84
#
85
# carbon-server=
86
87
#################################
88
# chroot	If set, chroot to this directory for more security
89
#
90
# chroot=
91
92
#################################
93
# config-dir	Location of configuration directory (pdns.conf)
94
#
95
# config-dir=/usr/local/etc/pdns
96
97
#################################
98
# config-name	Name of this virtual configuration - will rename the binary image
99
#
100
# config-name=
101
102
#################################
103
# control-console	Debugging switch - don't use
104
#
105
# control-console=no
106
107
#################################
108
# daemon	Operate as a daemon
109
#
110
# daemon=no
111
112
#################################
113
# default-ksk-algorithms	Default KSK algorithms
114
#
115
# default-ksk-algorithms=rsasha256
116
117
#################################
118
# default-ksk-size	Default KSK size (0 means default)
119
#
120
# default-ksk-size=0
121
122
#################################
123
# default-soa-mail	mail address to insert in the SOA record if none set in the backend
124
#
125
# default-soa-mail=
126
127
#################################
128
# default-soa-name	name to insert in the SOA record if none set in the backend
129
#
130
# default-soa-name=a.misconfigured.powerdns.server
131
132
#################################
133
# default-ttl	Seconds a result is valid if not set otherwise
134
#
135
# default-ttl=3600
136
137
#################################
138
# default-zsk-algorithms	Default ZSK algorithms
139
#
140
# default-zsk-algorithms=rsasha256
141
142
#################################
143
# default-zsk-size	Default ZSK size (0 means default)
144
#
145
# default-zsk-size=0
146
147
#################################
148
# direct-dnskey	Fetch DNSKEY RRs from backend during DNSKEY synthesis
149
#
150
# direct-dnskey=no
151
152
#################################
153
# disable-axfr	Disable zonetransfers but do allow TCP queries
154
#
155
# disable-axfr=no
156
157
#################################
158
# disable-axfr-rectify	Disable the rectify step during an outgoing AXFR. Only required for regression testing.
159
#
160
# disable-axfr-rectify=no
161
162
#################################
163
# disable-tcp	Do not listen to TCP queries
164
#
165
# disable-tcp=no
166
167
#################################
168
# distributor-threads	Default number of Distributor (backend) threads to start
169
#
170
# distributor-threads=3
171
172
#################################
173
# do-ipv6-additional-processing	Do AAAA additional processing
174
#
175
# do-ipv6-additional-processing=yes
176
177
#################################
178
# edns-subnet-processing	If we should act on EDNS Subnet options
179
#
180
# edns-subnet-processing=no
181
182
#################################
183
# entropy-source	If set, read entropy from this file
184
#
185
# entropy-source=/dev/urandom
186
187
#################################
188
# experimental-api-readonly	If the JSON API should disallow data modification
189
#
190
# experimental-api-readonly=no
191
192
#################################
193
# experimental-dname-processing	If we should support DNAME records
194
#
195
# experimental-dname-processing=no
196
197
#################################
198
# experimental-dnsupdate	Enable/Disable DNS update (RFC2136) support. Default is no.
199
#
200
# experimental-dnsupdate=no
201
202
#################################
203
# experimental-json-interface	If the webserver should serve JSON data
204
#
205
# experimental-json-interface=no
206
207
#################################
208
# experimental-logfile	Filename of the log file for JSON parser
209
#
210
# experimental-logfile=/var/log/pdns.log
211
212
#################################
213
# forward-dnsupdate	A global setting to allow DNS update packages that are for a Slave domain, to be forwarded to the master.
214
#
215
# forward-dnsupdate=yes
216
217
#################################
218
# geo-ip-map-zonefile	path to the rbldnsd format zonefile
219
#
220
# geo-ip-map-zonefile=zz.countries.nerd.dk.rbldnsd
221
222
#################################
223
# geo-maps	list of paths to director maps or directories containing director map files
224
#
225
# geo-maps=
226
227
#################################
228
# geo-ns-records	targets of the NS records, comma separated.
229
#
230
# geo-ns-records=
231
232
#################################
233
# geo-ns-ttl	TTL value for NS records
234
#
235
# geo-ns-ttl=86400
236
237
#################################
238
# geo-soa-values	values of the SOA master nameserver and hostmaster fields, comma separated
239
#
240
# geo-soa-values=
241
242
#################################
243
# geo-ttl	TTL value for geo records
244
#
245
# geo-ttl=3600
246
247
#################################
248
# geo-zone	zonename to be served
249
#
250
# geo-zone=
251
252
#################################
253
# geoip-database-cache	Cache mode (standard, memory, index, mmap)
254
#
255
# geoip-database-cache=standard
256
257
#################################
258
# geoip-database-file	File to load IPv4 geoip data from
259
#
260
# geoip-database-file=/usr/share/GeoIP/GeoIP.dat
261
262
#################################
263
# geoip-database-file6	File to load IPv6 geoip data from
264
#
265
# geoip-database-file6=/usr/share/GeoIP/GeoIPv6.dat
266
267
#################################
268
# geoip-dnssec-keydir	Directory to hold dnssec keys (also turns DNSSEC on)
269
#
270
# geoip-dnssec-keydir=
271
272
#################################
273
# geoip-zones-file	YAML file to load zone(s) configuration
274
#
275
# geoip-zones-file=
276
277
#################################
278
# gmysql-activate-domain-key-query	
279
#
280
# gmysql-activate-domain-key-query=update cryptokeys set active=1 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d
281
282
#################################
283
# gmysql-add-domain-key-query	
284
#
285
# gmysql-add-domain-key-query=insert into cryptokeys (domain_id, flags, active, content) select id, %d, %d, '%s' from domains where name='%s'
286
287
#################################
288
# gmysql-any-id-query	Any with ID query
289
#
290
# gmysql-any-id-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='%s' and domain_id=%d
291
292
#################################
293
# gmysql-any-query	Any query
294
#
295
# gmysql-any-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='%s'
296
297
#################################
298
# gmysql-basic-query	Basic query
299
#
300
# gmysql-basic-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='%s' and name='%s'
301
302
#################################
303
# gmysql-clear-domain-all-keys-query	
304
#
305
# gmysql-clear-domain-all-keys-query=delete from cryptokeys where domain_id=(select id from domains where name='%s')
306
307
#################################
308
# gmysql-clear-domain-all-metadata-query	
309
#
310
# gmysql-clear-domain-all-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name='%s')
311
312
#################################
313
# gmysql-clear-domain-metadata-query	
314
#
315
# gmysql-clear-domain-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name='%s') and domainmetadata.kind='%s'
316
317
#################################
318
# gmysql-dbname	Pdns backend database name to connect to
319
#
320
# gmysql-dbname=powerdns
321
322
#################################
323
# gmysql-deactivate-domain-key-query	
324
#
325
# gmysql-deactivate-domain-key-query=update cryptokeys set active=0 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d
326
327
#################################
328
# gmysql-delete-comment-rrset-query	
329
#
330
# gmysql-delete-comment-rrset-query=DELETE FROM comments WHERE domain_id=%d AND name='%s' AND type='%s'
331
332
#################################
333
# gmysql-delete-comments-query	
334
#
335
# gmysql-delete-comments-query=DELETE FROM comments WHERE domain_id=%d
336
337
#################################
338
# gmysql-delete-domain-query	
339
#
340
# gmysql-delete-domain-query=delete from domains where name='%s'
341
342
#################################
343
# gmysql-delete-empty-non-terminal-query	delete empty non-terminal from zone
344
#
345
# gmysql-delete-empty-non-terminal-query=delete from records where domain_id='%d' and name='%s' and type is null
346
347
#################################
348
# gmysql-delete-names-query	
349
#
350
# gmysql-delete-names-query=delete from records where domain_id = %d and name='%s'
351
352
#################################
353
# gmysql-delete-rrset-query	
354
#
355
# gmysql-delete-rrset-query=delete from records where domain_id=%d and name='%s' and type='%s'
356
357
#################################
358
# gmysql-delete-tsig-key-query	
359
#
360
# gmysql-delete-tsig-key-query=delete from tsigkeys where name='%s'
361
362
#################################
363
# gmysql-delete-zone-query	
364
#
365
# gmysql-delete-zone-query=delete from records where domain_id=%d
366
367
#################################
368
# gmysql-dnssec	Enable DNSSEC processing
369
#
370
# gmysql-dnssec=no
371
372
#################################
373
# gmysql-get-all-domain-metadata-query	
374
#
375
# gmysql-get-all-domain-metadata-query=select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s'
376
377
#################################
378
# gmysql-get-all-domains-query	Retrieve all domains
379
#
380
# gmysql-get-all-domains-query=select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=0 OR %d
381
382
#################################
383
# gmysql-get-domain-metadata-query	
384
#
385
# gmysql-get-domain-metadata-query=select content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s' and domainmetadata.kind='%s'
386
387
#################################
388
# gmysql-get-order-after-query	DNSSEC Ordering Query, after
389
#
390
# gmysql-get-order-after-query=select min(ordername) from records where ordername > '%s' and domain_id=%d and disabled=0 and ordername is not null
391
392
#################################
393
# gmysql-get-order-before-query	DNSSEC Ordering Query, before
394
#
395
# gmysql-get-order-before-query=select ordername, name from records where ordername <= '%s' and domain_id=%d and disabled=0 and ordername is not null order by 1 desc limit 1
396
397
#################################
398
# gmysql-get-order-first-query	DNSSEC Ordering Query, first
399
#
400
# gmysql-get-order-first-query=select ordername, name from records where domain_id=%d and disabled=0 and ordername is not null order by 1 asc limit 1
401
402
#################################
403
# gmysql-get-order-last-query	DNSSEC Ordering Query, last
404
#
405
# gmysql-get-order-last-query=select ordername, name from records where ordername != '' and domain_id=%d and disabled=0 and ordername is not null order by 1 desc limit 1
406
407
#################################
408
# gmysql-get-tsig-key-query	
409
#
410
# gmysql-get-tsig-key-query=select algorithm, secret from tsigkeys where name='%s'
411
412
#################################
413
# gmysql-get-tsig-keys-query	
414
#
415
# gmysql-get-tsig-keys-query=select name,algorithm, secret from tsigkeys
416
417
#################################
418
# gmysql-group	Pdns backend MySQL 'group' to connect as
419
#
420
# gmysql-group=client
421
422
#################################
423
# gmysql-host	Database backend host to connect to
424
#
425
# gmysql-host=
426
427
#################################
428
# gmysql-id-query	Basic with ID query
429
#
430
# gmysql-id-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='%s' and name='%s' and domain_id=%d
431
432
#################################
433
# gmysql-info-all-master-query	
434
#
435
# gmysql-info-all-master-query=select id,name,master,last_check,notified_serial,type from domains where type='MASTER'
436
437
#################################
438
# gmysql-info-all-slaves-query	
439
#
440
# gmysql-info-all-slaves-query=select id,name,master,last_check,type from domains where type='SLAVE'
441
442
#################################
443
# gmysql-info-zone-query	
444
#
445
# gmysql-info-zone-query=select id,name,master,last_check,notified_serial,type from domains where name='%s'
446
447
#################################
448
# gmysql-innodb-read-committed	Use InnoDB READ-COMMITTED transaction isolation level
449
#
450
# gmysql-innodb-read-committed=yes
451
452
#################################
453
# gmysql-insert-comment-query	
454
#
455
# gmysql-insert-comment-query=INSERT INTO comments (domain_id, name, type, modified_at, account, comment) VALUES (%d, '%s', '%s', %d, '%s', '%s')
456
457
#################################
458
# gmysql-insert-empty-non-terminal-query	insert empty non-terminal in zone
459
#
460
# gmysql-insert-empty-non-terminal-query=insert into records (domain_id,name,type,disabled,auth) values ('%d','%s',null,0,'1')
461
462
#################################
463
# gmysql-insert-ent-order-query	insert empty non-terminal in zone
464
#
465
# gmysql-insert-ent-order-query=insert into records (type,domain_id,disabled,name,ordername,auth) values (null,'%d',0,'%s','%s','%d')
466
467
#################################
468
# gmysql-insert-ent-query	insert empty non-terminal in zone
469
#
470
# gmysql-insert-ent-query=insert into records (type,domain_id,disabled,name,auth) values (null,'%d',0,'%s','%d')
471
472
#################################
473
# gmysql-insert-record-order-query	
474
#
475
# gmysql-insert-record-order-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,ordername,auth) values ('%s',%d,%d,'%s',%d,%d,'%s','%s','%d')
476
477
#################################
478
# gmysql-insert-record-query	
479
#
480
# gmysql-insert-record-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,auth) values ('%s',%d,%d,'%s',%d,%d,'%s','%d')
481
482
#################################
483
# gmysql-insert-slave-query	
484
#
485
# gmysql-insert-slave-query=insert into domains (type,name,master,account) values('SLAVE','%s','%s','%s')
486
487
#################################
488
# gmysql-insert-zone-query	
489
#
490
# gmysql-insert-zone-query=insert into domains (type,name) values('NATIVE','%s')
491
492
#################################
493
# gmysql-list-comments-query	
494
#
495
# gmysql-list-comments-query=SELECT domain_id,name,type,modified_at,account,comment FROM comments WHERE domain_id=%d
496
497
#################################
498
# gmysql-list-domain-keys-query	
499
#
500
# gmysql-list-domain-keys-query=select cryptokeys.id, flags, active, content from domains, cryptokeys where cryptokeys.domain_id=domains.id and name='%s'
501
502
#################################
503
# gmysql-list-query	AXFR query
504
#
505
# gmysql-list-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE (disabled=0 OR %d) and domain_id='%d' order by name, type
506
507
#################################
508
# gmysql-list-subzone-query	Subzone listing
509
#
510
# gmysql-list-subzone-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and (name='%s' OR name like '%s') and domain_id='%d'
511
512
#################################
513
# gmysql-master-zone-query	Data
514
#
515
# gmysql-master-zone-query=select master from domains where name='%s' and type='SLAVE'
516
517
#################################
518
# gmysql-nullify-ordername-and-auth-query	DNSSEC nullify ordername and auth query
519
#
520
# gmysql-nullify-ordername-and-auth-query=update records set ordername=NULL,auth=0 where name='%s' and type='%s' and domain_id='%d' and disabled=0
521
522
#################################
523
# gmysql-nullify-ordername-and-update-auth-query	DNSSEC nullify ordername and update auth query
524
#
525
# gmysql-nullify-ordername-and-update-auth-query=update records set ordername=NULL,auth=%d where domain_id='%d' and name='%s' and disabled=0
526
527
#################################
528
# gmysql-password	Pdns backend password to connect with
529
#
530
# gmysql-password=
531
532
#################################
533
# gmysql-port	Database backend port to connect to
534
#
535
# gmysql-port=0
536
537
#################################
538
# gmysql-remove-domain-key-query	
539
#
540
# gmysql-remove-domain-key-query=delete from cryptokeys where domain_id=(select id from domains where name='%s') and cryptokeys.id=%d
541
542
#################################
543
# gmysql-remove-empty-non-terminals-from-zone-query	remove all empty non-terminals from zone
544
#
545
# gmysql-remove-empty-non-terminals-from-zone-query=delete from records where domain_id='%d' and type is null
546
547
#################################
548
# gmysql-set-auth-on-ds-record-query	DNSSEC set auth on a DS record
549
#
550
# gmysql-set-auth-on-ds-record-query=update records set auth=1 where domain_id='%d' and name='%s' and type='DS' and disabled=0
551
552
#################################
553
# gmysql-set-domain-metadata-query	
554
#
555
# gmysql-set-domain-metadata-query=insert into domainmetadata (domain_id, kind, content) select id, '%s', '%s' from domains where name='%s'
556
557
#################################
558
# gmysql-set-order-and-auth-query	DNSSEC set ordering query
559
#
560
# gmysql-set-order-and-auth-query=update records set ordername='%s',auth=%d where name='%s' and domain_id='%d' and disabled=0
561
562
#################################
563
# gmysql-set-tsig-key-query	
564
#
565
# gmysql-set-tsig-key-query=replace into tsigkeys (name,algorithm,secret) values('%s','%s','%s')
566
567
#################################
568
# gmysql-socket	Pdns backend socket to connect to
569
#
570
# gmysql-socket=
571
572
#################################
573
# gmysql-supermaster-name-to-ips	
574
#
575
# gmysql-supermaster-name-to-ips=select ip,account from supermasters where nameserver='%s' and account='%s'
576
577
#################################
578
# gmysql-supermaster-query	
579
#
580
# gmysql-supermaster-query=select account from supermasters where ip='%s' and nameserver='%s'
581
582
#################################
583
# gmysql-update-kind-query	
584
#
585
# gmysql-update-kind-query=update domains set type='%s' where name='%s'
586
587
#################################
588
# gmysql-update-lastcheck-query	
589
#
590
# gmysql-update-lastcheck-query=update domains set last_check=%d where id=%d
591
592
#################################
593
# gmysql-update-master-query	
594
#
595
# gmysql-update-master-query=update domains set master='%s' where name='%s'
596
597
#################################
598
# gmysql-update-serial-query	
599
#
600
# gmysql-update-serial-query=update domains set notified_serial=%d where id=%d
601
602
#################################
603
# gmysql-user	Database backend user to connect as
604
#
605
# gmysql-user=powerdns
606
607
#################################
608
# gmysql-zone-lastchange-query	
609
#
610
# gmysql-zone-lastchange-query=select max(change_date) from records where domain_id=%d
611
612
#################################
613
# gpgsql-activate-domain-key-query	
614
#
615
# gpgsql-activate-domain-key-query=update cryptokeys set active=true where domain_id=(select id from domains where name=E'%s') and  cryptokeys.id=%d
616
617
#################################
618
# gpgsql-add-domain-key-query	
619
#
620
# gpgsql-add-domain-key-query=insert into cryptokeys (domain_id, flags, active, content) select id, %d, (%d = 1), '%s' from domains where name=E'%s'
621
622
#################################
623
# gpgsql-any-id-query	Any with ID query
624
#
625
# gpgsql-any-id-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and name=E'%s' and domain_id=%d
626
627
#################################
628
# gpgsql-any-query	Any query
629
#
630
# gpgsql-any-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and name=E'%s'
631
632
#################################
633
# gpgsql-basic-query	Basic query
634
#
635
# gpgsql-basic-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and type='%s' and name=E'%s'
636
637
#################################
638
# gpgsql-clear-domain-all-keys-query	
639
#
640
# gpgsql-clear-domain-all-keys-query=delete from cryptokeys where domain_id=(select id from domains where name=E'%s')
641
642
#################################
643
# gpgsql-clear-domain-all-metadata-query	
644
#
645
# gpgsql-clear-domain-all-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name=E'%s')
646
647
#################################
648
# gpgsql-clear-domain-metadata-query	
649
#
650
# gpgsql-clear-domain-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name=E'%s') and domainmetadata.kind=E'%s'
651
652
#################################
653
# gpgsql-dbname	Pdns backend database name to connect to
654
#
655
# gpgsql-dbname=
656
657
#################################
658
# gpgsql-deactivate-domain-key-query	
659
#
660
# gpgsql-deactivate-domain-key-query=update cryptokeys set active=false where domain_id=(select id from domains where name=E'%s') and  cryptokeys.id=%d
661
662
#################################
663
# gpgsql-delete-comment-rrset-query	
664
#
665
# gpgsql-delete-comment-rrset-query=DELETE FROM comments WHERE domain_id=%d AND name=E'%s' AND type=E'%s'
666
667
#################################
668
# gpgsql-delete-comments-query	
669
#
670
# gpgsql-delete-comments-query=DELETE FROM comments WHERE domain_id=%d
671
672
#################################
673
# gpgsql-delete-domain-query	
674
#
675
# gpgsql-delete-domain-query=delete from domains where name=E'%s'
676
677
#################################
678
# gpgsql-delete-empty-non-terminal-query	delete empty non-terminal from zone
679
#
680
# gpgsql-delete-empty-non-terminal-query=delete from records where domain_id='%d' and name='%s' and type is null
681
682
#################################
683
# gpgsql-delete-names-query	
684
#
685
# gpgsql-delete-names-query=delete from records where domain_id=%d and name=E'%s'
686
687
#################################
688
# gpgsql-delete-rrset-query	
689
#
690
# gpgsql-delete-rrset-query=delete from records where domain_id=%d and name=E'%s' and type=E'%s'
691
692
#################################
693
# gpgsql-delete-tsig-key-query	
694
#
695
# gpgsql-delete-tsig-key-query=delete from tsigkeys where name='%s'
696
697
#################################
698
# gpgsql-delete-zone-query	
699
#
700
# gpgsql-delete-zone-query=delete from records where domain_id=%d
701
702
#################################
703
# gpgsql-dnssec	Enable DNSSEC processing
704
#
705
# gpgsql-dnssec=no
706
707
#################################
708
# gpgsql-get-all-domain-metadata-query	
709
#
710
# gpgsql-get-all-domain-metadata-query=select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name=E'%s'
711
712
#################################
713
# gpgsql-get-all-domains-query	Retrieve all domains
714
#
715
# gpgsql-get-all-domains-query=select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=false OR %d::bool
716
717
#################################
718
# gpgsql-get-domain-metadata-query	
719
#
720
# gpgsql-get-domain-metadata-query=select content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name=E'%s' and domainmetadata.kind=E'%s'
721
722
#################################
723
# gpgsql-get-order-after-query	DNSSEC Ordering Query, after
724
#
725
# gpgsql-get-order-after-query=select ordername from records where disabled=false and ordername ~>~ E'%s' and domain_id=%d and ordername is not null order by 1 using ~<~ limit 1
726
727
#################################
728
# gpgsql-get-order-before-query	DNSSEC Ordering Query, before
729
#
730
# gpgsql-get-order-before-query=select ordername, name from records where disabled=false and ordername ~<=~ E'%s' and domain_id=%d and ordername is not null order by 1 using ~>~ limit 1
731
732
#################################
733
# gpgsql-get-order-first-query	DNSSEC Ordering Query, last
734
#
735
# gpgsql-get-order-first-query=select ordername, name from records where disabled=false and domain_id=%d and ordername is not null order by 1 using ~<~ limit 1
736
737
#################################
738
# gpgsql-get-order-last-query	DNSSEC Ordering Query, last
739
#
740
# gpgsql-get-order-last-query=select ordername, name from records where disabled=false and ordername != '' and domain_id=%d and ordername is not null order by 1 using ~>~ limit 1
741
742
#################################
743
# gpgsql-get-tsig-key-query	
744
#
745
# gpgsql-get-tsig-key-query=select algorithm, secret from tsigkeys where name=E'%s'
746
747
#################################
748
# gpgsql-get-tsig-keys-query	
749
#
750
# gpgsql-get-tsig-keys-query=select name,algorithm, secret from tsigkeys
751
752
#################################
753
# gpgsql-host	Pdns backend host to connect to
754
#
755
# gpgsql-host=
756
757
#################################
758
# gpgsql-id-query	Basic with ID query
759
#
760
# gpgsql-id-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and type='%s' and name=E'%s' and domain_id=%d
761
762
#################################
763
# gpgsql-info-all-master-query	
764
#
765
# gpgsql-info-all-master-query=select id,name,master,last_check,notified_serial,type from domains where type='MASTER'
766
767
#################################
768
# gpgsql-info-all-slaves-query	
769
#
770
# gpgsql-info-all-slaves-query=select id,name,master,last_check,type from domains where type='SLAVE'
771
772
#################################
773
# gpgsql-info-zone-query	
774
#
775
# gpgsql-info-zone-query=select id,name,master,last_check,notified_serial,type from domains where name=E'%s'
776
777
#################################
778
# gpgsql-insert-comment-query	
779
#
780
# gpgsql-insert-comment-query=INSERT INTO comments (domain_id, name, type, modified_at, account, comment) VALUES (%d, E'%s', E'%s', %d, E'%s', E'%s')
781
782
#################################
783
# gpgsql-insert-empty-non-terminal-query	insert empty non-terminal in zone
784
#
785
# gpgsql-insert-empty-non-terminal-query=insert into records (domain_id,name,type,disabled,auth) values ('%d','%s',null,false,true)
786
787
#################################
788
# gpgsql-insert-ent-order-query	insert empty non-terminal in zone
789
#
790
# gpgsql-insert-ent-order-query=insert into records (type,domain_id,disabled,name,ordername,auth) values (null,'%d',false,E'%s',E'%s','%d')
791
792
#################################
793
# gpgsql-insert-ent-query	insert empty non-terminal in zone
794
#
795
# gpgsql-insert-ent-query=insert into records (type,domain_id,disabled,name,auth) values (null,'%d',false,E'%s','%d')
796
797
#################################
798
# gpgsql-insert-record-order-query	
799
#
800
# gpgsql-insert-record-order-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,ordername,auth) values (E'%s',%d,%d,'%s',%d,%d::bool,E'%s',E'%s','%d')
801
802
#################################
803
# gpgsql-insert-record-query	
804
#
805
# gpgsql-insert-record-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,auth) values (E'%s',%d,%d,'%s',%d,%d::bool,E'%s','%d')
806
807
#################################
808
# gpgsql-insert-slave-query	
809
#
810
# gpgsql-insert-slave-query=insert into domains (type,name,master,account) values('SLAVE',E'%s',E'%s',E'%s')
811
812
#################################
813
# gpgsql-insert-zone-query	
814
#
815
# gpgsql-insert-zone-query=insert into domains (type,name) values('NATIVE',E'%s')
816
817
#################################
818
# gpgsql-list-comments-query	
819
#
820
# gpgsql-list-comments-query=SELECT domain_id,name,type,modified_at,account,comment FROM comments WHERE domain_id=%d
821
822
#################################
823
# gpgsql-list-domain-keys-query	
824
#
825
# gpgsql-list-domain-keys-query=select cryptokeys.id, flags, case when active then 1 else 0 end as active, content from domains, cryptokeys where cryptokeys.domain_id=domains.id and name=E'%s'
826
827
#################################
828
# gpgsql-list-query	AXFR query
829
#
830
# gpgsql-list-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE (disabled=false OR %d::bool) and domain_id='%d' order by name, type
831
832
#################################
833
# gpgsql-list-subzone-query	Subzone listing
834
#
835
# gpgsql-list-subzone-query=SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and (name=E'%s' OR name like E'%s') and domain_id='%d'
836
837
#################################
838
# gpgsql-master-zone-query	Data
839
#
840
# gpgsql-master-zone-query=select master from domains where name=E'%s' and type='SLAVE'
841
842
#################################
843
# gpgsql-nullify-ordername-and-auth-query	DNSSEC nullify ordername and auth query
844
#
845
# gpgsql-nullify-ordername-and-auth-query=update records set ordername=NULL,auth=false where name=E'%s' and type=E'%s' and domain_id='%d' and disabled=false
846
847
#################################
848
# gpgsql-nullify-ordername-and-update-auth-query	DNSSEC nullify ordername and update auth query
849
#
850
# gpgsql-nullify-ordername-and-update-auth-query=update records set ordername=NULL,auth=%d::bool where domain_id='%d' and name='%s' and disabled=false
851
852
#################################
853
# gpgsql-password	Pdns backend password to connect with
854
#
855
# gpgsql-password=
856
857
#################################
858
# gpgsql-port	Database backend port to connect to
859
#
860
# gpgsql-port=
861
862
#################################
863
# gpgsql-remove-domain-key-query	
864
#
865
# gpgsql-remove-domain-key-query=delete from cryptokeys where domain_id=(select id from domains where name=E'%s') and cryptokeys.id=%d
866
867
#################################
868
# gpgsql-remove-empty-non-terminals-from-zone-query	remove all empty non-terminals from zone
869
#
870
# gpgsql-remove-empty-non-terminals-from-zone-query=delete from records where domain_id='%d' and type is null
871
872
#################################
873
# gpgsql-set-auth-on-ds-record-query	DNSSEC set auth on a DS record
874
#
875
# gpgsql-set-auth-on-ds-record-query=update records set auth=true where domain_id='%d' and name='%s' and type='DS' and disabled=false
876
877
#################################
878
# gpgsql-set-domain-metadata-query	
879
#
880
# gpgsql-set-domain-metadata-query=insert into domainmetadata (domain_id, kind, content) select id, '%s', '%s' from domains where name=E'%s'
881
882
#################################
883
# gpgsql-set-order-and-auth-query	DNSSEC set ordering query
884
#
885
# gpgsql-set-order-and-auth-query=update records set ordername=E'%s',auth=%d::bool where name=E'%s' and domain_id='%d' and disabled=false
886
887
#################################
888
# gpgsql-set-tsig-key-query	
889
#
890
# gpgsql-set-tsig-key-query=insert into tsigkeys (name,algorithm,secret) values('%s','%s','%s')
891
892
#################################
893
# gpgsql-supermaster-name-to-ips	
894
#
895
# gpgsql-supermaster-name-to-ips=select ip,account from supermasters where nameserver=E'%s' and account=E'%s'
896
897
#################################
898
# gpgsql-supermaster-query	
899
#
900
# gpgsql-supermaster-query=select account from supermasters where ip='%s' and nameserver=E'%s'
901
902
#################################
903
# gpgsql-update-kind-query	
904
#
905
# gpgsql-update-kind-query=update domains set type='%s' where name='%s'
906
907
#################################
908
# gpgsql-update-lastcheck-query	
909
#
910
# gpgsql-update-lastcheck-query=update domains set last_check=%d where id=%d
911
912
#################################
913
# gpgsql-update-master-query	
914
#
915
# gpgsql-update-master-query=update domains set master='%s' where name='%s'
916
917
#################################
918
# gpgsql-update-serial-query	
919
#
920
# gpgsql-update-serial-query=update domains set notified_serial=%d where id=%d
921
922
#################################
923
# gpgsql-user	Pdns backend user to connect as
924
#
925
# gpgsql-user=
926
927
#################################
928
# gpgsql-zone-lastchange-query	
929
#
930
# gpgsql-zone-lastchange-query=select max(change_date) from records where domain_id=%d
931
932
#################################
933
# gsqlite3-activate-domain-key-query	
934
#
935
# gsqlite3-activate-domain-key-query=update cryptokeys set active=1 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d
936
937
#################################
938
# gsqlite3-add-domain-key-query	
939
#
940
# gsqlite3-add-domain-key-query=insert into cryptokeys (domain_id, flags, active, content) select id, %d, %d, '%s' from domains where name='%s'
941
942
#################################
943
# gsqlite3-any-id-query	Any with ID query
944
#
945
# gsqlite3-any-id-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='%s' and domain_id=%d
946
947
#################################
948
# gsqlite3-any-query	Any query
949
#
950
# gsqlite3-any-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name='%s'
951
952
#################################
953
# gsqlite3-basic-query	Basic query
954
#
955
# gsqlite3-basic-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='%s' and name='%s'
956
957
#################################
958
# gsqlite3-clear-domain-all-keys-query	
959
#
960
# gsqlite3-clear-domain-all-keys-query=delete from cryptokeys where domain_id=(select id from domains where name='%s')
961
962
#################################
963
# gsqlite3-clear-domain-all-metadata-query	
964
#
965
# gsqlite3-clear-domain-all-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name='%s')
966
967
#################################
968
# gsqlite3-clear-domain-metadata-query	
969
#
970
# gsqlite3-clear-domain-metadata-query=delete from domainmetadata where domain_id=(select id from domains where name='%s') and domainmetadata.kind='%s'
971
972
#################################
973
# gsqlite3-database	Filename of the SQLite3 database
974
#
975
# gsqlite3-database=powerdns.sqlite
976
977
#################################
978
# gsqlite3-deactivate-domain-key-query	
979
#
980
# gsqlite3-deactivate-domain-key-query=update cryptokeys set active=0 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d
981
982
#################################
983
# gsqlite3-delete-comment-rrset-query	
984
#
985
# gsqlite3-delete-comment-rrset-query=DELETE FROM comments WHERE domain_id=%d AND name='%s' AND type='%s'
986
987
#################################
988
# gsqlite3-delete-comments-query	
989
#
990
# gsqlite3-delete-comments-query=DELETE FROM comments WHERE domain_id=%d
991
992
#################################
993
# gsqlite3-delete-domain-query	
994
#
995
# gsqlite3-delete-domain-query=delete from domains where name='%s'
996
997
#################################
998
# gsqlite3-delete-empty-non-terminal-query	delete empty non-terminal from zone
999
#
1000
# gsqlite3-delete-empty-non-terminal-query=delete from records where domain_id='%d' and name='%s' and type is null
1001
1002
#################################
1003
# gsqlite3-delete-names-query	
1004
#
1005
# gsqlite3-delete-names-query=delete from records where domain_id = %d and name='%s'
1006
1007
#################################
1008
# gsqlite3-delete-rrset-query	
1009
#
1010
# gsqlite3-delete-rrset-query=delete from records where domain_id = %d and name='%s' and type='%s'
1011
1012
#################################
1013
# gsqlite3-delete-tsig-key-query	
1014
#
1015
# gsqlite3-delete-tsig-key-query=delete from tsigkeys where name='%s'
1016
1017
#################################
1018
# gsqlite3-delete-zone-query	
1019
#
1020
# gsqlite3-delete-zone-query=delete from records where domain_id=%d
1021
1022
#################################
1023
# gsqlite3-dnssec	Enable DNSSEC processing
1024
#
1025
# gsqlite3-dnssec=no
1026
1027
#################################
1028
# gsqlite3-get-all-domain-metadata-query	
1029
#
1030
# gsqlite3-get-all-domain-metadata-query=select kind,content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s'
1031
1032
#################################
1033
# gsqlite3-get-all-domains-query	Retrieve all domains
1034
#
1035
# gsqlite3-get-all-domains-query=select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=0 OR %d
1036
1037
#################################
1038
# gsqlite3-get-domain-metadata-query	
1039
#
1040
# gsqlite3-get-domain-metadata-query=select content from domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s' and domainmetadata.kind='%s'
1041
1042
#################################
1043
# gsqlite3-get-order-after-query	DNSSEC Ordering Query, after
1044
#
1045
# gsqlite3-get-order-after-query=select min(ordername) from records where disabled=0 and ordername > '%s' and domain_id=%d and ordername is not null
1046
1047
#################################
1048
# gsqlite3-get-order-before-query	DNSSEC Ordering Query, before
1049
#
1050
# gsqlite3-get-order-before-query=select ordername, name from records where disabled=0 and ordername <= '%s' and domain_id=%d and ordername is not null order by 1 desc limit 1
1051
1052
#################################
1053
# gsqlite3-get-order-first-query	DNSSEC Ordering Query, first
1054
#
1055
# gsqlite3-get-order-first-query=select ordername, name from records where disabled=0 and domain_id=%d and ordername is not null order by 1 asc limit 1
1056
1057
#################################
1058
# gsqlite3-get-order-last-query	DNSSEC Ordering Query, last
1059
#
1060
# gsqlite3-get-order-last-query=select ordername, name from records where disabled=0 and ordername != '' and domain_id=%d and ordername is not null order by 1 desc limit 1
1061
1062
#################################
1063
# gsqlite3-get-tsig-key-query	
1064
#
1065
# gsqlite3-get-tsig-key-query=select algorithm, secret from tsigkeys where name='%s'
1066
1067
#################################
1068
# gsqlite3-get-tsig-keys-query	
1069
#
1070
# gsqlite3-get-tsig-keys-query=select name,algorithm, secret from tsigkeys
1071
1072
#################################
1073
# gsqlite3-id-query	Basic with ID query
1074
#
1075
# gsqlite3-id-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type='%s' and name='%s' and domain_id=%d
1076
1077
#################################
1078
# gsqlite3-info-all-master-query	
1079
#
1080
# gsqlite3-info-all-master-query=select id,name,master,last_check,notified_serial,type from domains where type='MASTER'
1081
1082
#################################
1083
# gsqlite3-info-all-slaves-query	
1084
#
1085
# gsqlite3-info-all-slaves-query=select id,name,master,last_check,type from domains where type='SLAVE'
1086
1087
#################################
1088
# gsqlite3-info-zone-query	
1089
#
1090
# gsqlite3-info-zone-query=select id,name,master,last_check,notified_serial,type from domains where name='%s'
1091
1092
#################################
1093
# gsqlite3-insert-comment-query	
1094
#
1095
# gsqlite3-insert-comment-query=INSERT INTO comments (domain_id, name, type, modified_at, account, comment) VALUES (%d, '%s', '%s', %d, '%s', '%s')
1096
1097
#################################
1098
# gsqlite3-insert-empty-non-terminal-query	insert empty non-terminal in zone
1099
#
1100
# gsqlite3-insert-empty-non-terminal-query=insert into records (domain_id,name,type,disabled,auth) values ('%d','%s',null,0,'1')
1101
1102
#################################
1103
# gsqlite3-insert-ent-order-query	insert empty non-terminal in zone
1104
#
1105
# gsqlite3-insert-ent-order-query=insert into records (type,domain_id,disabled,name,ordername,auth) values (null,'%d',0,'%s','%s','%d')
1106
1107
#################################
1108
# gsqlite3-insert-ent-query	insert empty non-terminal in zone
1109
#
1110
# gsqlite3-insert-ent-query=insert into records (type,domain_id,disabled,name,auth) values (null,'%d',0,'%s','%d')
42
1111
43
# Autogenerated configuration file template
44
#################################
1112
#################################
45
# allow-axfr-ips	Allow zonetransfers only to these subnets
1113
# gsqlite3-insert-record-order-query	
46
#
1114
#
47
# allow-axfr-ips=0.0.0.0/0,::/0
1115
# gsqlite3-insert-record-order-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,ordername,auth) values ('%s',%d,%d,'%s',%d,%d,'%s','%s','%d')
48
1116
49
#################################
1117
#################################
50
# allow-recursion	List of subnets that are allowed to recurse
1118
# gsqlite3-insert-record-query	
51
#
1119
#
52
# allow-recursion=0.0.0.0/0
1120
# gsqlite3-insert-record-query=insert into records (content,ttl,prio,type,domain_id,disabled,name,auth) values ('%s',%d,%d,'%s',%d,%d,'%s',%d)
53
1121
54
#################################
1122
#################################
55
# allow-recursion-override	Set this so that local data fully overrides the recursor
1123
# gsqlite3-insert-slave-query	
56
#
1124
#
57
# allow-recursion-override=no
1125
# gsqlite3-insert-slave-query=insert into domains (type,name,master,account) values('SLAVE','%s','%s','%s')
58
1126
59
#################################
1127
#################################
60
# cache-ttl	Seconds to store packets in the PacketCache
1128
# gsqlite3-insert-zone-query	
61
#
1129
#
62
# cache-ttl=20
1130
# gsqlite3-insert-zone-query=insert into domains (type,name) values('NATIVE','%s')
63
1131
64
#################################
1132
#################################
65
# chroot	If set, chroot to this directory for more security
1133
# gsqlite3-list-comments-query	
66
#
1134
#
67
# chroot=
1135
# gsqlite3-list-comments-query=SELECT domain_id,name,type,modified_at,account,comment FROM comments WHERE domain_id=%d
68
1136
69
#################################
1137
#################################
70
# config-dir	Location of configuration directory (pdns.conf)
1138
# gsqlite3-list-domain-keys-query	
71
#
1139
#
72
# config-dir=/usr/local/etc/pdns
1140
# gsqlite3-list-domain-keys-query=select cryptokeys.id, flags, active, content from domains, cryptokeys where cryptokeys.domain_id=domains.id and name='%s'
73
1141
74
#################################
1142
#################################
75
# config-name	Name of this virtual configuration - will rename the binary image
1143
# gsqlite3-list-query	AXFR query
76
#
1144
#
77
# config-name=
1145
# gsqlite3-list-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE (disabled=0 OR %d) and domain_id='%d' order by name, type
78
1146
79
#################################
1147
#################################
80
# control-console	Debugging switch - don't use
1148
# gsqlite3-list-subzone-query	Subzone listing
81
#
1149
#
82
# control-console=no
1150
# gsqlite3-list-subzone-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and (name='%s' OR name like '%s') and domain_id=%d
83
1151
84
#################################
1152
#################################
85
# daemon	Operate as a daemon
1153
# gsqlite3-master-zone-query	Data
86
#
1154
#
87
# daemon=no
1155
# gsqlite3-master-zone-query=select master from domains where name='%s' and type='SLAVE'
88
1156
89
#################################
1157
#################################
90
# default-soa-name	name to insert in the SOA record if none set in the backend
1158
# gsqlite3-nullify-ordername-and-auth-query	DNSSEC nullify ordername and auth query
91
#
1159
#
92
# default-soa-name=a.misconfigured.powerdns.server
1160
# gsqlite3-nullify-ordername-and-auth-query=update records set ordername=NULL,auth=0 where name='%s' and type='%s' and domain_id='%d' and disabled=0
93
1161
94
#################################
1162
#################################
95
# default-ttl	Seconds a result is valid if not set otherwise
1163
# gsqlite3-nullify-ordername-and-update-auth-query	DNSSEC nullify ordername and update auth query
96
#
1164
#
97
# default-ttl=3600
1165
# gsqlite3-nullify-ordername-and-update-auth-query=update records set ordername=NULL,auth=%d where domain_id='%d' and name='%s' and disabled=0
98
1166
99
#################################
1167
#################################
100
# disable-axfr	Disable zonetransfers but do allow TCP queries
1168
# gsqlite3-pragma-synchronous	Set this to 0 for blazing speed
101
#
1169
#
102
# disable-axfr=no
1170
# gsqlite3-pragma-synchronous=
103
1171
104
#################################
1172
#################################
105
# disable-tcp	Do not listen to TCP queries
1173
# gsqlite3-remove-domain-key-query	
106
#
1174
#
107
# disable-tcp=no
1175
# gsqlite3-remove-domain-key-query=delete from cryptokeys where domain_id=(select id from domains where name='%s') and cryptokeys.id=%d
108
1176
109
#################################
1177
#################################
110
# distributor-threads	Default number of Distributor (backend) threads to start
1178
# gsqlite3-remove-empty-non-terminals-from-zone-query	remove all empty non-terminals from zone
111
#
1179
#
112
# distributor-threads=3
1180
# gsqlite3-remove-empty-non-terminals-from-zone-query=delete from records where domain_id='%d' and type is null
113
1181
114
#################################
1182
#################################
115
# do-ipv6-additional-processing	Do AAAA additional processing
1183
# gsqlite3-set-auth-on-ds-record-query	DNSSEC set auth on a DS record
116
#
1184
#
117
# do-ipv6-additional-processing=no
1185
# gsqlite3-set-auth-on-ds-record-query=update records set auth=1 where domain_id='%d' and name='%s' and type='DS' and disabled=0
118
1186
119
#################################
1187
#################################
120
# edns-subnet-option-number	EDNS option number to use
1188
# gsqlite3-set-domain-metadata-query	
121
#
1189
#
122
# edns-subnet-option-number=20730
1190
# gsqlite3-set-domain-metadata-query=insert into domainmetadata (domain_id, kind, content) select id, '%s', '%s' from domains where name='%s'
123
1191
124
#################################
1192
#################################
125
# edns-subnet-processing	If we should act on EDNS Subnet options
1193
# gsqlite3-set-order-and-auth-query	DNSSEC set ordering query
126
#
1194
#
127
# edns-subnet-processing=no
1195
# gsqlite3-set-order-and-auth-query=update records set ordername='%s',auth=%d where name='%s' and domain_id='%d' and disabled=0
128
1196
129
#################################
1197
#################################
130
# entropy-source	If set, read entropy from this file
1198
# gsqlite3-set-tsig-key-query	
131
#
1199
#
132
# entropy-source=/dev/urandom
1200
# gsqlite3-set-tsig-key-query=replace into tsigkeys (name,algorithm,secret) values('%s','%s','%s')
1201
1202
#################################
1203
# gsqlite3-supermaster-name-to-ips	
1204
#
1205
# gsqlite3-supermaster-name-to-ips=select ip,account from supermasters where nameserver='%s' and account='%s'
1206
1207
#################################
1208
# gsqlite3-supermaster-query	
1209
#
1210
# gsqlite3-supermaster-query=select account from supermasters where ip='%s' and nameserver='%s'
1211
1212
#################################
1213
# gsqlite3-update-kind-query	
1214
#
1215
# gsqlite3-update-kind-query=update domains set type='%s' where name='%s'
1216
1217
#################################
1218
# gsqlite3-update-lastcheck-query	
1219
#
1220
# gsqlite3-update-lastcheck-query=update domains set last_check=%d where id=%d
1221
1222
#################################
1223
# gsqlite3-update-master-query	
1224
#
1225
# gsqlite3-update-master-query=update domains set master='%s' where name='%s'
1226
1227
#################################
1228
# gsqlite3-update-serial-query	
1229
#
1230
# gsqlite3-update-serial-query=update domains set notified_serial=%d where id=%d
133
1231
134
#################################
1232
#################################
135
# fancy-records	Process URL and MBOXFW records
1233
# gsqlite3-zone-lastchange-query	
136
#
1234
#
137
# fancy-records=no
1235
# gsqlite3-zone-lastchange-query=select max(change_date) from records where domain_id=%d
138
1236
139
#################################
1237
#################################
140
# guardian	Run within a guardian process
1238
# guardian	Run within a guardian process
Lines 142-155 Link Here
142
# guardian=no
1240
# guardian=no
143
1241
144
#################################
1242
#################################
1243
# include-dir	Include *.conf files from this directory
1244
#
1245
# include-dir=
1246
1247
#################################
145
# launch	Which backends to launch and order to query them in
1248
# launch	Which backends to launch and order to query them in
146
#
1249
#
147
# launch=
1250
# launch=bind,geo,geoip,gmysql,gpgsql,gsqlite3,lmdb,lua,mydns,opendbx,pipe,tinydns
148
1251
149
#################################
1252
#################################
150
# lazy-recursion	Only recurse if question cannot be answered locally
1253
# lmdb-datapath	Path to the directory containing the lmdb files
151
#
1254
#
152
# lazy-recursion=yes
1255
# lmdb-datapath=/etc/pdns/data
1256
1257
#################################
1258
# lmdb-experimental-dnssec	Enable experimental DNSSEC processing
1259
#
1260
# lmdb-experimental-dnssec=no
153
1261
154
#################################
1262
#################################
155
# load-modules	Load this module - supply absolute or relative path
1263
# load-modules	Load this module - supply absolute or relative path
Lines 162-172 Link Here
162
# local-address=0.0.0.0
1270
# local-address=0.0.0.0
163
1271
164
#################################
1272
#################################
1273
# local-address-nonexist-fail	Fail to start if one or more of the local-address's do not exist on this server
1274
#
1275
# local-address-nonexist-fail=yes
1276
1277
#################################
165
# local-ipv6	Local IP address to which we bind
1278
# local-ipv6	Local IP address to which we bind
166
#
1279
#
167
# local-ipv6=
1280
# local-ipv6=
168
1281
169
#################################
1282
#################################
1283
# local-ipv6-nonexist-fail	Fail to start if one or more of the local-ipv6 addresses do not exist on this server
1284
#
1285
# local-ipv6-nonexist-fail=yes
1286
1287
#################################
170
# local-port	The port on which we listen
1288
# local-port	The port on which we listen
171
#
1289
#
172
# local-port=53
1290
# local-port=53
Lines 174-180 Link Here
174
#################################
1292
#################################
175
# log-dns-details	If PDNS should log DNS non-erroneous details
1293
# log-dns-details	If PDNS should log DNS non-erroneous details
176
#
1294
#
177
# log-dns-details=
1295
# log-dns-details=no
178
1296
179
#################################
1297
#################################
180
# log-dns-queries	If PDNS should log all incoming DNS queries
1298
# log-dns-queries	If PDNS should log all incoming DNS queries
Lines 182-205 Link Here
182
# log-dns-queries=no
1300
# log-dns-queries=no
183
1301
184
#################################
1302
#################################
185
# log-failed-updates	If PDNS should log failed update requests
1303
# logging-facility	Log under a specific facility
1304
#
1305
# logging-facility=
1306
1307
#################################
1308
# loglevel	Amount of logging. Higher is more. Do not set below 3
186
#
1309
#
187
# log-failed-updates=
1310
# loglevel=4
188
1311
189
#################################
1312
#################################
190
# logfile	Logfile to use (Windows only)
1313
# lua-filename	Filename of the script for lua backend
191
#
1314
#
192
# logfile=pdns.log
1315
# lua-filename=powerdns-luabackend.lua
193
1316
194
#################################
1317
#################################
195
# logging-facility	Log under a specific facility
1318
# lua-logging-query	Logging of the LUA Backend
196
#
1319
#
197
# logging-facility=
1320
# lua-logging-query=no
198
1321
199
#################################
1322
#################################
200
# loglevel	Amount of logging. Higher is more. Do not set below 3
1323
# lua-prequery-script	Lua script with prequery handler
201
#
1324
#
202
# loglevel=4
1325
# lua-prequery-script=
203
1326
204
#################################
1327
#################################
205
# master	Act as a master
1328
# master	Act as a master
Lines 212-222 Link Here
212
# max-cache-entries=1000000
1335
# max-cache-entries=1000000
213
1336
214
#################################
1337
#################################
1338
# max-ent-entries	Maximum number of empty non-terminals in a zone
1339
#
1340
# max-ent-entries=100000
1341
1342
#################################
1343
# max-nsec3-iterations	Limit the number of NSEC3 hash iterations
1344
#
1345
# max-nsec3-iterations=500
1346
1347
#################################
215
# max-queue-length	Maximum queuelength before considering situation lost
1348
# max-queue-length	Maximum queuelength before considering situation lost
216
#
1349
#
217
# max-queue-length=5000
1350
# max-queue-length=5000
218
1351
219
#################################
1352
#################################
1353
# max-signature-cache-entries	Maximum number of signatures cache entries
1354
#
1355
# max-signature-cache-entries=
1356
1357
#################################
220
# max-tcp-connections	Maximum number of TCP connections
1358
# max-tcp-connections	Maximum number of TCP connections
221
#
1359
#
222
# max-tcp-connections=10
1360
# max-tcp-connections=10
Lines 224-233 Link Here
224
#################################
1362
#################################
225
# module-dir	Default directory for modules
1363
# module-dir	Default directory for modules
226
#
1364
#
227
# module-dir=/usr/local/lib
1365
# module-dir=/usr/local/lib/pdns
1366
1367
#################################
1368
# mydns-dbname	Pdns backend database name to connect to
1369
#
1370
# mydns-dbname=mydns
1371
1372
#################################
1373
# mydns-host	Pdns backend host to connect to
1374
#
1375
# mydns-host=
1376
1377
#################################
1378
# mydns-password	Pdns backend password to connect with
1379
#
1380
# mydns-password=
1381
1382
#################################
1383
# mydns-port	Pdns backend host to connect to
1384
#
1385
# mydns-port=
1386
1387
#################################
1388
# mydns-rr-active	Use the active column in the RR table
1389
#
1390
# mydns-rr-active=yes
228
1391
229
#################################
1392
#################################
230
# negquery-cache-ttl	Seconds to store packets in the PacketCache
1393
# mydns-rr-table	Name of RR table to use
1394
#
1395
# mydns-rr-table=rr
1396
1397
#################################
1398
# mydns-rr-where	Additional WHERE clause for RR
1399
#
1400
# mydns-rr-where=1 = 1
1401
1402
#################################
1403
# mydns-soa-active	Use the active column in the SOA table
1404
#
1405
# mydns-soa-active=yes
1406
1407
#################################
1408
# mydns-soa-table	Name of SOA table to use
1409
#
1410
# mydns-soa-table=soa
1411
1412
#################################
1413
# mydns-soa-where	Additional WHERE clause for SOA
1414
#
1415
# mydns-soa-where=1 = 1
1416
1417
#################################
1418
# mydns-socket	Pdns backend socket to connect to
1419
#
1420
# mydns-socket=
1421
1422
#################################
1423
# mydns-use-minimal-ttl	Setting this to 'yes' will make the backend behave like MyDNS on the TTL values. Setting it to 'no' will make it ignore the minimal-ttl of the zone.
1424
#
1425
# mydns-use-minimal-ttl=yes
1426
1427
#################################
1428
# mydns-user	Pdns backend user to connect as
1429
#
1430
# mydns-user=powerdns
1431
1432
#################################
1433
# negquery-cache-ttl	Seconds to store negative query results in the QueryCache
231
#
1434
#
232
# negquery-cache-ttl=60
1435
# negquery-cache-ttl=60
233
1436
Lines 237-242 Link Here
237
# no-shuffle=off
1440
# no-shuffle=off
238
1441
239
#################################
1442
#################################
1443
# only-notify	Only send AXFR NOTIFY to these IP addresses or netmasks
1444
#
1445
# only-notify=0.0.0.0/0,::/0
1446
1447
#################################
1448
# opendbx-backend	OpenDBX backend
1449
#
1450
# opendbx-backend=mysql
1451
1452
#################################
1453
# opendbx-database	Database name containing the DNS records
1454
#
1455
# opendbx-database=powerdns
1456
1457
#################################
1458
# opendbx-host	deprecated, use host-read and host-write instead
1459
#
1460
# opendbx-host=
1461
1462
#################################
1463
# opendbx-host-read	Name or address of one or more DBMS server to read from
1464
#
1465
# opendbx-host-read=127.0.0.1
1466
1467
#################################
1468
# opendbx-host-write	Name or address of one or more DBMS server used for updates
1469
#
1470
# opendbx-host-write=127.0.0.1
1471
1472
#################################
1473
# opendbx-password	Password for connecting to the DBMS
1474
#
1475
# opendbx-password=
1476
1477
#################################
1478
# opendbx-port	Port the DBMS server are listening to
1479
#
1480
# opendbx-port=
1481
1482
#################################
1483
# opendbx-sql-infomasters	Get all updated masters
1484
#
1485
# opendbx-sql-infomasters=SELECT d."id", d."name", d."master", d."last_check", d."notified_serial", d."auto_serial", r."content" FROM "domains" d LEFT JOIN "records" r ON ( d."id"=r."domain_id" AND r."type"='SOA' ) WHERE d."status"='A' AND d."type"='MASTER'
1486
1487
#################################
1488
# opendbx-sql-infoslaves	Get all unfresh slaves
1489
#
1490
# opendbx-sql-infoslaves=SELECT d."id", d."name", d."master", d."last_check", d."notified_serial", d."auto_serial", r."content" FROM "domains" d LEFT JOIN "records" r ON ( d."id"=r."domain_id" AND r."type"='SOA' ) WHERE d."status"='A' AND d."type"='SLAVE'
1491
1492
#################################
1493
# opendbx-sql-insert-record	Feed record into table
1494
#
1495
# opendbx-sql-insert-record=INSERT INTO "records" ( "domain_id", "name", "type", "ttl", "prio", "content" ) VALUES ( %d, '%s', '%s', %d, %d, '%s' )
1496
1497
#################################
1498
# opendbx-sql-insert-slave	Add slave domain
1499
#
1500
# opendbx-sql-insert-slave=INSERT INTO "domains" ( "name", "type", "master", "account" ) VALUES ( '%s', 'SLAVE', '%s', '%s' )
1501
1502
#################################
1503
# opendbx-sql-list	AXFR query
1504
#
1505
# opendbx-sql-list=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."domain_id"=:id
1506
1507
#################################
1508
# opendbx-sql-lookup	Lookup query
1509
#
1510
# opendbx-sql-lookup=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."name"=':name'
1511
1512
#################################
1513
# opendbx-sql-lookupid	Lookup query with id
1514
#
1515
# opendbx-sql-lookupid=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."domain_id"=:id AND r."name"=':name'
1516
1517
#################################
1518
# opendbx-sql-lookupsoa	Lookup query for SOA record
1519
#
1520
# opendbx-sql-lookupsoa=SELECT d."id", d."auto_serial", r."ttl", r."content" FROM "records" r JOIN "domains" d ON r."domain_id"=d."id" WHERE r."name"=':name' AND r."type"='SOA' AND d."status"='A'
1521
1522
#################################
1523
# opendbx-sql-lookuptype	Lookup query with type
1524
#
1525
# opendbx-sql-lookuptype=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."name"=':name' AND r."type"=':type'
1526
1527
#################################
1528
# opendbx-sql-lookuptypeid	Lookup query with type and id
1529
#
1530
# opendbx-sql-lookuptypeid=SELECT r."domain_id", r."name", r."type", r."ttl", r."prio", r."content" FROM "records" r WHERE r."domain_id"=:id AND r."name"=':name' AND r."type"=':type'
1531
1532
#################################
1533
# opendbx-sql-master	Get master record for zone
1534
#
1535
# opendbx-sql-master=SELECT d."master" FROM "domains" d WHERE d."name"=':name' AND d."status"='A' AND d."type"='SLAVE'
1536
1537
#################################
1538
# opendbx-sql-supermaster	Get supermaster info
1539
#
1540
# opendbx-sql-supermaster=SELECT s."account" FROM "supermasters" s WHERE s."ip"=':ip' AND s."nameserver"=':ns'
1541
1542
#################################
1543
# opendbx-sql-transactabort	Abort transaction
1544
#
1545
# opendbx-sql-transactabort=ROLLBACK
1546
1547
#################################
1548
# opendbx-sql-transactbegin	Start transaction
1549
#
1550
# opendbx-sql-transactbegin=BEGIN
1551
1552
#################################
1553
# opendbx-sql-transactend	Finish transaction
1554
#
1555
# opendbx-sql-transactend=COMMIT
1556
1557
#################################
1558
# opendbx-sql-update-lastcheck	Set time of last check
1559
#
1560
# opendbx-sql-update-lastcheck=UPDATE "domains" SET "last_check"=%d WHERE "id"=%d
1561
1562
#################################
1563
# opendbx-sql-update-serial	Set zone to notified
1564
#
1565
# opendbx-sql-update-serial=UPDATE "domains" SET "notified_serial"=%d WHERE "id"=%d
1566
1567
#################################
1568
# opendbx-sql-zonedelete	Delete all records for this zone
1569
#
1570
# opendbx-sql-zonedelete=DELETE FROM "records" WHERE "domain_id"=:id
1571
1572
#################################
1573
# opendbx-sql-zoneinfo	Get domain info
1574
#
1575
# opendbx-sql-zoneinfo=SELECT d."id", d."name", d."type", d."master", d."last_check", d."auto_serial", r."content" FROM "domains" d LEFT JOIN "records" r ON ( d."id"=r."domain_id" AND r."type"='SOA' ) WHERE d."name"=':name' AND d."status"='A'
1576
1577
#################################
1578
# opendbx-username	User for connecting to the DBMS
1579
#
1580
# opendbx-username=powerdns
1581
1582
#################################
240
# out-of-zone-additional-processing	Do out of zone additional processing
1583
# out-of-zone-additional-processing	Do out of zone additional processing
241
#
1584
#
242
# out-of-zone-additional-processing=yes
1585
# out-of-zone-additional-processing=yes
Lines 247-255 Link Here
247
# overload-queue-length=0
1590
# overload-queue-length=0
248
1591
249
#################################
1592
#################################
250
# per-zone-axfr-acls	When set, backends that implement it perform per-zone AXFL ACL checks
1593
# pipe-command	Command to execute for piping questions to
1594
#
1595
# pipe-command=
1596
1597
#################################
1598
# pipe-regex	Regular exception of queries to pass to coprocess
1599
#
1600
# pipe-regex=
1601
1602
#################################
1603
# pipe-timeout	Number of milliseconds to wait for an answer
251
#
1604
#
252
# per-zone-axfr-acls=off
1605
# pipe-timeout=2000
253
1606
254
#################################
1607
#################################
255
# pipebackend-abi-version	Version of the pipe backend ABI
1608
# pipebackend-abi-version	Version of the pipe backend ABI
Lines 257-263 Link Here
257
# pipebackend-abi-version=1
1610
# pipebackend-abi-version=1
258
1611
259
#################################
1612
#################################
260
# query-cache-ttl	Seconds to store packets in the PacketCache
1613
# prevent-self-notification	Don't send notifications to what we think is ourself
1614
#
1615
# prevent-self-notification=yes
1616
1617
#################################
1618
# query-cache-ttl	Seconds to store query results in the QueryCache
261
#
1619
#
262
# query-cache-ttl=20
1620
# query-cache-ttl=20
263
1621
Lines 282-293 Link Here
282
# queue-limit=1500
1640
# queue-limit=1500
283
1641
284
#################################
1642
#################################
285
# receiver-threads	Default number of Distributor (backend) threads to start
1643
# receiver-threads	Default number of receiver threads to start
286
#
1644
#
287
# receiver-threads=1
1645
# receiver-threads=1
288
1646
289
#################################
1647
#################################
290
# recursive-cache-ttl	Seconds to store packets in the PacketCache
1648
# recursive-cache-ttl	Seconds to store packets for recursive queries in the PacketCache
291
#
1649
#
292
# recursive-cache-ttl=10
1650
# recursive-cache-ttl=10
293
1651
Lines 302-313 Link Here
302
# retrieval-threads=2
1660
# retrieval-threads=2
303
1661
304
#################################
1662
#################################
1663
# reuseport	Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket
1664
#
1665
# reuseport=no
1666
1667
#################################
305
# send-root-referral	Send out old-fashioned root-referral instead of ServFail in case of no authority
1668
# send-root-referral	Send out old-fashioned root-referral instead of ServFail in case of no authority
306
#
1669
#
307
# send-root-referral=no
1670
# send-root-referral=no
308
1671
309
#################################
1672
#################################
310
# server-id	Returned when queried for 'server.id' TXT or NSID, defaults to hostname
1673
# server-id	Returned when queried for 'server.id' TXT or NSID, defaults to hostname - disabled or custom
311
#
1674
#
312
# server-id=
1675
# server-id=
313
1676
Lines 327-337 Link Here
327
# signing-threads=3
1690
# signing-threads=3
328
1691
329
#################################
1692
#################################
330
# skip-cname	Do not perform CNAME indirection for each query
331
#
332
# skip-cname=no
333
334
#################################
335
# slave	Act as a slave
1693
# slave	Act as a slave
336
#
1694
#
337
# slave=no
1695
# slave=no
Lines 347-363 Link Here
347
# slave-renotify=no
1705
# slave-renotify=no
348
1706
349
#################################
1707
#################################
350
# smtpredirector	Our smtpredir MX host
351
#
352
# smtpredirector=a.misconfigured.powerdns.smtp.server
353
354
#################################
355
# soa-expire-default	Default SOA expire
1708
# soa-expire-default	Default SOA expire
356
#
1709
#
357
# soa-expire-default=604800
1710
# soa-expire-default=604800
358
1711
359
#################################
1712
#################################
360
# soa-minimum-ttl	Default SOA mininum ttl
1713
# soa-minimum-ttl	Default SOA minimum ttl
361
#
1714
#
362
# soa-minimum-ttl=3600
1715
# soa-minimum-ttl=3600
363
1716
Lines 372-392 Link Here
372
# soa-retry-default=3600
1725
# soa-retry-default=3600
373
1726
374
#################################
1727
#################################
375
# soa-serial-offset	Make sure that no SOA serial is less than this number
376
#
377
# soa-serial-offset=0
378
379
#################################
380
# socket-dir	Where the controlsocket will live
1728
# socket-dir	Where the controlsocket will live
381
#
1729
#
382
# socket-dir=/var/run
1730
# socket-dir=/var/run
383
1731
384
#################################
1732
#################################
385
# strict-rfc-axfrs	Perform strictly rfc compliant axfrs (very slow)
386
#
387
# strict-rfc-axfrs=no
388
389
#################################
390
# tcp-control-address	If set, PowerDNS can be controlled over TCP on this address
1733
# tcp-control-address	If set, PowerDNS can be controlled over TCP on this address
391
#
1734
#
392
# tcp-control-address=
1735
# tcp-control-address=
Lines 407-425 Link Here
407
# tcp-control-secret=
1750
# tcp-control-secret=
408
1751
409
#################################
1752
#################################
410
# trusted-notification-proxy	IP address of incoming notification proxy
1753
# tinydns-dbfile	Location of the cdb data file
411
#
1754
#
412
# trusted-notification-proxy=
1755
# tinydns-dbfile=data.cdb
1756
1757
#################################
1758
# tinydns-ignore-bogus-records	The data.cdb file might have some wront record data, this causes PowerDNS to fail, where tinydns would send out truncated data. This option makes powerdns ignore that data!
1759
#
1760
# tinydns-ignore-bogus-records=no
1761
1762
#################################
1763
# tinydns-locations	Enable or Disable location support in the backend. Changing the value to 'no' will make the backend ignore the locations. This then returns all records!
1764
#
1765
# tinydns-locations=yes
1766
1767
#################################
1768
# tinydns-notify-on-startup	Tell the TinyDNSBackend to notify all the slave nameservers on startup. Default is no.
1769
#
1770
# tinydns-notify-on-startup=no
1771
1772
#################################
1773
# tinydns-tai-adjust	This adjusts the TAI value if timestamps are used. These seconds will be added to the start point (1970) and will allow you to adjust for leap seconds. The default is 11.
1774
#
1775
# tinydns-tai-adjust=11
1776
1777
#################################
1778
# traceback-handler	Enable the traceback handler (Linux only)
1779
#
1780
# traceback-handler=yes
413
1781
414
#################################
1782
#################################
415
# urlredirector	Where we send hosts to that need to be url redirected
1783
# trusted-notification-proxy	IP address of incoming notification proxy
416
#
1784
#
417
# urlredirector=127.0.0.1
1785
# trusted-notification-proxy=
418
1786
419
#################################
1787
#################################
420
# use-logfile	Use a log file (Windows only)
1788
# udp-truncation-threshold	Maximum UDP response size before we truncate
421
#
1789
#
422
# use-logfile=no
1790
# udp-truncation-threshold=1680
423
1791
424
#################################
1792
#################################
425
# version-string	PowerDNS version in packets - full, anonymous, powerdns or custom
1793
# version-string	PowerDNS version in packets - full, anonymous, powerdns or custom
Lines 437-442 Link Here
437
# webserver-address=127.0.0.1
1805
# webserver-address=127.0.0.1
438
1806
439
#################################
1807
#################################
1808
# webserver-allow-from	Webserver access is only allowed from these subnets
1809
#
1810
# webserver-allow-from=0.0.0.0/0,::/0
1811
1812
#################################
440
# webserver-password	Password required for accessing the webserver
1813
# webserver-password	Password required for accessing the webserver
441
#
1814
#
442
# webserver-password=
1815
# webserver-password=
Lines 451-464 Link Here
451
#
1824
#
452
# webserver-print-arguments=no
1825
# webserver-print-arguments=no
453
1826
454
#################################
455
# wildcard-url	Process URL and MBOXFW records
456
#
457
# wildcard-url=no
458
459
#################################
460
# wildcards	Honor wildcards in the database
461
#
462
# wildcards=
463
464
1827
(-)b/dns/powerdns/files/pdns.in (-2 / +2 lines)
Lines 1-10 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD$
3
# $FreeBSD: head/dns/powerdns/files/pdns.in 340872 2014-01-24 00:14:07Z mat $
4
#
4
#
5
5
6
# PROVIDE: pdns_server
6
# PROVIDE: pdns_server
7
# REQUIRE: DAEMON %%MYSQL_REQ%% %%PGSQL_REQ%% %%SLAPD_REQ%%
7
# REQUIRE: DAEMON SERVERS
8
# KEYWORD: shutdown
8
# KEYWORD: shutdown
9
9
10
#
10
#
(-)b/dns/powerdns/files/pkg-message.in (-1 / +11 lines)
Lines 4-10 Link Here
4
4
5
    pdns_enable="YES"
5
    pdns_enable="YES"
6
6
7
 Configuration templates are available in %%PREFIX%%/etc/pdns
7
 A configuration template is available in %%PREFIX%%/etc/pdns
8
 as pdns.conf-dist.
8
 as pdns.conf-dist.
9
10
 A pdns.conf with all possible options is available in
11
 %%EXAMPLESDIR%% 
12
13
 ---------------------------------------------
14
 IMPORTANT: PowerDNS Authoritive Server 3.4.0:
15
 ---------------------------------------------
16
 This version needs a mandatory schema change for the gmsyql, 
17
 gpgsql and gsqlite3 backends. SQL statements are available in
18
 %%DOCSDIR%% or http://doc.powerdns.com
9
*******************************************************************
19
*******************************************************************
10
20
(-)b/dns/powerdns/pkg-plist (-13 / +31 lines)
Lines 5-10 bin/zone2ldap Link Here
5
bin/zone2sql
5
bin/zone2sql
6
sbin/pdns_server
6
sbin/pdns_server
7
%%TOOLS%%bin/dnsbulktest
7
%%TOOLS%%bin/dnsbulktest
8
%%TOOLS%%bin/dnsdist
8
%%TOOLS%%bin/dnsreplay
9
%%TOOLS%%bin/dnsreplay
9
%%TOOLS%%bin/dnsscan
10
%%TOOLS%%bin/dnsscan
10
%%TOOLS%%bin/dnsscope
11
%%TOOLS%%bin/dnsscope
Lines 12-28 sbin/pdns_server Link Here
12
%%TOOLS%%bin/dnswasher
13
%%TOOLS%%bin/dnswasher
13
%%TOOLS%%bin/nproxy
14
%%TOOLS%%bin/nproxy
14
%%TOOLS%%bin/nsec3dig
15
%%TOOLS%%bin/nsec3dig
15
%%PGSQL%%lib/libgpgsqlbackend.so
16
%%TOOLS%%bin/saxfr
16
%%MYSQL%%lib/libgmysqlbackend.so
17
%%PGSQL%%lib/pdns/libgpgsqlbackend.so
17
%%SQLITE3%%lib/libgsqlite3backend.so
18
%%MYSQL%%lib/pdns/libgmysqlbackend.so
18
%%OPENLDAP%%lib/libldapbackend.so
19
%%SQLITE3%%lib/pdns/libgsqlite3backend.so
19
%%OPENDBX%%lib/libopendbxbackend.so
20
%%OPENLDAP%%lib/pdns/libldapbackend.so
20
%%GEO%%lib/libgeobackend.so
21
%%OPENDBX%%lib/pdns/libopendbxbackend.so
21
%%TINYDNS%%lib/libtinydnsbackend.so
22
%%GEO%%lib/pdns/libgeobackend.so
22
%%REMOTE%%lib/libremotebackend.so
23
%%GEOIP%%lib/pdns/libgeoipbackend.so
23
%%MYDNS%%lib/libmydnsbackend.so
24
%%TINYDNS%%lib/pdns/libtinydnsbackend.so
24
%%LUA%%lib/libluabackend.so
25
%%REMOTE%%lib/pdns/libremotebackend.so
25
lib/libpipebackend.so
26
%%MYDNS%%lib/pdns/libmydnsbackend.so
27
%%LUA%%lib/pdns/libluabackend.so
28
%%LMDB%%lib/pdns/liblmdbbackend.so
29
%%LMDB%%bin/zone2lmdb
30
lib/pdns/libbindbackend.so
31
lib/pdns/libpipebackend.so
32
%%TOOLS%%man/man1/dnsdist.1.gz
26
%%TOOLS%%man/man1/dnstcpbench.1.gz
33
%%TOOLS%%man/man1/dnstcpbench.1.gz
27
%%TOOLS%%man/man8/dnsreplay.8.gz
34
%%TOOLS%%man/man8/dnsreplay.8.gz
28
%%TOOLS%%man/man8/dnsscope.8.gz
35
%%TOOLS%%man/man8/dnsscope.8.gz
Lines 36-40 man/man8/zone2sql.8.gz Link Here
36
etc/pdns/pdns.conf-dist
43
etc/pdns/pdns.conf-dist
37
@exec [ -f %B/pdns.conf ] || cp %B/%f %B/pdns.conf
44
@exec [ -f %B/pdns.conf ] || cp %B/%f %B/pdns.conf
38
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf
45
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf
39
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
46
%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%
40
@dirrmtry etc/pdns
47
%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.mysql.sql
48
%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.pgsql.sql
49
%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.sqlite3.sql
50
%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.mysql.sql
51
%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.pgsql.sql
52
%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql
53
%%MYDNS%%%%PORTDOCS%%%%DOCSDIR%%/schema.mydns.sql
54
%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/schema.mysql.sql
55
%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/schema.pgsql.sql
56
%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/schema.sqlite3.sql
57
%%PORTDOCS%%@dir %%DOCSDIR%%
58
@dir etc/pdns
(-)b/irc/eggdrop-devel/Makefile (-1 / +1 lines)
Lines 1-5 Link Here
1
# Created by: Beech Rintoul <beech@FreeBSD.org>
1
# Created by: Beech Rintoul <beech@FreeBSD.org>
2
# $FreeBSD$
2
# $FreeBSD: head/irc/eggdrop-devel/Makefile 362846 2014-07-24 20:32:29Z bdrewery $
3
3
4
PORTNAME=	eggdrop
4
PORTNAME=	eggdrop
5
PORTVERSION=	1.8.0.20140321
5
PORTVERSION=	1.8.0.20140321
(-)b/irc/eggdrop/Makefile (-1 / +1 lines)
Lines 1-5 Link Here
1
# Created by: Ulrich Spoerlein <q@uni.de>
1
# Created by: Ulrich Spoerlein <q@uni.de>
2
# $FreeBSD$
2
# $FreeBSD: head/irc/eggdrop/Makefile 357070 2014-06-08 19:51:27Z olgeni $
3
3
4
PORTNAME=	eggdrop
4
PORTNAME=	eggdrop
5
PORTVERSION=	1.6.21
5
PORTVERSION=	1.6.21
(-)b/mail/dspam-devel/Makefile (-2 / +2 lines)
Lines 1-5 Link Here
1
# Created by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
1
# Created by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
2
# $FreeBSD$
2
# $FreeBSD: head/mail/dspam-devel/Makefile 368416 2014-09-17 20:43:12Z cs $
3
3
4
# Note to commiters: If not committing a maintainer patch and as a result PKGNAME
4
# Note to commiters: If not committing a maintainer patch and as a result PKGNAME
5
# or user variables (WITH*) changes please add an entry in ${FILESDIR}/UPDATING
5
# or user variables (WITH*) changes please add an entry in ${FILESDIR}/UPDATING
Lines 16-22 PKGNAMESUFFIX= -devel Link Here
16
MAINTAINER=	danny@dannywarren.com
16
MAINTAINER=	danny@dannywarren.com
17
COMMENT=	Bayesian spam filter - development version
17
COMMENT=	Bayesian spam filter - development version
18
18
19
PORTVER_MAJ=	3.10.1
19
PORTVER_MAJ=	3.10.2
20
#SNAP_DATE=	.r1
20
#SNAP_DATE=	.r1
21
21
22
MAKE_JOBS_UNSAFE=	yes
22
MAKE_JOBS_UNSAFE=	yes
(-)b/mail/dspam-devel/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (dspam-3.10.1.tar.gz) = 359d9f58564a87da131b8390d0eeecae4aa40d22ff74b97256d46835a2474063
1
SHA256 (dspam-3.10.2.tar.gz) = ae76569604021f35b741fb95198a1e611a8c64c3838661973a6cf360bba593a9
2
SIZE (dspam-3.10.1.tar.gz) = 1044198
2
SIZE (dspam-3.10.2.tar.gz) = 1035054
(-)b/mail/dspam-devel/files/dspam-devel.in (-1 / +1 lines)
Lines 1-5 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $FreeBSD$
2
# $FreeBSD: head/mail/dspam-devel/files/dspam-devel.in 340872 2014-01-24 00:14:07Z mat $
3
#
3
#
4
4
5
# PROVIDE: dspam
5
# PROVIDE: dspam
(-)b/mail/dspam-devel/pkg-plist (+2 lines)
Lines 130-138 libdata/pkgconfig/dspam.pc Link Here
130
%%WebUI%%%%WWWDIR%%/configure.pl.sample
130
%%WebUI%%%%WWWDIR%%/configure.pl.sample
131
%%WebUI%%%%WWWDIR%%/default.prefs.sample
131
%%WebUI%%%%WWWDIR%%/default.prefs.sample
132
%%WebUI%%%%WWWDIR%%/dspam.cgi
132
%%WebUI%%%%WWWDIR%%/dspam.cgi
133
%%WebUI%%%%WWWDIR%%/dspam.js
133
%%WebUI%%%%WWWDIR%%/graph.cgi
134
%%WebUI%%%%WWWDIR%%/graph.cgi
134
%%WebUI%%%%WWWDIR%%/dspam-logo-small.gif
135
%%WebUI%%%%WWWDIR%%/dspam-logo-small.gif
135
%%WebUI%%%%WWWDIR%%/rgb.txt
136
%%WebUI%%%%WWWDIR%%/rgb.txt
137
%%WebUI%%%%WWWDIR%%/rtl.css
136
%%WebUI%%%%WWWDIR%%/templates/nav_admin_error.html
138
%%WebUI%%%%WWWDIR%%/templates/nav_admin_error.html
137
%%WebUI%%%%WWWDIR%%/templates/nav_admin_preferences.html
139
%%WebUI%%%%WWWDIR%%/templates/nav_admin_preferences.html
138
%%WebUI%%%%WWWDIR%%/templates/nav_admin_status.html
140
%%WebUI%%%%WWWDIR%%/templates/nav_admin_status.html
(-)b/multimedia/mkvtoolnix/Makefile (-2 / +2 lines)
Lines 1-8 Link Here
1
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
1
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
2
# $FreeBSD$
2
# $FreeBSD: head/multimedia/mkvtoolnix/Makefile 367888 2014-09-10 20:50:31Z gerald $
3
3
4
PORTNAME=	mkvtoolnix
4
PORTNAME=	mkvtoolnix
5
PORTVERSION=	7.1.0
5
PORTVERSION=	7.2.0
6
PORTREVISION=	1
6
PORTREVISION=	1
7
CATEGORIES=	multimedia audio
7
CATEGORIES=	multimedia audio
8
MASTER_SITES=	http://www.bunkus.org/videotools/mkvtoolnix/sources/ \
8
MASTER_SITES=	http://www.bunkus.org/videotools/mkvtoolnix/sources/ \
(-)b/multimedia/mkvtoolnix/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mkvtoolnix-7.1.0.tar.xz) = 06c81eb3068dcf36065ddad12ba8eaaeebcd7be5c19b853d903dc4771cf1b81b
1
SHA256 (mkvtoolnix-7.2.0.tar.xz) = 613fc364e6afad2163bc1b65259e6d4b0a9327b9634b1cd366916ce1cf68f5ae
2
SIZE (mkvtoolnix-7.1.0.tar.xz) = 5183448
2
SIZE (mkvtoolnix-7.2.0.tar.xz) = 5215812
(-)b/net-p2p/bitcoin/Makefile (-10 / +8 lines)
Lines 1-9 Link Here
1
# Created by: Shaun Amott <shaun@FreeBSD.org>
1
# Created by: Shaun Amott <shaun@FreeBSD.org>
2
# $FreeBSD$
2
# $FreeBSD: head/net-p2p/bitcoin/Makefile 367888 2014-09-10 20:50:31Z gerald $
3
3
4
PORTNAME=	bitcoin
4
PORTNAME=	bitcoin
5
PORTVERSION=	0.9.2
5
PORTVERSION=	0.9.3
6
PORTREVISION=	2
7
CATEGORIES=	net-p2p finance
6
CATEGORIES=	net-p2p finance
8
MASTER_SITES=	http://vps.robbak.com/distfiles/ \
7
MASTER_SITES=	http://vps.robbak.com/distfiles/ \
9
		${MASTER_SITE_LOCAL} \
8
		${MASTER_SITE_LOCAL} \
Lines 16-22 COMMENT= Virtual Peer-to-Peer Currency Client Link Here
16
LICENSE=	MIT
15
LICENSE=	MIT
17
16
18
BUILD_DEPENDS=	protoc:${PORTSDIR}/devel/protobuf \
17
BUILD_DEPENDS=	protoc:${PORTSDIR}/devel/protobuf \
19
				pkg-config:${PORTSDIR}/devel/pkgconf
18
		pkg-config:${PORTSDIR}/devel/pkgconf
20
LIB_DEPENDS=	libboost_date_time.so:${PORTSDIR}/devel/boost-libs
19
LIB_DEPENDS=	libboost_date_time.so:${PORTSDIR}/devel/boost-libs
21
20
22
OPTIONS_DEFINE=	GUI WALLET UPNP QRCODES
21
OPTIONS_DEFINE=	GUI WALLET UPNP QRCODES
Lines 35-47 CONFIGURE_ENV= SSL_LIBS="-lssl" CRYPTO_LIBS="-lcrypto" SSL_CFLAGS="-I/usr/includ Link Here
35
USE_GITHUB=	yes
34
USE_GITHUB=	yes
36
GH_ACCOUNT=	bitcoin
35
GH_ACCOUNT=	bitcoin
37
GH_PROJECT=	bitcoin
36
GH_PROJECT=	bitcoin
38
GH_COMMIT=		30a7357
37
GH_COMMIT=	1633efd
39
GH_TAGNAME=	v${PORTVERSION}
38
GH_TAGNAME=	v${PORTVERSION}
40
39
41
USES=			gmake
40
USES=		gmake
42
USE_OPENSSL=	yes
41
USE_OPENSSL=	yes
43
USE_BDB=		yes
42
USE_BDB=	yes
44
WANT_BDB_VER=	48
45
43
46
CXXFLAGS+=	-I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}
44
CXXFLAGS+=	-I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}
47
CXXFLAGS+=	-L${LOCALBASE}/lib -L${BDB_LIB_DIR}
45
CXXFLAGS+=	-L${LOCALBASE}/lib -L${BDB_LIB_DIR}
Lines 49-55 CXXFLAGS+= -Wno-invalid-offsetof Link Here
49
47
50
.include <bsd.port.options.mk>
48
.include <bsd.port.options.mk>
51
49
52
CONFIGURE_ARGS+=--disable-tests
50
CONFIGURE_ARGS+=--disable-tests --with-incompatible-bdb
53
51
54
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
52
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
55
USE_QT4=	corelib gui qmake_build linguist uic moc rcc qtestlib_build
53
USE_QT4=	corelib gui qmake_build linguist uic moc rcc qtestlib_build
Lines 58-64 PLIST_FILES= %%QT_BINDIR%%/bitcoin-qt %%QT_BINDIR%%/bitcoind %%QT_BINDIR%%/bitco Link Here
58
PLIST_FILES+=	share/applications/bitcoin-qt.desktop share/pixmaps/bitcoin128.png
56
PLIST_FILES+=	share/applications/bitcoin-qt.desktop share/pixmaps/bitcoin128.png
59
CONFIGURE_ARGS+=--with-gui
57
CONFIGURE_ARGS+=--with-gui
60
.else
58
.else
61
PLIST_FILES=		bin/bitcoind bin/bitcoin-cli
59
PLIST_FILES=	bin/bitcoind bin/bitcoin-cli
62
CONFIGURE_ARGS+=--without-gui
60
CONFIGURE_ARGS+=--without-gui
63
.endif
61
.endif
64
62
(-)b/net-p2p/bitcoin/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (bitcoin-0.9.2.tar.gz) = bb54f72f53498883ea9c8bdb9ae340c45fea8d4530f12fbaf34225839c439915
1
SHA256 (bitcoin-0.9.3.tar.gz) = 4f6d88390a3f05062990df4c02cd197d6959e1a63061c8f5a6cef6bfa57145db
2
SIZE (bitcoin-0.9.2.tar.gz) = 5242752
2
SIZE (bitcoin-0.9.3.tar.gz) = 4788561
(-)b/net/serviio/Makefile (-4 / +4 lines)
Lines 1-5 Link Here
1
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
1
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
2
# $FreeBSD$
2
# $FreeBSD: head/net/serviio/Makefile 356404 2014-06-03 20:15:47Z netchild $
3
3
4
PORTNAME=	serviio
4
PORTNAME=	serviio
5
PORTVERSION=	1.4.1.2
5
PORTVERSION=	1.4.1.2
Lines 11-17 EXTRACT_SUFX= -linux.tar.gz Link Here
11
MAINTAINER=	netchild@FreeBSD.org
11
MAINTAINER=	netchild@FreeBSD.org
12
COMMENT=	Transcoding DLNA-server implemented in Java
12
COMMENT=	Transcoding DLNA-server implemented in Java
13
13
14
RUN_DEPENDS=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg
14
RUN_DEPENDS=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
15
		dcraw:${PORTSDIR}/graphics/dcraw
15
16
16
NO_BUILD=	yes
17
NO_BUILD=	yes
17
USE_JAVA=	yes
18
USE_JAVA=	yes
Lines 23-30 SUB_FILES+= pkg-message serviiod serviio-console Link Here
23
USE_RC_SUBR=	serviio
24
USE_RC_SUBR=	serviio
24
SUB_LIST+=	USER=${USERS}
25
SUB_LIST+=	USER=${USERS}
25
RESTRICTED=	License does not allow selling
26
RESTRICTED=	License does not allow selling
26
EXTRACT_AFTER_ARGS=--exclude junit.jar	\
27
EXTRACT_AFTER_ARGS=	--exclude org.restlet.ext.net.jar
27
	--exclude org.restlet.ext.net.jar
28
28
29
USERS=	dlna
29
USERS=	dlna
30
GROUPS=	dlna
30
GROUPS=	dlna
(-)b/net/serviio/files/serviio-console.in (-1 / +1 lines)
Lines 29-32 do Link Here
29
done
29
done
30
30
31
# Execute the JVM in the foreground
31
# Execute the JVM in the foreground
32
exec java -Xms5M -XX:+UseParNewGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.serviio.console.ServiioConsole "$@"
32
exec java -Xms5M -XX:+UseG1GC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.serviio.console.ServiioConsole "$@"
(-)b/net/serviio/files/serviio.in (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
# $FreeBSD$
3
# $FreeBSD: head/net/serviio/files/serviio.in 340872 2014-01-24 00:14:07Z mat $
4
#
4
#
5
# PROVIDE: serviio
5
# PROVIDE: serviio
6
# REQUIRE: LOGIN
6
# REQUIRE: LOGIN
(-)b/net/serviio/files/serviiod.in (-1 / +1 lines)
Lines 33-36 done Link Here
33
33
34
# Execute the JVM in the foreground
34
# Execute the JVM in the foreground
35
export HOME PATH
35
export HOME PATH
36
exec java -Xmx512M -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@" 2>&1 >/dev/null
36
exec java -Xmx512M -Xms20M -XX:+UseG1GC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@" 2>&1 >/dev/null
(-)b/net/serviio/pkg-descr (-1 / +1 lines)
Lines 16-19 etc.) and some other (XBox 360). It supports profiles for particular Link Here
16
devices so that it can be tuned to maximise the device's potential
16
devices so that it can be tuned to maximise the device's potential
17
and/or minimize lack of media format playback support (via transcoding).
17
and/or minimize lack of media format playback support (via transcoding).
18
18
19
WWW:	http://www.serviio.org/
19
WWW: http://www.serviio.org/
(-)b/www/phpsysinfo/Makefile (-5 / +20 lines)
Lines 1-24 Link Here
1
# Created by: Bob Bomar <bob@fly.homeunix.org>
1
# Created by: Bob Bomar <bob@fly.homeunix.org>
2
# $FreeBSD$
2
# $FreeBSD: head/www/phpsysinfo/Makefile 363079 2014-07-27 16:18:32Z marino $
3
3
4
PORTNAME=	phpsysinfo
4
PORTNAME=	phpsysinfo
5
PORTVERSION=	3.0.10
5
PORTVERSION=	3.1.14
6
PORTREVISION=	2
6
PORTREVISION?=	0
7
CATEGORIES=	www
7
CATEGORIES=	www
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
9
8
10
MAINTAINER=	walt@relnor.com
9
MAINTAINER=	walt@relnor.com
11
COMMENT=	PHP script for displaying system information
10
COMMENT=	PHP script for displaying system information
12
11
13
LICENSE=	GPLv2
12
LICENSE=	GPLv2
14
13
14
USE_GITHUB=	yes
15
GH_ACCOUNT=	phpsysinfo
16
GH_TAGNAME=	v3.1.14
17
GH_COMMIT=	8807ddd
18
15
USE_PHP=	dom pcre xml simplexml mbstring
19
USE_PHP=	dom pcre xml simplexml mbstring
16
WANT_PHP_WEB=	yes
20
WANT_PHP_WEB=	yes
17
21
18
LATEST_LINK=	phpsysinfo-dev
22
LATEST_LINK=	phpsysinfo-dev
19
23
20
NO_BUILD=	yes
24
NO_BUILD=	yes
21
WRKSRC=		${WRKDIR}/${PORTNAME}
25
26
SICOMP=		.gitignore .htaccess .travis.yml CHANGELOG.md COPYING README.md README_PLUGIN.md config.php index.php js.php \
27
		phpsysinfo.ini.new phpsysinfo.xslt phpsysinfo3.xsd xml.php data gfx includes js language plugins sample templates \
28
		tools
22
29
23
SUB_FILES=	pkg-message
30
SUB_FILES=	pkg-message
24
31
Lines 28-32 do-install: Link Here
28
		| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
35
		| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
29
	${CHMOD} -R ${BINMODE} ${STAGEDIR}${WWWDIR}
36
	${CHMOD} -R ${BINMODE} ${STAGEDIR}${WWWDIR}
30
	${FIND} ${STAGEDIR}${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
37
	${FIND} ${STAGEDIR}${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
38
	@if [ ! -f ${WWWDIR}/phpsysinfo.ini ]; then \
39
		${CP} -p ${WWWDIR}/phpsysinfo.ini.new ${WWWDIR}/phpsysinfo.ini ; \
40
	fi
41
	@(cd ${WRKSRC}; ${FIND} ${SICOMP} -not -type d) | ${SORT} | \
42
		${SED} -ne 's,^,${WWWDIR_REL}/,p' >> ${TMPPLIST}
43
	@(cd ${WRKSRC}; ${FIND} ${SICOMP} -type d) | ${SORT} -r | \
44
		${SED} -ne 's,^,@dirrm ${WWWDIR_REL}/,p' >> ${TMPPLIST}
45
	@${ECHO_CMD} '@dirrm ${WWWDIR_REL}' >> ${TMPPLIST}
31
46
32
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)b/www/phpsysinfo/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (phpsysinfo-3.0.10.tar.gz) = 5ce510b2e7a5cdc521c38141425f90cf8f4d3565d65273ade61a2415bfab53e1
1
SHA256 (phpsysinfo-3.1.14.tar.gz) = c2cab5adb2d2b33ff2b2e83b329483220cf99a2d50bc966e8e30a8dcaaf302ab
2
SIZE (phpsysinfo-3.0.10.tar.gz) = 441969
2
SIZE (phpsysinfo-3.1.14.tar.gz) = 791884
(-)b/www/piwigo/Makefile (-5 / +4 lines)
Lines 1-5 Link Here
1
# Created by: Goran Lowkrantz <glz@hidden-powers.com>
1
# Created by: Goran Lowkrantz <glz@hidden-powers.com>
2
# $FreeBSD$
2
# $FreeBSD: head/www/piwigo/Makefile 361980 2014-07-15 17:09:35Z adamw $
3
3
4
PORTNAME=	piwigo
4
PORTNAME=	piwigo
5
PORTVERSION=	2.6.3
5
PORTVERSION=	2.6.3
Lines 15-23 LICENSE_FILE= ${WRKSRC}/doc/COPYING Link Here
15
15
16
NO_BUILD=	yes
16
NO_BUILD=	yes
17
USE_PHP=	calendar ctype dom exif filter gd gettext hash iconv json \
17
USE_PHP=	calendar ctype dom exif filter gd gettext hash iconv json \
18
		mbstring mcrypt mhash mysql mysqli openssl pcre pdf pdo posix \
18
		mbstring mcrypt mhash mysqli openssl pcre pdf pdo posix session \
19
		session simplexml sockets spl tokenizer xml xmlreader \
19
		simplexml sockets spl tokenizer xml xmlreader xmlwriter zlib
20
		xmlwriter zlib
21
USES=		zip
20
USES=		zip
22
WANT_PHP_WEB=	yes
21
WANT_PHP_WEB=	yes
23
WRKSRC=		${WRKDIR}/${PORTNAME}
22
WRKSRC=		${WRKDIR}/${PORTNAME}
Lines 68-74 do-install: Link Here
68
	@${RM} -fr ${WRKSRC}/tools ${WRKSRC}/_data ${WRKSRC}/upload
67
	@${RM} -fr ${WRKSRC}/tools ${WRKSRC}/_data ${WRKSRC}/upload
69
	@${INSTALL} -d ${STAGEDIR}${WWWDIR}
68
	@${INSTALL} -d ${STAGEDIR}${WWWDIR}
70
	@${TAR} -C ${WRKSRC} -cf - . | \
69
	@${TAR} -C ${WRKSRC} -cf - . | \
71
			${TAR} --unlink -C ${STAGEDIR}${WWWDIR} -xf -
70
	${TAR} --unlink -C ${STAGEDIR}${WWWDIR} -xf -
72
71
73
post-install:
72
post-install:
74
	@if [ ! -e ${STAGEDIR}${WWWDIR}/local ]; then \
73
	@if [ ! -e ${STAGEDIR}${WWWDIR}/local ]; then \
(-)b/www/piwigo/pkg-plist (+3 lines)
Lines 622-627 Link Here
622
%%WWWDIR%%/install/upgrade_2.3.0.php
622
%%WWWDIR%%/install/upgrade_2.3.0.php
623
%%WWWDIR%%/install/upgrade_2.4.0.php
623
%%WWWDIR%%/install/upgrade_2.4.0.php
624
%%WWWDIR%%/install/upgrade_2.5.0.php
624
%%WWWDIR%%/install/upgrade_2.5.0.php
625
@mode 750
626
@owner %%WWWOWN%%
627
@group %%WWWGRP%%
625
%%WWWDIR%%/language/af_ZA/about.html
628
%%WWWDIR%%/language/af_ZA/about.html
626
%%WWWDIR%%/language/af_ZA/admin.lang.php
629
%%WWWDIR%%/language/af_ZA/admin.lang.php
627
%%WWWDIR%%/language/af_ZA/af_ZA.jpg
630
%%WWWDIR%%/language/af_ZA/af_ZA.jpg
(-)b/www/sams2/Makefile (-3 / +2 lines)
Lines 1-4 Link Here
1
# $FreeBSD$
1
# $FreeBSD: head/www/sams2/Makefile 366141 2014-08-25 19:49:16Z marino $
2
2
3
PORTNAME=	sams2
3
PORTNAME=	sams2
4
DISTVERSION=	2.0.0
4
DISTVERSION=	2.0.0
Lines 12-24 COMMENT= Squid Accounting Management System Link Here
12
LICENSE=	BSD4CLAUSE
12
LICENSE=	BSD4CLAUSE
13
13
14
LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
14
LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
15
RUN_DEPENDS=	${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
16
15
17
USES=		gmake libtool tar:bzip2
16
USES=		gmake libtool tar:bzip2
18
USE_AUTOTOOLS=	aclocal libtoolize
17
USE_AUTOTOOLS=	aclocal libtoolize
19
USE_LDCONFIG=	yes
18
USE_LDCONFIG=	yes
20
USE_PHP=	gd mysql zlib
19
USE_PHP=	gd mysql zlib
21
USE_MYSQL=	yes
20
USE_MYSQL=	server
22
21
23
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
24
INSTALL_TARGET= install-strip
23
INSTALL_TARGET= install-strip

Return to bug 194057