From 8830d72bbd8882b89a9d42047c31088ac8e76265 Mon Sep 17 00:00:00 2001 From: Eric Luehrsen Date: Tue, 31 Jul 2018 22:59:24 -0400 Subject: unbound: fix boot time and default run directory Unbound struggles with boot ifup, so procd triggers changed to push outside of this noise. Unbound has run in /var/lib/unbound/, so chroot (jail) protects /etc/, and it can save flash wear. Compiled defaults reflect this now, so Unbound tools are easier run on the command line. Signed-off-by: Eric Luehrsen --- net/unbound/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'net/unbound/Makefile') diff --git a/net/unbound/Makefile b/net/unbound/Makefile index c8c8c4ab5..b2c6d31f4 100644 --- a/net/unbound/Makefile +++ b/net/unbound/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=unbound PKG_VERSION:=1.7.3 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE @@ -36,7 +36,7 @@ define Package/unbound SECTION:=net CATEGORY:=Network SUBMENU:=IP Addresses and Names - USERID:=unbound=553:unbound=553 + USERID:=unbound:unbound TITLE+= (daemon) DEPENDS+= +libunbound endef @@ -117,8 +117,10 @@ CONFIGURE_ARGS += \ --enable-tfo-server \ --with-libexpat="$(STAGING_DIR)/usr" \ --with-ssl="$(STAGING_DIR)/usr" \ - --with-pidfile=/var/run/unbound.pid \ - --with-user=unbound + --with-user=unbound \ + --with-run-dir=/var/lib/unbound \ + --with-conf-file=/var/lib/unbound/unbound.conf \ + --with-pidfile=/var/run/unbound.pid define Package/unbound/conffiles /etc/config/unbound @@ -142,7 +144,7 @@ define Package/unbound/install $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc/unbound $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)/etc/unbound/unbound.conf \ + $(PKG_INSTALL_DIR)/var/lib/unbound/unbound.conf \ $(1)/etc/unbound/unbound.conf $(INSTALL_DATA) ./files/root.key $(1)/etc/unbound/root.key $(INSTALL_DATA) ./files/unbound_ext.conf $(1)/etc/unbound/unbound_ext.conf -- cgit v1.2.3