tags 572154 +patch Hi Anibal,
Just check statoverride database before updating it. Patch attached from Thailand Mini-DebCamp 2010 BSP: http://wiki.debian.org/DebianThailand/MiniDebCamp2010/BSP Cheers, -Andrew
diff -Nru ssmtp-2.64/debian/postinst ssmtp-2.64/debian/postinst --- ssmtp-2.64/debian/postinst 2010-02-09 13:40:43.000000000 +0700 +++ ssmtp-2.64/debian/postinst 2010-03-14 16:03:18.000000000 +0700 @@ -53,6 +53,7 @@ touch /etc/ssmtp/ssmtp.conf.tmp chmod 640 /etc/ssmtp/ssmtp.conf.tmp chown root:mail /etc/ssmtp/ssmtp.conf.tmp + dpkg-statoverride --list /usr/sbin/ssmtp >/dev/null || \ dpkg-statoverride --update --add root mail 2755 /usr/sbin/ssmtp sed "s/^root=.*/root=$root/;s/^mailhub=.*/mailhub=$mailhub/;s/^rewriteDomain=.*/rewriteDomain=$rewritedomain/;s/^hostname=.*/hostname=$hostname/;s/^FromLineOverride=.*/FromLineOverride=$FromOverride/;s/^#FromLineOverride=.*/FromLineOverride=$FromOverride/" /etc/ssmtp/ssmtp.conf > /etc/ssmtp/ssmtp.conf.tmp @@ -61,6 +62,7 @@ touch /etc/ssmtp/ssmtp.conf chmod 640 /etc/ssmtp/ssmtp.conf chown root:mail /etc/ssmtp/ssmtp.conf + dpkg-statoverride --list /usr/sbin/ssmtp >/dev/null || \ dpkg-statoverride --update --add root mail 2755 /usr/sbin/ssmtp exec 1>/etc/ssmtp/ssmtp.conf diff -Nru ssmtp-2.64/debian/postrm ssmtp-2.64/debian/postrm --- ssmtp-2.64/debian/postrm 2009-07-07 09:30:45.000000000 +0700 +++ ssmtp-2.64/debian/postrm 2010-03-14 16:08:03.000000000 +0700 @@ -2,6 +2,7 @@ set -e + if test "$1" = "purge" then if test -e /usr/share/debconf/confmodule @@ -20,6 +21,9 @@ then rm -f /usr/doc/ssmtp 2>/dev/null || true fi + dpkg-statoverride --list /usr/sbin/ssmtp >/dev/null && \ + dpkg-statoverride --remove /usr/sbin/ssmtp + fi # Program End