From 3385a7ccf15dbe5ace9f59cb7d0fdc5ffb2a7c70 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Wed, 4 Aug 2010 13:03:08 +0000 Subject: [PATCH] debian/post{inst,rm}: removed. No need to call update-reader.conf any more since pcscd will parse the /etc/reader.conf.d/ directory --- debian/changelog | 4 ++- debian/postinst | 63 ------------------------------------------------ debian/postrm | 53 ---------------------------------------- 3 files changed, 3 insertions(+), 117 deletions(-) delete mode 100644 debian/postinst delete mode 100644 debian/postrm diff --git a/debian/changelog b/debian/changelog index cca4159..90e3bca 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 04 Aug 2010 14:24:06 +0200 + -- Ludovic Rousseau Wed, 04 Aug 2010 14:57:53 +0200 ccid (1.3.13-1) experimental; urgency=low diff --git a/debian/postinst b/debian/postinst deleted file mode 100644 index a8cdfd6..0000000 --- a/debian/postinst +++ /dev/null @@ -1,63 +0,0 @@ -#! /bin/sh -# postinst script for ccid -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# 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 - - diff --git a/debian/postrm b/debian/postrm deleted file mode 100644 index f5713b4..0000000 --- a/debian/postrm +++ /dev/null @@ -1,53 +0,0 @@ -#! /bin/sh -# postrm script for ccid -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' overwrit>r> -# 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# - -