Rex Dieter 2013-09-26 07:56:19 -05:00
parent 3c8e583eeb
commit 0e4a5ef781

View File

@ -16,7 +16,7 @@
Name: avahi Name: avahi
Version: 0.6.31 Version: 0.6.31
Release: 19%{?dist} Release: 20%{?dist}
Summary: Local network service discovery Summary: Local network service discovery
License: LGPLv2+ License: LGPLv2+
URL: http://avahi.org URL: http://avahi.org
@ -375,18 +375,15 @@ rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-dnsconfd
%find_lang %{name} %find_lang %{name}
%pre %pre
getent group avahi >/dev/null 2>&1 || groupadd \ getent group avahi >/dev/null || groupadd -f -g 70 -r avahi
-r \ if ! getent passwd avahi > /dev/null ; then
-g 70 \ if ! getent passwd 70 > /dev/null ; then
avahi >/dev/null 2>&1 || : useradd -r -l -u 70 -g avahi -d %{_localstatedir}/run/avahi-daemon -s /sbin/nologin -c "Avahi mDNS/DNS-SD Stack" avahi
getent passwd avahi >/dev/null 2>&1 || useradd \ else
-r -l \ useradd -r -l -g avahi -d %{_localstatedir}/run/avahi-daemon -s /sbin/nologin -c "Avahi mDNS/DNS-SD Stack" avahi
-u 70 \ fi
-g avahi \ fi
-d %{_localstatedir}/run/avahi-daemon \ exit 0
-s /sbin/nologin \
-c "Avahi mDNS/DNS-SD Stack" \
avahi >/dev/null 2>&1 || :
%post %post
/sbin/ldconfig >/dev/null 2>&1 || : /sbin/ldconfig >/dev/null 2>&1 || :
@ -409,19 +406,15 @@ fi
/usr/bin/systemctl try-restart avahi-daemon.service >/dev/null 2>&1 || : /usr/bin/systemctl try-restart avahi-daemon.service >/dev/null 2>&1 || :
%pre autoipd %pre autoipd
getent group avahi-autoipd >/dev/null 2>&1 || groupadd \ getent group avahi-autoipd >/dev/null || groupadd -f -g 170 -r avahi-autoipd
-r \ if ! getent passwd avahi-autoipd > /dev/null ; then
-g 170 \ if ! getent passwd 170 > /dev/null; then
avahi-autoipd >/dev/null 2>&1 || : useradd -r -u 170 -l -g avahi-autoipd -d %{_localstatedir}/lib/avahi-autoipd -s /sbin/nologin -c "Avahi IPv4LL Stack" avahi-autoipd
getent passwd avahi-autoipd >/dev/null 2>&1 || useradd \ else
-r -l \ useradd -r -l -g avahi-autoipd -d %{_localstatedir}/lib/avahi-autoipd -s /sbin/nologin -c "Avahi IPv4LL Stack" avahi-autoipd
-u 170 \ fi
-g avahi-autoipd \ fi
-d %{_localstatedir}/lib/avahi-autoipd \ exit 0
-s /sbin/nologin \
-c "Avahi IPv4LL Stack" \
avahi-autoipd >/dev/null 2>&1 || :
:;
%post dnsconfd %post dnsconfd
%systemd_post avahi-dnsconfd.service %systemd_post avahi-dnsconfd.service
@ -625,6 +618,9 @@ getent passwd avahi-autoipd >/dev/null 2>&1 || useradd \
%endif %endif
%changelog %changelog
* Thu Sep 26 2013 Rex Dieter <rdieter@fedoraproject.org> 0.6.31-20
- conform to http://fedoraproject.org/wiki/Packaging/UsersAndGroups#Soft_static_allocation
* Wed Sep 25 2013 Kalev Lember <kalevlember@gmail.com> - 0.6.31-19 * Wed Sep 25 2013 Kalev Lember <kalevlember@gmail.com> - 0.6.31-19
- Make sure the split up -devel package require avahi-devel - Make sure the split up -devel package require avahi-devel