--- ltsp-cluster-lbserver-2.0.0.orig/debian/changelog +++ ltsp-cluster-lbserver-2.0.0/debian/changelog @@ -0,0 +1,37 @@ +ltsp-cluster-lbserver (2.0.0-0ubuntu5) trusty; urgency=medium + + * Port to dh_python2. + + -- Dimitri John Ledkov Mon, 27 Jan 2014 09:47:05 +0000 + +ltsp-cluster-lbserver (2.0.0-0ubuntu4) precise; urgency=low + + * moving to upstart (LP: #938034) + + -- Marc Gariépy Fri, 09 Mar 2012 14:28:45 -0500 + +ltsp-cluster-lbserver (2.0.0-0ubuntu3) precise; urgency=low + + [ Marc Gariepy ] + * Adding logrotate config file + * Adding the possibility not to log + + [ Jonathan Carter ] + * Bump standards version eo 2.9.2 + * Update compat to version 7 + * Add debian/source/format + + -- Jonathan Carter Mon, 06 Feb 2012 15:33:48 +0200 + +ltsp-cluster-lbserver (2.0.0-0ubuntu2) karmic; urgency=low + + * Fix dh_installinit running before dh_pycentral in postinst. + + -- Stéphane Graber Sun, 13 Sep 2009 14:10:26 -0400 + +ltsp-cluster-lbserver (2.0.0-0ubuntu1) karmic; urgency=low + + * Initial Release (LP: #396609) + + -- Jonathan Carter Tue, 07 Jul 2009 17:23:29 +0200 + --- ltsp-cluster-lbserver-2.0.0.orig/debian/compat +++ ltsp-cluster-lbserver-2.0.0/debian/compat @@ -0,0 +1 @@ +7 --- ltsp-cluster-lbserver-2.0.0.orig/debian/control +++ ltsp-cluster-lbserver-2.0.0/debian/control @@ -0,0 +1,23 @@ +Source: ltsp-cluster-lbserver +Section: misc +Priority: optional +Maintainer: Ubuntu MOTU Developers +Build-Depends: debhelper (>= 6.0), cdbs (>= 0.4.49), python, dh-python +Standards-Version: 3.9.2 +Homepage: http://www.revolutionlinux.com +X-Python-Version: >= 2.3 + +Package: ltsp-cluster-lbserver +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, python +Description: LTSP loadbalancer server returns the optimal ltsp server to terminal + The loadbalancer is composed of 3 modules : an agent, a server and a client. + The agent role is to sends information about the state of monitored variables. + The server harvests data from every known agents, and compute their respective + weight. The client requests address to the server, that sends a randomly chosen + LTSP application server in the wightened list. The loadbalancer is written in + Python, and uses XML-RPC for remote communication between the agent and the + server, while the client uses HTTP. + . + This package contains the server component. + --- ltsp-cluster-lbserver-2.0.0.orig/debian/copyright +++ ltsp-cluster-lbserver-2.0.0/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Jonathan Carter + on Wed, Tue, 7 Jul 2009 15:12:01 +0200. + +It was downloaded from https://launchpad.net/ltsp-cluster/+download + +Upstream Authors: + + Stéphane Graber + Francis Giraldeau + Stephane Bond + Ivan Arsenault + +Copyright: + + Copyright (C) 2006-2009 Revolution Linux Inc. + +External source code used: utils.py + Copyright (C) 2001-2005 Hewlett-Packard Development Company, L.P. + Don Welch + +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-lbserver-2.0.0.orig/debian/ltsp-cluster-lbserver.1 +++ ltsp-cluster-lbserver-2.0.0/debian/ltsp-cluster-lbserver.1 @@ -0,0 +1,27 @@ +.TH "ltsp-cluster-lbserver" "1" "20090708" "Stephane Graber" "" +.SH "NAME" +ltsp-cluster-lbserver \(em Loadbalancer server for LTSP-Cluster. + +.SH "SYNOPSIS" +.PP +\fBltsp-cluster-lbserver\fR + +.SH "DESCRIPTION" +.PP +\fBltsp-cluster-lbserver\fR is a daemon retrieving server status from +the loadbalancer agents and returning IP addresses based on these. + +.PP + +The configuration is usually stored in /etc/ltsp/lbsconfig.xml + +.SH "AVAILABILITY" +.PP +\fBltsp-cluster-lbserver\fR is part of \fBltsp-cluster-lbserver\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-lbserver-2.0.0.orig/debian/ltsp-cluster-lbserver.default +++ ltsp-cluster-lbserver-2.0.0/debian/ltsp-cluster-lbserver.default @@ -0,0 +1,4 @@ +# defaults file for ltsp-cluster-lbserver service. + +# only allowed values are "true", "false". +LOGGING_ENABLE=true --- ltsp-cluster-lbserver-2.0.0.orig/debian/ltsp-cluster-lbserver.init +++ ltsp-cluster-lbserver-2.0.0/debian/ltsp-cluster-lbserver.init @@ -0,0 +1,58 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: ltsp-cluster-lbserver +# Required-Start: $named +# Required-Stop: $named +# Should-Start: $local_fs +# Should-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: LTSP loadbalancer server +# Description: Agent that collects server state from agents and compute +# the best server for clients +### END INIT INFO + +set -e + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/ltsp-cluster-lbserver +PIDFILE=/var/run/ltsp-cluster-lbserver.pid +LOGFILE=/var/log/ltsp-cluster-lbserver.log +CONFIGFILE=/etc/ltsp/lbsconfig.xml +NAME=ltsp-cluster-lbserver +LBSERVER_DEFAULTS_FILE=/etc/default/ltsp-cluster-lbserver + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +if [ -s $LBSERVER_DEFAULTS_FILE ]; then + . $LBSERVER_DEFAULTS_FILE + case "x$LOGGING_ENABLE" in + x[Tt][Rr][Uu][Ee]) LOG="--logfile=$LOGFILE" ;; + *) LOG="" ;; + esac +fi + +case "$1" in + start) + log_begin_msg "Starting ltsp-cluster-lbserver..." + start-stop-daemon --start --oknodo --pidfile $PIDFILE --name $NAME --startas $DAEMON -- --daemon ${LOG} $CONFIGFILE >/dev/null 2>&1 || log_end_msg 1 + log_end_msg 0 + ;; + stop) + log_begin_msg "Stopping ltsp-cluster-lbserver..." + start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --retry 30 >/dev/null 2>&1 + log_end_msg 0 + ;; + reload|restart|force-reload) + $0 stop || true + $0 start + ;; + *) + log_success_msg "Usage: /etc/init.d/ltsp-cluster-lbserver {start|stop|restart|reload|force-reload}" + exit 1 + ;; +esac + +exit 0 --- ltsp-cluster-lbserver-2.0.0.orig/debian/ltsp-cluster-lbserver.ltsp-cluster-lbserver.logrotate +++ ltsp-cluster-lbserver-2.0.0/debian/ltsp-cluster-lbserver.ltsp-cluster-lbserver.logrotate @@ -0,0 +1,7 @@ +/var/log/ltsp-cluster-lbserver.log { + rotate 5 + daily + compress + copytruncate + missingok +} --- ltsp-cluster-lbserver-2.0.0.orig/debian/ltsp-cluster-lbserver.manpages +++ ltsp-cluster-lbserver-2.0.0/debian/ltsp-cluster-lbserver.manpages @@ -0,0 +1 @@ +debian/ltsp-cluster-lbserver.1 --- ltsp-cluster-lbserver-2.0.0.orig/debian/ltsp-cluster-lbserver.upstart +++ ltsp-cluster-lbserver-2.0.0/debian/ltsp-cluster-lbserver.upstart @@ -0,0 +1,13 @@ +# ltsp-cluster - Lbserver +# + +description "ltsp-cluster-lbserver" +author "Marc Gariépy " + +start on net-device-up and local-filesystems +stop on runlevel[016] + +respawn + +exec /usr/sbin/ltsp-cluster-lbserver --logfile=/var/log/ltsp-cluster-lbserver.log /etc/ltsp/lbsconfig.xml + --- ltsp-cluster-lbserver-2.0.0.orig/debian/rules +++ ltsp-cluster-lbserver-2.0.0/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +DEB_PYTHON2_MODULE_PACKAGES := ltsp-cluster-lbserver +DEB_DH_INSTALLINIT_ARGS := -n +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +binary-install/ltsp-cluster-lbserver:: + dh_installinit -p ltsp-cluster-lbserver + dh_installlogrotate --package=ltsp-cluster-lbserver --name=ltsp-cluster-lbserver + +get-orig-source: + uscan --force-download --repack --rename --destdir . --- ltsp-cluster-lbserver-2.0.0.orig/debian/source/format +++ ltsp-cluster-lbserver-2.0.0/debian/source/format @@ -0,0 +1 @@ +1.0 --- ltsp-cluster-lbserver-2.0.0.orig/debian/watch +++ ltsp-cluster-lbserver-2.0.0/debian/watch @@ -0,0 +1,4 @@ +version=3 + +# launchpad +https://launchpad.net/ltsp-cluster/+download http://launchpad.net/ltsp-cluster/.*/ltsp-cluster-lbserver-(.*)\.tar\.gz