--- cabber-0.4.0-test5.orig/Makefile +++ cabber-0.4.0-test5/Makefile @@ -1,6 +1,11 @@ # cabber Makefile # # + +DESTDIR= + +BIN=$(DESTDIR)/usr/bin + CC = gcc LIBS = -lncurses @@ -44,7 +49,7 @@ rm -f Makefile config.* install: all - cp -f cabber /usr/bin/cabber + cp -f cabber $(BIN)/cabber --- cabber-0.4.0-test5.orig/list.c +++ cabber-0.4.0-test5/list.c @@ -16,6 +16,9 @@ { Ptrnode p, tmp; + if(l==NULL){ + exit(1); + } p = l->next; l->next = NULL; while (p != NULL) --- cabber-0.4.0-test5.orig/parsecfg.c +++ cabber-0.4.0-test5/parsecfg.c @@ -24,7 +24,9 @@ if ((fp = fopen (filename, "r")) == NULL) { - perror ("fopen (parsecfg.c:15)"); + /* perror ("fopen (parsecfg.c:15)"); */ + fprintf (stderr, "You must have a $HOME/.cabberrc file!\n"); + exit(0); exit (EXIT_FAILURE); } --- cabber-0.4.0-test5.orig/screen.c +++ cabber-0.4.0-test5/screen.c @@ -78,6 +78,14 @@ int FindColor (char *name) { + if(name==NULL){ + clear (); + refresh (); + endwin (); + fprintf(stderr,"There isn't color section in ./cabberc!!!\n\n"); + exit(1); + } + if (!strcmp (name, "default")) return -1; if (!strcmp (name, "black")) --- cabber-0.4.0-test5.orig/server.c +++ cabber-0.4.0-test5/server.c @@ -50,7 +50,6 @@ char *aux2; char *result = (char *) malloc (1024); memset (result, 0, 1024); - aux = strstr (buffer, what); if (aux) { @@ -107,6 +106,13 @@ while (1) { + if(aux==NULL){ + clear (); + refresh (); + endwin (); + fprintf(stderr,"You must have somebody in your roster!\n\n"); + exit(0); + } aux2 = strstr (aux, " Sun, 2 Oct 2005 17:57:11 +0200 + +cabber (0.4.0-test5-2) unstable; urgency=low + + * screen.c, list.c: Fix segfaults problems with roster warning, no + .cabberrc warning and color section warning (closes: #216853). + + -- David Fernandez Vaamonde Wed, 22 Oct 2003 12:52:15 +0200 + +cabber (0.4.0-test5-1) unstable; urgency=low + + * Initial Release. + + -- David Fernandez Vaamonde Thu, 18 Sep 2003 00:04:39 +0200 + --- cabber-0.4.0-test5.orig/debian/compat +++ cabber-0.4.0-test5/debian/compat @@ -0,0 +1 @@ +4 --- cabber-0.4.0-test5.orig/debian/cabber.1 +++ cabber-0.4.0-test5/debian/cabber.1 @@ -0,0 +1,85 @@ +...\" $Header: /aolnet/dev/src/CVS/sgml/docbook-to-man/cmd/docbook-to-man.sh,v 1.1.1.1 1998/11/13 21:31:59 db3l Exp $ +...\" +...\" transcript compatibility for postscript use. +...\" +...\" synopsis: .P! +...\" +.de P! +.fl +\!!1 setgray +.fl +\\&.\" +.fl +\!!0 setgray +.fl \" force out current output buffer +\!!save /psv exch def currentpoint translate 0 0 moveto +\!!/showpage{}def +.fl \" prolog +.sy sed -e 's/^/!/' \\$1\" bring in postscript file +\!!psv restore +. +.de pF +.ie \\*(f1 .ds f1 \\n(.f +.el .ie \\*(f2 .ds f2 \\n(.f +.el .ie \\*(f3 .ds f3 \\n(.f +.el .ie \\*(f4 .ds f4 \\n(.f +.el .tm ? font overflow +.ft \\$1 +.. +.de fP +.ie !\\*(f4 \{\ +. ft \\*(f4 +. ds f4\" +' br \} +.el .ie !\\*(f3 \{\ +. ft \\*(f3 +. ds f3\" +' br \} +.el .ie !\\*(f2 \{\ +. ft \\*(f2 +. ds f2\" +' br \} +.el .ie !\\*(f1 \{\ +. ft \\*(f1 +. ds f1\" +' br \} +.el .tm ? font underflow +.. +.ds f1\" +.ds f2\" +.ds f3\" +.ds f4\" +'\" t +.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n +.TH "CABBER" "SECTION" +.SH "NAME" +cabber \(em Easy and basic jabber console client +.SH "DESCRIPTION" +.PP +This manual page documents briefly the +\fBcabber\fR command. +.PP +This manual page was written for the \fBDebian\fP distribution +because the original program does not have a manual page. + +.PP +\fBcabber\fR is a very easy and basic jabber +console client based in ncurses, customizable +and useful for use in a remote console. +.PP +This software needs a precreated jabber account and a precreated +roster with somebody. +.SH "OPTIONS" +.PP +This program is in an early stage of development and all +parameters are getting from .cabberrc file. +.SH "AUTHOR" +.PP +This manual page was written by David Fernandez Vaamonde david_fv@gpul.org for +the \fBDebian\fP system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU Free Documentation +License, Version 1.1 or any later version published by the Free +Software Foundation; with no Invariant Sections, no Front-Cover +Texts and no Back-Cover Texts. +...\" created by instant / docbook-to-man, Wed 22 Oct 2003, 13:14 --- cabber-0.4.0-test5.orig/debian/dirs +++ cabber-0.4.0-test5/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- cabber-0.4.0-test5.orig/debian/README.Debian +++ cabber-0.4.0-test5/debian/README.Debian @@ -0,0 +1,13 @@ + +Cabber +-------- + +This software is in a early stage of development. For the moment, you can +only connect with your jabber server if you have an account precreated and +have somebody in your roster. + +New versions of this software could solve these and other problems, but this +version is really useful for remote connection when you aren't in your +desktop. + +-- David Fernandez Vaamonde , Mon, 6 Oct 2003 12:28:15 +0200 --- cabber-0.4.0-test5.orig/debian/copyright +++ cabber-0.4.0-test5/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by David Fernandez Vaamonde on +Thu, 18 Sep 2003 00:04:39 +0200. + +It was downloaded from http://cabber.sourceforge.net + +Upstream Author: A. J. Macías + +Copyright: A. J. Macías + +License: + +This software is copyright (c) by A. J. Macías. + +This package 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; version 2 dated June, 1991. + +This package 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 should have received a copy of the GNU General Public License +along with this package; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in '/usr/share/common-licenses/GPL'. --- cabber-0.4.0-test5.orig/debian/control +++ cabber-0.4.0-test5/debian/control @@ -0,0 +1,14 @@ +Source: cabber +Section: net +Priority: optional +Maintainer: David Fernandez Vaamonde +Build-Depends: debhelper (>> 4.0.0), libncurses5-dev, libc6-dev, docbook-to-man +Standards-Version: 3.5.9 + +Package: cabber +Architecture: any +Depends: ${shlibs:Depends} +Description: Easy and basic jabber console client + Very easy and basic jabber console client based in ncurses, customizable + and useful for use in a remote console. + Jabber is an open protocol for instant messaging. \ No newline at end of file --- cabber-0.4.0-test5.orig/debian/rules +++ cabber-0.4.0-test5/debian/rules @@ -0,0 +1,97 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# 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 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +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) CFLAGS="$(CFLAGS)" + /usr/bin/docbook-to-man debian/cabber.sgml > debian/cabber.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. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/cabber. + $(MAKE) install DESTDIR=$(CURDIR)/debian/cabber + + +# 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_installinit +# dh_installcron +# dh_installinfo + dh_installman debian/cabber.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 --- cabber-0.4.0-test5.orig/debian/docs +++ cabber-0.4.0-test5/debian/docs @@ -0,0 +1,4 @@ +README +TODO +cabberrc.example +ACKNOWLEDGEMENT \ No newline at end of file --- cabber-0.4.0-test5.orig/debian/cabber.sgml +++ cabber-0.4.0-test5/debian/cabber.sgml @@ -0,0 +1,119 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + FIRSTNAME"> + SURNAME"> + + septiembre 18, 2003"> + + SECTION"> + david_fv@gpul.org"> + + CABBER"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + Easy and basic jabber console client + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + + &dhpackage; is a very easy and basic jabber +console client based in ncurses, customizable + and useful for use in a remote console. + + This software needs a precreated jabber account and a precreated + roster with somebody. + + + + OPTIONS + + This program is in an early stage of development and all +parameters are getting from .cabberrc file. + + + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; Free Documentation + License, Version 1.1 or any later version published by the Free + Software Foundation; with no Invariant Sections, no Front-Cover + Texts and no Back-Cover Texts. + + +
+ + + +