aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-12-05 00:51:14 +0000
committerDaniel Golle <daniel@makrotopia.org>2023-01-14 01:47:32 +0000
commit0edb2cccb8c622fc8462b01c628bf56b055951e0 (patch)
treeab6dd2e094c565e3c3f8f1ed5bf3c4a989639732 /net
parentda2db3b92943e3351ffedd8ff5f5e655ef9240ae (diff)
safe-search: fix use with dnsmasq in ujail
The safe-search package creates symlinks in a configured additional hosts directory. The link targets are inside another directory which has to be made available to dnsmasq as well. Now that support for adding additional paths to dnsmasq was added by commit openwrt/openwrt@aa12a0fdd1c5a004281633c5b0758da1781bb41c implement adding this path using the existing uci-defaults script. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'net')
2 files changed, 3 insertions, 1 deletions
diff --git a/net/safe-search/Makefile b/net/safe-search/Makefile
index b8afee5d7..1492db090 100644
--- a/net/safe-search/Makefile
+++ b/net/safe-search/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=safe-search
PKG_VERSION:=2.0.1
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=11
PKG_LICENSE:=MIT
PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
diff --git a/net/safe-search/files/safe-search.defaults b/net/safe-search/files/safe-search.defaults
index 063e84cc3..e7f4d052b 100644
--- a/net/safe-search/files/safe-search.defaults
+++ b/net/safe-search/files/safe-search.defaults
@@ -5,6 +5,8 @@
#
uci del_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
uci add_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
+uci del_list dhcp.@dnsmasq[0].addn_mount=/etc/safe-search/available
+uci add_list dhcp.@dnsmasq[0].addn_mount=/etc/safe-search/available
uci commit dhcp
/usr/sbin/safe-search-maintenance