vncproxy.py needs to be run from its own directory, and evil warning message to make...
authorEvan Broder <broder@mit.edu>
Sat, 29 Mar 2008 00:42:00 +0000 (20:42 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 29 Mar 2008 00:42:00 +0000 (20:42 -0400)
svn path=/trunk/packages/sipb-xen-vnc-server/; revision=291

debian/sipb-xen-vnc-server.init
debian/sipb-xen-vnc-server.postinst [new file with mode: 0644]

index e40e259..56d8508 100644 (file)
@@ -45,7 +45,7 @@ do_start()
        #   1 if daemon was already running
        #   2 if daemon could not be started
        daemon --running -n $NAME && return 1
        #   1 if daemon was already running
        #   2 if daemon could not be started
        daemon --running -n $NAME && return 1
-       daemon -r -U -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
+       daemon -r -U -D "$(dirname $DAEMON)" -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
 }
 
 #
 }
 
 #
diff --git a/debian/sipb-xen-vnc-server.postinst b/debian/sipb-xen-vnc-server.postinst
new file mode 100644 (file)
index 0000000..3c5b764
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/sh
+# postinst script for #PACKAGE#
+#
+# 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)
+       if [ -z "$2" ]; then
+           echo "Please be sure to copy vncproxy.crt and vncproxykey.pem into /usr/local/lib/sipb-xen-vnc-server/"
+       fi
+    ;;
+
+    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
+
+