On Thu, Jul 06, 2017 at 10:19:17PM +0100, Stuart Henderson wrote:
> On 2017/07/06 22:41, Joerg Jung wrote:
> > Hi,
> >
> > seems like gdnsd does not have a reload (anymore) and man page
> > discourages the usage of any reload action (as reserved for future use).
> >
> > So OK, for the diff below?
>
> You need an "rc_reload=NO" then.
>
> > Also gdnsd refuses to start if default state_dir /var/lib/gdnsd does not
> > exist. While this can be tweaked in config by just pointing state_dir to
> > e.g. /var/gdnsd I believe the default should be changed with configure
> > initially. However, I failed to find the correct configure option for
> > this. Any input is appreciated.
>
> You could patch configure.ac, it comes from here:
>
> GDNSD_DEFPATH_STATE="${localstatedir}/lib/${PACKAGE_NAME}"
OK for the diff below?
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/gdnsd/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile 31 May 2017 08:08:17 -0000 1.16
+++ Makefile 9 Aug 2017 20:26:05 -0000
@@ -3,7 +3,7 @@
COMMENT= geographically-aware, authoritative-only DNS server
V= 2.2.4
-REVISION= 0
+REVISION= 1
DISTNAME= gdnsd-$V
EXTRACT_SUFX= .tar.xz
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/net/gdnsd/patches/patch-configure,v
retrieving revision 1.1
diff -u -p -r1.1 patch-configure
--- patches/patch-configure 23 Jun 2016 16:15:58 -0000 1.1
+++ patches/patch-configure 9 Aug 2017 20:26:05 -0000
@@ -2,8 +2,9 @@ $OpenBSD: patch-configure,v 1.1 2016/06/
Silence warnings about base headers, drowning real warnings.
---- configure.orig Thu Jun 23 16:36:23 2016
-+++ configure Thu Jun 23 16:36:28 2016
+Index: configure
+--- configure.orig
++++ configure
@@ -14328,7 +14328,6 @@ for flag in \
-Wmissing-prototypes \
-Wold-style-definition \
@@ -12,3 +13,12 @@ Silence warnings about base headers, dro
-Wshadow \
-Wsign-conversion \
-Wstrict-overflow=5 \
+@@ -15978,7 +15977,7 @@ else
+ fi
+
+ GDNSD_DEFPATH_CONFIG="${sysconfdir}/${PACKAGE_NAME}"
+-GDNSD_DEFPATH_STATE="${localstatedir}/lib/${PACKAGE_NAME}"
++GDNSD_DEFPATH_STATE="${localstatedir}/${PACKAGE_NAME}"
+ GDNSD_DEFPATH_LIB="${libdir}/${PACKAGE_NAME}"
+ GDNSD_DEFPATH_LIBEXEC="${libexecdir}/${PACKAGE_NAME}"
+
Index: pkg/gdnsd.rc
===================================================================
RCS file: /cvs/ports/net/gdnsd/pkg/gdnsd.rc,v
retrieving revision 1.3
diff -u -p -r1.3 gdnsd.rc
--- pkg/gdnsd.rc 6 Feb 2016 07:45:08 -0000 1.3
+++ pkg/gdnsd.rc 9 Aug 2017 20:26:05 -0000
@@ -7,9 +7,7 @@ daemon_flags="start"
. /etc/rc.d/rc.subr
-rc_reload() {
- ${daemon} reload
-}
+rc_reload=NO
rc_restart() {
${daemon} restart