summaryrefslogtreecommitdiff
path: root/tools/gator/debian/gator-daemon.preinst
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2012-05-04 14:39:28 +0100
committerJon Medhurst <tixy@linaro.org>2012-05-18 14:24:19 +0100
commit09f333ed6069575a71fabc999c4dc39b6594d727 (patch)
tree87c273fe093e5352d1285016fad017351af1f6a2 /tools/gator/debian/gator-daemon.preinst
parent8bed00134a4b0ba837c1b16effaec86cf35679e6 (diff)
gator: ubuntu: Add packaging
Files and scripts for creating Debian packages for Gator and ARM DS-5 target. Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'tools/gator/debian/gator-daemon.preinst')
-rw-r--r--tools/gator/debian/gator-daemon.preinst36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/gator/debian/gator-daemon.preinst b/tools/gator/debian/gator-daemon.preinst
new file mode 100644
index 00000000000..bb2dc7e5fe7
--- /dev/null
+++ b/tools/gator/debian/gator-daemon.preinst
@@ -0,0 +1,36 @@
+#!/bin/sh
+# preinst script for gator-daemon
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ mkdir -p /var/lib/gatord/
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst 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