debian/0000775000000000000000000000000011676431033007174 5ustar debian/patches/0000775000000000000000000000000011676430355010631 5ustar debian/patches/rxvt0000664000000000000000000000153011676430354011555 0ustar --- a/spinner.c +++ b/spinner.c @@ -905,11 +905,12 @@ int main(int argc, char** argv) if( ! ( - (0 == strncasecmp(termType, "VT100", sizeof("VT100") )) - || (0 == strncasecmp(termType, "VT102", sizeof("VT102") )) - || (0 == strncasecmp(termType, "XTERM", sizeof("XTERM") )) - || (0 == strncasecmp(termType, "SCREEN", sizeof("SCREEN") )) - || (0 == strncasecmp(termType, "ANSI", sizeof("ANSI") )) + (0 == strncasecmp(termType, "VT100", sizeof("VT100")-1 )) + || (0 == strncasecmp(termType, "VT102", sizeof("VT102")-1 )) + || (0 == strncasecmp(termType, "XTERM", sizeof("XTERM")-1 )) + || (0 == strncasecmp(termType, "RXVT", sizeof("RXVT")-1 )) + || (0 == strncasecmp(termType, "SCREEN", sizeof("SCREEN")-1 )) + || (0 == strncasecmp(termType, "ANSI", sizeof("ANSI")-1 )) ) ) { debian/patches/fix-warnings0000664000000000000000000000433111676430354013170 0ustar --- a/spinner.c +++ b/spinner.c @@ -58,6 +58,17 @@ $Revision: 1.9 $ #define MAX_TIME 65000 +static void DoInterrupt(void); +static int Daemonize(int verbose, char* logFileName, int logFileSet, FILE* logfile, int doPidFile, char* pidFileName); +static void WritePidFile(int verbose, pid_t pid, FILE* logfile, char* pidFileName ); +static void InterruptBlockedOpen(void); +static inline int OpenTTY(int logFileSet, FILE* logfile, char* whichTTY, char* ttyName ); +static void ResetTerm( int verbose, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName ); +static int SpinnerLoop( int verbose, int inverse, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg ); +static int NullLoop( int verbose, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg ); +static int GetHomePath(int verbose, FILE* logfile, char* fullHomePath); + + /****************/ /* Static vars */ @@ -81,8 +92,6 @@ static volatile sig_atomic_t gCanJump = /* Handle interrupt Signals */ static void DoInterrupt(void) { - int saveErrno; - gInterrupted++; /* for a quit if we get two signals in a row before we have quit normally */ if(gInterrupted > 1) --- a/spinner.h +++ b/spinner.h @@ -85,14 +85,4 @@ $Revision: 1.3 $ #define VT100_HOME_CODE "\033[H" #define VT100_INVERSE_CODE "\033[7m" -static void DoInterrupt(void); -static int Daemonize(int verbose, char* logFileName, int logFileSet, FILE* logfile, int doPidFile, char* pidFileName); -static void WritePidFile(int verbose, pid_t pid, FILE* logfile, char* pidFileName ); -static void InterruptBlockedOpen(void); -static inline int OpenTTY(int logFileSet, FILE* logfile, char* whichTTY, char* ttyName ); -static void ResetTerm( int verbose, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName ); -static int SpinnerLoop( int verbose, int inverse, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg ); -static int NullLoop( int verbose, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg ); -static int GetHomePath(int verbose, FILE* logfile, char* fullHomePath); - #endif /* SPINNER_H */ debian/patches/series0000664000000000000000000000002211676430355012040 0ustar rxvt fix-warnings debian/compat0000664000000000000000000000000211676430354010377 0ustar 7 debian/control0000664000000000000000000000121411676430534010602 0ustar Source: spinner Section: misc Priority: optional Maintainer: Christoph Berg Build-Depends: debhelper (>= 7), autotools-dev Standards-Version: 3.9.2 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/spinner.git Vcs-Git: git://anonscm.debian.org/collab-maint/spinner.git Package: spinner Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Sends small packets over a idle link spinner sends small packets (null packets or a fancy ASCII spin fan with motion) to keep a link up. . It is the perfect application to keep alive a connection over routers which disconnect a link after some idle time. debian/docs0000664000000000000000000000001411676430354010047 0ustar NEWS README debian/rules0000775000000000000000000000266511676430355010273 0ustar #!/usr/bin/make -f # 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) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure dh_testdir cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info build-indep: build build-arch: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot [ ! -f Makefile ] || $(MAKE) distclean dh_clean build-stamp config.sub config.guess install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install prefix=$(CURDIR)/debian/spinner/usr binary-indep: binary binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installman debian/spinner.1 dh_installchangelogs ChangeLog dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb .PHONY: build clean binary-indep binary-arch binary install debian/changelog0000664000000000000000000000121011676431033011040 0ustar spinner (1.2.4-3) unstable; urgency=low * Add empty watch file noting the not-useful link target. -- Christoph Berg Tue, 27 Dec 2011 22:00:46 +0100 spinner (1.2.4-2) unstable; urgency=low * New maintainer. Closes: #575518. * Add rxvt to the list of known terminals. Also, recognize all known terminal types as prefixes, e.g. xterm-color for xterm. * Fix some compiler warnings. -- Christoph Berg Tue, 01 Jun 2010 23:01:16 +0200 spinner (1.2.4-1) unstable; urgency=low * Initial release (Closes: #207415) -- Jesus Climent Thu, 17 Apr 2003 12:12:52 +0200 debian/source/0000775000000000000000000000000011676430355010502 5ustar debian/source/format0000664000000000000000000000001411676430355011710 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000164011676430354011135 0ustar This package was debianized by Jesus Climent on Wed, 29 Jan 2003 12:38:02 +0000. It was downloaded from http://www.laffeycomputer.com/spinner.html Upstream Author: Joe Laffey Copyright: Copyright (C) 2002, 2003 Joe Laffey 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. Licensed under GPL. You can find the complete text at: /usr/share/common-licenses/GPL debian/spinner.10000664000000000000000000000261011676430355010741 0ustar .TH SPINNER 1 .SH NAME spinner - Sends small packets over a idle link .SH SYNOPSIS .B spinner .I [options] .SH DESCRIPTION Spinner is an anti-idle program that displays a little "spinning" ASCII character in the top left corner of your terminal. .BR spinner is useful for keeping telnet and ssh links from dropping due to inactivity. Many firewalls, and some ISPs drop connections when they are perceived as idle. By having .BR spinner running the server is constantly sending a tiny amount of data over the link, preserving the connection. .SH OPTIONS .TP .B \-f Set pid file path (default ~/.spinner.pid) .TP .B \-F Do *NOT* create a pid file .TP .B \-I Do *NOT* use inverse video for spinner .TP .B \-l Set log file path (for debugging). Off by default. .TP .B \-L Display the license .TP .B \-n Send null characters (no visible output) .TP .B \-p Specifies process priority to use .TP .B \-P Do *NOT* change process priority (default is to make nice) .TP .B \-r Reset term on quit (use if you get left in inverse a lot) .TP .B \-R Reset the term and Quit immediately. .TP .B \-t Specify path of TTY to which to write .TP .B \-T Ignore incompatible TERM environment variable setting .TP .B -u Delay is in microseconds instead of seconds .TP .B \-v Verbose mode (lots of output) .SH AUTHOR Joe Laffey .SH DEBIAN MAINTAINER This man page was created for Debian by Jesus Climent debian/dirs0000664000000000000000000000001011676430354010054 0ustar usr/bin debian/watch0000664000000000000000000000017711676430770010241 0ustar # there is no useful download link on http://www.laffeycomputer.com/spinner.html # only one pointing to spinner-current.tar.gz