Kerala Cyber
Warriors
KCW Uploader V1.1
Path : /var/lib/dpkg/info/ |
|
Current File : //var/lib/dpkg/info/ea-php73-pear.postrm |
#!/bin/bash
# postrm script for ea-php73-pear
#
# see: dh_installdeb(1)
set -e
# Begin vars.sh
#!/bin/bash
# DO NOT EDIT
# This file is regenerated each run.
# If you want to add or change a variable, edit debify/settings.json and the vars hashref
source /etc/os-release
export OBS_REPO="x${NAME}_${VERSION_ID}"
if ls debian/*.install &> /dev/null; then
perl -pi -e 's/\${env:OBS_REPO}/$ENV{OBS_REPO}/' debian/*.install
fi
export DEB_INSTALL_ROOT="/usr/src/packages/BUILD/debian/tmp"
export DEB_SOURCE_ROOT="/usr/src/packages/BUILD/debian/SOURCES_FROM_SPEC"
export RPM_SOURCE_DIR="/usr/src/packages/BUILD/debian/SOURCES_FROM_SPEC"
export __isa_bits="64"
export __isa_name="x86"
export __sourcedir=""
export _bindir="/opt/cpanel/ea-php73/root/usr/bin"
export _datadir="/opt/cpanel/ea-php73/root/usr/share"
export _defaultdocdir="/opt/cpanel/ea-php73/root/usr/share/doc"
export _docdir="/opt/cpanel/ea-php73/root/usr/share/doc"
export _exec_prefix="/opt/cpanel/ea-php73/root/usr"
export _includedir="/opt/cpanel/ea-php73/root/usr/include"
export _infodir="/opt/cpanel/ea-php73/root/usr/share/info"
export _isa=""
export _lib="lib64"
export _libdir="/opt/cpanel/ea-php73/root/usr/lib64"
export _libexecdir="/opt/cpanel/ea-php73/root/usr/libexec"
export _localstatedir="/opt/cpanel/ea-php73/root/var"
export _mandir="/opt/cpanel/ea-php73/root/usr/share/man"
export _prefix="/opt/cpanel/ea-php73/root/usr"
export _root_bindir="/opt/cpanel/ea-php73/root/usr/bin"
export _root_datadir="/opt/cpanel/ea-php73/root/usr/share"
export _root_exec_prefix="/opt/cpanel/ea-php73/root/usr"
export _root_includedir="/opt/cpanel/ea-php73/root/usr/include"
export _root_infodir="/opt/cpanel/ea-php73/root/usr/share/info"
export _root_initddir="/opt/cpanel/ea-php73/root/etc/rc.d/init.d"
export _root_libdir="/opt/cpanel/ea-php73/root/usr/lib64"
export _root_libexecdir="/opt/cpanel/ea-php73/root/usr/libexec"
export _root_localstatedir="/opt/cpanel/ea-php73/root/var"
export _root_mandir="/opt/cpanel/ea-php73/root/usr/share/man"
export _root_prefix="/opt/cpanel/ea-php73/root/usr"
export _root_sbindir="/opt/cpanel/ea-php73/root/usr/sbin"
export _root_sharedstatedir="/opt/cpanel/ea-php73/root/usr/com"
export _root_sysconfdir="/opt/cpanel/ea-php73/root/etc"
export _sbindir="/opt/cpanel/ea-php73/root/usr/sbin"
export _scl_prefix="/opt/cpanel"
export _scl_root="/opt/cpanel/ea-php73/root"
export _sysconfdir="/opt/cpanel/ea-php73/root/etc"
export _unitdir="/usr/lib/systemd/system"
export buildroot="/usr/src/packages/BUILD"
export full_package_name="ea-php73-pear-1.10.15"
export ix86="i386"
export metadir="/opt/cpanel/ea-php73/root/var/lib/pear"
export name="ea-php73-pear"
export nil="0"
export ns_name="ea"
export peardir="/opt/cpanel/ea-php73/root/usr/share/pear"
export pkg=""
export pkg_name="ea-php73-pear"
export pkgname="ea-php73-pear"
export previous_version="1.10.13"
export release="1"
export release_prefix="1"
export scl="ea-php73"
export scl_name="ea-php73"
export scl_name_base=""
export scl_name_version=""
export scl_prefix="ea-php73-"
export version="1.10.15"
export version_with_debian_revision="1.10.15-1"
export SOURCE1="$DEB_SOURCE_ROOT/install-pear.php"
export SOURCE3="$DEB_SOURCE_ROOT/strip.php"
export SOURCE10="$DEB_SOURCE_ROOT/pear.sh"
export SOURCE11="$DEB_SOURCE_ROOT/pecl.sh"
export SOURCE12="$DEB_SOURCE_ROOT/peardev.sh"
export SOURCE13="$DEB_SOURCE_ROOT/c6headers.sh"
export SOURCE21="$DEB_SOURCE_ROOT/Archive_Tar-1.4.14.tgz"
export SOURCE22="$DEB_SOURCE_ROOT/Console_Getopt-1.4.3.tgz"
export SOURCE23="$DEB_SOURCE_ROOT/Structures_Graph-1.1.1.tgz"
export SOURCE24="$DEB_SOURCE_ROOT/XML_Util-1.4.5.tgz"
export SOURCE30="$DEB_SOURCE_ROOT/sanity_check.sh"
export SOURCE8001="$DEB_SOURCE_ROOT/PEAR-1.10.15.tgz"
# End vars.sh
# 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' <overwriter>
# <overwriter-version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Contents of SOURCES/pkg.postrm
#!/bin/bash
# vars set when slurped into maintenance scripts it autogenerated
# no mechanism for that in SPEC yet, also looks in debian/ and not <macro>.debian/
# we can not yet use them in the spec until ZC-8893 does ^^^
# We need to delete the registry only on removal or purge
is_uninstall=""
# in the rpm case
if [ "$1" == "0" ]; then
is_uninstall="yes"
fi
# in the deb case on removal
if [ "$1" == "remove" ]; then
is_uninstall="yes"
fi
# in the deb case if they call for a purge
if [ "$1" == "purge" ]; then
is_uninstall="yes"
fi
if [ "$is_uninstall" == "yes" ]; then
if [ -d $metadir/.registry ] ; then
rm -rf $metadir/.registry
fi
# Remove with EA3
if [ $1 -eq 0 -a -h "/usr/local/bin/pear" -a "$(readlink /usr/local/bin/pear)" = "$_bindir/pear" ]; then
echo "Removing pear symlink: /usr/local/bin/pear";
rm /usr/local/bin/pear;
fi
fi
# End SOURCES/pkg.postrm
exit 0
-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ