dpkg-statoverride
authorIvan Rako <irako@sabik.carnet.hr>
Tue, 26 May 2009 14:25:52 +0000 (16:25 +0200)
committerIvan Rako <irako@sabik.carnet.hr>
Tue, 26 May 2009 14:25:52 +0000 (16:25 +0200)
debian/changelog
debian/postinst
debian/postrm [new file with mode: 0755]

index f31d141..0b531a5 100644 (file)
@@ -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 <Ivan.Rako@CARNet.hr>  Wed, 20 May 2009 13:38:25 +0200
 
index c43bc52..7d1a3a7 100755 (executable)
@@ -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 (executable)
index 0000000..3208452
--- /dev/null
@@ -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