From 5a9b61b747ead3307eabd89e2c091fe8a31f4831 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 30 Mar 2008 05:09:46 -0400 Subject: [PATCH] New sipb-xen-console. Now with more magic - and more working This package installed onto a clean Debian system should do all of the setup for a console server except for copying the ssh private keys, granting access to the Postgres database, and Kerberos keytabs svn path=/trunk/packages/sipb-xen-console/; revision=344 --- debian/changelog | 6 ++ debian/control.in | 2 +- debian/rules | 4 +- debian/sipb-xen-console.init | 1 + files/etc/nscd.conf.sipb-xen | 67 ++++++++++++++++++++ files/etc/nss-pgsql.conf | 17 ++--- files/etc/nsswitch.conf.sipb-xen | 2 +- files/etc/pam.d/ssh.sipb-xen | 39 ++++++++++++ files/etc/ssh/ssh_config.sipb-xen | 2 +- .../.ssh/known_hosts => etc/ssh/ssh_known_hosts} | 1 + files/usr/bin/sipb-xen-consolefs | 66 +++++++++++++++---- files/usr/bin/sipb-xen-consolesh | 4 ++ 12 files changed, 182 insertions(+), 29 deletions(-) create mode 100644 files/etc/nscd.conf.sipb-xen create mode 100644 files/etc/pam.d/ssh.sipb-xen rename files/{home/machines/.ssh/known_hosts => etc/ssh/ssh_known_hosts} (66%) create mode 100755 files/usr/bin/sipb-xen-consolesh diff --git a/debian/changelog b/debian/changelog index 92eff1e..606f7cc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sipb-xen-console (2) unstable; urgency=low + + * Actually functional release. + + -- SIPB Xen Project Sun, 30 Mar 2008 05:07:43 -0400 + sipb-xen-console (1) unstable; urgency=low * Initial release. diff --git a/debian/control.in b/debian/control.in index 8b594df..2737e46 100644 --- a/debian/control.in +++ b/debian/control.in @@ -9,7 +9,7 @@ Package: sipb-xen-console Architecture: all Provides: ${diverted-files} Conflicts: ${diverted-files} -Depends: ${shlibs:Depends}, ${misc:Depends}, fuse-utils, libnss-pgsql1, openssh-client, openssh-server, python-fuse, sipb-xen-database-common +Depends: ${shlibs:Depends}, ${misc:Depends}, daemon, fuse-utils, libnss-pgsql1, nscd, openssh-client, openssh-server, python-fuse, sipb-xen-database-common Description: SIPB Xen serial console server This package should be installed on sipb-xen-console It makes sure that necessary tools are available. diff --git a/debian/rules b/debian/rules index 8dfab96..881fd0c 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,9 @@ DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1 DEB_DIVERT_EXTENSION = .sipb-xen DEB_DIVERT_FILES_sipb-xen-console += \ - /etc/nsswitch.conf + /etc/nscd.conf \ + /etc/nsswitch.conf \ + /etc/pam.d/ssh \ /etc/ssh/ssh_config include /usr/share/cdbs/1/rules/debhelper.mk diff --git a/debian/sipb-xen-console.init b/debian/sipb-xen-console.init index 14ed7e8..6d2b7d4 100755 --- a/debian/sipb-xen-console.init +++ b/debian/sipb-xen-console.init @@ -63,6 +63,7 @@ do_stop() [ "$RETVAL" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE + umount "$DAEMON_ARGS" return "$RETVAL" } diff --git a/files/etc/nscd.conf.sipb-xen b/files/etc/nscd.conf.sipb-xen new file mode 100644 index 0000000..0ed898e --- /dev/null +++ b/files/etc/nscd.conf.sipb-xen @@ -0,0 +1,67 @@ +# +# /etc/nscd.conf +# +# An example Name Service Cache config file. This file is needed by nscd. +# +# Legal entries are: +# +# logfile +# debug-level +# threads +# max-threads +# server-user +# server-user is ignored if nscd is started with -S parameters +# stat-user +# reload-count unlimited| +# paranoia +# restart-interval