diff options
| author | Antti Ajanki <antti.ajanki@iki.fi> | 2010-08-25 20:47:32 +0300 |
|---|---|---|
| committer | Antti Ajanki <antti.ajanki@iki.fi> | 2010-08-25 20:47:32 +0300 |
| commit | 0afac96f286456aa65109ccb92cf03f79c964c0f (patch) | |
| tree | cf060dd0c54a7f9ba3f8b102bb424440c732b945 /debian/preinst | |
| parent | f817cb0f4c07788a2c114590fd317c94c9a3958c (diff) | |
| download | vdr-plugin-webvideo-0afac96f286456aa65109ccb92cf03f79c964c0f.tar.gz vdr-plugin-webvideo-0afac96f286456aa65109ccb92cf03f79c964c0f.tar.bz2 | |
postinst and preinst in correct packages
Diffstat (limited to 'debian/preinst')
| -rw-r--r-- | debian/preinst | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/debian/preinst b/debian/preinst deleted file mode 100644 index 93f4653..0000000 --- a/debian/preinst +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -# preinst script for vdr-plugin-webvideo -# -# see: dh_installdeb(1) - -set -e - -# Remove a no-longer used conffile -rm_conffile() { - local PKGNAME="$1" - local CONFFILE="$2" - - [ -e "$CONFFILE" ] || return 0 - - local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')" - local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \ - sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" - if [ "$md5sum" != "$old_md5sum" ]; then - echo "Obsolete conffile $CONFFILE has been modified by you." - echo "Saving as $CONFFILE.dpkg-bak ..." - mv -f "$CONFFILE" "$CONFFILE".dpkg-bak - else - echo "Removing obsolete conffile $CONFFILE ..." - rm -f "$CONFFILE" - fi -} - -case "$1" in - install|upgrade) - if dpkg --compare-versions "$2" le 0.3.1-1; then - rm_conffile vdr-plugin-webvideo "/etc/init.d/vdr-plugin-webvideo" - rm_conffile vdr-plugin-webvideo "/etc/default/vdr-plugin-webvideo" - fi - ;; - - abort-upgrade) - ;; - - *) - echo "preinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 |
