[pkg-opensc-commit] [SCM] OpenCT packaging branch, master, updated. 597ba4fa90b8f876a3d70052fc7c3d6cc1767494

Eric Dorland eric at debian.org
Sun Jan 10 05:49:30 UTC 2010


The following commit has been merged in the master branch:
commit 8dbcd01f7256c06fb5724cccb4c3f35d7978eb7f
Author: Eric Dorland <eric at debian.org>
Date:   Sun Jan 10 00:05:30 2010 -0500

    debian/openct.postinst, debian/openct.postrm: Stop installing dpkg-statoverride since /var/run/openct is dynamically generated. Also, remove the override in new postrm, and rm -rf /var/run/openct. (Closes: #546500)

diff --git a/debian/changelog b/debian/changelog
index 62129df..5348ded 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,10 @@ openct (0.6.19-1) unstable; urgency=low
   * debian/source/format, debian/source/options,
     debian/source/patch-header: Convert to v3 quilt format, with
     single-debian-patch.
+  * debian/openct.postinst, debian/openct.postrm: Stop installing
+    dpkg-statoverride since /var/run/openct is dynamically
+    generated. Also, remove the override in new postrm, and rm -rf
+    /var/run/openct. (Closes: #546500)
 
  --
 
diff --git a/debian/openct.postinst b/debian/openct.postinst
index eaafa37..9693307 100644
--- a/debian/openct.postinst
+++ b/debian/openct.postinst
@@ -5,10 +5,6 @@ if [ "$1" = 'configure' ]; then
         echo Adding system group: scard.
         addgroup --system scard
     fi
-
-    if ! dpkg-statoverride --list /var/run/openct >/dev/null; then
-        dpkg-statoverride --update --add root scard 750 /var/run/openct
-    fi
 fi
 
 #DEBHELPER#
diff --git a/debian/openct.postrm b/debian/openct.postrm
new file mode 100644
index 0000000..c52554b
--- /dev/null
+++ b/debian/openct.postrm
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+if [ "$1" = 'remove' ]; then
+    if dpkg-statoverride --list /var/run/openct >/dev/null; then
+        dpkg-statoverride --remove /var/run/openct
+    fi
+
+    rm -rf /var/run/openct
+fi
+
+#DEBHELPER#

-- 
OpenCT packaging



More information about the pkg-opensc-commit mailing list