mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
unbound: Install trust anchor in /var/lib/unbound
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
11
lfs/unbound
11
lfs/unbound
@@ -74,7 +74,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-pidfile=/var/run/unbound.pid
|
||||
--with-pidfile=/var/run/unbound.pid \
|
||||
--with-rootkey-file=/var/lib/unbound/root.key \
|
||||
--disable-static \
|
||||
--with-libevent
|
||||
cd $(DIR_APP) && make $(MAKETUNING)
|
||||
@@ -84,6 +85,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
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 -v -m 644 $(DIR_SRC)/config/unbound/root.key /etc/unbound/
|
||||
|
||||
# Install key
|
||||
-mkdir -pv /var/lib/unbound
|
||||
install -v -m 644 $(DIR_SRC)/config/unbound/root.key \
|
||||
/var/lib/unbound/root.key
|
||||
chown -Rv nobody.nobody /var/lib/unbound
|
||||
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user