--- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/control +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/control @@ -0,0 +1,17 @@ +Source: ltsp-cluster-nxloadbalancer +Section: misc +Priority: optional +Maintainer: Ubuntu MOTU Developers +Build-Depends: debhelper (>= 6.0), cdbs +Standards-Version: 3.8.2 +Homepage: http://www.revolutionlinux.com + +Package: ltsp-cluster-nxloadbalancer +Architecture: all +Depends: ${misc:Depends}, openssh-client, openssh-server, adduser +Description: Minimal NX loadbalancer for ltsp-cluster + This component simply interrogates the loadbalancer every-time + a connection to the nx user is done and redirects to the right + . + NX application server. + It doesn't support persistent sessions or any kind of configuration. --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/ltsp-cluster-nxloadbalancer.postrm +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/ltsp-cluster-nxloadbalancer.postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ -n "$(getent passwd nx)" ]; then + deluser nx +fi +rm -Rf /var/lib/ltsp-cluster-nxloadbalancer +#DEBHELPER# --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/ltsp-cluster-nxloadbalancer.1 +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/ltsp-cluster-nxloadbalancer.1 @@ -0,0 +1,23 @@ +.TH "ltsp-cluster-nxloadbalancer" "1" "20090708" "Stephane Graber" "" +.SH "NAME" +ltsp-cluster-nxloadbalancer \(em Loadbalancer for NX. + +.SH "SYNOPSIS" +.PP +\fBltsp-cluster-nxloadbalancer\fR + +.SH "DESCRIPTION" +.PP +\fBltsp-cluster-nxloadbalancer\fR gets an IP from ltsp-cluster's loadbalancer +and redirect the SSH connection to it. + +.SH "AVAILABILITY" +.PP +\fBltsp-cluster-nxloadbalancer\fR is part of \fBltsp-cluster-nxloadbalancer\fP +package and the latest versions are available in source form from +\fIhttps://launchpad.net/ltsp-cluster\fR. + +.SH "MAN PAGE AUTHOR" +.PP +Copyright 2009 Stephane Graber , distributed under +the terms of the GNU General Public License version 2 or any later version. --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/rules +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/ltsp-cluster-nxloadbalancer/ + +get-orig-source: + uscan --force-download --repack --rename --destdir . + --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/watch +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/watch @@ -0,0 +1,4 @@ +version=3 + +# launchpad +https://launchpad.net/ltsp-cluster/+download http://launchpad.net/ltsp-cluster/.*/ltsp-cluster-nxloadbalancer-(.*)\.tar\.gz --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/changelog +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/changelog @@ -0,0 +1,5 @@ +ltsp-cluster-nxloadbalancer (2.0.3-0ubuntu1) karmic; urgency=low + + * Initial Release (LP: #396631) + + -- Jonathan Carter Tue, 07 Jul 2009 17:59:33 +0200 --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/compat +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/compat @@ -0,0 +1 @@ +6 --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/copyright +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Jonathan Carter + on Tue, 07 Jul 2009 17:59:33 +0200. + +It was downloaded from https://launchpad.net/ltsp-cluster/+download + +Upstream Author: + + Stéphane Graber + +Copyright: + + Copyright (C) 2008-2009 Revolution Linux Inc. + +License: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You can find the license on Debian systems in the file + /usr/share/common-licenses/GPL-2 + + +The Debian packaging is Copyright 2009, Jonathan Carter + and is licensed under the GPL, +see `/usr/share/common-licenses/GPL-2'. --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/ltsp-cluster-nxloadbalancer.postinst +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/ltsp-cluster-nxloadbalancer.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ]; +then + if [ -z "$(getent passwd nx)" ]; then + adduser --system --shell /usr/bin/ltsp-cluster-nxloadbalancer --home /var/lib/ltsp-cluster-nxloadbalancer/ --disabled-password --gecos "NX user" --group nx + fi + mkdir -p /var/lib/ltsp-cluster-nxloadbalancer/.ssh/ + cp /usr/share/nx/keys/* /var/lib/ltsp-cluster-nxloadbalancer/.ssh/ + chown nx:nx -R /var/lib/ltsp-cluster-nxloadbalancer/ + chmod 600 /var/lib/ltsp-cluster-nxloadbalancer/.ssh/* +fi +#DEBHELPER# --- ltsp-cluster-nxloadbalancer-2.0.3.orig/debian/ltsp-cluster-nxloadbalancer.manpages +++ ltsp-cluster-nxloadbalancer-2.0.3/debian/ltsp-cluster-nxloadbalancer.manpages @@ -0,0 +1 @@ +debian/ltsp-cluster-nxloadbalancer.1