InStream.java MemInStream.java ZlibInStream.java \
VNCProxyConnectSocketWrapper.java SocketWrapper.java InvirtTrustManager.java
-EXTRAJAR = trust.store
-
all: $(CLASSES) $(ARCHIVE)
$(CLASSES): $(SOURCES)
$(JC) $(JCFLAGS) -O $(SOURCES)
$(ARCHIVE): $(CLASSES) $(MANIFEST)
- $(JAR) cfm $(ARCHIVE) $(MANIFEST) $(CLASSES) $(EXTRAJAR)
+ $(JAR) cfm $(ARCHIVE) $(MANIFEST) $(CLASSES)
install: $(CLASSES) $(ARCHIVE)
$(CP) $(CLASSES) $(ARCHIVE) $(PAGES) $(INSTALL_DIR)
* sipb-xen-vnc-client -> invirt-vnc-client
* SIPBTrustManager -> InvirtTrustManager
+ * Add a script to regenerate the client's certificate store
- -- Evan Broder <broder@mit.edu> Sun, 26 Oct 2008 16:05:14 -0400
+ -- Evan Broder <broder@mit.edu> Sun, 26 Oct 2008 17:14:15 -0400
sipb-xen-vnc-client (1.03) unstable; urgency=low
--- /dev/null
+#!/bin/bash
+
+if [ "$(ls /etc/invirt/vnc-cert.d)" == "" ]; then
+ echo "E: No certs in /etc/invirt/vnc-cert.d/" >&2
+ echo " Put certificates for all Invirt VNC proxy servers in" >&2
+ echo " /etc/invirt/vnc-cert.d, then run this script again" >&2
+ exit 1
+fi
+
+TMP_DIR="$(mktemp -d)"
+for i in $(ls /etc/invirt/vnc-cert.d/*.crt); do
+ keytool -noprompt -alias "${i%.crt}" -file "/etc/invirt/vnc-cert.d/$i" \
+ -keystore "$TMP_DIR/trust.store" -storepass "foobar"
+done
+
+jar uf /usr/share/invirt-vnc-client/VncViewer.jar -C "$TMP_DIR" trust.store
+
+rm -rf "$TMP_DIR"
+etc/invirt/vnc-cert.d
usr/share/invirt-vnc-client
--- /dev/null
+debian/invirt-update-vnc-cert.sh usr/sbin/invirt-update-vnc-cert
--- /dev/null
+#!/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)
+ invirt-update-vnc-cert || true
+ ;;
+
+ 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
+
+