[med-svn] r4895 - trunk/packages/gnumed-client/trunk/debian
Andreas Tille
tille at alioth.debian.org
Fri Jun 18 07:03:38 UTC 2010
Author: tille
Date: 2010-06-18 07:03:31 +0000 (Fri, 18 Jun 2010)
New Revision: 4895
Added:
trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm
Modified:
trunk/packages/gnumed-client/trunk/debian/changelog
trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postinst
Log:
Fix #586200: handle gnumed group in gnumed-client-de for dealing with kvk data
Modified: trunk/packages/gnumed-client/trunk/debian/changelog
===================================================================
--- trunk/packages/gnumed-client/trunk/debian/changelog 2010-06-16 08:51:08 UTC (rev 4894)
+++ trunk/packages/gnumed-client/trunk/debian/changelog 2010-06-18 07:03:31 UTC (rev 4895)
@@ -1,3 +1,11 @@
+gnumed-client (0.7.5-2) unstable; urgency=low
+
+ * Proper handling of group gnumed to set permision for KVK data
+ in German client extension
+ Closes: #586200
+
+ -- Andreas Tille <tille at debian.org> Fri, 18 Jun 2010 08:28:30 +0200
+
gnumed-client (0.7.5-1) unstable; urgency=low
* New upstream version
Modified: trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postinst
===================================================================
--- trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postinst 2010-06-16 08:51:08 UTC (rev 4894)
+++ trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postinst 2010-06-18 07:03:31 UTC (rev 4895)
@@ -6,6 +6,11 @@
KVKDIR=/var/spool/kvkd/
+TESTGROUP=`getent group ${GROUP}` || true
+if [ -z "${TESTGROUP}" ] ; then
+ addgroup --system "${GROUP}" >/dev/null
+fi
+
if [ ! -d "$KVKDIR" ] ; then
mkdir -p "$KVKDIR"
chgrp $GROUP "$KVKDIR"
Added: trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm
===================================================================
--- trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm (rev 0)
+++ trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm 2010-06-18 07:03:31 UTC (rev 4895)
@@ -0,0 +1,51 @@
+#!/bin/sh
+# postrm script for gnumed-client-de
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+PROG=gnumed
+GROUP=${PROG}
+
+KVKDIR=/var/spool/kvkd/
+
+case "$1" in
+ purge)
+ TESTGROUP=`getent group ${GROUP}` || true
+ if [ ! -z "${TESTGROUP}" ] ; then
+ delgroup "${GROUP}" >/dev/null
+ fi
+
+ if [ -d "$KVKDIR" ] ; then
+ rm -rf "$KVKDIR"
+ fi
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
More information about the debian-med-commit
mailing list