Change to using conserver instead of ssh sipb-xen-console-server/1
authorEvan Broder <broder@mit.edu>
Wed, 2 Apr 2008 04:58:22 +0000 (00:58 -0400)
committerEvan Broder <broder@mit.edu>
Wed, 2 Apr 2008 04:58:22 +0000 (00:58 -0400)
svn path=/trunk/packages/sipb-xen-console-server/; revision=386

debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/sipb-xen-console.install [new file with mode: 0644]
files/etc/conserver/conserver.cf [new file with mode: 0644]
files/etc/conserver/includes.cf [new file with mode: 0644]
files/usr/sbin/sipb-xen-update-conserver [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..88e48b1
--- /dev/null
@@ -0,0 +1,5 @@
+sipb-xen-console-server (1) unstable; urgency=low
+
+  * Initial release.
+
+ -- SIPB Xen Project <sipb-xen@mit.edu>  Wed,  2 Apr 2008 00:27:12 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..90478eb
--- /dev/null
@@ -0,0 +1,14 @@
+Source: sipb-xen-console-server
+Section: servers
+Priority: important
+Maintainer: sipb-xen@mit.edu
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), config-package-dev
+Standards-Version: 3.7.2
+
+Package: sipb-xen-console-server
+Architecture: all
+Provides: ${diverted-files}
+Conflicts: ${diverted-files}
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
+Description: SIPB Xen serial console server server
+  This configures the VMM for the server-side of the console server
diff --git a/debian/control.in b/debian/control.in
new file mode 100644 (file)
index 0000000..4e4b0f7
--- /dev/null
@@ -0,0 +1,14 @@
+Source: sipb-xen-console-server
+Section: servers
+Priority: important
+Maintainer: sipb-xen@mit.edu
+Build-Depends: @cdbs@
+Standards-Version: 3.7.2
+
+Package: sipb-xen-console-server
+Architecture: all
+Provides: ${diverted-files}
+Conflicts: ${diverted-files}
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
+Description: SIPB Xen serial console server server
+  This configures the VMM for the server-side of the console server
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..7789434
--- /dev/null
@@ -0,0 +1,3 @@
+This package was created for internal use of the SIPB Xen Project of
+the MIT Student Information Processing Board.  Ask sipb-xen@mit.edu if
+you have questions about redistribution.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..81e7042
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
+DEB_DIVERT_EXTENSION = .sipb-xen
+DEB_DIVERT_FILES_sipb-xen-console += \
+       /etc/conserver/conserver.cf
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/replace-files.mk
diff --git a/debian/sipb-xen-console.install b/debian/sipb-xen-console.install
new file mode 100644 (file)
index 0000000..9da31b3
--- /dev/null
@@ -0,0 +1 @@
+files/* .
diff --git a/files/etc/conserver/conserver.cf b/files/etc/conserver/conserver.cf
new file mode 100644 (file)
index 0000000..094685a
--- /dev/null
@@ -0,0 +1,36 @@
+# The character '&' in logfile names are substituted with the console
+# name.
+#
+
+config * {
+       sslrequired yes;
+}
+default full {
+       rw *;
+}
+default * {
+       master black-mesa;
+       logfile /var/log/conserver/&.log;
+       timestamp "1lab";
+       include full;
+       type exec;
+       exec xm console d_f;
+       execsubst f=cs;
+}
+
+console s_sipb-xen-dev {
+       type exec;
+       exec xm console s_sipb-xen-dev;
+}
+
+#include /etc/conserver/includes.cf
+
+##
+## list of clients we allow
+##
+access * {
+       allowed 127.0.0.1;
+       trusted 18.181.0.134;
+       limited *;
+}
+
diff --git a/files/etc/conserver/includes.cf b/files/etc/conserver/includes.cf
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/files/usr/sbin/sipb-xen-update-conserver b/files/usr/sbin/sipb-xen-update-conserver
new file mode 100755 (executable)
index 0000000..297fefe
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+ls /etc/conserver/conf.d/ | sed -e 's|^|#include /etc/conserver/conf.d/|' >/etc/conserver/includes.cf
+/etc/init.d/conserver-server reload
\ No newline at end of file