#!/bin/bash
# prerm script for #PACKAGE#
#

set -e


case "$1" in
    remove|upgrade|deconfigure)
        rm -rf /usr/share/siguibui/public

        pushd /tmp 2>&1 >/dev/null
           test -d /usr/local/lib/site_perl && cd /usr/local/lib/site_perl
           rm -f sidu_test.pm
           rm -f sidu_basic.pm
           rm -f sidu_recorder.pm
        popd 2>&1 >/dev/null

        # stopping a service must not break the installation of a package
        # in no way AG 2015-10-08
        sidu-base-control stop | true

        # wie auch immer, wech damit
       [ -d /usr/share/sidu-base ] && rm -rf /usr/share/sidu-base
    ;;

    failed-upgrade)
    ;;

    *)
        echo "prerm 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
