--- ngircd-0.9.2.orig/config.guess +++ ngircd-0.9.2/config.guess @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. -timestamp='2005-08-03' +timestamp='2006-02-23' # 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 @@ -106,7 +106,7 @@ trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; @@ -206,6 +206,9 @@ *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} exit ;; @@ -764,7 +767,12 @@ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin @@ -772,6 +780,9 @@ i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; + i*:MSYS_NT-*:*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 @@ -779,8 +790,11 @@ i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' + x86:Interix*:[345]*) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T:Interix*:[345]*) + echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks @@ -851,7 +865,11 @@ #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) @@ -870,7 +888,11 @@ #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) @@ -919,6 +941,9 @@ sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; @@ -964,7 +989,7 @@ LIBC=gnulibc1 # endif #else - #ifdef __INTEL_COMPILER + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) LIBC=gnu #else LIBC=gnuaout @@ -974,7 +999,11 @@ LIBC=dietlibc #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^LIBC/{ + s: ::g + p + }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit @@ -1185,7 +1214,6 @@ *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in - *86) UNAME_PROCESSOR=i686 ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} @@ -1264,6 +1292,9 @@ i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 --- ngircd-0.9.2.orig/config.sub +++ ngircd-0.9.2/config.sub @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. -timestamp='2005-07-08' +timestamp='2006-02-23' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -119,8 +119,9 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -171,6 +172,10 @@ -hiux*) os=-hiuxwe2 ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -187,6 +192,10 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -239,7 +248,7 @@ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ + | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -257,8 +266,9 @@ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ - | ms1 \ + | mt \ | msp430 \ + | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ @@ -286,6 +296,9 @@ ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; + ms1) + basic_machine=mt-unknown + ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and @@ -336,8 +349,9 @@ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ - | ms1-* \ + | mt-* \ | msp430-* \ + | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ @@ -696,6 +710,9 @@ basic_machine=i386-pc os=-msdos ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; mvs) basic_machine=i370-ibm os=-mvs @@ -803,6 +820,12 @@ pc532 | pc532-*) basic_machine=ns32k-pc532 ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; @@ -859,6 +882,10 @@ basic_machine=i586-unknown os=-pw32 ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -1174,21 +1201,23 @@ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ | -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* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku*) + | -skyos* | -haiku* | -rdos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) --- ngircd-0.9.2.orig/debian/changelog +++ ngircd-0.9.2/debian/changelog @@ -0,0 +1,41 @@ +ngircd (0.9.2-4) unstable; urgency=low + + * Updated to policy 3.7.2 + * Removed patch 04-nicklength to be RFC-compliant (Closes: #353876) + + -- Mario Iseli Sun, 07 May 2006 15:21:34 +0200 + +ngircd (0.9.2-3) unstable; urgency=low + + * New patch which allows longer nicknames, thanks to Benjamin A'Lee + for the patch. (Closes: #355342) + * Fixed the typo in the example config. (Closes: #353876) + + -- Mario Iseli Sun, 05 Mar 2006 23:22:34 +0100 + +ngircd (0.9.2-2) unstable; urgency=low + + * Wrote 03-ping.dpatch (Closes: #343200) + * Added a "if" in debian/ngircd.postinst + + -- Mario Iseli Wed, 14 Dec 2005 23:02:34 +0100 + +ngircd (0.9.2-1) unstable; urgency=low + + * New upstream version + * Changed the init and postinst script + * reload in init script is now supported + * fixed mistake in configfile + * added original config as example + * Removed patches/01-manuals and added patches/02-manuals + + -- Mario Iseli Wed, 16 Nov 2005 17:50:17 +0100 + +ngircd (0.8.2-1) unstable; urgency=low + + * Initial release Closes: #295970 + * New debian-optimized config + * Introduced dpatch and wrote a patch for the manuals (01-manuals) + + -- Mario Iseli Tue, 1 Nov 2005 20:08:53 +0100 + --- ngircd-0.9.2.orig/debian/ngircd.conf +++ ngircd-0.9.2/debian/ngircd.conf @@ -0,0 +1,142 @@ +# +# This is only a sample configuration for Debian +# written by Mario Iseli +# +# The original can be found at: +# /usr/share/ngircd/examples/sample-ngircd.conf +# + +[Global] + + # The [Global] section of this file is used to define the main + # configuration of the server, like the server name and the ports + # on which the server should be listening. + + # Server name in the IRC network, must contain at least one dot + # (".") and be unique in the IRC network. Required! + Name = irc.debian.org + + # Info text of the server. This will be shown by WHOIS and + # LINKS requests for example. + Info = Yet another IRC Server running on Debian GNU/Linux + + # Global password for all users needed to connect to the server + ;Password = wealllikedebian + + # Information about the server and the administrator, used by the + # ADMIN command. Not required by server but by RFC! + AdminInfo1 = Debian User + AdminInfo2 = Debian City + AdminEMail = root@localhost + + # Ports on which the server should listen. There may be more than + # one port, separated with ",". (Default: 6667) + Ports = 6667, 6668, 6669 + + # IP address on which the server should listen. (Default: empty, + # so the server listens on all IP addresses of the system) + ;Listen = 1.2.3.4 + + # Text file with the "message of the day" (MOTD). This message will + # be shown to all users connecting to the server: + MotdFile = /etc/ngircd/ngircd.motd + + # A simple Phrase (<256 chars) if you don't want to use a motd file. + # If it is set no MotdFile will be read at all. + ;MotdPhrase = "Hello. This is the Debian default MOTD sentence" + + # Do NOT change this on Debian! It runs with the default user 'irc' + ;ServerUID = 65534 + ;ServerGID = 65534 + PidFile /var/run/ngircd/ngircd.pid + + # After seconds of inactivity the server will send a + # PING to the peer to test whether it is alive or not. + PingTimeout = 120 + + # If a client fails to answer a PING with a PONG within + # seconds, it will be disconnected by the server. + PongTimeout = 20 + + # The server tries every seconds to establish a link + # to not yet (or no longer) connected servers. + ConnectRetry = 60 + + # Should IRC Operators be allowed to use the MODE command even if + # they are not(!) channel-operators? + OperCanUseMode = yes + + # Maximum number of simultaneous connection the server is allowed + # to accept (<=0: unlimited): + MaxConnections = 500 + + # Maximum number of simultaneous connections from a single IP address + # the server will accept (<=0: unlimited): + MaxConnectionsIP = 10 + + # Maximum number of channels a user can be member of (<=0: no limit): + MaxJoins = 10 + +[Operator] + # [Operator] sections are used to define IRC Operators. There may be + # more than one [Operator] block, one for each local operator. + + # ID of the operator (may be different of the nick name) + ;Name = TheOper + + # Password of the IRC operator + ;Password = ThePwd + +[Server] + # Other servers are configured in [Server] sections. If you + # configure a port for the connection, then this ngircd tries to + # connect to to the other server on the given port; if not it waits + # for the other server to connect. + # There may be more than one server block. + # + # Server Groups: + # The ngIRCd allows "server groups": You can assign an "ID" to every + # server with which you want this ngIRCd to link. If a server of a + # group won't answer, the ngIRCd tries to connect to the next server + # in the given group. But the ngircd never tries to connect to two + # servers with the same group ID. + + # IRC name of the server + ;Name = irc2.debian.org + + # Internet host name of the peer + ;Host = connect-to-host.the.net + + # Port of the server to which the ngIRCd should connect. If you + # assign no port the ngIRCd waits for incoming connections. + ;Port = 6666 + + # Own password for the connection. This password has to be configured + # as "PeerPassword" on the other server. + ;MyPassword = MySecret + + # Foreign password for this connection. This password has to be + # configured as "MyPassword" on the other server. + ;PeerPassword = PeerSecret + + # Group of this server (optional) + ;Group = 123 + +[Channel] + # Pre-defined channels can be configured in [Channel] sections. + # Such channels are created by the server when starting up and even + # persist when there are no more members left. + # Persistent channels are marked with the mode 'P', which can be set + # and unset by IRC operators like other modes on the fly. + # There may be more than one [Channel] block. + + # Name of the channel + Name = #ngircd + + # Topic for this channel + ;Topic = Our ngircd testing channel + + # Initial channel modes + Modes = tn + +# -eof- --- ngircd-0.9.2.orig/debian/copyright +++ ngircd-0.9.2/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Mario Iseli on +Tue, 1 Nov 2005 20:08:53 +0100. + +It was downloaded from + +Copyright Holder(s): Alexander Barton + Goetz Hoffart + Ilja Osthoff + Benjamin Pineau + Sean Reifschneider + Florian Westphal + +License: + + Copyright (C) 2001-2005 Alexander Barton + + 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; either version 2 of the License, or + (at your option) any later version. + + 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- ngircd-0.9.2.orig/debian/control +++ ngircd-0.9.2/debian/control @@ -0,0 +1,18 @@ +Source: ngircd +Section: net +Priority: optional +Maintainer: Mario Iseli +Build-Depends: debhelper (>= 4.0.0), autotools-dev, dpatch +Standards-Version: 3.7.2 + +Package: ngircd +Architecture: any +Depends: ${shlibs:Depends} +Provides: ircd +Conflicts: ircd-ircu, ircd-irc2, dancer-ircd, oftc-hybrid, ircd, ircd-hybrid, rageircd +Description: Next generation IRC Server + ngircd is a IRC Daemon for small or private networks. It does not contain all + the functions like the professional ones, e.g services. It is written from + scratch and is not based upon the original IRCd like many others. + . + Homepage: http://ngircd.barton.de --- ngircd-0.9.2.orig/debian/rules +++ ngircd-0.9.2/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +include /usr/share/dpatch/dpatch.make + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +config.status: patch configure + dh_testdir + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc/ngircd --without-syslog + + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + -$(MAKE) distclean +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 + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/ngircd + rm -rf $(CURDIR)/debian/ngircd/etc + install -m 640 -D $(CURDIR)/debian/ngircd.conf $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.conf + install -m 640 -D $(CURDIR)/debian/ngircd.motd $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.motd + rm -rf $(CURDIR)/debian/ngircd/usr/share + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installexamples doc/sample-ngircd.conf + dh_installdocs + dh_installinit + dh_installman man/ngircd.8 man/ngircd.conf.5 + dh_compress + dh_strip + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- ngircd-0.9.2.orig/debian/docs +++ ngircd-0.9.2/debian/docs @@ -0,0 +1,2 @@ +AUTHORS +README --- ngircd-0.9.2.orig/debian/ngircd.postinst +++ ngircd-0.9.2/debian/ngircd.postinst @@ -0,0 +1,33 @@ +#! /bin/sh + +# ngircd Start/stop the Next Generation IRC Server +# Version: ngircd 0.9.2 14-Dec-2005 +# Autor: Mario Iseli + +set -e + +case "$1" in + + configure) + if [ ! -d "/var/run/ngircd" ]; then + mkdir /var/run/ngircd + chown irc:irc /var/run/ngircd + chmod 770 /var/run/ngircd + fi + chown -R irc:irc /etc/ngircd + chmod 770 /etc/ngircd + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "ERROR: Postinst called with unknown argument!" + exit 0 + ;; + +esac + +#DEBHELPER# + +exit 0 --- ngircd-0.9.2.orig/debian/ngircd.motd +++ ngircd-0.9.2/debian/ngircd.motd @@ -0,0 +1,5 @@ +************************************************** +* H E L L O * +* Welcome on our new IRC server, running on: * +* Debian GNU/Linux (www.debian.org) * +************************************************** --- ngircd-0.9.2.orig/debian/ngircd.init +++ ngircd-0.9.2/debian/ngircd.init @@ -0,0 +1,58 @@ +#! /bin/sh + +# ngircd Start/stop the Next Generation IRC Server +# Version: ngircd 0.9.2 16-Nov-2005 +# Autor: Mario Iseli + + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +test -f /usr/sbin/ngircd || exit 0 + +set -e + +case "$1" in + + start) + echo -n "Starting Next generation IRC server: " + start-stop-daemon --start --chuid irc:irc \ + --make-pidfile --background \ + --pidfile /var/run/ngircd/ngircd.pid \ + --exec /usr/sbin/ngircd -- -n + echo "ngircd." + ;; + + + stop) + echo -n "Stopping Next generation IRC server: " + start-stop-daemon --stop --quiet \ + --pidfile /var/run/ngircd/ngircd.pid \ + --exec /usr/sbin/ngircd + rm -f /var/run/ngircd/ngircd.pid + echo "ngircd." + ;; + + reload|force-reload) + echo -n "Reloading Next generation IRC server configuration: " + start-stop-daemon --stop --quiet --oknodo --signal 1 \ + --pidfile /var/run/ngircd/ngircd.pid \ + --exec /usr/sbin/ngircd + echo "ngircd." + ;; + + restart) + echo -n "Restarting Next generation IRC server: " + $0 stop + sleep 1 + $0 start + echo "ngircd." + ;; + + *) + echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2 + exit 1 + ;; + +esac + +exit 0 --- ngircd-0.9.2.orig/debian/patches/04-nicklength.dpatch +++ ngircd-0.9.2/debian/patches/04-nicklength.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 99-unnamed.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ + +diff --context -r ngircd-0.9.2/src/ngircd/defines.h ngircd-0.9.2-new/src/ngircd/defines.h +*** ngircd-0.9.2/src/ngircd/defines.h 2005-07-05 23:58:25.000000000 +0100 +--- ngircd-0.9.2-new/src/ngircd/defines.h 2006-03-05 00:45:35.000000000 +0000 +*************** +*** 41,49 **** + #define CONNECTION_POOL 100 /* size of default connection pool */ + + #define CLIENT_ID_LEN 64 /* max. length of an IRC ID; see RFC 2812, 1.1 and 1.2.1 */ +! #define CLIENT_NICK_LEN 10 /* max. nick length; see. RFC 2812, 1.2.1 */ + #define CLIENT_PASS_LEN 21 /* max. password length */ +! #define CLIENT_USER_LEN 10 /* Max. length of user name ("login") + see RFC 2812, section 1.2.1 */ + #define CLIENT_NAME_LEN 32 /* max. length of "real names" */ + #define CLIENT_HOST_LEN 64 /* max. host name length */ +--- 41,49 ---- + #define CONNECTION_POOL 100 /* size of default connection pool */ + + #define CLIENT_ID_LEN 64 /* max. length of an IRC ID; see RFC 2812, 1.1 and 1.2.1 */ +! #define CLIENT_NICK_LEN 16 /* max. nick length; see. RFC 2812, 1.2.1 */ + #define CLIENT_PASS_LEN 21 /* max. password length */ +! #define CLIENT_USER_LEN 16 /* Max. length of user name ("login") + see RFC 2812, section 1.2.1 */ + #define CLIENT_NAME_LEN 32 /* max. length of "real names" */ + #define CLIENT_HOST_LEN 64 /* max. host name length */ --- ngircd-0.9.2.orig/debian/patches/01-manuals.dpatch +++ ngircd-0.9.2/debian/patches/01-manuals.dpatch @@ -0,0 +1,36 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01-manuals.dpatch by Mario Iseli +## +## DP: Fixes the paths in the manuals. + +@DPATCH@ + +diff -Naur ngircd-0.8.2-orig/man/ngircd.8 ngircd-0.8.2/man/ngircd.8 +--- ngircd-0.8.2-orig/man/ngircd.8 2004-04-05 12:59:10.000000000 +0200 ++++ ngircd-0.8.2/man/ngircd.8 2005-11-07 23:14:08.000000000 +0100 +@@ -58,11 +58,11 @@ + \fB\-\-help\fR + Display a brief help text and exit. + .SH FILES +-.I /usr/local/etc/ngircd.conf ++.I /etc/ngircd/ngircd.conf + .RS + The system wide default configuration file. + .RE +-.I /usr/local/etc/ngircd.motd ++.I /etc/ngircd/ngircd.motd + .RS + Default "message of the day" (MOTD). + .RE +diff -Naur ngircd-0.8.2-orig/man/ngircd.conf.5 ngircd-0.8.2/man/ngircd.conf.5 +--- ngircd-0.8.2-orig/man/ngircd.conf.5 2004-05-07 13:24:18.000000000 +0200 ++++ ngircd-0.8.2/man/ngircd.conf.5 2005-11-07 23:14:27.000000000 +0100 +@@ -5,7 +5,7 @@ + .SH NAME + ngircd.conf \- configuration file of ngIRCd + .SH SYNOPSIS +-.B /usr/local/etc/ngircd.conf ++.B /etc/ngircd/ngircd.conf + .SH DESCRIPTION + .BR ngircd.conf + is the configuration file for --- ngircd-0.9.2.orig/debian/patches/03-ping.dpatch +++ ngircd-0.9.2/debian/patches/03-ping.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03-unnamed.dpatch by Mario Iseli +## +## DP: Fixes the problem with the ping answer. + +@DPATCH@ + +diff -Naur ngircd-0.9.2.orig/src/ngircd/irc-login.c ngircd-0.9.2/src/ngircd/irc-login.c +--- ngircd-0.9.2.orig/src/ngircd/irc-login.c 2005-06-04 14:32:09.000000000 +0200 ++++ ngircd-0.9.2/src/ngircd/irc-login.c 2005-12-14 22:49:28.000000000 +0100 +@@ -456,7 +456,7 @@ + } + + Log( LOG_DEBUG, "Connection %d: got PING, sending PONG ...", Client_Conn( Client )); +- return IRC_WriteStrClient( Client, "PONG %s :%s", Client_ID( Client_ThisServer( )), Client_ID( Client )); ++ return IRC_WriteStrClient(Client, "PONG %s :%s", Client_ID( Client_ThisServer( )), Req->argv[0]); + } /* IRC_PING */ --- ngircd-0.9.2.orig/debian/patches/00list +++ ngircd-0.9.2/debian/patches/00list @@ -0,0 +1,2 @@ +02-manuals +03-ping --- ngircd-0.9.2.orig/debian/patches/02-manuals.dpatch +++ ngircd-0.9.2/debian/patches/02-manuals.dpatch @@ -0,0 +1,45 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02-manuals.dpatch by Mario Iseli +## +## DP: Fixes the paths in the manuals. + +@DPATCH@ + +diff -Naur ngircd-0.9.2-orig/man/ngircd.8 ngircd-0.9.2/man/ngircd.8 +--- ngircd-0.9.2-orig/man/ngircd.8 2005-06-04 15:39:20.000000000 +0200 ++++ ngircd-0.9.2/man/ngircd.8 2005-11-15 23:39:41.000000000 +0100 +@@ -55,11 +55,11 @@ + \fB\-\-help\fR + Display a brief help text and exit. + .SH FILES +-.I /usr/local/etc/ngircd.conf ++.I /etc/ngircd/ngircd.conf + .RS + The system wide default configuration file. + .RE +-.I /usr/local/etc/ngircd.motd ++.I /etc/ngircd/ngircd.motd + .RS + Default "message of the day" (MOTD). + .RE +@@ -74,7 +74,6 @@ + http://arthur.ath.cx/~alex/ngircd/ + .UE + .SH "SEE ALSO" +-.BR ngircd.conf (5), +-.BR ircd (8) ++.BR ngircd.conf (5) + .\" + .\" -eof- +diff -Naur ngircd-0.9.2-orig/man/ngircd.conf.5 ngircd-0.9.2/man/ngircd.conf.5 +--- ngircd-0.9.2-orig/man/ngircd.conf.5 2005-06-04 15:39:20.000000000 +0200 ++++ ngircd-0.9.2/man/ngircd.conf.5 2005-11-15 23:40:41.000000000 +0100 +@@ -5,7 +5,7 @@ + .SH NAME + ngircd.conf \- configuration file of ngIRCd + .SH SYNOPSIS +-.B /usr/local/etc/ngircd.conf ++.B /etc/ngircd/ngircd.conf + .SH DESCRIPTION + .BR ngircd.conf + is the configuration file for --- ngircd-0.9.2.orig/debian/compat +++ ngircd-0.9.2/debian/compat @@ -0,0 +1 @@ +4 --- ngircd-0.9.2.orig/debian/ngircd.postrm +++ ngircd-0.9.2/debian/ngircd.postrm @@ -0,0 +1,19 @@ +#! /bin/sh + +# ngircd Start/stop the Next Generation IRC Server +# Version: ngircd 0.9.2 16-Nov-2005 +# Autor: Mario Iseli + +set -e + +case "$1" in + purge) + rm -rf /etc/ngircd + rm -rf /var/run/ngircd + ;; + +esac + +#DEBHELPER# + +exit 0