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
|
||||
|
||||
|
14
dnsmasq.spec
14
dnsmasq.spec
@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: dnsmasq
|
||||
Summary: Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server
|
||||
License: GPL-2.0+
|
||||
@ -62,16 +63,23 @@ export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
||||
make %{?_smp_mflags} AWK=gawk all-i18n
|
||||
|
||||
%pre
|
||||
if ! /usr/bin/getent passwd dnsmasq >/dev/null; then
|
||||
/usr/sbin/useradd -r -d /var/lib/empty -s /bin/false -c "dnsmasq" -g nogroup dnsmasq || :
|
||||
if ! /usr/bin/getent group tftp >/dev/null; then
|
||||
%{_sbindir}/groupadd -r tftp 2>/dev/null || :
|
||||
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
|
||||
|
||||
%post
|
||||
%{fillup_and_insserv dnsmasq}
|
||||
%service_add_post %{name}.service
|
||||
|
||||
%preun
|
||||
%stop_on_removal dnsmasq
|
||||
%service_del_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%restart_on_update dnsmasq
|
||||
%{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 -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 0750 ${RPM_BUILD_ROOT}/srv/tftpboot
|
||||
%find_lang %{name}
|
||||
|
||||
%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
|
||||
/etc/dbus-1/system.d/dnsmasq.conf
|
||||
/lib/systemd/system/dnsmasq.service
|
||||
%dir %attr(0750,root,tftp) /srv/tftpboot
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user