From ccb6ed253f69064627177b85df522c8d3d9b5ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 4 Mar 2022 10:17:47 +0700 Subject: [PATCH] dnsmasq: configurable services Close: #35826 --- srcpkgs/dnsmasq/files/dnsmasq/run | 3 ++- srcpkgs/dnsmasq/template | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/dnsmasq/files/dnsmasq/run b/srcpkgs/dnsmasq/files/dnsmasq/run index 2b740a49d8f..f3504f9e6ec 100644 --- a/srcpkgs/dnsmasq/files/dnsmasq/run +++ b/srcpkgs/dnsmasq/files/dnsmasq/run @@ -1,3 +1,4 @@ #!/bin/sh mkdir -p /var/lib/misc -exec dnsmasq -k --enable-dbus -u dnsmasq -g dnsmasq 2>&1 +[ -r ./conf ] && . ./conf +exec dnsmasq -k ${OPTS:---enable-dbus -u dnsmasq -g dnsmasq} 2>&1 diff --git a/srcpkgs/dnsmasq/template b/srcpkgs/dnsmasq/template index 731594e8a9d..b59608c4791 100644 --- a/srcpkgs/dnsmasq/template +++ b/srcpkgs/dnsmasq/template @@ -1,7 +1,7 @@ # Template file for 'dnsmasq' pkgname=dnsmasq version=2.86 -revision=1 +revision=2 conf_files="/etc/dnsmasq.conf" hostmakedepends="pkg-config" makedepends="dbus-devel libcap-devel libidn2-devel $(vopt_if dnssec nettle-devel)"