From: Dinko Korunic Date: Sat, 23 Apr 2011 19:50:23 +0000 (+0200) Subject: - lintian fixevi (debhelper templatesi) X-Git-Tag: v2.6.5~8 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=7cb72dc6d7fb9f6ae152d3bb3a5f66ae3df649f7;p=amavisd-cn.git - lintian fixevi (debhelper templatesi) --- diff --git a/debian/control b/debian/control index 1d65bad..2e14ce8 100644 --- a/debian/control +++ b/debian/control @@ -2,13 +2,13 @@ Source: amavisd-cn Section: mail Priority: optional Maintainer: Dinko Korunic -Build-Depends: debhelper (>= 7), sed +Build-Depends: debhelper (>= 7) Standards-Version: 3.9.1 Package: amavisd-cn Architecture: all Provides: amavisd-new-cn -Depends: amavisd-new (>= 1:2.6.4-3), postfix, clamav-cn (>= 3:0.94-5), spamassassin-cn (>= 2:3.2.5-6), debianutils (>= 3.4), carnet-tools-cn (>= 2.8.1), procps, arj | unarj, rar | unrar | unrar-free, zoo, nomarch, cpio, lzop, cabextract, zip, unzip, bzip2 +Depends: amavisd-new (>= 1:2.6.4-3), postfix, clamav-cn (>= 3:0.94-5), spamassassin-cn (>= 2:3.2.5-6), debianutils (>= 3.4), carnet-tools-cn (>= 2.8.1), procps, arj | unarj, rar | unrar | unrar-free, zoo, nomarch, cpio, lzop, cabextract, zip, unzip, bzip2, amavisd-new (>= 1:2.6.4-3), ${misc:Depends} Pre-Depends: amavisd-new (>= 1:2.6.4-3) Recommends: postfix-cn Conflicts: libsavi-perl (<< 0.15), bunch-perl-modules-cn diff --git a/debian/postinst b/debian/postinst index 56a0755..d18dd13 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,7 +1,22 @@ #!/bin/sh +# postinst script for amavisd-cn +# +# see: dh_installdeb(1) set -e +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx case "$1" in @@ -201,3 +216,10 @@ if [ -n "$2" -a -z "$changed_config" ] && \ fi cp_mail $PKG $VERSION + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm b/debian/postrm index 593ba8a..91e920c 100755 --- a/debian/postrm +++ b/debian/postrm @@ -1,7 +1,22 @@ #!/bin/sh +# postrm script for amavisd-cn +# +# see: dh_installdeb(1) set -e +# summary of how this script can be called: +# * `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 + if [ "$1" = remove ]; then rm -f /etc/init.d/amavis dpkg-divert --quiet --package amavisd-cn --remove --rename \ @@ -16,3 +31,10 @@ if [ "$1" = purge ]; then rm -fr /var/lib/amavis/amavis* update-rc.d amavisd-cn remove >/dev/null || true fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/preinst b/debian/preinst index f172844..16a90a7 100755 --- a/debian/preinst +++ b/debian/preinst @@ -1,7 +1,18 @@ #!/bin/sh +# preinst script for amavisd-cn +# +# see: dh_installdeb(1) set -e +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + mv_init () { echo -n " Renaming to /etc/init.d/amavis.dpkg-old... " mv /etc/init.d/amavis /etc/init.d/amavis.dpkg-old @@ -26,3 +37,10 @@ if [ "$1" = install -o "$1" = upgrade ]; then #ln -s amavisd-cn /etc/init.d/amavis fi fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/prerm b/debian/prerm index 6c4bcb7..cba794c 100755 --- a/debian/prerm +++ b/debian/prerm @@ -1,6 +1,22 @@ #!/bin/sh +# prerm script for amavisd-cn +# +# see: dh_installdeb(1) set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + [ "$DEBIAN_SCRIPT_DEBUG" ] && set -x . /usr/share/carnet-tools/functions.sh @@ -34,3 +50,10 @@ if [ "$1" = remove ]; then newaliases fi fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0