Index: ChangeLog =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/ChangeLog,v retrieving revision 1.233.2.5 retrieving revision 1.233.2.11 diff -u -r1.233.2.5 -r1.233.2.11 --- ChangeLog 26 Jun 2004 09:12:38 -0000 1.233.2.5 +++ ChangeLog 25 Dec 2004 00:20:57 -0000 1.233.2.11 @@ -10,6 +10,16 @@ -- ChangeLog -- +ngircd 0.8.1 (2004-12-25) + + - Autoconf: Updated config.guess and config.sub + - Added some more debug code ... + - Fixed wrong variable names in output of "ngircd --configtest". + - Debian: Fxied the name of the "default file" in the init script for + ngircd-full packages. And do the test if the binary is executable after + reading this file. + - Enhanced the "test suite": please have a look at src/testsuite/README! + ngircd 0.8.0 (2004-06-26) - Fixed wrong buffer size calculation for results of the resolver. @@ -530,4 +540,4 @@ -- -$Id: ChangeLog,v 1.233.2.5 2004/06/26 09:12:38 alex Exp $ +$Id: ChangeLog,v 1.233.2.11 2004/12/25 00:20:57 alex Exp $ Index: INSTALL =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/INSTALL,v retrieving revision 1.18.2.1 retrieving revision 1.18.2.2 diff -u -r1.18.2.1 -r1.18.2.2 --- INSTALL 7 May 2004 11:24:17 -0000 1.18.2.1 +++ INSTALL 3 Sep 2004 20:02:02 -0000 1.18.2.2 @@ -46,6 +46,20 @@ 3) make 4) make install +(Please see details below!) + +Now the newly compiled executable "ngircd" is installed in its standard +location, /usr/local/sbin/. + +The next step is to configure and afterwards starting the daemon. Please +have a look at the ngircd(8) and ngircd.conf(5) manual pages for details +and all possible options. + +If no previous version of the configuration file exists (the standard name +is /usr/local/etc/ngircd.conf), a sample configuration file containing all +possible options will be installed there. You'll find its template in the +doc/ directory: sample-ngircd.conf. + 1): "autogen.sh" @@ -163,4 +177,4 @@ -- -$Id: INSTALL,v 1.18.2.1 2004/05/07 11:24:17 alex Exp $ +$Id: INSTALL,v 1.18.2.2 2004/09/03 20:02:02 alex Exp $ Index: config.guess =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/config.guess,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -r1.4 -r1.4.2.1 --- config.guess 11 Mar 2004 22:18:28 -0000 1.4 +++ config.guess 25 Dec 2004 00:11:42 -0000 1.4.2.1 @@ -1,9 +1,9 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. -timestamp='2004-01-05' +timestamp='2004-08-13' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -53,7 +53,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -197,15 +197,21 @@ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit 0 ;; + amd64:OpenBSD:*:*) + echo x86_64-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; amiga:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} + cats:OpenBSD:*:*) + echo arm-unknown-openbsd${UNAME_RELEASE} exit 0 ;; hp300:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; + luna88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; mac68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; @@ -221,28 +227,33 @@ mvmeppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; - pegasos:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; sgi:OpenBSD:*:*) - echo mipseb-unknown-openbsd${UNAME_RELEASE} + echo mips64-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sun3:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; *:OpenBSD:*:*) echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} exit 0 ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit 0 ;; + macppc:MirBSD:*:*) + echo powerppc-unknown-mirbsd${UNAME_RELEASE} + exit 0 ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit 0 ;; alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then + case $UNAME_RELEASE in + *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU @@ -280,14 +291,12 @@ "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac + # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; - Alpha*:OpenVMS:*:*) - echo alpha-hp-vms + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit 0 ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? @@ -405,6 +414,9 @@ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit 0 ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; @@ -740,7 +752,7 @@ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; *:UNICOS/mp:*:*) - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` @@ -763,21 +775,7 @@ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*) - # Determine whether the default compiler uses glibc. - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #if __GLIBC__ >= 2 - LIBC=gnu - #else - LIBC= - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using - # FreeBSD's kernel, but not the complete OS. - case ${LIBC} in gnu) kernel_only='k' ;; esac - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin @@ -829,6 +827,9 @@ ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; @@ -1069,9 +1070,9 @@ M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit 0 ;; - M68*:*:R3V[567]*:*) + M68*:*:R3V[5678]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` @@ -1169,9 +1170,10 @@ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Darwin:*:*) - case `uname -p` in + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in *86) UNAME_PROCESSOR=i686 ;; - powerpc) UNAME_PROCESSOR=powerpc ;; + unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit 0 ;; @@ -1230,9 +1232,16 @@ SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit 0 ;; - *:DRAGONFLY:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE} + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms && exit 0 ;; + I*) echo ia64-dec-vms && exit 0 ;; + V*) echo vax-dec-vms && exit 0 ;; + esac esac #echo '(No uname command or uname output not recognized.)' 1>&2 Index: config.sub =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/config.sub,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -r1.4 -r1.4.2.1 --- config.sub 11 Mar 2004 22:18:28 -0000 1.4 +++ config.sub 25 Dec 2004 00:11:42 -0000 1.4.2.1 @@ -1,9 +1,9 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. -timestamp='2004-01-05' +timestamp='2004-06-24' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -70,7 +70,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -145,7 +145,7 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) + -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; @@ -237,7 +237,7 @@ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m68000 | m68k | m88k | mcore \ + | m32r | m32rle | m68000 | m68k | m88k | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -262,7 +262,7 @@ | pyramid \ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ @@ -300,7 +300,7 @@ | avr-* \ | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ + | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ @@ -308,7 +308,7 @@ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ - | m32r-* \ + | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ @@ -326,8 +326,9 @@ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ + | mmix-* \ | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ @@ -336,7 +337,7 @@ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ @@ -363,6 +364,9 @@ basic_machine=a29k-amd os=-udi ;; + abacus) + basic_machine=abacus-unknown + ;; adobe68k) basic_machine=m68010-adobe os=-scout @@ -442,12 +446,24 @@ basic_machine=j90-cray os=-unicos ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16c) + basic_machine=cr16c-unknown + os=-elf + ;; crds | unos) basic_machine=m68k-crds ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; da30 | da30-*) basic_machine=m68k-da30 ;; @@ -648,10 +664,6 @@ mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; monitor) basic_machine=m68k-rom68k os=-coff @@ -732,10 +744,6 @@ np1) basic_machine=np1-gould ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp - ;; nsr-tandem) basic_machine=nsr-tandem ;; @@ -1048,6 +1056,9 @@ romp) basic_machine=romp-ibm ;; + mmix) + basic_machine=mmix-knuth + ;; rs6000) basic_machine=rs6000-ibm ;; @@ -1070,7 +1081,7 @@ sh64) basic_machine=sh64-unknown ;; - sparc | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) @@ -1143,8 +1154,9 @@ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ @@ -1362,6 +1374,9 @@ *-ibm) os=-aix ;; + *-knuth) + os=-mmixware + ;; *-wec) os=-proelf ;; Index: configure.in =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/configure.in,v retrieving revision 1.102.2.3 retrieving revision 1.102.2.5 diff -u -r1.102.2.3 -r1.102.2.5 --- configure.in 26 Jun 2004 09:19:58 -0000 1.102.2.3 +++ configure.in 25 Dec 2004 00:20:57 -0000 1.102.2.5 @@ -8,13 +8,13 @@ # (at your option) any later version. # Please read the file COPYING, README and AUTHORS for more information. # -# $Id: configure.in,v 1.102.2.3 2004/06/26 09:19:58 alex Exp $ +# $Id: configure.in,v 1.102.2.5 2004/12/25 00:20:57 alex Exp $ # # -- Initialisation -- AC_PREREQ(2.50) -AC_INIT(ngircd, 0.8.0) +AC_INIT(ngircd, 0.8.1) AC_CONFIG_SRCDIR(src/ngircd/ngircd.c) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE(1.6) Index: contrib/ngircd.spec =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/contrib/ngircd.spec,v retrieving revision 1.4.2.3 retrieving revision 1.4.2.4 diff -u -r1.4.2.3 -r1.4.2.4 --- contrib/ngircd.spec 26 Jun 2004 09:19:58 -0000 1.4.2.3 +++ contrib/ngircd.spec 25 Dec 2004 00:20:57 -0000 1.4.2.4 @@ -1,5 +1,5 @@ %define name ngircd -%define version 0.8.0 +%define version 0.8.1 %define release 1 %define prefix %{_prefix} Index: contrib/Debian/changelog =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/contrib/Debian/changelog,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.4 diff -u -r1.8.2.1 -r1.8.2.4 --- contrib/Debian/changelog 26 Jun 2004 09:27:29 -0000 1.8.2.1 +++ contrib/Debian/changelog 25 Dec 2004 00:20:57 -0000 1.8.2.4 @@ -1,3 +1,16 @@ +ngircd (0.8.1-0ab1) unstable; urgency=low + + * New "upstream release". + + -- Alexander Barton Sat, 25 Dec 2004 01:18:32 +0100 + +ngircd (0.8.0-0ab2) unstable; urgency=low + + * Added missing commas to debian control file, fixes bug #56. + Thanks to Kevin Otte. + + -- Alexander Barton Thu, 15 Jul 2004 10:53:39 +0200 + ngircd (0.8.0-0ab1) unstable; urgency=low * New upstream version. Index: contrib/Debian/control =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/contrib/Debian/control,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -r1.2 -r1.2.2.1 --- contrib/Debian/control 1 Jan 2004 22:24:48 -0000 1.2 +++ contrib/Debian/control 15 Jul 2004 08:59:09 -0000 1.2.2.1 @@ -7,7 +7,7 @@ Package: ngircd Architecture: any -Depends: ${shlibs:Depends} ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} Description: A lightweight daemon for the Internet Relay Chat (IRC) ngIRCd is a free open source daemon for the Internet Relay Chat (IRC) network. It is written from scratch and is not based upon the original @@ -27,7 +27,7 @@ Package: ngircd-full Architecture: any -Depends: ${shlibs:Depends} ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: ngircd Description: A lightweight daemon for the Internet Relay Chat (IRC) ngIRCd is a free open source daemon for the Internet Relay Chat (IRC) Index: contrib/Debian/ngircd.init =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/contrib/Debian/ngircd.init,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -r1.1 -r1.1.2.1 --- contrib/Debian/ngircd.init 31 Dec 2003 17:20:11 -0000 1.1 +++ contrib/Debian/ngircd.init 6 Sep 2004 00:36:49 -0000 1.1.2.1 @@ -2,18 +2,19 @@ # # ngIRCd start and stop script for Debian-based systems # -# $Id: ngircd.init,v 1.1 2003/12/31 17:20:11 alex Exp $ +# $Id: ngircd.init,v 1.1.2.1 2004/09/06 00:36:49 alex Exp $ # PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/ngircd NAME=ngIRCd +BASENAME=`basename $0` DESC="IRC daemon" PARAMS="" -test -x $DAEMON || exit 0 +test -f /etc/default/$BASENAME && . /etc/default/$BASENAME -test -f /etc/default/ngircd && . /etc/default/ngircd +test -x $DAEMON || exit 0 Check_Config() { Index: doc/Platforms.txt =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/doc/Platforms.txt,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -u -r1.11 -r1.11.2.1 --- doc/Platforms.txt 5 Apr 2004 11:11:05 -0000 1.11 +++ doc/Platforms.txt 9 Nov 2004 10:58:01 -0000 1.11.2.1 @@ -26,20 +26,24 @@ | | | | Platform Compiler ngIRCd Date Tester C M T R See --------------------------- ------------ ---------- -------- ------ - - - - --- +hppa/unknown/openbsd3.5 gcc 2.95.3 CVSHEAD 04-05-25 alex Y Y Y Y +hppa1.1/unknown/linux-gnu gcc 3.3.3 0.8.0 04-05-30 alex Y Y Y Y i386/pc/solaris2.9 gcc 3.2.2 CVSHEAD 04-02-24 alex Y Y Y Y -i386/unknown/freebsd5.0 gcc 3.2.1 0.7.0 03-05-15 alex Y Y Y Y -i386/unknown/gnu0.3 gcc 3.2.3 CVSHEAD 03-05-05 alex Y Y n Y +i386/unknown/freebsd5.2.1 gcc 3.3.3 0.8.0 04-05-30 alex Y Y Y Y +i386/unknown/gnu0.3 gcc 3.3.3 0.8.0 04-05-30 alex Y Y n Y i386/unknown/netbsdelf1.6.1 gcc 2.95.3 CVSHEAD 04-02-24 alex Y Y Y Y -i686/pc/cygwin gcc 3.2 0.7.x-CVS 03-04-24 alex Y Y n Y -i686/pc/linux-gnu gcc 2.95 0.7.0 03-05-15 alex Y Y Y Y (1) -i686/pc/linux-gnu gcc 3.3.3 CVSHEAD 04-02-22 alex Y Y Y Y (1) +i686/pc/cygwin gcc 3.3.1 0.8.0 04-05-30 alex Y Y n Y +i686/pc/linux-gnu gcc 2.95.4 0.8.0 04-05-30 alex Y Y Y Y (1) +i686/pc/linux-gnu gcc 3.3.3 0.8.0 04-05-30 alex Y Y Y Y (1) m68k/apple/aux3.1.1 Orig. A/UX 0.7.x-CVS 03-04-22 alex Y Y Y Y (2) m68k/hp/hp-ux9.10 Orig. HPUX 0.7.x-CVS 03-04-30 goetz Y Y Y Y m88k/dg/dgux5.4R3.10 gcc 2.5.8 CVSHEAD 04-03-15 alex Y Y ? ? powerpc/apple/darwin6.5 gcc 3.1 0.7.x-CVS 03-04-23 alex Y Y Y Y -powerpc/apple/darwin7.2.0 gcc 3.3 CVSHEAD 04-02-22 alex Y Y Y Y +powerpc/apple/darwin7.4.0 gcc 3.3 0.8.0 04-05-30 alex Y Y Y Y +powerpc/unknown/linux-gnu gcc 3.3.3 0.8.0 04-05-30 alex Y Y Y Y sparc/sun/solaris2.6 gcc 2.95.3 0.7.x-CVS 03-04-22 alex Y Y Y Y -sparc/sun/solaris2.7 gcc 3.3 CVSHEAD 04-02-24 alex Y Y Y Y +sparc/sun/solaris2.7 gcc 3.3 0.8.0 04-05-30 alex Y Y Y Y +sparc/unkn./netbsdelf1.6.1 gcc 2.95.3 0.8.0 04-05-30 alex Y Y Y Y Notes @@ -56,4 +60,4 @@ -- -$Id: Platforms.txt,v 1.11 2004/04/05 11:11:05 alex Exp $ +$Id: Platforms.txt,v 1.11.2.1 2004/11/09 10:58:01 alex Exp $ Index: src/ngircd/conf.c =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/ngircd/conf.c,v retrieving revision 1.63.2.1 retrieving revision 1.63.2.2 diff -u -r1.63.2.1 -r1.63.2.2 --- src/ngircd/conf.c 7 May 2004 11:24:18 -0000 1.63.2.1 +++ src/ngircd/conf.c 27 Sep 2004 11:30:52 -0000 1.63.2.2 @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conf.c,v 1.63.2.1 2004/05/07 11:24:18 alex Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.63.2.2 2004/09/27 11:30:52 alex Exp $"; #include "imp.h" #include @@ -107,8 +107,8 @@ else puts( "Ok, dump of your server configuration follows:\n" ); puts( "[GLOBAL]" ); - printf( " ServerName = %s\n", Conf_ServerName ); - printf( " ServerInfo = %s\n", Conf_ServerInfo ); + printf( " Name = %s\n", Conf_ServerName ); + printf( " Info = %s\n", Conf_ServerInfo ); printf( " Password = %s\n", Conf_ServerPwd ); printf( " AdminInfo1 = %s\n", Conf_ServerAdmin1 ); printf( " AdminInfo2 = %s\n", Conf_ServerAdmin2 ); Index: src/ngircd/conn.c =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/ngircd/conn.c,v retrieving revision 1.134.2.2 retrieving revision 1.134.2.3 diff -u -r1.134.2.2 -r1.134.2.3 --- src/ngircd/conn.c 30 May 2004 16:24:21 -0000 1.134.2.2 +++ src/ngircd/conn.c 25 Dec 2004 00:00:42 -0000 1.134.2.3 @@ -16,7 +16,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conn.c,v 1.134.2.2 2004/05/30 16:24:21 alex Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.134.2.3 2004/12/25 00:00:42 alex Exp $"; #include "imp.h" #include @@ -628,6 +628,9 @@ { /* Conn_Close() has been called recursively for this link; * probabe reason: Try_Write() failed -- see below. */ +#ifdef DEBUG + Log( LOG_DEBUG, "Recursive request to close connection: %d", Idx ); +#endif return; } @@ -723,6 +726,10 @@ /* Clean up connection structure (=free it) */ Init_Conn_Struct( Idx ); + +#ifdef DEBUG + Log( LOG_DEBUG, "Shutdown of connection %d completed.", Idx ); +#endif } /* Conn_Close */ @@ -1272,22 +1279,20 @@ /* Mit dem letzten Befehl wurde Socket-Kompression aktiviert. * Evtl. schon vom Socket gelesene Daten in den Unzip-Puffer * umkopieren, damit diese nun zunaechst entkomprimiert werden */ + if( My_Connections[Idx].rdatalen > ZREADBUFFER_LEN ) { - if( My_Connections[Idx].rdatalen > ZREADBUFFER_LEN ) - { - /* Hupsa! Soviel Platz haben wir aber gar nicht! */ - Log( LOG_ALERT, "Can't move read buffer: No space left in unzip buffer (need %d bytes)!", My_Connections[Idx].rdatalen ); - return FALSE; - } - memcpy( My_Connections[Idx].zip.rbuf, My_Connections[Idx].rbuf, My_Connections[Idx].rdatalen ); - My_Connections[Idx].zip.rdatalen = My_Connections[Idx].rdatalen; - My_Connections[Idx].rdatalen = 0; -#ifdef DEBUG - Log( LOG_DEBUG, "Moved already received data (%d bytes) to uncompression buffer.", My_Connections[Idx].zip.rdatalen ); -#endif + /* Hupsa! Soviel Platz haben wir aber gar nicht! */ + Log( LOG_ALERT, "Can't move read buffer: No space left in unzip buffer (need %d bytes)!", My_Connections[Idx].rdatalen ); + return FALSE; } + memcpy( My_Connections[Idx].zip.rbuf, My_Connections[Idx].rbuf, My_Connections[Idx].rdatalen ); + My_Connections[Idx].zip.rdatalen = My_Connections[Idx].rdatalen; + My_Connections[Idx].rdatalen = 0; +#ifdef DEBUG + Log( LOG_DEBUG, "Moved already received data (%d bytes) to uncompression buffer.", My_Connections[Idx].zip.rdatalen ); +#endif /* DEBUG */ } -#endif +#endif /* ZLIB */ } if( action ) result = TRUE; Index: src/testsuite/Makefile.am =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/testsuite/Makefile.am,v retrieving revision 1.9 retrieving revision 1.9.6.3 diff -u -r1.9 -r1.9.6.3 --- src/testsuite/Makefile.am 10 Nov 2002 14:28:06 -0000 1.9 +++ src/testsuite/Makefile.am 8 Sep 2004 09:45:53 -0000 1.9.6.3 @@ -9,7 +9,7 @@ # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. # -# $Id: Makefile.am,v 1.9 2002/11/10 14:28:06 alex Exp $ +# $Id: Makefile.am,v 1.9.6.3 2004/09/08 09:45:53 alex Exp $ # AUTOMAKE_OPTIONS = ../portab/ansi2knr @@ -17,12 +17,15 @@ INCLUDES = -I$(srcdir)/../portab EXTRA_DIST = \ - getpid.sh \ + README functions.inc getpid.sh \ start-server.sh stop-server.sh tests.sh stress-server.sh \ + test-loop.sh wait-tests.sh \ connect-test.e channel-test.e mode-test.e \ stress-A.e stress-B.e check-idle.e \ ngircd-test.conf +all: + clean-local: rm -rf logs tests *-test ngircd-test.log ngircd-test.motd \ T-ngircd procs.tmp Index: src/testsuite/check-idle.e =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/testsuite/check-idle.e,v retrieving revision 1.1 retrieving revision 1.1.8.1 diff -u -r1.1 -r1.1.8.1 --- src/testsuite/check-idle.e 9 Sep 2002 22:56:07 -0000 1.1 +++ src/testsuite/check-idle.e 4 Sep 2004 20:49:36 -0000 1.1.8.1 @@ -1,4 +1,4 @@ -# $Id: check-idle.e,v 1.1 2002/09/09 22:56:07 alex Exp $ +# $Id: check-idle.e,v 1.1.8.1 2004/09/04 20:49:36 alex Exp $ spawn telnet localhost 6789 expect { @@ -10,6 +10,7 @@ send "user idle . . :Idle-Test\r" expect { timeout { exit 1 } + "433 * IdleTest :Nickname already in use" { exit 99 } "376" } Index: src/testsuite/start-server.sh =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/testsuite/start-server.sh,v retrieving revision 1.11 retrieving revision 1.11.2.2 diff -u -r1.11 -r1.11.2.2 --- src/testsuite/start-server.sh 22 Aug 2003 11:31:18 -0000 1.11 +++ src/testsuite/start-server.sh 6 Sep 2004 22:07:26 -0000 1.11.2.2 @@ -1,10 +1,13 @@ #!/bin/sh # ngIRCd Test Suite -# $Id: start-server.sh,v 1.11 2003/08/22 11:31:18 alex Exp $ +# $Id: start-server.sh,v 1.11.2.2 2004/09/06 22:07:26 alex Exp $ [ -z "$srcdir" ] && srcdir=`dirname $0` -echo " starting server ..." +# read in functions +. ${srcdir}/functions.inc + +echo_n " starting server ..." # remove old logfiles rm -rf logs *.log @@ -13,14 +16,14 @@ # test-server, because we won't be able to kill it at the end of the test. ./getpid.sh sh > /dev/null 2>&1 if [ $? -ne 0 ]; then - echo " error: getpid.sh FAILED!" + echo " getpid.sh failed!" exit 1 fi # check if there is a test-server already running ./getpid.sh T-ngircd > /dev/null 2>&1 if [ $? -eq 0 ]; then - echo " error: test-server already running!" + echo " failure: test-server already running!" exit 1 fi @@ -28,11 +31,14 @@ echo "This is an ngIRCd Test Server" > ngircd-test.motd # starting up test-server ... -./T-ngircd -np -f ${srcdir}/ngircd-test.conf > ngircd-test.log 2>&1 & +./T-ngircd -np -f ${srcdir}/ngircd-test.conf $* > ngircd-test.log 2>&1 & sleep 1 # validate running test-server pid=`./getpid.sh T-ngircd` -[ -n "$pid" ] && kill -0 $pid > /dev/null 2>&1 || exit 1 +[ -n "$pid" ] && kill -0 $pid > /dev/null 2>&1; r=$? + +[ $r -eq 0 ] && echo " ok." || echo " failure!" +exit # -eof- Index: src/testsuite/stop-server.sh =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/testsuite/stop-server.sh,v retrieving revision 1.10 retrieving revision 1.10.2.3 diff -u -r1.10 -r1.10.2.3 --- src/testsuite/stop-server.sh 22 Aug 2003 11:31:18 -0000 1.10 +++ src/testsuite/stop-server.sh 6 Sep 2004 22:07:26 -0000 1.10.2.3 @@ -1,25 +1,32 @@ #!/bin/sh # ngIRCd Test Suite -# $Id: stop-server.sh,v 1.10 2003/08/22 11:31:18 alex Exp $ +# $Id: stop-server.sh,v 1.10.2.3 2004/09/06 22:07:26 alex Exp $ [ -z "$srcdir" ] && srcdir=`dirname $0` -echo " stopping server ..." +# read in functions +. ${srcdir}/functions.inc + +echo_n " stopping server ..." # stop test-server ... pid=`./getpid.sh T-ngircd` if [ -z "$pid" ]; then - echo " no running server found!?" + echo " failure: no running server found!?" exit 1 fi kill $pid > /dev/null 2>&1 || exit 1 # waiting ... for i in 1 2 3 4 5; do - kill -0 $pid > /dev/null 2>&1 || exit 0 + kill -0 $pid > /dev/null 2>&1; r=$? + if [ $r -ne 0 ]; then + echo " ok". + exit 0 + fi sleep 1 done -echo " server still running!?" +echo " failure: server still running!?" exit 1 # -eof- Index: src/testsuite/stress-server.sh =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/testsuite/stress-server.sh,v retrieving revision 1.8 retrieving revision 1.8.2.2 diff -u -r1.8 -r1.8.2.2 --- src/testsuite/stress-server.sh 22 Aug 2003 11:31:18 -0000 1.8 +++ src/testsuite/stress-server.sh 6 Sep 2004 22:07:26 -0000 1.8.2.2 @@ -1,15 +1,31 @@ #!/bin/sh +# # ngIRCd Test Suite -# $Id: stress-server.sh,v 1.8 2003/08/22 11:31:18 alex Exp $ +# Copyright (c)2002-2004 by Alexander Barton (alex@barton.de) +# +# 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. +# Please read the file COPYING, README and AUTHORS for more information. +# +# $Id: stress-server.sh,v 1.8.2.2 2004/09/06 22:07:26 alex Exp $ +# +# detect source directory [ -z "$srcdir" ] && srcdir=`dirname $0` +# parse command line [ "$1" -gt 0 ] 2> /dev/null && CLIENTS="$1" || CLIENTS=5 +[ "$2" -gt 0 ] 2> /dev/null && MAX="$2" || MAX=-1 +# get our name name=`basename $0` -test=`echo ${name} | cut -d '.' -f 1` + +# create directories mkdir -p logs tests +# test for required external tools type expect > /dev/null 2>&1 if [ $? -ne 0 ]; then echo " ${name}: \"expect\" not found."; exit 77 @@ -19,7 +35,13 @@ echo " ${name}: \"telnet\" not found."; exit 77 fi -echo " stressing server with $CLIENTS clients (be patient!) ..." +# hello world! :-) +echo " stressing server with $CLIENTS clients (be patient!):" + +# read in functions +. ${srcdir}/functions.inc + +# create scripts for expect(1) no=0 while [ ${no} -lt $CLIENTS ]; do cat ${srcdir}/stress-A.e > tests/${no}.e @@ -27,20 +49,31 @@ cat ${srcdir}/stress-B.e >> tests/${no}.e no=`expr ${no} + 1` done + no=0 while [ ${no} -lt $CLIENTS ]; do expect tests/${no}.e > logs/stress-${no}.log 2> /dev/null & + no=`expr ${no} + 1` + echo " started client $no/$CLIENTS." + + [ $MAX -gt 0 ] && $srcdir/wait-tests.sh $MAX done +echo_n " waiting for clients to complete: ." touch logs/check-idle.log while true; do - expect ${srcdir}/check-idle.e >> logs/check-idle.log - res=$? - [ $res -eq 0 ] && exit 0 - [ $res -eq 1 ] && exit 1 - sleep 1 + expect ${srcdir}/check-idle.e >> logs/check-idle.log; res=$? echo "====================" >> logs/check-idle.log + [ $res -ne 99 ] && break + + # there are still clients connected. Wait ... + sleep 3 + echo_n "." done +[ $res -eq 0 ] && echo " ok." || echo " failure!" + +exit $res + # -eof- Index: src/testsuite/tests.sh =================================================================== RCS file: /usr/local/CVS/ngircd/ngircd/src/testsuite/tests.sh,v retrieving revision 1.4 retrieving revision 1.4.2.2 diff -u -r1.4 -r1.4.2.2 --- src/testsuite/tests.sh 22 Aug 2003 11:31:18 -0000 1.4 +++ src/testsuite/tests.sh 6 Sep 2004 22:07:26 -0000 1.4.2.2 @@ -1,11 +1,22 @@ #!/bin/sh # ngIRCd Test Suite -# $Id: tests.sh,v 1.4 2003/08/22 11:31:18 alex Exp $ +# $Id: tests.sh,v 1.4.2.2 2004/09/06 22:07:26 alex Exp $ + +# detect source directory +[ -z "$srcdir" ] && srcdir=`dirname $0` name=`basename $0` test=`echo ${name} | cut -d '.' -f 1` mkdir -p logs +if [ ! -r "$test" ]; then + echo " ${name}: test \"$test\" not found!"; exit 77 + exit 1 +fi + +# read in functions +. ${srcdir}/functions.inc + type expect > /dev/null 2>&1 if [ $? -ne 0 ]; then echo " ${name}: \"expect\" not found."; exit 77 @@ -15,7 +26,10 @@ echo " ${name}: \"telnet\" not found."; exit 77 fi -echo " doing ${test} ..." -expect ${srcdir}/${test}.e > logs/${test}.log +echo_n " running ${test} ..." +expect ${srcdir}/${test}.e > logs/${test}.log 2>&1; r=$? +[ $r -eq 0 ] && echo " ok." || echo " failure!" + +exit $r # -eof-