#! /bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/perl_addons_03 - perl addons-03 deinstallation # # Creation: 2008-06-21 jed # Last Update: $Id$ # # Copyright (c) 2008-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # set package name package_name=perl_addons_03 # set filelist filelist=/etc/filelist.d/${package_name}-files.txt # check for update is given case $1 in "*update") update=true ;; esac # --------------------------------------------------------------------------- # remove program files # --------------------------------------------------------------------------- while read id perm user group package file do case ${id} in b|u) # remove program files if [ "${file}" != "tmp/install.sh" \ -a "${file}" != "tmp/preinstall.sh" ] then rm -f /${file} fi ;; f) # remove directories rmdir --ignore-fail-on-non-empty /${file} 2>/dev/null ;; esac done < ${filelist} rm -f ${filelist} # remove included package descriptions for PNAME in bit_vector carp_clan common_sense date_calc ev expect gd gd_graph \ gd_text html_tree json_xs json_xs_versiononeandtwo sub_uplevel test_exception \ time_modules do rm -f /var/install/packages/perl_${PNAME} done if ${update:-false} then exit fi exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------