Move libexpat, unbound into core and introduce hnsd
[librecmc/librecmc.git] / package / network / services / unbound / files / defaults.sh
1 #!/bin/sh
2 ##############################################################################
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 2 as
6 # published by the Free Software Foundation.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # Copyright (C) 2016 Eric Luehrsen
14 #
15 ##############################################################################
16
17 # where are we?
18 UB_LIBDIR=/usr/lib/unbound
19 UB_VARDIR=/var/lib/unbound
20 UB_PIDFILE=/var/run/unbound.pid
21
22 # conf deconstructed
23 UB_TOTAL_CONF=$UB_VARDIR/unbound.conf
24 UB_CORE_CONF=$UB_VARDIR/server.conf.tmp
25 UB_HOST_CONF=$UB_VARDIR/host.conf.tmp
26 UB_DHCP_CONF=$UB_VARDIR/dhcp.conf
27 UB_ZONE_CONF=$UB_VARDIR/zone.conf.tmp
28 UB_CTRL_CONF=$UB_VARDIR/ctrl.conf.tmp
29 UB_SRVMASQ_CONF=$UB_VARDIR/dnsmasq_srv.conf.tmp
30 UB_EXTMASQ_CONF=$UB_VARDIR/dnsmasq_ext.conf.tmp
31 UB_SRV_CONF=$UB_VARDIR/unbound_srv.conf
32 UB_EXT_CONF=$UB_VARDIR/unbound_ext.conf
33
34 # TLS keys
35 UB_TLS_KEY_FILE="TLS server UCI not implemented"
36 UB_TLS_PEM_FILE="TLS server UCI not implemented"
37 UB_TLS_FWD_FILE=$UB_VARDIR/ca-certificates.crt
38 UB_TLS_ETC_FILE=/etc/ssl/certs/ca-certificates.crt
39
40 # start files
41 UB_RKEY_FILE=$UB_VARDIR/root.key
42 UB_RHINT_FILE=$UB_VARDIR/root.hints
43 UB_TIME_FILE=$UB_VARDIR/hotplug.time
44 UB_SKIP_FILE=$UB_VARDIR/skip.time
45
46 # control app keys
47 UB_CTLKEY_FILE=$UB_VARDIR/unbound_control.key
48 UB_CTLPEM_FILE=$UB_VARDIR/unbound_control.pem
49 UB_SRVKEY_FILE=$UB_VARDIR/unbound_server.key
50 UB_SRVPEM_FILE=$UB_VARDIR/unbound_server.pem
51
52 # similar default SOA / NS RR as Unbound uses for private ARPA zones
53 UB_XSER=$(( $( date +%s ) / 60 ))
54 UB_XSOA="7200 IN SOA localhost. nobody.invalid. $UB_XSER 3600 1200 9600 300"
55 UB_XNS="7200 IN NS localhost."
56 UB_XTXT="7200 IN TXT \"comment=local intranet dns zone\""
57 UB_MTXT="7200 IN TXT \"comment=masked internet dns zone\""
58 UB_LTXT="7200 IN TXT \"comment=rfc6762 multicast dns zone\""
59
60 # helper apps
61 UB_ANCHOR=/usr/sbin/unbound-anchor
62 UB_CONTROL=/usr/sbin/unbound-control
63 UB_CONTROL_CFG="$UB_CONTROL -c $UB_TOTAL_CONF"
64
65 ##############################################################################
66