[Forensics-changes] [SCM] Forensic tool to find hidden processes and ports branch, debian, updated. debian/20080519-4-18-g91f8a45
Daniel Baumann
daniel at debian.org
Tue Jul 28 13:48:30 UTC 2009
The following commit has been merged in the debian branch:
commit d8c536ac0f255ffb10b6fb571fa72c30bb103bc9
Author: Daniel Baumann <daniel at debian.org>
Date: Tue Jul 28 15:21:56 2009 +0200
Reformating maintainer scripts.
diff --git a/debian/unhide.postinst b/debian/unhide.postinst
index 3f1d8f4..8124135 100644
--- a/debian/unhide.postinst
+++ b/debian/unhide.postinst
@@ -1,49 +1,41 @@
#!/bin/sh
-# postinst script for unhide
-#
-# see: dh_installdeb(1)
set -e
-# summary of how this script can be called:
-# * <postinst> `configure' <most-recently-configured-version>
-# * <old-postinst> `abort-upgrade' <new version>
-# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-# <new-version>
-# * <postinst> `abort-remove'
-# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-# <failed-install-package> <version> `removing'
-# <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
- configure|abort-remove|abort-deconfigure)
- kernelver1=`uname -r | cut -d. -f1`
- kernelver2=`uname -r | cut -d. -f2`
- update-alternatives --quiet --install /usr/sbin/unhide unhide /usr/sbin/unhide-posix 10
- update-alternatives --quiet --install /usr/sbin/unhide unhide /usr/sbin/unhide-linux26 20
- if [ $kernelver1 -lt 2 -o $kernelver1 -eq 2 -a $kernelver2 -lt 6 ]
- then
- update-alternatives --quiet --set unhide /usr/sbin/unhide-posix
- else
- update-alternatives --quiet --set unhide /usr/sbin/unhide-linux26
- fi
- ;;
-
- abort-upgrade)
- ;;
-
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
+case "${1}" in
+ configure|abort-remove|abort-deconfigure)
+ _MAJOR="$(uname -r | cut -d. -f1)"
+ _MINOR="$(uname -r | cut -d. -f2)"
+
+ update-alternatives --quiet \
+ --install /usr/sbin/unhide unhide \
+ /usr/sbin/unhide-posix 10
+ update-alternatives --quiet \
+ --install /usr/sbin/unhide unhide \
+ /usr/sbin/unhide-linux26 20
+
+ # Setting defaults alternative
+ if [ ${_MAJOR} -lt 2 ] || \
+ ( [ ${_MAJOR} -eq 2 ] && [ ${_MINOR} -lt 6 ] )
+ then
+ update-alternatives --quiet \
+ --set unhide /usr/sbin/unhide-posix
+ else
+ update-alternatives --quiet \
+ --set unhide /usr/sbin/unhide-linux26
+ fi
+ ;;
+
+ abort-upgrade)
+
+ ;;
+
+ *)
+ echo "postinst 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
diff --git a/debian/unhide.prerm b/debian/unhide.prerm
index 06e4814..4718b6c 100644
--- a/debian/unhide.prerm
+++ b/debian/unhide.prerm
@@ -1,40 +1,25 @@
#!/bin/sh
-# prerm script for unhide
-#
-# see: dh_installdeb(1)
set -e
-# summary of how this script can be called:
-# * <prerm> `remove'
-# * <old-prerm> `upgrade' <new-version>
-# * <new-prerm> `failed-upgrade' <old-version>
-# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-# * <deconfigured's-prerm> `deconfigure' `in-favour'
-# <package-being-installed> <version> `removing'
-# <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
+case "${1}" in
+ upgrade|failed-upgrade)
+ ;;
-case "$1" in
- upgrade|failed-upgrade)
- ;;
+ remove|deconfigure)
+ update-alternatives --quiet \
+ --remove unhide /usr/sbin/unhide-posix
+ update-alternatives --quiet \
+ --remove unhide /usr/sbin/unhide-linux26
+ ;;
- remove|deconfigure)
- update-alternatives --quiet --remove unhide /usr/sbin/unhide-posix
- update-alternatives --quiet --remove unhide /usr/sbin/unhide-linux26
- ;;
-
- *)
- echo "prerm called with unknown argument \`$1'" >&2
- exit 1
- ;;
+ *)
+ 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
--
Forensic tool to find hidden processes and ports
More information about the forensics-changes
mailing list