added tftp group (bnc#738905)
OBS-URL: https://build.opensuse.org/package/show/network/dnsmasq?expand=0&rev=30
This commit is contained in:
parent
c6ed0facf8
commit
67215239bf
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 8 16:56:35 CET 2012 - ug@suse.de
|
||||||
|
|
||||||
|
- added correct group for tftp
|
||||||
|
(bnc#738905)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 6 22:25:05 UTC 2012 - crrodriguez@opensuse.org
|
Mon Feb 6 22:25:05 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
14
dnsmasq.spec
14
dnsmasq.spec
@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: dnsmasq
|
Name: dnsmasq
|
||||||
Summary: Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server
|
Summary: Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
@ -62,16 +63,23 @@ export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
|||||||
make %{?_smp_mflags} AWK=gawk all-i18n
|
make %{?_smp_mflags} AWK=gawk all-i18n
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
if ! /usr/bin/getent passwd dnsmasq >/dev/null; then
|
if ! /usr/bin/getent group tftp >/dev/null; then
|
||||||
/usr/sbin/useradd -r -d /var/lib/empty -s /bin/false -c "dnsmasq" -g nogroup dnsmasq || :
|
%{_sbindir}/groupadd -r tftp 2>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
if ! /usr/bin/getent passwd dnsmasq >/dev/null; then
|
||||||
|
/usr/sbin/useradd -r -d /var/lib/empty -s /bin/false -c "dnsmasq" -g nogroup -G tftp dnsmasq || :
|
||||||
|
fi
|
||||||
|
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_and_insserv dnsmasq}
|
%{fillup_and_insserv dnsmasq}
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal dnsmasq
|
%stop_on_removal dnsmasq
|
||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%restart_on_update dnsmasq
|
%restart_on_update dnsmasq
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
@ -91,6 +99,7 @@ install -m 644 SuSEFirewall.dnsmasq-dhcp ${RPM_BUILD_ROOT}/%{_sysconfdir}/syscon
|
|||||||
install -d 755 ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/
|
install -d 755 ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/
|
||||||
install -m 644 dbus/dnsmasq.conf ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/dnsmasq.conf
|
install -m 644 dbus/dnsmasq.conf ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/dnsmasq.conf
|
||||||
install -D -m 0644 %SOURCE2 %{buildroot}/lib/systemd/system/dnsmasq.service
|
install -D -m 0644 %SOURCE2 %{buildroot}/lib/systemd/system/dnsmasq.service
|
||||||
|
install -d -m 0750 ${RPM_BUILD_ROOT}/srv/tftpboot
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
@ -109,5 +118,6 @@ install -D -m 0644 %SOURCE2 %{buildroot}/lib/systemd/system/dnsmasq.service
|
|||||||
%{_mandir}/es/man8/dnsmasq.8.gz
|
%{_mandir}/es/man8/dnsmasq.8.gz
|
||||||
/etc/dbus-1/system.d/dnsmasq.conf
|
/etc/dbus-1/system.d/dnsmasq.conf
|
||||||
/lib/systemd/system/dnsmasq.service
|
/lib/systemd/system/dnsmasq.service
|
||||||
|
%dir %attr(0750,root,tftp) /srv/tftpboot
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user