From: Ivan Rako Date: Tue, 26 May 2009 14:25:52 +0000 (+0200) Subject: dpkg-statoverride X-Git-Tag: debian/1.27.squeeze1~5 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=120fc696e5312c3e850172c1e75d0526adb7d486;p=sysadmin-cn.git dpkg-statoverride --- diff --git a/debian/changelog b/debian/changelog index f31d141..0b531a5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ -sysadmin-cn (1.27~lenny1) stable; urgency=low +sysadmin-cn (1.27~etch1) stable; urgency=low * Podrska za x86_64 + * dpkg-statoverride u postinst/postrm -- Ivan Rako Wed, 20 May 2009 13:38:25 +0200 diff --git a/debian/postinst b/debian/postinst index c43bc52..7d1a3a7 100755 --- a/debian/postinst +++ b/debian/postinst @@ -31,3 +31,7 @@ if [ "$1" == "configure" ]; then fi fi + +chmod 4750 /usr/bin/sysadmin +dpkg-statoverride --remove /usr/bin/sysadmin > /dev/null 2> /dev/null || true +dpkg-statoverride --update --add root root 4755 /usr/bin/sysadmin diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..3208452 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +if [ "$1" = "purge" ] ; then + dpkg-statoverride --remove /usr/bin/sysadmin > /dev/null 2> /dev/null || true +fi