diff --git a/dnsmasq.changes b/dnsmasq.changes index 545bb67..10a13e6 100644 --- a/dnsmasq.changes +++ b/dnsmasq.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 13 16:48:15 UTC 2023 - Callum Farmer + +- Correct rundir from /var/run to /run for pid file + ------------------------------------------------------------------- Tue Apr 25 08:32:41 UTC 2023 - Reinhard Max diff --git a/dnsmasq.spec b/dnsmasq.spec index f576b18..54a960c 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -93,10 +93,11 @@ sed -i -e 's|lua5.2|lua%{lua_version}|' Makefile sed -i -e 's|The default is "dip",|The default is "dnsmasq",|' \ man/dnsmasq.8 -# SED-FIX-UPSTREAM -- Fix cachesize, group and user +# SED-FIX-UPSTREAM -- Fix cachesize, group , user and pid location sed -i -e 's|CACHESIZ 150|CACHESIZ 2000|; s|CHUSER "nobody"|CHUSER "dnsmasq"|; - s|CHGRP "dip"|CHGRP "dnsmasq"|' \ + s|CHGRP "dip"|CHGRP "dnsmasq"|; + s|RUNFILE "/var/run/dnsmasq.pid"|RUNFILE "%{_rundir}/dnsmasq.pid"|' \ src/config.h # Tweaks to the default configuration: