]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/unbound
Merge branch 'unbound' into next
[ipfire-2.x.git] / lfs / unbound
index 5065048efe71ab5f00f8447c63cd88048cbea957..9c8589367d2f8b8979ca4ed01c2bf1f04095d9c3 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2016  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -80,11 +80,16 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                        --with-libevent
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
-       # add ipfire config
-       mkdir -pv /etc/unbound/blocklists
-       mv -v /etc/unbound/unbound.conf /etc/unbound/unbound_org.conf
-       install -v -m 644 $(DIR_SRC)/config/unbound/*.conf /etc/unbound/
-       install -v -m 644 $(DIR_SRC)/config/unbound/root.hints /etc/unbound/
+
+       # Install configuration
+       install -v -m 644 $(DIR_SRC)/config/unbound/unbound.conf \
+               /etc/unbound/unbound.conf
+       touch /etc/unbound/{dhcp-leases,forward}.conf
+       -mkdir -pv /etc/unbound/local.d
+
+       # Install root hints
+       install -v -m 644 $(DIR_SRC)/config/unbound/root.hints \
+               /etc/unbound/root.hints
 
        # Install DHCP leases bridge
        install -v -m 755 $(DIR_SRC)/config/unbound/unbound-dhcp-leases-bridge \