diff options
author | Eric Luehrsen <ericluehrsen@gmail.com> | 2018-07-31 22:59:24 -0400 |
---|---|---|
committer | Eric Luehrsen <ericluehrsen@gmail.com> | 2018-08-03 03:27:03 -0400 |
commit | 8830d72bbd8882b89a9d42047c31088ac8e76265 (patch) | |
tree | fac06dd0bb6a5217b65c6751e7f75838e78f8440 /net/unbound/Makefile | |
parent | 74c043276a59315d030ee78864db0148ffa45e1b (diff) |
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 <ericluehrsen@gmail.com>
Diffstat (limited to 'net/unbound/Makefile')
-rw-r--r-- | net/unbound/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
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 |