From d18bb690938ced73b1b77305df9d050667a68029 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 31 Jul 2006 20:41:37 +0000 Subject: [PATCH] - follow packaging guidelines for setting up init service (bug 200778) --- pcsc-lite.spec | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pcsc-lite.spec b/pcsc-lite.spec index 9a57dbc..e56d35f 100644 --- a/pcsc-lite.spec +++ b/pcsc-lite.spec @@ -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 - 1.3.1-6 +- follow packaging guidelines for setting up init service + (bug 200778) + * Sun Jul 24 2006 Bob Relyea - 1.3.1-5 - start pcscd when pcsc-lite is installed