--- colrconv-0.99.3.orig/colrconv.1 +++ colrconv-0.99.3/colrconv.1 @@ -0,0 +1,112 @@ +.TH COLRCONV 1 +.SH NAME +colrconv \- hamradio convers client with sound and ncurses color support +.SH SYNOPSIS +.B colrconv +.I "[options]" +.I "" +.I "[]" +.SH DESCRIPTION +This manual page documents briefly the +.BR colrconv +commands. + +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP + +.B Colrconv +is a modified version of VA3DP's ttylink client. In addition to the +basic split screen session it gives you color and sound support +plus some line editing capabilities, a scroll buffer and a status line. +Also the default service is changed to 3600 (convers). + +A new color is assigned to each user the first time he sends text +and this color is used when displaying any subsequent text from this +user. Available colors are green, yellow, cyan, magenta, blue and red. +These are used twice, the second time with BOLD attribute on. After +the colors run out they are used again. + +Bold red is reserved for special messages (starting with ***) and +for private messages (eg. <*oh2bns*>: Hello!). + +.B Colrconv +plays certain sound files when it receives text from the convers bridge. +The files are: callsign.au (eg. oh2bns.au), unknown.au, signedon.au +says.au and pingpong.au. This feature is still a bit experimental +and only works with older convers servers. Also you have to make +your own .au file. The rsynth package is good at this. See the readme +for details. Sound files should go into /usr/lib/colrconv. + + +.SH OPTIONS +.TP +.B \-nocolor +Start colrconv in black and white, even if terminal has color support. +.TP +.B \-c channel +Connect to channel number 'channel' at startup. +.TP +.B \-n name +Send a '/n name' when connected. When -n is omitted the user's login +name is used. + + +.SH LINE EDITING COMMANDS + +.TP +.B Ctrl-A +Goto beginning of line. +.TP +.B Ctrl-B and Left arrow +Go one character backward. +.TP +.B Ctrl-D +Delete character under cursor. +.TP +.B Ctrl-E +Goto end of line. +.TP +.B Ctrl-F and Right arrow +Go one character forward. +.TP +.B Ctrl-K +Kill from cursor to end of line (and store to kill buffer). +.TP +.B Ctrl-L +Repaints the whole screen. +.TP +.B Ctrl-N and Down arrow +Scroll Down. +.TP +.B Ctrl-P and Up arrow +Scroll Up. +.TP +.B Ctrl-R +Reprint current line. +.TP +.B Ctrl-U +Delete current line in total. +.TP +.B Ctrl-W +Erase last word. +.TP +.B Ctrl-Y +Yank kill buffer. + +.PP +The scroll buffer can be browsed with arrow keys Up and Down (or Ctrl-P +and Ctrl-N), PageUp, PageDown, Home and End keys. + +.SH FILES +If +.B ~/.conversrc +exists, it is sent to the server after logging in. Handy for automatically +sending commands like /notify, /who, etc. + +.SH SEE ALSO +/usr/share/doc/colrconv/README.colrconv. + +.SH AUTHOR +This manual page was written by Joop Stakenborg , +for the Debian GNU/Linux system (but may be used by others). --- colrconv-0.99.3.orig/colrconv.c +++ colrconv-0.99.3/colrconv.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include @@ -88,12 +88,13 @@ struct sockaddr_in serv_addr; /* Required by connect() */ int sockfd; /* Socket for tcp connection */ WINDOW *rxwin,*txwin; /* RX and TX windows structures for ncurses */ - int x, y; /* Window cursor position */ + int x, y = 0; /* Window cursor position */ int offset = 0; /* Scrollback offset */ int nblines = 0; /* Number of lines in RX buffer */ int rxcolor = 0; /* Current color in RX window */ char *killbuff; /* Last killed line */ char *cp; /* Temp char pointer */ + char saveptr[80]; /* Received string in sound routine */ int nextarg; FILE *f; /* ~/.conversrc */ char ch; @@ -116,7 +117,7 @@ } if(argc < 2) { - fprintf(stderr,"Usage: colrconv [service]\n"); + fprintf(stderr,"Usage: colrconv [-nocolor] [-n [-c]] [service]\n"); exit(1); } @@ -162,7 +163,7 @@ if(HasColors) wattron(txwin,A_BOLD | COLOR_PAIR(8)); else - wattron(txwin,A_BOLD); + wattron(txwin,A_REVERSE); my_wclear(txwin); wrefresh(txwin); @@ -327,6 +328,7 @@ } #if AUDIO /* "*** oh2bbp signed on" -message */ + /* this is for PP */ if(!strncmp(rxptr,"*** ", 4) && ((cp = strstr(rxptr, " signed on")) != NULL)) { *cp = 0; /* cut the line for a while */ @@ -334,6 +336,18 @@ say("signedon"); *cp = ' '; } + /* "*** (hh:mm) user@host joined channel xx" -message */ + /* this is for TPP */ + if(!strncmp(rxptr,"*** ", 4) && + ((cp = strstr(rxptr, " joined channel")) != NULL)) { + strcpy(saveptr, rxptr); /* save string for later */ + *cp = 0; /* cut the line for a while */ + cp = strstr(rxptr, "@"); + *cp = 0; /* cut of the host bit */ + say(&rxptr[12]); + say("signedon"); + strcpy(rxptr, saveptr); + } #endif } else if(*rxptr == '<' && HasColors) { rxcolor = getcall(rxptr); @@ -548,15 +562,16 @@ static void say(char *str) { FILE *fpin, *fpout; - char infile[40]; + char infile[60]; register int c; - strncpy(infile, str, 35); - strcat(infile, ".dsp"); + strcpy(infile, "/usr/lib/colrconv/"); + strcat(infile, str); + strcat(infile, ".au"); if((fpin = fopen(infile, "r")) == NULL) - fpin = fopen("unknown.dsp", "r"); + fpin = fopen("/usr/lib/colrconv/unknown.au", "r"); if(fpin != NULL) { - if((fpout = fopen("/dev/dsp", "w")) != NULL) { + if((fpout = fopen("/dev/audio", "w")) != NULL) { while((c = fgetc(fpin)) != EOF) fputc(c, fpout); fclose(fpout); @@ -695,7 +710,8 @@ static void status(int stat, const char *host, int port, int offset, int lines) { - char *cp,pos[10],line[80]; + char pos[10],line[80]; + char *cp = NULL; static WINDOW *win = NULL; struct tm *t; time_t tim; --- colrconv-0.99.3.orig/Makefile.debian +++ colrconv-0.99.3/Makefile.debian @@ -0,0 +1,12 @@ +all: colrconv + +colrconv: colrconv.c + gcc $(CFLAGS) -I/usr/include/ncurses colrconv.c \ + -DAUDIO -lncurses -o colrconv + +install: + install -o root -g root colrconv $(DESTDIR)/usr/bin + +clean: + rm -f colrconv *~ + --- colrconv-0.99.3.orig/debian/README.Debian +++ colrconv-0.99.3/debian/README.Debian @@ -0,0 +1,28 @@ +colrconv for DEBIAN +------------------- + +Sounds should go into /usr/lib/colrconv and have extension '.au'. +The sounds are played through the /dev/audio device. +Have a look at README.colrconv to see what sounds you need, replace +the '.dsp' by '.au' in that file. + +At least a message like: + +*** pa3aba signed on + +will play pa3aba.au followed by signedon.au. +This is for pp-conversd. + +For tpp you will see: + +*** ( 9:47) pa4tu@DOMSTAD joined channel 44 + +and colrconv will play pa4tu.au and signedon.au. + +You can make sounds with the rsynth package. Here are some examples: +say signed on -o signedon.au +say unnown -o unknown.au +say pingpong -o pingpong.au +say p ai 3 ai b ai -o pa3aba.au + +Joop Stakenborg , Tue, 27 Oct 1998 21:10:14 +0100 --- colrconv-0.99.3.orig/debian/rules +++ colrconv-0.99.3/debian/rules @@ -0,0 +1,97 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) -f Makefile.debian + #docbook-to-man debian/colrconv.sgml > colrconv.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile.debian ] || $(MAKE) -f Makefile.debian clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/colrconv. + $(MAKE) -f Makefile.debian install DESTDIR=$(CURDIR)/debian/colrconv + + +# 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 + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman colrconv.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# 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 configure --- colrconv-0.99.3.orig/debian/colrconv.dirs +++ colrconv-0.99.3/debian/colrconv.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/doc/colrconv +usr/lib/colrconv --- colrconv-0.99.3.orig/debian/control +++ colrconv-0.99.3/debian/control @@ -0,0 +1,16 @@ +Source: colrconv +Build-depends: libncurses5-dev, debhelper (>=4.0.0) +Section: hamradio +Priority: optional +Maintainer: Debian QA Group +Standards-Version: 3.7.2 + +Package: colrconv +Architecture: any +Depends: ${shlibs:Depends} +Description: Convers client with curses color support + Colrconv is a modified version of VA3DP's ttylink client. In addition + to the basic split screen session it gives you color and sound support + plus some line editing capabilities, a scroll buffer and a status line. + Also the default port is changed to 3600 (convers). + --- colrconv-0.99.3.orig/debian/docs +++ colrconv-0.99.3/debian/docs @@ -0,0 +1 @@ +README.colrconv --- colrconv-0.99.3.orig/debian/copyright +++ colrconv-0.99.3/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Joop Stakenborg pa3aba@debian.org on +Tue, 27 Oct 1998 21:10:14 +0100. + +It was downloaded from zone.pspt.fi/oh7lzb/convers + +Copyright: + +From README.colrconv: +---------------------------------------------------------------------- +Credits: + + Original code by VA3DP. Idea and code for color and sound support by + Pekka, OH2BBP. + + +This is public domain software. + +Tomi Manninen +OH2BNS +tomi.manninen@hut.fi + +Pekka Lempola +OH2BBP +pekka.lempola@vtt.fi + +Small hack by Heikki Hannikainen, OH7LZB +---------------------------------------------------------------------- --- colrconv-0.99.3.orig/debian/compat +++ colrconv-0.99.3/debian/compat @@ -0,0 +1 @@ +4 --- colrconv-0.99.3.orig/debian/changelog +++ colrconv-0.99.3/debian/changelog @@ -0,0 +1,93 @@ +colrconv (0.99.3-4) unstable; urgency=low + + * Retiring - set the package maintainer to Debian QA Group. + + -- Joop Stakenborg Fri, 30 Oct 2009 21:03:45 +0000 + +colrconv (0.99.3-3) unstable; urgency=low + + * Lintian clean. + * Update standards version. + * Handle nostrip build options. Closes: #436654. + + -- Joop Stakenborg Tue, 13 Nov 2007 19:40:26 +0100 + +colrconv (0.99.3-2) unstable; urgency=low + + * Watch file added. + * Migrate to debhelper. + + -- Joop Stakenborg Mon, 20 Feb 2006 17:25:45 +0100 + +colrconv (0.99.3-1) unstable; urgency=low + + * New upstream release. + + -- Joop Stakenborg Sat, 21 Jun 2003 20:05:45 +0200 + +colrconv (0.99.2-9) unstable; urgency=low + + * Update standards version. + * Lintian fixes. + + -- Joop Stakenborg Sun, 22 Dec 2002 11:30:58 +0100 + +colrconv (0.99.2-8) unstable; urgency=low + + * Remove libc6-dev from Build-Depends line as per debian policy. + + -- Joop Stakenborg Tue, 10 Jul 2001 21:23:45 +0200 + +colrconv (0.99.2-7) unstable; urgency=low + + * Update standards version. + * Fix for glibc 2.2 to #include . + + -- Joop Stakenborg Sat, 17 Feb 2001 21:45:47 +0100 + +colrconv (0.99.2-6) unstable; urgency=low + + * Add build-depends line (closes: #70268) + + -- Joop Stakenborg Sat, 17 Feb 2001 21:43:08 +0100 + +colrconv (0.99.2-5) unstable; urgency=low + + * Fixed lintian warnings. + + -- Joop Stakenborg Fri, 28 Jul 2000 09:33:24 +0200 + +colrconv (0.99.2-4) unstable; urgency=low + + * Typo. + + -- Joop Stakenborg Thu, 14 Oct 1999 18:35:48 +0200 + +colrconv (0.99.2-3) unstable; urgency=low + + * Updated standards version. + * FHS. + + -- Joop Stakenborg Thu, 14 Oct 1999 15:24:04 +0200 + +colrconv (0.99.2-2) unstable; urgency=low + + * Changed architecture to any. + * TX window is now reverse video when using no colors. Looks better. + * Sound support for TPP and HTPP added. + + -- Joop Stakenborg Wed, 5 May 1999 09:26:58 +0200 + +colrconv (0.99.2-1) unstable; urgency=low + + * New upstream version. + * Compiled with new version of ncurses. + * Wrote a small manual page. + + -- Joop Stakenborg Tue, 27 Oct 1998 21:10:14 +0100 + +colrconv (0.99.1-1) unstable; urgency=low + + * Initial Release. + + -- Joop Stakenborg Mon, 19 Jan 1998 19:20:47 +0100