--- oftc-hybrid-1.5.5.dfsg.orig/debian/compat +++ oftc-hybrid-1.5.5.dfsg/debian/compat @@ -0,0 +1 @@ +4 --- oftc-hybrid-1.5.5.dfsg.orig/debian/control +++ oftc-hybrid-1.5.5.dfsg/debian/control @@ -0,0 +1,34 @@ +Source: oftc-hybrid +Section: net +Priority: extra +Maintainer: Christoph Berg +Build-Depends: debhelper (>> 4), quilt (>= 0.40-1), bison, flex, zlib1g-dev, libssl-dev +Standards-Version: 3.7.2 + +Package: oftc-hybrid +Architecture: any +Depends: ${shlibs:Depends}, adduser +Provides: ircd +Suggests: oftc-hybrid-doc, oftc-hybrid-respond +Conflicts: ircd-hybrid, dancer-ircd +Description: Hybrid 7 IRC daemon - OFTC branch + This is the IRC server designed for use on OFTC (irc.oftc.net), based on the + Hybrid 7 ircd. + +Package: oftc-hybrid-doc +Section: doc +Architecture: all +Depends: oftc-hybrid +Description: Documentation for oftc-hybrid + This is the IRC server designed for use on OFTC (irc.oftc.net), based on the + Hybrid 7 ircd. + . + This package contains the documentation. + +Package: oftc-hybrid-respond +Architecture: any +Depends: ${shlibs:Depends} +Description: respond binary for oftc-hybrid challenge oper authentication + The oftc-hybrid IRC server offers challenge-response IRC operator + authentication using RSA keys. This package provides the client-side + "respond" binary. --- oftc-hybrid-1.5.5.dfsg.orig/debian/rules +++ oftc-hybrid-1.5.5.dfsg/debian/rules @@ -0,0 +1,86 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make +D=$(CURDIR)/debian/oftc-hybrid + +configure: configure-stamp +configure-stamp: $(QUILT_STAMPFN) + dh_testdir + ./configure --prefix=/usr --bindir=/usr/sbin --mandir=/usr/share/man \ + --with-nicklen=30 --with-topiclen=390 + cd tools/rsa_respond && ./configure + touch $@ + +build: build-indep build-arch + +build-indep: + +build-arch: build-stamp +build-stamp: configure-stamp + $(MAKE) + $(MAKE) -C tools/rsa_respond + touch $@ + +install: build-stamp + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$D + $(MAKE) -C messages install DESTDIR=$D + mv $D/usr/sbin/encspeed $D/usr/sbin/mkpasswd $D/usr/sbin/servlink $D/usr/lib/oftc-hybrid + rm -rf $D/usr/etc + cp debian/ircd.conf $D/etc/oftc-hybrid/ircd.conf + echo "Welcome to this oftc-hybrid server" > $D/etc/oftc-hybrid/ircd.motd + dh_installexamples -a etc/*conf* + mv $D/usr/logs $D/var/log/oftc-hybrid + mv $D/usr/modules $D/usr/lib/oftc-hybrid + chmod -x $D/usr/lib/oftc-hybrid/modules/*.so + dh_link -a + mv $D/usr/help $D/usr/messages $D/usr/share/oftc-hybrid + # docs + mkdir -p $D-doc/usr/share/doc/oftc-hybrid/technical + install -m644 doc/*.txt doc/server-version-info $D-doc/usr/share/doc/oftc-hybrid + install -m644 doc/technical/* $D-doc/usr/share/doc/oftc-hybrid/technical + ln -s oftc-hybrid $D-doc/usr/share/doc/oftc-hybrid-doc + # respond + install -d $D-respond/usr/bin \ + $D-respond/usr/share/man/man1 \ + $D-respond/usr/share/doc/oftc-hybrid-respond + install tools/rsa_respond/respond $D-respond/usr/bin + install -m644 tools/rsa_respond/respond.1 $D-respond/usr/share/man/man1 + install -m644 doc/challenge.txt $D-respond/usr/share/doc/oftc-hybrid-respond + +binary: binary-indep binary-arch + +binary-indep: install + # copyright and changelog are shipped in oftc-hybrid + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: install + dh_installchangelogs -a + dh_installdocs -a BUGS Hybrid-team RELNOTES TODO + dh_strip -a + dh_installinit -a + dh_installlogrotate -a + dh_compress -a + dh_fixperms -a + dh_shlibdeps -a + dh_installdeb -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +clean: unpatch + dh_testdir + -$(MAKE) distclean + -$(MAKE) -C tools/rsa_respond distclean + dh_clean + rm -f src/y.tab.? src/lex.yy.c src/tags configure-stamp build-stamp + +.PHONY: build build-indep build-arch clean binary binary-indep binary-arch install configure patch unpatch --- oftc-hybrid-1.5.5.dfsg.orig/debian/changelog +++ oftc-hybrid-1.5.5.dfsg/debian/changelog @@ -0,0 +1,114 @@ +oftc-hybrid (1.5.5.dfsg-1) unstable; urgency=low + + * New upstream version. + + -- Christoph Berg Thu, 22 Feb 2007 11:19:54 +0100 + +oftc-hybrid (1.5.3.dfsg-1) unstable; urgency=low + + * New upstream version. + + -- Christoph Berg Wed, 14 Feb 2007 20:52:29 +0100 + +oftc-hybrid (1.5.0.dfsg-3) unstable; urgency=low + + * Move respond to separate binary oftc-hybrid-respond. + + -- Christoph Berg Sat, 20 Jan 2007 16:56:30 +0100 + +oftc-hybrid (1.5.0.dfsg-2) unstable; urgency=low + + * src/s_user.c: fix FTBFS on alpha (patch by cryogen). + + -- Christoph Berg Mon, 8 Jan 2007 00:42:18 +0100 + +oftc-hybrid (1.5.0.dfsg-1) unstable; urgency=low + + * New maintainer, reupload after removal (#347874). + * Repackaged from scratch. + * Rebuilt tarball to remove non-free RFC documents. + * Add openssl linking exception by permission of Stuart Walsh (cryogen), + member of the Hybrid team owning most of the GPL'ed code. + + -- Christoph Berg Fri, 5 Jan 2007 13:56:15 +0100 + +oftc-hybrid (1.1.1-4) unstable; urgency=low + + * conflicts with ircd-hybrid and dancer-ircd + (Closes: #197415, #197415) + + -- Martin Wuertele Sun, 22 Jun 2003 18:23:08 +0200 + +oftc-hybrid (1.1.1-3) unstable; urgency=low + + * changed all base64_values to signed char + (Closes: #176268) + + -- Martin Wuertele Sun, 16 Mar 2003 20:17:22 +0100 + +oftc-hybrid (1.1.1-2) unstable; urgency=low + + * fixed init.d since ircd no longer seems to work with -pidfile + + -- Martin Wuertele Fri, 15 Nov 2002 00:24:34 +0100 + +oftc-hybrid (1.1.1-1) unstable; urgency=low + + * fixed a type in src/ircd_parser.y causing build failures on non i386 + arches + * fixed (build-)depends (byacc exits with "f - maximum table size + exceeded") + + -- Martin Wuertele Tue, 12 Nov 2002 22:05:09 +0100 + +oftc-hybrid (1.1.1-0) unstable; urgency=low + + * new upstream release + + -- Martin Wuertele Tue, 12 Nov 2002 21:57:48 +0100 + +oftc-hybrid (1.1.0-6) unstable; urgency=low + + * corrected section for oftc-hybrid-doc + + -- Martin Wuertele Sat, 9 Nov 2002 15:29:12 +0100 + +oftc-hybrid (1.1.0-5) unstable; urgency=low + + * More descriptive message in /etc/init.d/oftc-hybrid explaining why + the ircd won't start unless the configuration has been adopted. + (Closes: #168405) + * Corrected user when calling /etc/init.d/oftc-hybrid start to user irc + avoiding adduser/deluser handling in package + (Closes: #168408) + + -- Martin Wuertele Sat, 9 Nov 2002 14:47:34 +0100 + +oftc-hybrid (1.1.0-4) unstable; urgency=low + + * added provides ircd + + -- Martin Wuertele Wed, 6 Nov 2002 22:25:19 +0100 + +oftc-hybrid (1.1.0-3) unstable; urgency=low + + * removed OpenSSL support (legal issue) + + -- Martin Wuertele Tue, 5 Nov 2002 00:11:43 +0100 + +oftc-hybrid (1.1.0-2) unstable; urgency=low + + * replaced orignial hard links with symlinks + * changed package name to fit upstream name since there is no common Debian + ircd naming scheme + * manual install due to broken make install + + -- Martin Wuertele Mon, 28 Oct 2002 13:37:19 +0100 + +oftc-hybrid (1.1.0-1) unstable; urgency=low + + * Initial Release. + (Closes: #161775) + + -- Martin Wuertele Thu, 3 Oct 2002 21:54:25 +0200 + --- oftc-hybrid-1.5.5.dfsg.orig/debian/init.d +++ oftc-hybrid-1.5.5.dfsg/debian/init.d @@ -0,0 +1,64 @@ +#!/bin/sh +set -e + +### BEGIN INIT INFO +# Provides: ircd +# Required-Start: $local_fs $network $remote_fs +# Required-Stop: $local_fs $network $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: start and stop oftc-hybrid ircd +# Description: This is the IRC server designed for use on OFTC (irc.oftc.net), +# based on the Hybrid 7 ircd. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/ircd +NAME=ircd +DESC="oftc-hybrid ircd" +PIDFILE="/var/run/ircd.pid" +ARGS="--quiet --chuid irc:irc --pidfile $PIDFILE --exec $DAEMON" + +test -x $DAEMON || exit 0 + +touch_files () { + LOGS=`perl -lne 'print $1 if /^\s*f\w+_\w+log\s*=\s*"(.*)"/' < /etc/oftc-hybrid/ircd.conf` + for l in /var/log/oftc-hybrid/ircd.log $LOGS $PIDFILE ; do + if [ ! -e "$l" ] ; then + touch $l + chown irc.irc $l + fi + done +} + +case "$1" in + start) + echo -n "Starting $DESC: " + touch_files + start-stop-daemon --start $ARGS + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --oknodo $ARGS + echo "$NAME." + ;; + reload) + echo "Reloading $DESC configuration files." + start-stop-daemon --stop --signal 1 $ARGS + ;; + force-reload) + echo "Reloading $DESC configuration files." + start-stop-daemon --stop --signal 1 $ARGS || $0 restart + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- oftc-hybrid-1.5.5.dfsg.orig/debian/patches/series +++ oftc-hybrid-1.5.5.dfsg/debian/patches/series @@ -0,0 +1,3 @@ +destdir +defaults +respond-manpage --- oftc-hybrid-1.5.5.dfsg.orig/debian/patches/destdir +++ oftc-hybrid-1.5.5.dfsg/debian/patches/destdir @@ -0,0 +1,143 @@ +Index: oftc-hybrid-1.5.0/contrib/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/contrib/Makefile.in 2006-12-29 17:18:35.152787424 +0100 ++++ oftc-hybrid-1.5.0/contrib/Makefile.in 2006-12-29 17:18:48.678731168 +0100 +@@ -17,7 +17,7 @@ MKDEP = @MKDEP@ + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ + +-prefix = $(DESTDIR)@prefix@ ++prefix = @prefix@ + datarootdir = $(DESTDIR)@datarootdir@ + + AUTOMODULEDIR = ${prefix}/modules +Index: oftc-hybrid-1.5.0/doc/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/doc/Makefile.in 2006-12-29 17:16:19.151462768 +0100 ++++ oftc-hybrid-1.5.0/doc/Makefile.in 2006-12-29 17:16:27.508192352 +0100 +@@ -2,7 +2,7 @@ + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ + RM = @RM@ +-prefix = $(DESTDIR)@prefix@ ++prefix = @prefix@ + datarootdir = $(DESTDIR)@datarootdir@ + mandir = $(DESTDIR)@mandir@ + +Index: oftc-hybrid-1.5.0/etc/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/etc/Makefile.in 2006-12-29 17:10:58.862154144 +0100 ++++ oftc-hybrid-1.5.0/etc/Makefile.in 2006-12-29 17:26:35.337788208 +0100 +@@ -9,9 +9,9 @@ TEST = @TEST@ + # no whitespace here, test will mess up + CLOBBER=@CLOBBER@ + +-prefix = $(DESTDIR)@prefix@ ++prefix = @prefix@ + sysconfdir = $(DESTDIR)@sysconfdir@ +-exec_prefix = $(DESTDIR)@exec_prefix@ ++exec_prefix = @exec_prefix@ + datarootdir = $(DESTDIR)@datarootdir@ + + DISTFILES = @EXAMPLE_CONF@ +Index: oftc-hybrid-1.5.0/help/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/help/Makefile.in 2006-12-29 16:28:58.846254792 +0100 ++++ oftc-hybrid-1.5.0/help/Makefile.in 2006-12-29 20:23:24.088013032 +0100 +@@ -22,27 +22,27 @@ depend: + + install: + @echo installing help files... +- -@if test ! -d $(prefix)/help; then \ +- echo "mkdir $(prefix)/help"; \ +- mkdir $(prefix)/help; \ +- echo "mkdir $(prefix)/help/users"; \ +- mkdir $(prefix)/help/users; \ +- echo "mkdir $(prefix)/help/opers"; \ +- mkdir $(prefix)/help/opers; \ ++ -@if test ! -d $(DESTDIR)$(prefix)/help; then \ ++ echo "mkdir $(DESTDIR)$(prefix)/help"; \ ++ mkdir $(DESTDIR)$(prefix)/help; \ ++ echo "mkdir $(DESTDIR)$(uhelpdir)"; \ ++ mkdir $(DESTDIR)$(uhelpdir); \ ++ echo "mkdir $(DESTDIR)$(ohelpdir)"; \ ++ mkdir $(DESTDIR)$(ohelpdir); \ + fi + @for help in opers/*; do \ + if [ -f $$help ]; then \ +- ${INSTALL_DATA} $$help $(ohelpdir); \ ++ ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \ + fi \ + done + @for help in users/*; do \ + if [ -f $$help ]; then \ +- $(INSTALL_DATA) $$help $(uhelpdir); \ ++ $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \ + fi \ + done + @for link in $(SYMLINKS); do \ +- rm -f $(uhelpdir)/$$link; \ +- ln -s $(ohelpdir)/$$link $(uhelpdir); \ ++ rm -f $(DESTDIR)$(uhelpdir)/$$link; \ ++ ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \ + done + + distclean: +Index: oftc-hybrid-1.5.0/modules/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/modules/Makefile.in 2006-12-29 17:18:06.596128696 +0100 ++++ oftc-hybrid-1.5.0/modules/Makefile.in 2006-12-29 17:20:30.145305904 +0100 +@@ -21,10 +21,10 @@ SSL_LIBS = @SSL_LIBS@ + SSL_INCLUDES = @SSL_INCLUDES@ + IRCDLIBS = @LIBS@ $(SSL_LIBS) + +-prefix = $(DESTDIR)@prefix@ ++prefix = @prefix@ + datarootdir = $(DESTDIR)@datarootdir@ + # Change this later! -- adrian +-moduledir = ${prefix}/modules ++moduledir = $(DESTDIR)${prefix}/modules + automoduledir = ${moduledir}/autoload + + INCLUDES = -I../include -I../lib/pcre $(SSL_INCLUDES) +Index: oftc-hybrid-1.5.0/servlink/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/servlink/Makefile.in 2006-12-29 17:22:56.868000664 +0100 ++++ oftc-hybrid-1.5.0/servlink/Makefile.in 2006-12-29 17:23:13.416484912 +0100 +@@ -15,7 +15,7 @@ MV = @MV@ + RM = @RM@ + SED = @SED@ + prefix = @prefix@ +-exec_prefix = $(DESTDIR)@exec_prefix@ ++exec_prefix = @exec_prefix@ + bindir = $(DESTDIR)@bindir@ + datarootdir = $(DESTDIR)@datarootdir@ + +Index: oftc-hybrid-1.5.0/src/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/src/Makefile.in 2006-12-29 17:24:00.361348208 +0100 ++++ oftc-hybrid-1.5.0/src/Makefile.in 2006-12-29 17:24:07.260299408 +0100 +@@ -20,7 +20,7 @@ SED = @SED@ + YACC = @YACC@ + + prefix = @prefix@ +-exec_prefix = $(DESTDIR)@exec_prefix@ ++exec_prefix = @exec_prefix@ + bindir = $(DESTDIR)@bindir@ + sysconfdir = $(DESTDIR)@sysconfdir@ + localstatedir = $(DESTDIR)@localstatedir@ +Index: oftc-hybrid-1.5.0/tools/Makefile.in +=================================================================== +--- oftc-hybrid-1.5.0.orig/tools/Makefile.in 2006-12-29 17:14:17.694926968 +0100 ++++ oftc-hybrid-1.5.0/tools/Makefile.in 2006-12-29 17:26:47.907877264 +0100 +@@ -18,8 +18,8 @@ CRYPT_LIB = @CRYPT_LIB@ + + INCLUDES = -I../include $(SSL_INCLUDES) + +-prefix = $(DESTDIR)@prefix@ +-exec_prefix = $(DESTDIR)@exec_prefix@ ++prefix = @prefix@ ++exec_prefix = @exec_prefix@ + bindir = $(DESTDIR)@bindir@ + datarootdir = $(DESTDIR)@datarootdir@ + --- oftc-hybrid-1.5.5.dfsg.orig/debian/patches/defaults +++ oftc-hybrid-1.5.5.dfsg/debian/patches/defaults @@ -0,0 +1,70 @@ +Index: debian-oftc-hybrid/include/defaults.h +=================================================================== +--- debian-oftc-hybrid.orig/include/defaults.h 2007-01-03 21:46:05.225980024 +0100 ++++ debian-oftc-hybrid/include/defaults.h 2007-01-04 02:24:34.820735504 +0100 +@@ -49,31 +49,33 @@ + + /* dirs */ + #define DPATH IRCD_PREFIX +-#define BINPATH IRCD_PREFIX "/bin/" +-#define MSGPATH IRCD_PREFIX "/messages/" +-#define ETCPATH IRCD_PREFIX "/etc" +-#define LOGPATH IRCD_PREFIX "/logs" +-#define MODPATH IRCD_PREFIX "/modules/" +-#define AUTOMODPATH IRCD_PREFIX "/modules/autoload/" ++#define BINPATH IRCD_PREFIX "/sbin" ++#define MSGPATH IRCD_PREFIX "/share/oftc-hybrid/messages/" ++#define ETCPATH "/etc/oftc-hybrid" ++#define LOGPATH "/var/log/oftc-hybrid" ++#define LIBPATH IRCD_PREFIX "/lib/oftc-hybrid" ++#define MODPATH LIBPATH "/modules/" ++#define AUTOMODPATH LIBPATH "/modules/autoload/" + #define OFTCLOG LOGPATH "/oftc.log" ++#define VARPATH "/var/lib/oftc-hybrid" + + /* files */ + #define SPATH BINPATH "/ircd" /* ircd executable */ +-#define SLPATH BINPATH "/servlink" /* servlink executable */ ++#define SLPATH LIBPATH "/servlink" /* servlink executable */ + #define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */ +-#define KPATH ETCPATH "/kline.conf" /* kline file */ +-#define CRESVPATH ETCPATH "/cresv.conf" /* channel resvs file */ +-#define NRESVPATH ETCPATH "/nresv.conf" /* nick resvs file */ +-#define DLPATH ETCPATH "/dline.conf" /* dline file */ +-#define GPATH ETCPATH "/gline.conf" /* gline conffile */ +-#define XPATH ETCPATH "/xline.conf" /* xline file */ +-#define RXPATH ETCPATH "/rxline.conf" +-#define RKPATH ETCPATH "/rkline.conf" ++#define KPATH VARPATH "/kline.conf" /* kline file */ ++#define CRESVPATH VARPATH "/cresv.conf" /* channel resvs file */ ++#define NRESVPATH VARPATH "/nresv.conf" /* nick resvs file */ ++#define DLPATH VARPATH "/dline.conf" /* dline file */ ++#define GPATH VARPATH "/gline.conf" /* gline conffile */ ++#define XPATH VARPATH "/xline.conf" /* xline file */ ++#define RXPATH VARPATH "/rxline.conf" ++#define RKPATH VARPATH "/rkline.conf" + #define MPATH ETCPATH "/ircd.motd" /* MOTD file */ + #define LPATH LOGPATH "/ircd.log" /* ircd logfile */ +-#define PPATH ETCPATH "/ircd.pid" /* pid file */ ++#define PPATH "/var/run/ircd.pid" /* pid file */ + #define OPATH ETCPATH "/opers.motd" /* oper MOTD file */ +-#define LIPATH ETCPATH "/links.txt" /* cached links file */ ++#define LIPATH VARPATH "/links.txt" /* cached links file */ + + /* this file is included to supply default + * values for things which are now configurable at runtime. +Index: debian-oftc-hybrid/modules/m_help.c +=================================================================== +--- debian-oftc-hybrid.orig/modules/m_help.c 2007-01-03 21:46:05.365958744 +0100 ++++ debian-oftc-hybrid/modules/m_help.c 2007-01-03 21:57:10.320870232 +0100 +@@ -36,8 +36,8 @@ + #include "modules.h" + #include "irc_string.h" + +-#define HPATH IRCD_PREFIX "/help/opers" +-#define UHPATH IRCD_PREFIX "/help/users" ++#define HPATH "/usr/share/oftc-hybrid/help/opers" ++#define UHPATH "/usr/share/oftc-hybrid/help/users" + #define HELPLEN 400 + + static void m_help(struct Client *, struct Client *, int, char *[]); --- oftc-hybrid-1.5.5.dfsg.orig/debian/patches/respond-manpage +++ oftc-hybrid-1.5.5.dfsg/debian/patches/respond-manpage @@ -0,0 +1,30 @@ +Index: debian-oftc-hybrid/tools/rsa_respond/respond.1 +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ debian-oftc-hybrid/tools/rsa_respond/respond.1 2007-01-20 16:50:15.959192032 +0100 +@@ -0,0 +1,25 @@ ++.TH RESPOND 1 ++.SH NAME ++respond \- respond binary for oftc-hybrid challenge oper authentication ++.SH SYNOPSIS ++.B respond ++.I privatekey ++.I challenge ++[ ++.I passphrase ++] ++.SH DESCRIPTION ++The oftc-hybrid IRC server offers challenge-response IRC operator ++authentication using RSA keys. ++.B respond ++takes the challenge from the server and creates a valid response to pass back ++to the server. ++.SH "SEE ALSO" ++ircd(8), openssl(1). ++.SH NOTES ++The private key file is protected by a passphrase, entered when the key is ++created. The passphrase is prompted for whenever respond is called. ++ ++If the passphrase is passed on the command line (insecure mode), the ++program will not prompt for a passphrase. This is primarily for running ++rsa_respond from a script. --- oftc-hybrid-1.5.5.dfsg.orig/debian/postinst +++ oftc-hybrid-1.5.5.dfsg/debian/postinst @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +case $1 in + configure) + getent passwd irc > /dev/null 2>&1 || + adduser --system --home /var/run/ircd --no-create-home --gid irc irc + chown irc:irc /var/lib/oftc-hybrid /var/log/oftc-hybrid + ( cd /var/lib/oftc-hybrid + umask 077 + for f in kline.conf rkline.conf dline.conf xline.conf rxline.conf nresv.conf cresv.conf ; do + [ -e $f ] || touch $f + chown irc:irc $f + chmod 600 $f + done + ) + ;; +esac + +#DEBHELPER# + +exit 0 --- oftc-hybrid-1.5.5.dfsg.orig/debian/dirs +++ oftc-hybrid-1.5.5.dfsg/debian/dirs @@ -0,0 +1,6 @@ +etc/oftc-hybrid +usr/share/doc/oftc-hybrid/examples +usr/share/oftc-hybrid +usr/lib/oftc-hybrid +var/lib/oftc-hybrid +var/log --- oftc-hybrid-1.5.5.dfsg.orig/debian/copyright +++ oftc-hybrid-1.5.5.dfsg/debian/copyright @@ -0,0 +1,255 @@ +This package was re-debianized by Christoph Berg on +Wed, 3 Jan 2007 16:17:41 +0100, previously debianized by Martin Wuertele + on Thu, 3 Oct 2002 21:54:25 +0200. + +Download site: + http://www.oftc.net/releases/ + + The 1.5.0.dfsg tarball was created by removing the following files from the + doc/technical directory: rfc1459.txt rfc2812.txt rfc2813.txt + draft-mitchell-irc-capabilities-01.txt + +Authors: + See the `Hybrid-team' file. + +Copyright and License: +Most files are distributed under the terms of the GPL v1 (or later) or v2 (or +later): + * Copyright (C) 1990, Jarkko Oikarinen + * Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center + * Copyright (C) 1992 Darren Reed + * Copyright (C) 1997-2006 Hybrid Development Team + * Copyright (C) 2002, 2005 by the past and present ircd coders, and others. + * Copyright (C) 2003 Piotr Nizynski, Advanced IRC Services Project Team + * Based also on work of Adrian Chadd, Aaron Sethman and others. + + * 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. + * + * As a special exception, the authors give permission to link the code of this + * release of oftc-hybrid with the OpenSSL project's "OpenSSL" library (or + * with modified versions of it that use the same license as the "OpenSSL" + * library), and distribute the linked executables. You must obey the GNU + * General Public License in all respects for all of the code used other than + * "OpenSSL". If you modify the code, you may extend this exception to your + * version of the files, but you are not obligated to do so. If you do not + * wish to do so, delete this exception statement from your version. + +On Debian systems, the complete text of the GNU General Public License can be +found in the file /usr/share/common-licenses/GPL. + +src/crypt.c: + * "THE BEER-WARE LICENSE" (Revision 42): + * wrote this file. As long as you retain this notice you + * can do whatever you want with this stuff. If we meet some day, and you think + * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp + + * MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm + * + * Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All + * rights reserved. + * + * License to copy and use this software is granted provided that it + * is identified as the "RSA Data Security, Inc. MD5 Message-Digest + * Algorithm" in all material mentioning or referencing this software + * or this function. + * + * License is also granted to make and use derivative works provided + * that such works are identified as "derived from the RSA Data + * Security, Inc. MD5 Message-Digest Algorithm" in all material + * mentioning or referencing the derived work. + * + * RSA Data Security, Inc. makes no representations concerning either + * the merchantability of this software or the suitability of this + * software for any particular purpose. It is provided "as is" + * without express or implied warranty of any kind. + * + * These notices must be retained in any copies of any part of this + * documentation and/or software. + +include/irc_getnameinfo.h, src/irc_getaddrinfo.c: + * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the project nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + +src/csvlib.c: + * Copyright (C) 2003 by Diane Bruce, Stuart Walsh + * Use it anywhere you like, if you like it buy us a beer. + * If it's broken, don't bother us with the lawyers. + * + * Copyright (c) 1996-1999 by Internet Software Consortium. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + */ +/* + * strlcat and strlcpy were ripped from openssh 2.5.1p2 + * They had the following Copyright info: + * + * Copyright (c) 1998 Todd C. Miller + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED `AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include/inet_misc.h, src/inet_misc.c, src/irc_reslib.c: + * Copyright (c) 1980, 1983, 1988, 1993 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ +/* + * Portions Copyright (c) 1993 by Digital Equipment Corporation. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies, and that + * the name of Digital Equipment Corporation not be used in advertising or + * publicity pertaining to distribution of the document or software without + * specific, written prior permission. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL + * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT + * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + */ +/* + * Portions Copyright (c) 1996-1999 by Internet Software Consortium. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + */ + +src/event.c: + * event.c: Event functions. + * + * Copyright (C) 1998-2000 Regents of the University of California + * Copyright (C) 2001-2002 Hybrid Development Team + * + * Code borrowed from the squid web cache by Adrian Chadd. + * Original header: + * + * DEBUG: section 41 Event Processing + * AUTHOR: Henrik Nordstrom + * + * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ + * ---------------------------------------------------------- + * + * Squid is the result of efforts by numerous individuals from the + * Internet community. Development is led by Duane Wessels of the + * National Laboratory for Applied Network Research and funded by the + * National Science Foundation. Squid is Copyrighted (C) 1998 by + * the Regents of the University of California. Please see the + * COPYRIGHT file for full details. Squid incorporates software + * developed and/or copyrighted by other sources. Please see the + * CREDITS file for full details. + * + * 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. + --- oftc-hybrid-1.5.5.dfsg.orig/debian/watch +++ oftc-hybrid-1.5.5.dfsg/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.oftc.net/releases/oftc-hybrid-(.*).tar.gz --- oftc-hybrid-1.5.5.dfsg.orig/debian/ircd.conf +++ oftc-hybrid-1.5.5.dfsg/debian/ircd.conf @@ -0,0 +1,147 @@ +# Hybrid 7 minimal example configuration file +# +# $Id: simple.conf 586 2006-05-29 17:04:30Z stu $ +# +# This is a basic ircd.conf that will get your server running with +# little modification. See the example.conf for more specific +# information. +# +# The serverinfo block sets up your server's name. Fields that may +# be set are the name, description, vhost, network_name, network_desc, +# and hub. + +serverinfo { + name = "irc.example.com"; + sid = "1AA"; + description = "Test IRC Server"; + hub = no; +}; + +log { + /* Do you want to enable logging to ircd.log? */ + use_logging = yes; + + /* + * logfiles: the logfiles to use for user connects, /oper uses, + * and failed /oper. These files must exist for logging to be used. + */ + fname_userlog = "/var/log/oftc-hybrid/user.log"; + fname_operlog = "/var/log/oftc-hybrid/oper.log"; + ffailed_operlog = "/var/log/oftc-hybrid/failedoper.log"; + fname_killlog = "/var/log/oftc-hybrid/kill.log"; + fname_klinelog = "/var/log/oftc-hybrid/kline.log"; + fname_glinelog = "/var/log/oftc-hybrid/gline.log"; + + /* + * log_level: the amount of detail to log in ircd.log. The + * higher, the more information is logged. May be changed + * once the server is running via /quote SET LOG. Either: + * L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO or L_DEBUG + */ + log_level = L_INFO; +}; + +# The administrator block sets up the server administrator information, +# that is shown when a user issues the /ADMIN command. All three fields +# are required. + +administrator { + description = "Example, Inc Test IRC Server"; + name = "John Doe"; + email = "jdoe@example.com"; +}; + +# Class blocks define the "privileges" that clients and servers get when they +# connect. Ping timing, sendQ size, and user limits are all controlled by +# classes. See example.conf for more information + +class { + name = "users"; + ping_time = 90; + number_per_ip = 0; + max_number = 200; + sendq = 100000; +}; + +class { + name = "opers"; + ping_time = 90; + number_per_ip = 0; + max_number = 10; + sendq = 500000; +}; + +# Auth blocks define who can connect and what class they are put into. + +auth { + user = "*@*"; + class = "users"; +}; + +# Operator blocks define who is able to use the OPER command and become IRC +# operators. The necessary fields are the user@host, oper nick name, and +# the password, encrypted with the mkpasswd program provided. + +operator { + name = "JohnDoe"; + user = "*@*.example.com"; + user = "*@127.0.0.1"; + password = "$1$BwWxcYj2$xxxxxxxxxxxxxxxxxxxxxx"; + encrypted = yes; + class = "opers"; + flags = global_kill, remote, kline, unkline, xline, + die, rehash, nick_changes, admin, operwall; +}; + +# Listen blocks define what ports your server will listen to client and +# server connections on. ip is an optional field (Essential for virtual +# hosted machines.) + +listen { + host = "127.0.0.1"; + port = 6667; +}; + +# Quarantine blocks deny certain nicknames from being used. + +quarantine { + nick = "dcc-*"; + reason = "DCC bots are not permitted on this server"; +}; + +quarantine { + nick = "LamestBot"; + reason = "You have to be kidding me!"; +}; + +quarantine { + nick = "NickServ"; + reason = "There are no Nick Services on this Network"; +}; + +# The general block contains most of the configurable options that were once +# in config.h. The most important ones are below. For the rest, please see +# example.conf. Note that variables not mentioned here are set to the ircd +# defaults, which are listed in src/s_conf.c:set_default_conf. + +general { + hide_spoof_ips = yes; + + # Disable ident lookups? + disable_auth = no; + + # Control nick flooding + anti_nick_flood = yes; + max_nick_time = 20; + max_nick_changes = 5; + + # Show extra warnings when servers connections cannot succeed + # because of no "N" line (a misconfigured connect block) + warn_no_nline = yes; + + oper_only_umodes = bots, cconn, debug, full, god, skill, nchange, + rej, servnotice, spy, external, operwall, locops, + unauth; +}; + +# There are many more configurable options. See example.conf for the rest --- oftc-hybrid-1.5.5.dfsg.orig/debian/logrotate +++ oftc-hybrid-1.5.5.dfsg/debian/logrotate @@ -0,0 +1,13 @@ +/var/log/oftc-hybrid/*.log { + weekly + missingok + rotate 4 + notifempty + compress + delaycompress + create 644 irc irc + sharedscripts + postrotate + /etc/init.d/oftc-hybrid reload > /dev/null + endscript +} --- oftc-hybrid-1.5.5.dfsg.orig/debian/README.Debian +++ oftc-hybrid-1.5.5.dfsg/debian/README.Debian @@ -0,0 +1,28 @@ +oftc-hybrid for Debian +---------------------- + +Compile time settings: + +Installing into: /usr +Ziplinks ................ yes +OpenSSL ................. yes - BF/168 BF/128 CAST/128 3DES/168 DES/56 +Modules ................. shared +IPv6 support ............ yes +Net I/O implementation .. epoll +EFnet server ............ no (use example.conf) +Halfops support ......... no +Small network ........... no +G-Line voting ........... yes + +Configured limits: +NICKLEN ................. 30 +TOPICLEN ................ 390 + +The ircd.conf file shipped is a minimal working server listening on 127.0.0.1 +only. To use the operator block, use mkpasswd (/usr/lib/oftc-hybrid/mkpasswd, +or from the whois package) to create a valid password string. More interesting +config samples can be found in /usr/share/doc/oftc-hybrid/examples/. + +Documentation is provided in the oftc-hybrid-doc package. + + -- Christoph Berg Wed, 3 Jan 2007 20:34:21 +0100 --- oftc-hybrid-1.5.5.dfsg.orig/debian/postrm +++ oftc-hybrid-1.5.5.dfsg/debian/postrm @@ -0,0 +1,12 @@ +#!/bin/sh +set -e + +case $1 in + purge) + rm -rf /var/lib/oftc-hybrid /var/log/oftc-hybrid + ;; +esac + +#DEBHELPER# + +exit 0