- follow packaging guidelines for setting up init service (bug 200778)
This commit is contained in:
parent
7e84d9becb
commit
d18bb69093
|
@ -1,6 +1,6 @@
|
|||
Name: pcsc-lite
|
||||
Version: 1.3.1
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: PC/SC Lite smart card framework and applications
|
||||
|
||||
Group: System Environment/Daemons
|
||||
|
@ -96,22 +96,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/sbin/chkconfig --add pcscd
|
||||
/sbin/chkconfig --level 345 pcscd on
|
||||
%{_initrddir}/pcscd start
|
||||
else
|
||||
%{_initrddir}/pcscd try-restart || :
|
||||
fi
|
||||
/sbin/chkconfig --add pcscd
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
%{_initrddir}/pcscd stop >/dev/null || :
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/service pcscd stop >/dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del pcscd
|
||||
fi
|
||||
|
||||
%postun
|
||||
[ $1 -gt 0 ] && %{_initrddir}/pcscd try-restart || :
|
||||
if [ "$1" -ge "1" ]; then
|
||||
/sbin/service pcscd condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
|
@ -150,6 +146,10 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 31 2006 Ray Strode <rstrode@redhat.com> - 1.3.1-6
|
||||
- follow packaging guidelines for setting up init service
|
||||
(bug 200778)
|
||||
|
||||
* Sun Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
|
||||
- start pcscd when pcsc-lite is installed
|
||||
|
||||
|
|
Loading…
Reference in New Issue