start pcscd when pcsc-lite is installed.
This commit is contained in:
parent
eba0750c52
commit
7e84d9becb
|
@ -1,6 +1,6 @@
|
||||||
Name: pcsc-lite
|
Name: pcsc-lite
|
||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: PC/SC Lite smart card framework and applications
|
Summary: PC/SC Lite smart card framework and applications
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
@ -13,8 +13,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: libusb-devel >= 0.1.7
|
BuildRequires: libusb-devel >= 0.1.7
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
|
Requires(post): initscripts
|
||||||
Requires(post): /sbin/chkconfig
|
Requires(post): /sbin/chkconfig
|
||||||
Requires(preun): /sbin/chkconfig
|
Requires(preun): /sbin/chkconfig
|
||||||
|
Requires(preun): initscripts
|
||||||
|
Requires(postun): initscripts
|
||||||
Requires: pcsc-ifd-handler
|
Requires: pcsc-ifd-handler
|
||||||
# 390 does not have libusb or smartCards
|
# 390 does not have libusb or smartCards
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
@ -93,7 +96,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add pcscd
|
if [ $1 -eq 1 ] ; then
|
||||||
|
/sbin/chkconfig --add pcscd
|
||||||
|
/sbin/chkconfig --level 345 pcscd on
|
||||||
|
%{_initrddir}/pcscd start
|
||||||
|
else
|
||||||
|
%{_initrddir}/pcscd try-restart || :
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
|
@ -102,7 +111,7 @@ if [ $1 -eq 0 ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
[ $1 -gt 0 ] && %{_initrddir}/pcscd try-restart >/dev/null || :
|
[ $1 -gt 0 ] && %{_initrddir}/pcscd try-restart || :
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
@ -141,6 +150,9 @@ fi
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
|
||||||
|
- start pcscd when pcsc-lite is installed
|
||||||
|
|
||||||
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
|
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
|
||||||
- fix excludearch line
|
- fix excludearch line
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue