From 8d66bcdb842e472697e8cf56b4e0ef7d8031a860 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Wed, 23 Mar 2016 19:41:48 +0100 Subject: [PATCH] izmjene za lintian --- debian/changelog | 6 ++++++ debian/control | 2 +- debian/postinst | 53 ----------------------------------------------------- debian/postrm | 54 ------------------------------------------------------ 4 files changed, 7 insertions(+), 108 deletions(-) delete mode 100755 debian/postrm diff --git a/debian/changelog b/debian/changelog index ff5e0c4..48356b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +monit-cn (1:5.9~cn1) stable; urgency=low + + * izmjene za lintian + + -- Ivan Rako Wed, 23 Mar 2016 19:41:06 +0100 + monit-cn (1:5.9~cn0) stable; urgency=low * prilagodbe za jessie diff --git a/debian/control b/debian/control index 531eed9..683b6a0 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.9.4 Package: monit-cn Architecture: all Depends: monit (>= 1:5.4-2), carnet-tools-cn (>= 3.0.4), gawk | mawk, ${misc:Depends} -Description: A utility for monitoring and managing daemons or similar programs +Description: Utility for monitoring and managing daemons or similar programs monit is a utility for monitoring and managing daemons or similar programs running on a Unix system. It will start specified programs if they are not running and restart programs not responding. diff --git a/debian/postinst b/debian/postinst index 0d32437..29a05cd 100755 --- a/debian/postinst +++ b/debian/postinst @@ -84,59 +84,6 @@ fi service monit restart -## systemv part -#if ! grep -q 'CARNet package monit-cn' /etc/init.d/monit; then -# echo "CN: Disabling monit SystemV script" -# if [ -x "/etc/init.d/monit" ]; then -# update-rc.d -f monit remove >/dev/null 2>&1 -# if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then -# invoke-rc.d monit stop || true -# else -# /etc/init.d/monit stop || true -# fi -# fi -# if [ -e "/etc/init.d/monit" ]; then -# # shebang -# head -n1 /etc/init.d/monit > /etc/init.d/monit.$$ -# # middle part -# cp-update monit-cn /etc/init.d/monit.$$ <> /etc/init.d/monit.$$ -# mv -f /etc/init.d/monit.$$ /etc/init.d/monit -# chmod +x /etc/init.d/monit -# fi -#fi -# -## if old inittab is referencing sbin, fix it -#if grep -q '/usr/sbin/monit' /etc/inittab; then -# cp_check_and_sed '/usr/sbin/monit' \ -# 's:/usr/sbin/monit:/usr/bin/monit:g' \ -# /etc/inittab || true -#fi -# -## install as inittab service -#if ! grep -q '/usr/bin/monit' /etc/inittab; then -# echo "CN: Installing monit service in /etc/inittab" -# cp -a /etc/inittab /etc/inittab.$$ -# cp-update monit-cn /etc/inittab.$$ < `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' overwrit>r> -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - -case "$1" in - purge) - # continue below - ;; - - *) - exit 0 - ;; -esac - -## import CN-functions -#. /usr/share/carnet-tools/functions.sh -# -## remove us from inittab -#echo "CN: Removing monit service from /etc/inittab" -#cp-update -r monit-cn /etc/inittab -# -## remove us from systemv monit script -#echo "CN: Removing monit workaround from /etc/init.d/monit" -#cp-update -r monit-cn /etc/init.d/monit -#chmod +x /etc/init.d/monit -# -## kill monit -#echo "CN: Stopping monit service" -#pkill -9 -f /usr/bin/monit || true -# -## reload init -#telinit q - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 -- 1.7.10.4