debian/0000700000000000000000000000000011666666726007202 5ustar debian/changelog0000600000000000000000000000230511666665403011045 0ustar fair (0.5.3-1) unstable; urgency=low * New upstream release. - Fixes handling of half-open connections. Closes: #649752 * Convert source package to 3.0 (quilt) format. * Bump Standards-Version. * Add build-arch and build-indep targets to debian/rules. * Depend on $remote_fs in the Required-Start/Stop rules in the init script. -- Guus Sliepen Sun, 04 Dec 2011 13:43:29 +0100 fair (0.5.1-3) unstable; urgency=low * Fix init script to use the correct location of the fair binaries. Closes: #508440 * Make fair search for configuration in /etc instead of /usr/etc. -- Guus Sliepen Thu, 11 Dec 2008 13:23:16 +0100 fair (0.5.1-2) unstable; urgency=low * Build-depend on libavl-dev >= 0.3.5-3 to prevent possible FTBFS. Closes: #484047 -- Guus Sliepen Tue, 29 Jul 2008 13:52:25 +0200 fair (0.5.1-1) unstable; urgency=low * Initial release (Closes: #456312) * Make sure the binaries are installed in /usr/sbin/. * Add LSB section to the init script. * Note that parts of fair are covered by different copyright conditions. * Build-Depend on libavl-dev. -- Guus Sliepen Tue, 08 Jan 2008 13:33:54 +0100 debian/source/0000700000000000000000000000000011666665342010473 5ustar debian/source/format0000600000000000000000000000001411666665342011703 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000440611666666423010272 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) config.status: configure dh_testdir # Add here commands to configure the package. ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) touch $@ clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f config.sub config.guess dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/fair. $(MAKE) DESTDIR=$(CURDIR)/debian/fair install rm -f $(CURDIR)/debian/fair/usr/share/doc/fair/COPYING rm -f $(CURDIR)/debian/fair/usr/share/doc/fair/LICENSE rm -f $(CURDIR)/debian/fair/usr/share/doc/fair/ChangeLog # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/fair.init0000700000000000000000000000345211666665447011016 0ustar #! /bin/sh # ### BEGIN INIT INFO # Provides: fair # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Should-Start: $syslog $named # Should-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start fair daemon(s) # Description: Starts the carrousel and/or transponder daemon # depending on the configuration in /etc/default/fair. ### END INIT INFO PATH=/bin:/usr/bin:/sbin:/usr/sbin carrousel=/usr/sbin/carrousel transponder=/usr/sbin/transponder test -x $carrousel || exit 0 test -x $transponder || exit 0 test -f /etc/fair.conf || exit 0 CARROUSEL=false TRANSPONDER=false if [ -f /etc/default/fair ] then . /etc/default/fair fi case "$1" in start) echo -n 'Starting fair load balancer:' if $CARROUSEL then start-stop-daemon --start --quiet --exec $carrousel echo -n ' carrousel' fi if $TRANSPONDER then start-stop-daemon --start --quiet --exec $transponder -- $BALANCERS echo -n ' transponder' fi echo . ;; stop) echo -n 'Stopping fair load balancer:' if $TRANSPONDER then start-stop-daemon --stop --quiet --name ${transponder##*/} --exec $transponder echo -n ' transponder' fi if $CARROUSEL then start-stop-daemon --stop --quiet --name ${carrousel##*/} --exec $carrousel echo -n ' carrousel' fi echo . ;; reload) echo -n 'Reloading fair load balancer:' if $TRANSPONDER then start-stop-daemon --stop --quiet --signal 1 --name ${transponder##*/} --exec $transponder echo -n ' transponder' fi if $CARROUSEL then start-stop-daemon --stop --quiet --signal 1 --name ${carrousel##*/} --exec $carrousel echo -n ' carrousel' fi echo . ;; restart|force-reload) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|reload|restart|force-reload}" >&2 exit 1 esac exit 0 debian/fair.default0000600000000000000000000000027010737525001011444 0ustar # $Id: fair.default 8058 2005-07-07 13:06:53Z guus $ # $URL: https://infix.uvt.nl/its-id/trunk/sources/fair/package/debian/fair.default $ CARROUSEL=false TRANSPONDER=false BALANCERS= debian/docs0000600000000000000000000000002110737525651010035 0ustar NEWS TODO THANKS debian/compat0000600000000000000000000000000210737523741010365 0ustar 5 debian/patches/0000700000000000000000000000000011666666152010622 5ustar debian/patches/series0000600000000000000000000000002011666666050012026 0ustar install-in-sbin debian/patches/install-in-sbin0000600000000000000000000001250211666666152013552 0ustar Description: install binaries in /usr/sbin/ Author: Guus Sliepen --- fair-0.5.3.orig/src/Makefile.am +++ fair-0.5.3/src/Makefile.am @@ -1,7 +1,7 @@ # $Id: Makefile.am 195 2007-12-21 15:39:07Z wsl $ # $URL: https://svn.fair.uvt.nl/branches/0.5/src/Makefile.am $ -bin_PROGRAMS = transponder carrousel +sbin_PROGRAMS = transponder carrousel src = init.h options.h protocol.h fair.h \ chrono.h conf.c conf.h error.c error.h init.c --- fair-0.5.3.orig/src/Makefile.in +++ fair-0.5.3/src/Makefile.in @@ -35,7 +35,7 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : -bin_PROGRAMS = transponder$(EXEEXT) carrousel$(EXEEXT) +sbin_PROGRAMS = transponder$(EXEEXT) carrousel$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/config.h.in @@ -47,8 +47,8 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" -PROGRAMS = $(bin_PROGRAMS) +am__installdirs = "$(DESTDIR)$(sbindir)" +PROGRAMS = $(sbin_PROGRAMS) am__objects_1 = conf.$(OBJEXT) error.$(OBJEXT) init.$(OBJEXT) am_carrousel_OBJECTS = $(am__objects_1) address.$(OBJEXT) \ avlr.$(OBJEXT) carrousel.$(OBJEXT) chrono.$(OBJEXT) \ @@ -222,10 +222,10 @@ $(srcdir)/config.h.in: $(am__configure_ distclean-hdr: -rm -f config.h stamp-h1 -install-binPROGRAMS: $(bin_PROGRAMS) +install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)" + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p; \ @@ -242,23 +242,23 @@ install-binPROGRAMS: $(bin_PROGRAMS) while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done -uninstall-binPROGRAMS: +uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(bindir)" && rm -f $$files + echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(sbindir)" && rm -f $$files -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) +clean-sbinPROGRAMS: + -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS) carrousel$(EXEEXT): $(carrousel_OBJECTS) $(carrousel_DEPENDENCIES) @rm -f carrousel$(EXEEXT) $(LINK) $(carrousel_OBJECTS) $(carrousel_LDADD) $(LIBS) @@ -387,7 +387,7 @@ check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) config.h installdirs: - for dir in "$(DESTDIR)$(bindir)"; do \ + for dir in "$(DESTDIR)$(sbindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am @@ -417,7 +417,7 @@ maintainer-clean-generic: @echo "it deletes files that may require special tools to rebuild." clean: clean-am -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am +clean-am: clean-generic clean-sbinPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) @@ -443,7 +443,7 @@ install-dvi: install-dvi-am install-dvi-am: -install-exec-am: install-binPROGRAMS +install-exec-am: install-sbinPROGRAMS install-html: install-html-am @@ -482,22 +482,22 @@ ps: ps-am ps-am: -uninstall-am: uninstall-binPROGRAMS +uninstall-am: uninstall-sbinPROGRAMS .MAKE: all install-am install-strip -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ - clean-generic ctags distclean distclean-compile \ +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-sbinPROGRAMS ctags distclean distclean-compile \ distclean-generic distclean-hdr distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ - install-binPROGRAMS install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-sbinPROGRAMS \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-binPROGRAMS + tags uninstall uninstall-am uninstall-sbinPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. debian/control0000600000000000000000000000147011666665410010576 0ustar Source: fair Section: net Priority: extra Maintainer: Guus Sliepen Uploaders: Joost van Baal Build-Depends: debhelper (>= 5), autotools-dev, libavl-dev (>= 0.3.5-3) Standards-Version: 3.9.2 Package: fair Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: high availability load balancer for TCP connections Fair is a system for implementing load balancers; it consists of two daemons: carrousel and transponder. Carrousel, which performs load balancing services, typically runs on a load balancer; transponder runs on the servers. . Fair understands network topologies where one node is reachable via more than one IP address; this allows not only the servers, but the network to be redundant as well. This distinguishes fair from other load balancers. debian/copyright0000600000000000000000000000356311666666726011146 0ustar This package was debianized by Guus Sliepen on Fri, 4 Jan 2008 22:54:21 +0100. It was downloaded from http://non-gnu.uvt.nl/pub/fair/. Upstream author: Wessel Dankers . The main part of fair is covered by the following conditions: Copyright: Copyright (c) 2004-2011 Wessel Dankers License: fair 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 3 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. On Debian GNU/Linux systems, the complete text of the GNU General Public License version 3 can be found in /usr/share/common-licenses/GPL-3. The extensions to the AVL library, found in src/avlr.c and src/avlr.h, are covered by the following conditions: Copyright: Copyright (C) 1998 Michael H. Buselli Copyright (C) 2000-2005 Wessel Dankers License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public License version 2.1 can be found in /usr/share/common-licenses/LGPL-2.1.