debian/post{inst,rm}: removed. No need to call update-reader.conf any

more since pcscd will parse the /etc/reader.conf.d/ directory
This commit is contained in:
Ludovic Rousseau 2010-08-04 13:03:08 +00:00
parent 6ba36fdb71
commit 3385a7ccf1
3 changed files with 3 additions and 117 deletions

4
debian/changelog vendored
View File

@ -3,8 +3,10 @@ ccid (1.4.0-1) experimental; urgency=low
* New upstream release
* debian/rules: use dh (nearly) minimal rules
* debian/control: remove reader list since it is no more up to date
* debian/post{inst,rm}: removed. No need to call update-reader.conf any
more since pcscd will parse the /etc/reader.conf.d/ directory
-- Ludovic Rousseau <rousseau@debian.org> Wed, 04 Aug 2010 14:24:06 +0200
-- Ludovic Rousseau <rousseau@debian.org> Wed, 04 Aug 2010 14:57:53 +0200
ccid (1.3.13-1) experimental; urgency=low

63
debian/postinst vendored
View File

@ -1,63 +0,0 @@
#! /bin/sh
# postinst script for ccid
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see /usr/share/doc/packaging-manual/
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
case "$1" in
configure|reconfigure)
# regenerate /etc/reader.conf if update-reader.conf is available
if [ -x /usr/sbin/update-reader.conf ]
then
update-reader.conf || true
fi
# restart pcscd (PCSC daemon) if the package is installed
if [ -x /etc/init.d/pcscd ]
then
invoke-rc.d pcscd restart 3> /dev/null
fi
# reload udev rules if the package is installed
if [ -x /etc/init.d/udev ]
then
invoke-rc.d udev reload 3> /dev/null || true
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

53
debian/postrm vendored
View File

@ -1,53 +0,0 @@
#! /bin/sh
# postrm script for ccid
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see /usr/share/doc/packaging-manual/
cfgdir=/etc/reader.conf.d
cfg=$cfgdir/libccidtwin
case "$1" in
remove|failed-upgrade|abort-install|abort-upgrade|disappear)
# regenerate /etc/reader.conf
if [ -x /usr/sbin/update-reader.conf ]
then
update-reader.conf || true
fi
# restart pcscd (PCSC daemon) if the package is removed
if [ -x /etc/init.d/pcscd ]
then
invoke-rc.d pcscd restart 3>/dev/null
fi
;;
purge|upgrade)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 0
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#