Switch to systemctl for restarting pcscd after upgrade

... now that it is using native systemd unit files.
This commit is contained in:
Kalev Lember 2011-10-14 15:43:24 +03:00
parent eed707fb12
commit 24022d3fea

View File

@ -14,8 +14,8 @@ Source0: http://alioth.debian.org/download.php/%{upstream_build}/ccid-%{v
BuildRequires: libusb1-devel
BuildRequires: pcsc-lite-devel >= %{pcsc_lite_ver}
Requires(post): initscripts
Requires(postun): initscripts
Requires(post): systemd-units
Requires(postun): systemd-units
Requires: pcsc-lite >= %{pcsc_lite_ver}
Provides: pcsc-ifd-handler
# Provide upgrade path from 'ccid' package
@ -42,12 +42,10 @@ cp -p src/openct/LICENSE LICENSE.openct
%post
[ -x %{_initrddir}/pcscd ] && %{_initrddir}/pcscd status >> /dev/null 2>&1 && %{_sbindir}/pcscd -H > /dev/null 2>&1
exit 0
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
%postun
[ -x %{_initrddir}/pcscd ] && %{_initrddir}/pcscd status >> /dev/null 2>&1 && %{_sbindir}/pcscd -H > /dev/null 2>&1
exit 0
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
%files
@ -60,6 +58,8 @@ exit 0
%changelog
* Fri Oct 14 2011 Kalev Lember <kalevlember@gmail.com> - 1.4.5-1
- Update to 1.4.5
- Switch to systemctl for restarting pcscd after upgrade now that it is using
native systemd unit files.
* Fri May 27 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.4-1
- Update to 1.4.4