Dominique Leuenberger 2022-09-20 17:23:03 +00:00 committed by Git OBS Bridge
commit a38c20861b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 9 11:00:25 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Ensure the dnsmasq user's group is used
- Remove nogroup requirement
-------------------------------------------------------------------
Wed Jun 8 14:24:38 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -47,7 +47,6 @@ BuildRequires: lua-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libnetfilter_conntrack)
BuildRequires: pkgconfig(systemd)
Requires(pre): group(nogroup)
Provides: dns_daemon
%if %{with tftp_user_package}
BuildRequires: sysuser-tools
@ -96,13 +95,13 @@ sed -i -e 's|\(PREFIX *= *\)%{_prefix}/local|\1/usr|;
sed -i -e 's|lua5.2|lua%{lua_version}|' Makefile
# SED-FIX-UPSTREAM -- Fix man page
sed -i -e 's|The default is "dip",|The default is "nogroup",|' \
sed -i -e 's|The default is "dip",|The default is "dnsmasq",|' \
man/dnsmasq.8
# SED-FIX-UPSTREAM -- Fix cachesize, group and user
sed -i -e 's|CACHESIZ 150|CACHESIZ 2000|;
s|CHUSER "nobody"|CHUSER "dnsmasq"|;
s|CHGRP "dip"|CHGRP "nogroup"|' \
s|CHGRP "dip"|CHGRP "dnsmasq"|' \
src/config.h
# Tweaks to the default configuration: