[med-svn] r2935 - trunk/packages/gnumed-server/trunk/debian

tille at alioth.debian.org tille at alioth.debian.org
Fri Jan 9 12:59:21 UTC 2009


Author: tille
Date: 2009-01-09 12:59:21 +0000 (Fri, 09 Jan 2009)
New Revision: 2935

Added:
   trunk/packages/gnumed-server/trunk/debian/postinst
   trunk/packages/gnumed-server/trunk/debian/postrm
Log:
Create / remove /var/log/gnumed/server/ directory


Added: trunk/packages/gnumed-server/trunk/debian/postinst
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/postinst	                        (rev 0)
+++ trunk/packages/gnumed-server/trunk/debian/postinst	2009-01-09 12:59:21 UTC (rev 2935)
@@ -0,0 +1,42 @@
+#!/bin/sh
+# postinst script for gnumed-server
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+	mkdir -p /var/log/gnumed/server/
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst 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
+
+

Added: trunk/packages/gnumed-server/trunk/debian/postrm
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/postrm	                        (rev 0)
+++ trunk/packages/gnumed-server/trunk/debian/postrm	2009-01-09 12:59:21 UTC (rev 2935)
@@ -0,0 +1,42 @@
+#!/bin/sh
+# postrm script for gnumed-server
+#
+# 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
+
+
+case "$1" in
+    purge)
+	rm -rf /var/log/gnumed/server/
+    ;;
+    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