From 120fc696e5312c3e850172c1e75d0526adb7d486 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Tue, 26 May 2009 16:25:52 +0200 Subject: [PATCH] dpkg-statoverride --- debian/changelog | 3 ++- debian/postinst | 4 ++++ debian/postrm | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 debian/postrm 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 -- 1.7.10.4