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
#!/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
fi
cp_mail $PKG $VERSION
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
#!/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 \
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
#!/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
#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
#!/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
newaliases
fi
fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0