- lintian fixevi (debhelper templatesi)
authorDinko Korunic <kreator@carnet.hr>
Sat, 23 Apr 2011 19:50:23 +0000 (21:50 +0200)
committerDinko Korunic <kreator@carnet.hr>
Sat, 23 Apr 2011 19:50:23 +0000 (21:50 +0200)
debian/control
debian/postinst
debian/postrm
debian/preinst
debian/prerm

index 1d65bad..2e14ce8 100644 (file)
@@ -2,13 +2,13 @@ Source: amavisd-cn
 Section: mail
 Priority: optional
 Maintainer: Dinko Korunic <kreator@CARNet.hr>
-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
index 56a0755..d18dd13 100755 (executable)
@@ -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:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <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
+#
+
 [ "$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
index 593ba8a..91e920c 100755 (executable)
@@ -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:
+#        * <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' <r>overwrit>r> <new-version>
+# 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
index f172844..16a90a7 100755 (executable)
@@ -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:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# 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
index 6c4bcb7..cba794c 100755 (executable)
@@ -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:
+#        * <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
+
 [ "$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