From: Evan Broder Date: Wed, 2 Apr 2008 04:58:22 +0000 (-0400) Subject: Change to using conserver instead of ssh X-Git-Tag: sipb-xen-console-server/1^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/commitdiff_plain/c23a32506920dd3321be35bf6510cc9b6b791eaa Change to using conserver instead of ssh svn path=/trunk/packages/sipb-xen-console-server/; revision=386 --- c23a32506920dd3321be35bf6510cc9b6b791eaa diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..88e48b1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +sipb-xen-console-server (1) unstable; urgency=low + + * Initial release. + + -- SIPB Xen Project Wed, 2 Apr 2008 00:27:12 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..90478eb --- /dev/null +++ b/debian/control @@ -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 index 0000000..4e4b0f7 --- /dev/null +++ b/debian/control.in @@ -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 index 0000000..7789434 --- /dev/null +++ b/debian/copyright @@ -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 index 0000000..81e7042 --- /dev/null +++ b/debian/rules @@ -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 index 0000000..9da31b3 --- /dev/null +++ b/debian/sipb-xen-console.install @@ -0,0 +1 @@ +files/* . diff --git a/files/etc/conserver/conserver.cf b/files/etc/conserver/conserver.cf new file mode 100644 index 0000000..094685a --- /dev/null +++ b/files/etc/conserver/conserver.cf @@ -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 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 index 0000000..297fefe --- /dev/null +++ b/files/usr/sbin/sipb-xen-update-conserver @@ -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