resolves: bug#850119 - Introduce new systemd-rpm macros (>= F18)
This commit is contained in:
parent
ee04dacd73
commit
fe6c73bf2d
@ -1,7 +1,7 @@
|
|||||||
Summary: High-performance and highly configurable free RADIUS server
|
Summary: High-performance and highly configurable free RADIUS server
|
||||||
Name: freeradius
|
Name: freeradius
|
||||||
Version: 2.2.0
|
Version: 2.2.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.freeradius.org/
|
URL: http://www.freeradius.org/
|
||||||
@ -273,9 +273,9 @@ getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "r
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%systemd_post radiusd.service
|
||||||
if [ $1 -eq 1 ]; then # install
|
if [ $1 -eq 1 ]; then # install
|
||||||
# Initial installation
|
# Initial installation
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
if [ ! -e /etc/raddb/certs/server.pem ]; then
|
if [ ! -e /etc/raddb/certs/server.pem ]; then
|
||||||
/sbin/runuser -g radiusd -c 'umask 007; /etc/raddb/certs/bootstrap' > /dev/null 2>&1
|
/sbin/runuser -g radiusd -c 'umask 007; /etc/raddb/certs/bootstrap' > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
@ -283,18 +283,11 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
%systemd_preun radiusd.service
|
||||||
# Package removal, not upgrade
|
|
||||||
/bin/systemctl --no-reload disable radiusd.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop radiusd.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart radiusd.service
|
||||||
if [ $1 -ge 1 ] ; then
|
if [ $1 -eq 0 ]; then # uninstall
|
||||||
# Package upgrade, not uninstall
|
|
||||||
/bin/systemctl try-restart radiusd.service >/dev/null 2>&1 || :
|
|
||||||
elif [ $1 -eq 0 ]; then # uninstall
|
|
||||||
getent passwd radiusd >/dev/null && /usr/sbin/userdel radiusd > /dev/null 2>&1
|
getent passwd radiusd >/dev/null && /usr/sbin/userdel radiusd > /dev/null 2>&1
|
||||||
getent group radiusd >/dev/null && /usr/sbin/groupdel radiusd > /dev/null 2>&1
|
getent group radiusd >/dev/null && /usr/sbin/groupdel radiusd > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
@ -614,6 +607,9 @@ exit 0
|
|||||||
%{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so
|
%{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 14 2012 John Dennis <jdennis@redhat.com> - 2.2.0-5
|
||||||
|
- resolves: bug#850119 - Introduce new systemd-rpm macros (>= F18)
|
||||||
|
|
||||||
* Thu Dec 13 2012 John Dennis <jdennis@redhat.com> - 2.2.0-4
|
* Thu Dec 13 2012 John Dennis <jdennis@redhat.com> - 2.2.0-4
|
||||||
- add compile option -fno-strict-aliasing
|
- add compile option -fno-strict-aliasing
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user