summaryrefslogtreecommitdiff
path: root/net/ircu
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-11-24 20:37:39 +0000
committertv <tv@pkgsrc.org>1998-11-24 20:37:39 +0000
commit68344e7e458e1b42802b0746c93ac6d369e32a3b (patch)
tree087920fb940c2da929fb6f449b0d600f670faaa1 /net/ircu
parenta30d8880292ca79626c21055aaa06b6df8606307 (diff)
downloadpkgsrc-68344e7e458e1b42802b0746c93ac6d369e32a3b.tar.gz
Import ircu-2.10.04, the IRC server daemon used on Undernet and others.
Diffstat (limited to 'net/ircu')
-rw-r--r--net/ircu/Makefile32
-rw-r--r--net/ircu/files/config79
-rw-r--r--net/ircu/files/md53
-rw-r--r--net/ircu/patches/patch-aa28
-rw-r--r--net/ircu/patches/patch-ab52
-rw-r--r--net/ircu/patches/patch-ac13
-rw-r--r--net/ircu/patches/patch-ad13
-rw-r--r--net/ircu/pkg/COMMENT1
-rw-r--r--net/ircu/pkg/DESCR6
-rw-r--r--net/ircu/pkg/MESSAGE13
-rw-r--r--net/ircu/pkg/PLIST9
11 files changed, 249 insertions, 0 deletions
diff --git a/net/ircu/Makefile b/net/ircu/Makefile
new file mode 100644
index 00000000000..156a7e9e323
--- /dev/null
+++ b/net/ircu/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/11/24 20:37:39 tv Exp $
+#
+
+DISTNAME= ircu2.10.04
+PKGNAME= ircu-2.10.04
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.undernet.org/pub/irc/servers/current/ \
+ ftp://ftp.asu.net/pub/irc/servers/undernet/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tv@netbsd.org
+HOMEPAGE= http://coder-com.undernet.org/
+
+GNU_CONFIGURE= yes
+IS_INTERACTIVE= yes
+
+post-configure:
+ @${CP} ${FILESDIR}/config ${WRKSRC}/config/.config
+ @cd ${WRKSRC} && \
+ ${MAKE} CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" config
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/etc/ircd ${PREFIX}/share/doc/ircd
+ ${INSTALL_PROGRAM} ${WRKSRC}/ircd/ircd ${PREFIX}/sbin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/ircd/chkconf ${PREFIX}/sbin/ircd-chkconf
+ ${INSTALL_MAN} ${WRKSRC}/doc/ircd.8 ${PREFIX}/man/man8/
+ ${INSTALL_DATA} ${WRKSRC}/doc/example.conf \
+ ${PREFIX}/etc/ircd/ircd.conf.example
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} readme.crules readme.who \
+ ${PREFIX}/share/doc/ircd/
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ircu/files/config b/net/ircu/files/config
new file mode 100644
index 00000000000..f8141e00f95
--- /dev/null
+++ b/net/ircu/files/config
@@ -0,0 +1,79 @@
+# $NetBSD: config,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+
+EXTRA_INCLUDEDIRS="none"
+IRCDLIBS="-lcrypt"
+BINDIR="$PREFIX/sbin"
+SYMLINK="ircd"
+IRCDMODE="555"
+IRCDOWN="root"
+IRCDGRP="wheel"
+MANDIR="$PREFIX/man"
+EXTRA_CPPFLAGS=""
+CPPFLAGS="-I../include"
+USE_POLL=y
+RELIABLE_CLOCK=n
+CHROOTDIR=n
+CONFIG_SETUGID=n
+IRC_UID=
+IRC_GID=
+CMDLINE_CONFIG=n
+UNIXPORT=n
+VIRTUAL_HOST=y
+HUB=y
+DEBUGMODE=n
+DEBUGMALLOC=n
+DPATH="$PREFIX/etc/ircd"
+SPATH="$PREFIX/bin/ircd"
+CPATH="ircd.conf"
+MPATH="ircd.motd"
+RPATH="remote.motd"
+PPATH="none"
+CONFIG_LOG_WHOX=n
+MAXSENDQLENGTH=300000
+INT_BUFFERPOOL=3
+BUFFERPOOL="(3 * MAXSENDQLENGTH)"
+CLIENT_FLOOD=1024
+MAXCONNECTIONS=252
+PORTNUM=6667
+NICKNAMEHISTORYLENGTH=100
+ALLOW_SNO_CONNEXIT=y
+R_LINES=n
+SHOW_INVISIBLE_USERS=y
+SHOW_ALL_INVISIBLE_USERS=y
+OPERS_SEE_IN_SECRET_CHANNELS=y
+LOCOP_SEE_IN_SECRET_CHANNELS=n
+UNLIMIT_OPER_QUERY=n
+OPER_KILL=y
+OPER_REHASH=y
+OPER_RESTART=y
+OPER_DIE=y
+OPER_LGLINE=y
+OPER_REMOTE=y
+LOCOP_REHASH=y
+LOCOP_RESTART=n
+LOCOP_DIE=n
+LOCOP_LGLINE=y
+CONFIG_LIST=y
+DEFAULT_LIST="T<10"
+DEFAULT_LIST_PARAM="T<10"
+COMMENT_IS_FILE=n
+IDLE_FROM_MSG=y
+CHECK_CLONE=y
+CHECK_CLONE_LIMIT=2
+CHECK_CLONE_PERIOD=20
+CHECK_CLONE_DELAY=600
+MAXIMUM_LINKS=1
+MSGLOG_ENABLED=n
+LOCAL_KILL_ONLY=n
+TIMESEC=60
+PINGFREQUENCY=120
+CONNECTFREQUENCY=600
+HANGONGOODLINK=300
+HANGONRETRYDELAY=10
+CONNECTTIMEOUT=90
+KILLCHASETIMELIMIT=30
+MAXCHANNELSPERUSER=10
+MAXSILES=15
+AVBANLEN=40
+MAXSILELENGTH="(40 * MAXSILES)"
+CONFIG_NEW=y
diff --git a/net/ircu/files/md5 b/net/ircu/files/md5
new file mode 100644
index 00000000000..15edeade2a5
--- /dev/null
+++ b/net/ircu/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+
+MD5 (ircu2.10.04.tgz) = 1e38f0b2df965a2e9a2be62e97a70279
diff --git a/net/ircu/patches/patch-aa b/net/ircu/patches/patch-aa
new file mode 100644
index 00000000000..316fc99d3dc
--- /dev/null
+++ b/net/ircu/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+
+--- config/Configure.in.orig Wed Nov 12 11:25:08 1997
++++ config/Configure.in Tue Nov 24 13:54:44 1998
+@@ -189,7 +189,6 @@
+ #
+ readln () {
+ if [ "$USE_DEFAULT" = "y" -a -n "$3" ]; then
+- echo "$1"
+ ans=$2
+ else
+ echo $n "$1$c"
+@@ -209,7 +208,6 @@
+ # comment 'xxx'
+ #
+ comment () {
+- echo "*"; echo "* $1" ; echo "*"
+ (echo "" ; echo "#"; echo "# $1" ; echo "#") >>$CONFIG
+ (echo "" ; echo "/*"; echo " * $1" ; echo " */") >>$CONFIG_H
+ }
+@@ -485,7 +483,6 @@
+ if [ -r $DEFAULTS ]; then
+ echo "*"
+ echo "* Using defaults found in" $DEFAULTS
+- echo "* If you type a 'c' the script will finish using all defaults."
+ echo "*"
+ . $DEFAULTS
+ else
diff --git a/net/ircu/patches/patch-ab b/net/ircu/patches/patch-ab
new file mode 100644
index 00000000000..3ffa3b3a60f
--- /dev/null
+++ b/net/ircu/patches/patch-ab
@@ -0,0 +1,52 @@
+$NetBSD: patch-ab,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+
+--- config/config-sh.in.orig Fri May 1 19:30:04 1998
++++ config/config-sh.in Tue Nov 24 13:31:51 1998
+@@ -44,7 +44,6 @@
+ if [ "$DEFAULTS" != "none" ]; then
+ bool 'Do you want to change your previous configuration' CHANGE_CONFIG
+ if [ "$CHANGE_CONFIG" = "n" ]; then
+- echo "Ok, I will only prompt you for NEW parameters."
+ USE_DEFAULT=y
+ else
+ USE_DEFAULT=n
+@@ -63,13 +62,10 @@
+ eval exec_prefix="$prefix"
+ fi
+ string 'Which compiler do you want to use' CC "$CC_DEFAULT"
+- echo "* For the following four questions, specify 'none' when you want it to be empty."
+ eval string "'What flags should I pass to $CC [none]'" CFLAGS "'$CFLAGS_DEFAULT'"
+ string 'Do you need extra include directories [none]' EXTRA_INCLUDEDIRS none
+ if [ -z "$LDFLAGS_DEFAULT" ]; then
+ LDFLAGS_DEFAULT=none
+- else
+- eval LDFLAGS_DEFAULT="$LDFLAGS_DEFAULT"
+ fi
+ string 'Which linker flags do you need [none]' LDFLAGS "$LDFLAGS_DEFAULT"
+ if [ -z "$LIBS" ]; then
+@@ -78,9 +74,6 @@
+ string 'Which extra libraries do you need [none]' IRCDLIBS "$LIBS"
+ eval bindir="$bindir"
+ string 'In which directory should I install the ircd binary' BINDIR $bindir
+- if [ ! -d "$BINDIR" ]; then
+- echo "$BINDIR : No such directory"
+- fi
+ string 'What should the name of the installed symbolic link to the exectuable be' SYMLINK ircd
+ string 'Which permissions do you want the binary to have' IRCDMODE 711
+ string 'Which owner do you want the binary to have' IRCDOWN "`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`"
+@@ -192,7 +185,6 @@
+ eval DPATH_DEFAULT="${prefix}/lib/ircd"
+ string 'Directory where all ircd stuff resides' DPATH $DPATH_DEFAULT
+ define_string SPATH "$BINDIR/ircd"
+- echo "The following filenames are either full paths or files within DPATH"
+ string 'Server configuration file' CPATH 'ircd.conf'
+ string 'Server MOTD file' MPATH 'ircd.motd'
+ string 'Server remote MOTD file (3 lines max)' RPATH 'remote.motd'
+@@ -338,7 +330,6 @@
+ int 'Check clone delay (600!)' CHECK_CLONE_DELAY 600
+ fi
+ int 'Max auto connects per class (1!)' MAXIMUM_LINKS 1
+- echo '* Never define this on a production server:'
+ bool 'Enable message logging' MSGLOG_ENABLED
+ if [ "$MSGLOG_ENABLED" = "y" ]; then
+ int 'Message log size' MSGLOG_SIZE 128
diff --git a/net/ircu/patches/patch-ac b/net/ircu/patches/patch-ac
new file mode 100644
index 00000000000..a37aa5ba919
--- /dev/null
+++ b/net/ircu/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+
+--- config/Makefile.in.orig Tue Nov 24 13:41:41 1998
++++ config/Makefile.in Tue Nov 24 13:42:08 1998
+@@ -47,7 +47,7 @@
+ autoconf
+
+ config: configure setup.h.in config.status Configure FORCE
+- @CONFIG_BATCH=n ${SHELL} ./Configure || exit 1
++ @CONFIG_BATCH=y ${SHELL} ./Configure || exit 1
+ @# Allow the use of non-GNU make with 'make config':
+ @cd ../ircd; ${MAKE} Makefile
+ @cd ../doc; ${MAKE} Makefile
diff --git a/net/ircu/patches/patch-ad b/net/ircu/patches/patch-ad
new file mode 100644
index 00000000000..228286675e8
--- /dev/null
+++ b/net/ircu/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+
+--- ircd/s_user.c.orig Tue Nov 24 14:02:15 1998
++++ ircd/s_user.c Tue Nov 24 14:04:17 1998
+@@ -326,7 +326,7 @@
+ time_t last;
+ struct abacklog *next;
+ char *connected;
+- char count;
++ int count;
+ };
+
+ static struct abacklog *backlog[256]; /* hash table */
diff --git a/net/ircu/pkg/COMMENT b/net/ircu/pkg/COMMENT
new file mode 100644
index 00000000000..1b5b975e87a
--- /dev/null
+++ b/net/ircu/pkg/COMMENT
@@ -0,0 +1 @@
+Internet Relay Chat server customized for Undernet
diff --git a/net/ircu/pkg/DESCR b/net/ircu/pkg/DESCR
new file mode 100644
index 00000000000..e868c0ee395
--- /dev/null
+++ b/net/ircu/pkg/DESCR
@@ -0,0 +1,6 @@
+ircu is the Undernet's modified version of the original ircd.
+
+The original ircd is in general no longer maintained, and the various IRC
+networks have customized ircd to suit their needs.
+
+You can find more information about Undernet at http://www.undernet.org/
diff --git a/net/ircu/pkg/MESSAGE b/net/ircu/pkg/MESSAGE
new file mode 100644
index 00000000000..193a67b6ca9
--- /dev/null
+++ b/net/ircu/pkg/MESSAGE
@@ -0,0 +1,13 @@
+==========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+
+The ${PREFIX}/etc/ircd directory where ircd's configuration files live is
+currently owned by root with world-readable permissions.
+
+Before creating your ircd.conf, you should chown(8) that directory to the
+user ID that will be running ircd, and chmod(8) the directory to 0700.
+
+You should also create an "ircd.motd" MOTD file for local connect users,
+and an "remote.motd" MOTD file for remote users.
+
+==========================================================================
diff --git a/net/ircu/pkg/PLIST b/net/ircu/pkg/PLIST
new file mode 100644
index 00000000000..e8f02922a2d
--- /dev/null
+++ b/net/ircu/pkg/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1998/11/24 20:37:40 tv Exp $
+etc/ircd/ircd.conf.example
+man/man8/ircd.8
+sbin/ircd
+sbin/ircd-chkconf
+share/doc/ircd/readme.crules
+share/doc/ircd/readme.who
+@dirrm etc/ircd
+@dirrm share/doc/ircd