v0.9.2
[drlaunch] / debian / drlaunch.postinst
diff --git a/debian/drlaunch.postinst b/debian/drlaunch.postinst
new file mode 100644 (file)
index 0000000..6207538
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+# postinst script for wifieye
+#
+# 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)
+       cp /usr/share/pyshared/drlaunch/drlaunch_widget.py \
+               /usr/lib/hildon-desktop
+
+       SRC="/tmp/drlaunch.desktop"
+       if test -e "$SRC" ; then
+               mv "$SRC" /usr/share/applications/hildon-home
+       fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# Automatically added by dh_pysupport
+if which update-python-modules >/dev/null 2>&1; then
+       update-python-modules  drlaunch.public
+fi
+# End automatically added section
+
+exit 0
+