diff options
author | pav <pav@FreeBSD.org> | 2005-04-21 00:22:40 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-04-21 00:22:40 +0800 |
commit | cf630b0483e92fc6f6763c152244e5fad8e6e826 (patch) | |
tree | 3de70e6bc4609d88adaa291d03db06a599611c00 /irc/ircd-rusnet | |
parent | 8d761c4e5e8d112e076403799536ee2736046fbf (diff) | |
download | freebsd-ports-gnome-cf630b0483e92fc6f6763c152244e5fad8e6e826.tar.gz freebsd-ports-gnome-cf630b0483e92fc6f6763c152244e5fad8e6e826.tar.zst freebsd-ports-gnome-cf630b0483e92fc6f6763c152244e5fad8e6e826.zip |
Special version of IRC server for RusNet IRC Network.
In addition to base features of ircd 2.9.10 it supports
russian charsets translation (koi8-r,cp1251,translit, etc..)
and also some RusNet protocol extensions.
PR: ports/80061
Submitted by: SeaD <sead@mail.ru>
Diffstat (limited to 'irc/ircd-rusnet')
-rw-r--r-- | irc/ircd-rusnet/Makefile | 100 | ||||
-rw-r--r-- | irc/ircd-rusnet/distinfo | 1 | ||||
-rw-r--r-- | irc/ircd-rusnet/files/ircd.motd.sample | 27 | ||||
-rw-r--r-- | irc/ircd-rusnet/files/ircd.sh.sample | 33 | ||||
-rw-r--r-- | irc/ircd-rusnet/files/patch-configure | 25 | ||||
-rw-r--r-- | irc/ircd-rusnet/files/patch-ircd-buildm4 | 11 | ||||
-rw-r--r-- | irc/ircd-rusnet/files/patch-support-config.h.dist | 27 | ||||
-rw-r--r-- | irc/ircd-rusnet/files/patch-support-configure | 1806 | ||||
-rw-r--r-- | irc/ircd-rusnet/files/patch-support-configure.in | 60 | ||||
-rw-r--r-- | irc/ircd-rusnet/pkg-deinstall | 26 | ||||
-rw-r--r-- | irc/ircd-rusnet/pkg-descr | 7 | ||||
-rw-r--r-- | irc/ircd-rusnet/pkg-install | 35 | ||||
-rw-r--r-- | irc/ircd-rusnet/pkg-message | 13 | ||||
-rw-r--r-- | irc/ircd-rusnet/pkg-plist | 48 |
14 files changed, 2219 insertions, 0 deletions
diff --git a/irc/ircd-rusnet/Makefile b/irc/ircd-rusnet/Makefile new file mode 100644 index 000000000000..7a7010bb965f --- /dev/null +++ b/irc/ircd-rusnet/Makefile @@ -0,0 +1,100 @@ +# New ports collection makefile for: ircd-rusnet +# Date created: 20 Mar 2005 +# Whom: SeaD +# +# $FreeBSD$ +# + +# Patch for `--with-user' `--with-group' and `--with-netname' +# by Alex Lyashkov <umka at mail.sevinter.net> + +# ircd.motd.sample taken from irc.tomsk.ru + +PORTNAME= ircd-rusnet +PORTVERSION= 1.4.2 +CATEGORIES= irc russian +MASTER_SITES= http://gvs.rinet.ru/rusnet/ +DISTNAME= rusnet-${PORTVERSION} + +MAINTAINER= sead@mail.ru +COMMENT= RusNet Internet Relay Chat Server + +USE_BZIP2= yes +GNU_CONFIGURE= yes + +USER= ircd +GROUP= ${USER} +NETWORK= RusNet + +VARDIR?= ${DESTDIR}/var +IRCD_CONFDIR?= ${PREFIX}/etc/ircd-rusnet +IRCD_CODEPAGES?= ${IRCD_CONFDIR}/codepages +IRCD_MOTD?= ${IRCD_CONFDIR}/ircd.motd +IRCD_LOGDIR?= ${VARDIR}/log/ircd +IRCD_RUNDIR?= ${VARDIR}/run/ircd + +CONFIGURE_ARGS= --sysconfdir=${IRCD_CONFDIR} --codepagedir=${IRCD_CODEPAGES} \ + --logdir=${IRCD_LOGDIR} --localstatedir=${IRCD_RUNDIR} \ + --with-user=${USER} --with-group=${GROUP} --with-netname=${NETWORK} + +ALL_TARGET= server tkserv client +BUILD_WRKSRC= ${WRKSRC}/build +INSTALL_TARGET= install-server install-tkserv install-client +INSTALL_WRKSRC= ${WRKSRC}/build + +CONFLICTS= ircd-[0-9]* + +MAN1= irc.1 +MAN5= iauth.conf.5 +MAN8= ircd.8 iauth.8 ircdwatch.8 + +DOCS= CHANGED FAQ doc/Authors doc/BUGS doc/ChangeLog doc/Etiquette \ + doc/INSTALL.appendix doc/INSTALL.txt doc/LICENSE doc/README \ + doc/RELEASE_NOTES doc/SERVICE.txt doc/alt-irc-faq \ + doc/iauth-internals.txt +LOGS= ircd.log iauth.log tkserv.log + +.if defined(WITHOUT_ZLIB) +CONFIGURE_ARGS+=--without-zlib +.else +CONFIGURE_ARGS+=--with-zlib +.endif + +# seems to be broken +# .if defined(ENABLE_IPV6) +# CONFIGURE_ARGS+=--enable-ip6 +# .endif + +.if defined(ENABLE_DSM) +CONFIGURE_ARGS+=--enable-dsm +.endif + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +BROKEN= "does not link" +.endif + +pre-configure: + @${SH} ${PKGINSTALL} ${PKGNAME} PRE-CONFIGURE + +pre-install: + @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + +post-install: + ${INSTALL_SCRIPT} ${FILESDIR}/ircd.sh.sample ${PREFIX}/etc/rc.d + ${CP} ${FILESDIR}/ircd.motd.sample ${IRCD_CONFDIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for docfile in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} +.endfor +.endif +.for logfile in ${LOGS} + ${TOUCH} ${IRCD_LOGDIR}/${logfile} +.endfor + @${CHOWN} -R ${USER}:${GROUP} ${IRCD_LOGDIR} + @${CHOWN} -R ${USER}:${GROUP} ${IRCD_RUNDIR} + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/irc/ircd-rusnet/distinfo b/irc/ircd-rusnet/distinfo new file mode 100644 index 000000000000..bd3fa9ed8cdf --- /dev/null +++ b/irc/ircd-rusnet/distinfo @@ -0,0 +1 @@ +MD5 (rusnet-1.4.2.tar.bz2) = 258879419be5cc23e7e287f892eb3496 diff --git a/irc/ircd-rusnet/files/ircd.motd.sample b/irc/ircd-rusnet/files/ircd.motd.sample new file mode 100644 index 000000000000..4474cfb97329 --- /dev/null +++ b/irc/ircd-rusnet/files/ircd.motd.sample @@ -0,0 +1,27 @@ + +RusNet IRC Network Town IRC server (irc.town.ru) +==================================================================== +Location: Town, Russia +Admins: SeaD (sead@mail.ru) HZ (hz@blah.ru) + +Codepages per ports are: + + 6667: KOI8-R 7770: KOI8-R 7773: ISO-8859_5 + 6668: Translit 7771: CP1251 7774: Macintosh + 6669: CP1251 7772: CP866 7775: Translit + +To change your codepage on-the-fly: + /quote codepage codepage-name + +There are Network Services running: + NickServ, MemoServ, InfoServ, ChanServ + +Start using them with: + /msg NickServ@*.Rusnet help, /msg ChanServ@*.Rusnet help + +Help Channels on the net: + /join #help or #irchelp + +==================================================================== +NO: CLONES, WARS, FLOOD, SPAM! +==================================================================== diff --git a/irc/ircd-rusnet/files/ircd.sh.sample b/irc/ircd-rusnet/files/ircd.sh.sample new file mode 100644 index 000000000000..8c65064a4fe4 --- /dev/null +++ b/irc/ircd-rusnet/files/ircd.sh.sample @@ -0,0 +1,33 @@ +#! /bin/sh + +PATH=/bin:/usr/bin + +daemon=ircd +daemon_path=/usr/local/sbin +daemon_pid=/var/run/ircd/$daemon.pid +daemon_flags= + +case $1 in + start) + if [ -x ${daemon_path}/$daemon ]; then + ${daemon_path}/$daemon $daemon_flags >/dev/null 2>&1 + echo -n " $daemon" + fi + ;; + stop) + if [ -f $daemon_pid ]; then + kill `head -1 $daemon_pid` && echo -n " $daemon" + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "Usage: `basename $0` {start|stop|restart}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/irc/ircd-rusnet/files/patch-configure b/irc/ircd-rusnet/files/patch-configure new file mode 100644 index 000000000000..0c2c9d686d77 --- /dev/null +++ b/irc/ircd-rusnet/files/patch-configure @@ -0,0 +1,25 @@ +--- configure.orig Fri Jun 6 18:57:25 2003 ++++ configure Sat Mar 19 02:05:18 2005 +@@ -18,11 +18,8 @@ + then + support/configure $* + else +- echo "retrieving the system name, type and OS release..." +- rev=`support/config.guess` +- if test "${rev}" # test for no output +- then +- echo " your system seems to be ${rev}." ++ rev="build" ++ echo "working directory: ${rev}" + if test ! -d "${rev}" + then + echo "creating directory ${rev}..." +@@ -53,8 +50,4 @@ + IT IS IMPERATIVE THAT YOU SHOULD READ INSTALL-RUSNET.TXT BEFORE + RUNNING THE SERVER." + fi +- else +- echo Failed to determine your host type, giving up. +- echo Perhaps you should specify it manually. +- fi + fi diff --git a/irc/ircd-rusnet/files/patch-ircd-buildm4 b/irc/ircd-rusnet/files/patch-ircd-buildm4 new file mode 100644 index 000000000000..538f8ff63815 --- /dev/null +++ b/irc/ircd-rusnet/files/patch-ircd-buildm4 @@ -0,0 +1,11 @@ +--- ircd/buildm4.orig Mon Oct 13 14:10:13 2003 ++++ ircd/buildm4 Sat Mar 19 17:15:42 2005 +@@ -22,7 +22,7 @@ + # + # If only this was a perl script...*sigh* + # +-INCLUDE=`../support/config.guess` ++INCLUDE="build" + # Installation with absolute path now (Kratz) + M4=$1 + /bin/rm -f $M4 diff --git a/irc/ircd-rusnet/files/patch-support-config.h.dist b/irc/ircd-rusnet/files/patch-support-config.h.dist new file mode 100644 index 000000000000..64bc073bdad5 --- /dev/null +++ b/irc/ircd-rusnet/files/patch-support-config.h.dist @@ -0,0 +1,27 @@ +--- support/config.h.dist.orig 2004-07-07 17:31:29.000000000 +0300 ++++ support/config.h.dist 2004-11-10 07:36:58.000000000 +0200 +@@ -57,7 +57,7 @@ + * russian nicks and channels, channel mode +z (latin nicks only) etc + */ + #define RUSNET_IRCD +-#define NETWORKNAME "RusNet" ++#define NETWORKNAME @IRC_NETNAME@ + + /* define if you don't want fun made with /connnect's */ + #define NOWALLOPS_TO_USERS +@@ -446,13 +446,8 @@ + * define IRC_UID to that UID. This should only be defined if you are running + * as root and even then perhaps not. + */ +-#undef IRC_UID +-#undef IRC_GID +- +-#ifdef notdef +-#define IRC_UID 65534 /* eg for what to do to enable this feature */ +-#define IRC_GID 65534 +-#endif ++#define IRC_UID @IRC_UID@ ++#define IRC_GID @IRC_GID@ + + /* + * CLIENT_FLOOD diff --git a/irc/ircd-rusnet/files/patch-support-configure b/irc/ircd-rusnet/files/patch-support-configure new file mode 100644 index 000000000000..1d1f1479b2dc --- /dev/null +++ b/irc/ircd-rusnet/files/patch-support-configure @@ -0,0 +1,1806 @@ +--- support/configure.orig Tue Dec 7 14:11:23 2004 ++++ support/configure Sun Mar 20 19:05:28 2005 +@@ -1,6 +1,6 @@ + #! /bin/sh + +-# From configure.in Id: configure.in,v 1.46.2.8 2001/02/09 13:47:06 q Exp ++# From configure.in Id: configure.in,v 1.4.2.1 2003/09/30 14:23:20 chourf Exp + + # Guess values for system-dependent variables and create Makefiles. + # Generated automatically using autoconf version 2.13 +@@ -11,7 +11,7 @@ + + # Defaults: + ac_help= +-ac_default_prefix=/usr/local/rusnet ++ac_default_prefix=/usr/local + # Any additions from configure.in: + ac_help="$ac_help + --with-zlib checks for zlib; if found, enables compressed links" +@@ -29,6 +29,10 @@ + --enable-ip6 enables IPv6" + ac_help="$ac_help + --enable-dsm enables dynamically shared modules for iauth" ++ac_help="$ac_help ++ --with-netname=[name] set IRC Network Name" ++ac_help="$ac_help ++ --with-user=[username] set user for own ircd files" + + # Initialize some variables set by options. + # The variables have the same names as the options, with +@@ -178,7 +182,7 @@ + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --logdir=DIR log files in DIR [PREFIX/var/log/ircd] +- --codepagedir=DIR place codepages in DIR [PREFIX/codepages] ++ --codepagedir=DIR codepage files in DIR [PREFIX/codepages] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] +@@ -250,7 +254,7 @@ + -logdir=* | --logdir=* | --logdi=* | --logd=*) + logdir="$ac_optarg/" ;; + +- -codepagedir | --codepagedir | --codepagedi | --codepaged | --codepage ) ++ -codepagedir | --codepagedir | --codepagedi | --codepaged | --codepage) + ac_prev=codepagedir ;; + -codepagedir=* | --codepagedir=* | --codepagedi=* | --codepaged=* | --codepage=*) + codepagedir="$ac_optarg/" ;; +@@ -612,7 +616,7 @@ + fi + + echo $ac_n "checking host system type""... $ac_c" 1>&6 +-echo "configure:609: checking host system type" >&5 ++echo "configure:620: checking host system type" >&5 + + host_alias=$host + case "$host_alias" in +@@ -633,7 +637,7 @@ + echo "$ac_t""$host" 1>&6 + + echo $ac_n "checking target system type""... $ac_c" 1>&6 +-echo "configure:630: checking target system type" >&5 ++echo "configure:641: checking target system type" >&5 + + target_alias=$target + case "$target_alias" in +@@ -651,7 +655,7 @@ + echo "$ac_t""$target" 1>&6 + + echo $ac_n "checking build system type""... $ac_c" 1>&6 +-echo "configure:648: checking build system type" >&5 ++echo "configure:659: checking build system type" >&5 + + build_alias=$build + case "$build_alias" in +@@ -676,7 +680,7 @@ + + + echo $ac_n "checking cached system tuple""... $ac_c" 1>&6 +-echo "configure:673: checking cached system tuple" >&5 ++echo "configure:684: checking cached system tuple" >&5 + if { test x"${ac_cv_host_system_type+set}" = x"set" && + test x"$ac_cv_host_system_type" != x"$host"; } || + { test x"${ac_cv_build_system_type+set}" = x"set" && +@@ -697,7 +701,7 @@ + # Extract the first word of "gcc", so it can be a program name with args. + set dummy gcc; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:694: checking for $ac_word" >&5 ++echo "configure:705: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -727,7 +731,7 @@ + # Extract the first word of "cc", so it can be a program name with args. + set dummy cc; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:724: checking for $ac_word" >&5 ++echo "configure:735: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -775,7 +779,7 @@ + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } + fi + echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +-echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ++echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 + + ac_ext=c + # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +@@ -786,12 +790,12 @@ + + cat > conftest.$ac_ext << EOF + +-#line 783 "configure" ++#line 794 "configure" + #include "confdefs.h" + + main(){return(0);} + EOF +-if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then +@@ -817,12 +821,12 @@ + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } + fi + echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +-echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 ++echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 + echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 + cross_compiling=$ac_cv_prog_cc_cross + + echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +-echo "configure:819: checking whether we are using GNU C" >&5 ++echo "configure:830: checking whether we are using GNU C" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -831,7 +835,7 @@ + yes; + #endif + EOF +-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ++if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gcc=yes + else + ac_cv_prog_gcc=no +@@ -845,7 +849,7 @@ + ac_save_CFLAGS="$CFLAGS" + CFLAGS= + echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +-echo "configure:842: checking whether ${CC-cc} accepts -g" >&5 ++echo "configure:853: checking whether ${CC-cc} accepts -g" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -863,14 +867,14 @@ + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else +- CFLAGS="-O" ++ CFLAGS="-O2" + fi + else + GCC= + fi + + echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +-echo "configure:867: checking how to run the C preprocessor" >&5 ++echo "configure:878: checking how to run the C preprocessor" >&5 + # On Suns, sometimes $CPP names a directory. + if test -n "$CPP" && test -d "$CPP"; then + CPP= +@@ -885,13 +889,13 @@ + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext <<EOF +-#line 882 "configure" ++#line 893 "configure" + #include "confdefs.h" + #include <assert.h> + Syntax Error + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + : +@@ -902,13 +906,13 @@ + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext <<EOF +-#line 899 "configure" ++#line 910 "configure" + #include "confdefs.h" + #include <assert.h> + Syntax Error + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + : +@@ -919,13 +923,13 @@ + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext <<EOF +-#line 916 "configure" ++#line 927 "configure" + #include "confdefs.h" + #include <assert.h> + Syntax Error + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + : +@@ -949,12 +953,12 @@ + fi + echo "$ac_t""$CPP" 1>&6 + +-for ac_prog in mawk gawk nawk awk ++for ac_prog in gawk mawk nawk awk + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:951: checking for $ac_word" >&5 ++echo "configure:962: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -996,7 +1000,7 @@ + # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" + # ./install, which can be erroneously created by make from ./install.sh. + echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +-echo "configure:993: checking for a BSD compatible install" >&5 ++echo "configure:1004: checking for a BSD compatible install" >&5 + if test -z "$INSTALL"; then + if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -1053,7 +1057,7 @@ + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:1050: checking for $ac_word" >&5 ++echo "configure:1061: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_path_SUM'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -1091,13 +1095,13 @@ + + if test $ac_cv_prog_gcc = yes; then + echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 +-echo "configure:1088: checking whether ${CC-cc} needs -traditional" >&5 ++echo "configure:1099: checking whether ${CC-cc} needs -traditional" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_pattern="Autoconf.*'x'" + cat > conftest.$ac_ext <<EOF +-#line 1094 "configure" ++#line 1105 "configure" + #include "confdefs.h" + #include <sgtty.h> + Autoconf TIOCGETP +@@ -1115,7 +1119,7 @@ + + if test $ac_cv_prog_gcc_traditional = no; then + cat > conftest.$ac_ext <<EOF +-#line 1112 "configure" ++#line 1123 "configure" + #include "confdefs.h" + #include <termio.h> + Autoconf TCGETA +@@ -1138,7 +1142,7 @@ + + + echo $ac_n "checking for AIX""... $ac_c" 1>&6 +-echo "configure:1135: checking for AIX" >&5 ++echo "configure:1146: checking for AIX" >&5 + if eval "test \"`echo '$''{'irc_cv_aix'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -1170,7 +1174,7 @@ + fi + + echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 +-echo "configure:1167: checking for POSIXized ISC" >&5 ++echo "configure:1178: checking for POSIXized ISC" >&5 + if test -d /etc/conf/kconfig.d && + grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 + then +@@ -1192,17 +1196,17 @@ + + ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 +-echo "configure:1189: checking for minix/config.h" >&5 ++echo "configure:1200: checking for minix/config.h" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1194 "configure" ++#line 1205 "configure" + #include "confdefs.h" + #include <minix/config.h> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -1240,9 +1244,9 @@ + fi + + echo $ac_n "checking for SGI's cc""... $ac_c" 1>&6 +-echo "configure:1237: checking for SGI's cc" >&5 ++echo "configure:1248: checking for SGI's cc" >&5 + cat > conftest.$ac_ext <<EOF +-#line 1239 "configure" ++#line 1250 "configure" + #include "confdefs.h" + #ifdef sgi + yes +@@ -1265,9 +1269,9 @@ + + + echo $ac_n "checking for HPUX's cc""... $ac_c" 1>&6 +-echo "configure:1262: checking for HPUX's cc" >&5 ++echo "configure:1273: checking for HPUX's cc" >&5 + cat > conftest.$ac_ext <<EOF +-#line 1264 "configure" ++#line 1275 "configure" + #include "confdefs.h" + #ifdef hpux + yes +@@ -1290,7 +1294,7 @@ + + + echo $ac_n "checking for SunOS""... $ac_c" 1>&6 +-echo "configure:1287: checking for SunOS" >&5 ++echo "configure:1298: checking for SunOS" >&5 + if eval "test \"`echo '$''{'irc_cv_sun'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -1330,13 +1334,13 @@ + fi + + echo $ac_n "checking for Linux""... $ac_c" 1>&6 +-echo "configure:1327: checking for Linux" >&5 ++echo "configure:1338: checking for Linux" >&5 + if eval "test \"`echo '$''{'irc_cv_linux'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + if test "x`(uname) 2>/dev/null`" = "xLinux"; then + cat > conftest.$ac_ext <<EOF +-#line 1333 "configure" ++#line 1344 "configure" + #include "confdefs.h" + #include <netdb.h> + EOF +@@ -1370,12 +1374,12 @@ + fi + + echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 +-echo "configure:1367: checking for Cygwin environment" >&5 ++echo "configure:1378: checking for Cygwin environment" >&5 + if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1372 "configure" ++#line 1383 "configure" + #include "confdefs.h" + + int main() { +@@ -1386,7 +1390,7 @@ + return __CYGWIN__; + ; return 0; } + EOF +-if { (eval echo configure:1383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_cygwin=yes + else +@@ -1411,12 +1415,12 @@ + + + echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +-echo "configure:1408: checking for ANSI C header files" >&5 ++echo "configure:1419: checking for ANSI C header files" >&5 + if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1413 "configure" ++#line 1424 "configure" + #include "confdefs.h" + #include <stdlib.h> + #include <stdarg.h> +@@ -1424,7 +1428,7 @@ + #include <float.h> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -1441,7 +1445,7 @@ + if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat > conftest.$ac_ext <<EOF +-#line 1438 "configure" ++#line 1449 "configure" + #include "confdefs.h" + #include <string.h> + EOF +@@ -1459,7 +1463,7 @@ + if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat > conftest.$ac_ext <<EOF +-#line 1456 "configure" ++#line 1467 "configure" + #include "confdefs.h" + #include <stdlib.h> + EOF +@@ -1480,7 +1484,7 @@ + : + else + cat > conftest.$ac_ext <<EOF +-#line 1477 "configure" ++#line 1488 "configure" + #include "confdefs.h" + #include <ctype.h> + #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +@@ -1491,7 +1495,7 @@ + exit (0); } + + EOF +-if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + : + else +@@ -1515,12 +1519,12 @@ + fi + + echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 +-echo "configure:1512: checking for sys/wait.h that is POSIX.1 compatible" >&5 ++echo "configure:1523: checking for sys/wait.h that is POSIX.1 compatible" >&5 + if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1517 "configure" ++#line 1528 "configure" + #include "confdefs.h" + #include <sys/types.h> + #include <sys/wait.h> +@@ -1536,7 +1540,7 @@ + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; + ; return 0; } + EOF +-if { (eval echo configure:1533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_sys_wait_h=yes + else +@@ -1560,17 +1564,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:1557: checking for $ac_hdr" >&5 ++echo "configure:1568: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1562 "configure" ++#line 1573 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -1597,12 +1601,12 @@ + done + + echo $ac_n "checking for sys_nerr declaration in stdio.h, errno.h or sys/errno.h""... $ac_c" 1>&6 +-echo "configure:1594: checking for sys_nerr declaration in stdio.h, errno.h or sys/errno.h" >&5 ++echo "configure:1605: checking for sys_nerr declaration in stdio.h, errno.h or sys/errno.h" >&5 + if eval "test \"`echo '$''{'irc_cv_decl_sys_nerr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1599 "configure" ++#line 1610 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -1621,7 +1625,7 @@ + int num = sys_nerr; + ; return 0; } + EOF +-if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_sys_nerr=yes + else +@@ -1642,12 +1646,12 @@ + fi + + echo $ac_n "checking for errno declaration in errno.h or sys/errno.h""... $ac_c" 1>&6 +-echo "configure:1639: checking for errno declaration in errno.h or sys/errno.h" >&5 ++echo "configure:1650: checking for errno declaration in errno.h or sys/errno.h" >&5 + if eval "test \"`echo '$''{'irc_cv_decl_errno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1644 "configure" ++#line 1655 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -1663,7 +1667,7 @@ + int num = errno; + ; return 0; } + EOF +-if { (eval echo configure:1660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_errno=yes + else +@@ -1684,12 +1688,12 @@ + fi + + echo $ac_n "checking for h_errno declaration in errno.h, sys/errno.h or netdb.h""... $ac_c" 1>&6 +-echo "configure:1681: checking for h_errno declaration in errno.h, sys/errno.h or netdb.h" >&5 ++echo "configure:1692: checking for h_errno declaration in errno.h, sys/errno.h or netdb.h" >&5 + if eval "test \"`echo '$''{'irc_cv_decl_h_errno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1686 "configure" ++#line 1697 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -1708,7 +1712,7 @@ + int num = h_errno; + ; return 0; } + EOF +-if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_h_errno=yes + else +@@ -1729,12 +1733,12 @@ + fi + + echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 +-echo "configure:1726: checking whether stat file-mode macros are broken" >&5 ++echo "configure:1737: checking whether stat file-mode macros are broken" >&5 + if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1731 "configure" ++#line 1742 "configure" + #include "confdefs.h" + #include <sys/types.h> + #include <sys/stat.h> +@@ -1785,12 +1789,12 @@ + fi + + echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 +-echo "configure:1782: checking whether time.h and sys/time.h may both be included" >&5 ++echo "configure:1793: checking whether time.h and sys/time.h may both be included" >&5 + if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1787 "configure" ++#line 1798 "configure" + #include "confdefs.h" + #include <sys/types.h> + #include <sys/time.h> +@@ -1799,7 +1803,7 @@ + struct tm *tp; + ; return 0; } + EOF +-if { (eval echo configure:1796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_time=yes + else +@@ -1820,12 +1824,12 @@ + fi + + echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 +-echo "configure:1817: checking whether struct tm is in sys/time.h or time.h" >&5 ++echo "configure:1828: checking whether struct tm is in sys/time.h or time.h" >&5 + if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1822 "configure" ++#line 1833 "configure" + #include "confdefs.h" + #include <sys/types.h> + #include <time.h> +@@ -1833,7 +1837,7 @@ + struct tm *tp; tp->tm_sec; + ; return 0; } + EOF +-if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_tm=time.h + else +@@ -1854,12 +1858,12 @@ + fi + + echo $ac_n "checking for mode_t""... $ac_c" 1>&6 +-echo "configure:1851: checking for mode_t" >&5 ++echo "configure:1862: checking for mode_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1856 "configure" ++#line 1867 "configure" + #include "confdefs.h" + #include <sys/types.h> + #if STDC_HEADERS +@@ -1887,12 +1891,12 @@ + fi + + echo $ac_n "checking for off_t""... $ac_c" 1>&6 +-echo "configure:1884: checking for off_t" >&5 ++echo "configure:1895: checking for off_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1889 "configure" ++#line 1900 "configure" + #include "confdefs.h" + #include <sys/types.h> + #if STDC_HEADERS +@@ -1920,12 +1924,12 @@ + fi + + echo $ac_n "checking for pid_t""... $ac_c" 1>&6 +-echo "configure:1917: checking for pid_t" >&5 ++echo "configure:1928: checking for pid_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1922 "configure" ++#line 1933 "configure" + #include "confdefs.h" + #include <sys/types.h> + #if STDC_HEADERS +@@ -1953,12 +1957,12 @@ + fi + + echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 +-echo "configure:1950: checking return type of signal handlers" >&5 ++echo "configure:1961: checking return type of signal handlers" >&5 + if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1955 "configure" ++#line 1966 "configure" + #include "confdefs.h" + #include <sys/types.h> + #include <signal.h> +@@ -1975,7 +1979,7 @@ + int i; + ; return 0; } + EOF +-if { (eval echo configure:1972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_signal=void + else +@@ -1994,12 +1998,12 @@ + + + echo $ac_n "checking for size_t""... $ac_c" 1>&6 +-echo "configure:1991: checking for size_t" >&5 ++echo "configure:2002: checking for size_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 1996 "configure" ++#line 2007 "configure" + #include "confdefs.h" + #include <sys/types.h> + #if STDC_HEADERS +@@ -2027,12 +2031,12 @@ + fi + + echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 +-echo "configure:2024: checking for uid_t in sys/types.h" >&5 ++echo "configure:2035: checking for uid_t in sys/types.h" >&5 + if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2029 "configure" ++#line 2040 "configure" + #include "confdefs.h" + #include <sys/types.h> + EOF +@@ -2061,12 +2065,12 @@ + fi + + echo $ac_n "checking whether an union wait * is mandatory in waitpid""... $ac_c" 1>&6 +-echo "configure:2058: checking whether an union wait * is mandatory in waitpid" >&5 ++echo "configure:2069: checking whether an union wait * is mandatory in waitpid" >&5 + if eval "test \"`echo '$''{'irc_cv_type_union_wait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2063 "configure" ++#line 2074 "configure" + #include "confdefs.h" + + #if HAVE_SYS_WAIT_H +@@ -2079,7 +2083,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_type_union_wait=no + else +@@ -2087,7 +2091,7 @@ + cat conftest.$ac_ext >&5 + rm -rf conftest* + cat > conftest.$ac_ext <<EOF +-#line 2084 "configure" ++#line 2095 "configure" + #include "confdefs.h" + + #if HAVE_SYS_WAIT_H +@@ -2100,7 +2104,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_type_union_wait=yes + else +@@ -2125,12 +2129,12 @@ + fi + + echo $ac_n "checking for int8_t""... $ac_c" 1>&6 +-echo "configure:2122: checking for int8_t" >&5 ++echo "configure:2133: checking for int8_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2127 "configure" ++#line 2138 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2164,12 +2168,12 @@ + fi + + echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6 +-echo "configure:2161: checking for u_int8_t" >&5 ++echo "configure:2172: checking for u_int8_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_u_int8_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2166 "configure" ++#line 2177 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2203,12 +2207,12 @@ + fi + + echo $ac_n "checking for int16_t""... $ac_c" 1>&6 +-echo "configure:2200: checking for int16_t" >&5 ++echo "configure:2211: checking for int16_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2205 "configure" ++#line 2216 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2242,12 +2246,12 @@ + fi + + echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6 +-echo "configure:2239: checking for u_int16_t" >&5 ++echo "configure:2250: checking for u_int16_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2244 "configure" ++#line 2255 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2281,12 +2285,12 @@ + fi + + echo $ac_n "checking for int32_t""... $ac_c" 1>&6 +-echo "configure:2278: checking for int32_t" >&5 ++echo "configure:2289: checking for int32_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2283 "configure" ++#line 2294 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2320,12 +2324,12 @@ + fi + + echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6 +-echo "configure:2317: checking for u_int32_t" >&5 ++echo "configure:2328: checking for u_int32_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2322 "configure" ++#line 2333 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2359,12 +2363,12 @@ + fi + + echo $ac_n "checking for u_char""... $ac_c" 1>&6 +-echo "configure:2356: checking for u_char" >&5 ++echo "configure:2367: checking for u_char" >&5 + if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2361 "configure" ++#line 2372 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2398,12 +2402,12 @@ + fi + + echo $ac_n "checking for u_short""... $ac_c" 1>&6 +-echo "configure:2395: checking for u_short" >&5 ++echo "configure:2406: checking for u_short" >&5 + if eval "test \"`echo '$''{'ac_cv_type_u_short'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2400 "configure" ++#line 2411 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2437,12 +2441,12 @@ + fi + + echo $ac_n "checking for u_int""... $ac_c" 1>&6 +-echo "configure:2434: checking for u_int" >&5 ++echo "configure:2445: checking for u_int" >&5 + if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2439 "configure" ++#line 2450 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2476,12 +2480,12 @@ + fi + + echo $ac_n "checking for u_long""... $ac_c" 1>&6 +-echo "configure:2473: checking for u_long" >&5 ++echo "configure:2484: checking for u_long" >&5 + if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2478 "configure" ++#line 2489 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -2516,14 +2520,14 @@ + + + echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 +-echo "configure:2513: checking whether byte ordering is bigendian" >&5 ++echo "configure:2524: checking whether byte ordering is bigendian" >&5 + if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_cv_c_bigendian=unknown + # See if sys/param.h defines the BYTE_ORDER macro. + cat > conftest.$ac_ext <<EOF +-#line 2520 "configure" ++#line 2531 "configure" + #include "confdefs.h" + #include <sys/types.h> + #include <sys/param.h> +@@ -2534,11 +2538,11 @@ + #endif + ; return 0; } + EOF +-if { (eval echo configure:2531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + # It does; now see whether it defined to BIG_ENDIAN or not. + cat > conftest.$ac_ext <<EOF +-#line 2535 "configure" ++#line 2546 "configure" + #include "confdefs.h" + #include <sys/types.h> + #include <sys/param.h> +@@ -2549,7 +2553,7 @@ + #endif + ; return 0; } + EOF +-if { (eval echo configure:2546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_bigendian=yes + else +@@ -2569,7 +2573,7 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 2566 "configure" ++#line 2577 "configure" + #include "confdefs.h" + main () { + /* Are we little or big endian? From Harbison&Steele. */ +@@ -2582,7 +2586,7 @@ + exit (u.c[sizeof (long) - 1] == 1); + } + EOF +-if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_c_bigendian=no + else +@@ -2606,12 +2610,12 @@ + fi + + echo $ac_n "checking for working const""... $ac_c" 1>&6 +-echo "configure:2603: checking for working const" >&5 ++echo "configure:2614: checking for working const" >&5 + if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 2608 "configure" ++#line 2619 "configure" + #include "confdefs.h" + + int main() { +@@ -2660,7 +2664,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_const=yes + else +@@ -2682,7 +2686,7 @@ + + + echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 +-echo "configure:2679: checking for crypt in -lcrypt" >&5 ++echo "configure:2690: checking for crypt in -lcrypt" >&5 + ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -2690,7 +2694,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lcrypt $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 2687 "configure" ++#line 2698 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 +@@ -2701,7 +2705,7 @@ + crypt() + ; return 0; } + EOF +-if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -2729,7 +2733,7 @@ + fi + + echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 +-echo "configure:2726: checking for socket in -lsocket" >&5 ++echo "configure:2737: checking for socket in -lsocket" >&5 + ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -2737,7 +2741,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsocket $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 2734 "configure" ++#line 2745 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 +@@ -2748,7 +2752,7 @@ + socket() + ; return 0; } + EOF +-if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -2776,7 +2780,7 @@ + fi + + echo $ac_n "checking for socket in -lnsl""... $ac_c" 1>&6 +-echo "configure:2773: checking for socket in -lnsl" >&5 ++echo "configure:2784: checking for socket in -lnsl" >&5 + ac_lib_var=`echo nsl'_'socket | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -2784,7 +2788,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lnsl $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 2781 "configure" ++#line 2792 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 +@@ -2795,7 +2799,7 @@ + socket() + ; return 0; } + EOF +-if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -2824,21 +2828,21 @@ + + + echo $ac_n "checking library containing pow""... $ac_c" 1>&6 +-echo "configure:2821: checking library containing pow" >&5 ++echo "configure:2832: checking library containing pow" >&5 + if eval "test \"`echo '$''{'irc_cv_mathlib'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + irc_cv_mathlib="" + cat > conftest.$ac_ext <<EOF +-#line 2828 "configure" ++#line 2839 "configure" + #include "confdefs.h" + + int main() { + pow(1.0, 1.0) + ; return 0; } + EOF +-if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + MATHLIBS= + else +@@ -2849,14 +2853,14 @@ + irc_cv_mathlib="-lm" + LIBS="-lm $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 2846 "configure" ++#line 2857 "configure" + #include "confdefs.h" + + int main() { + pow(1.0, 1.0) + ; return 0; } + EOF +-if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + MATHLIBS=-lm + else +@@ -2877,7 +2881,7 @@ + + + echo $ac_n "checking for zlib package""... $ac_c" 1>&6 +-echo "configure:2874: checking for zlib package" >&5 ++echo "configure:2885: checking for zlib package" >&5 + # Check whether --with-zlib or --without-zlib was given. + if test "${with_zlib+set}" = set; then + withval="$with_zlib" +@@ -2900,12 +2904,12 @@ + no_zlib_include=yes + no_zlib_library=yes + cat > conftest.$ac_ext <<EOF +-#line 2897 "configure" ++#line 2908 "configure" + #include "confdefs.h" + #include <zlib.h> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2939,14 +2943,14 @@ + irc_save_LIBS="$LIBS" + LIBS="-lz $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 2936 "configure" ++#line 2947 "configure" + #include "confdefs.h" + + int main() { + inflate() + ; return 0; } + EOF +-if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + no_zlib_library= + irc_zlib_library= +@@ -3024,7 +3028,7 @@ + + + echo $ac_n "checking which curses or termcap library will be used""... $ac_c" 1>&6 +-echo "configure:3021: checking which curses or termcap library will be used" >&5 ++echo "configure:3032: checking which curses or termcap library will be used" >&5 + # Check whether --with-ncurses or --without-ncurses was given. + if test "${with_ncurses+set}" = set; then + withval="$with_ncurses" +@@ -3055,14 +3059,14 @@ + irc_save_LIBS="$LIBS" + LIBS="-lncurses $irc_save_LIBS" + cat > conftest.$ac_ext <<EOF +-#line 3052 "configure" ++#line 3063 "configure" + #include "confdefs.h" + + int main() { + initscr() + ; return 0; } + EOF +-if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_ncurses=yes + else +@@ -3074,14 +3078,14 @@ + rm -f conftest* + LIBS="-lcursesX $irc_save_LIBS" + cat > conftest.$ac_ext <<EOF +-#line 3071 "configure" ++#line 3082 "configure" + #include "confdefs.h" + + int main() { + initscr() + ; return 0; } + EOF +-if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_cursesX=yes + else +@@ -3093,14 +3097,14 @@ + rm -f conftest* + LIBS="-lcurses $irc_save_LIBS" + cat > conftest.$ac_ext <<EOF +-#line 3090 "configure" ++#line 3101 "configure" + #include "confdefs.h" + + int main() { + initscr() + ; return 0; } + EOF +-if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_curses=yes + else +@@ -3112,14 +3116,14 @@ + rm -f conftest* + LIBS="-lcurses -ltermcap $irc_save_LIBS" + cat > conftest.$ac_ext <<EOF +-#line 3109 "configure" ++#line 3120 "configure" + #include "confdefs.h" + + int main() { + initscr() + ; return 0; } + EOF +-if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_curses_termcap=yes + else +@@ -3131,14 +3135,14 @@ + rm -f conftest* + LIBS="-ltermcap $irc_save_LIBS" + cat > conftest.$ac_ext <<EOF +-#line 3128 "configure" ++#line 3139 "configure" + #include "confdefs.h" + + int main() { + tgetent() + ; return 0; } + EOF +-if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_termcap=yes + else +@@ -3211,7 +3215,7 @@ + + + echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6 +-echo "configure:3208: checking whether setpgrp takes no argument" >&5 ++echo "configure:3219: checking whether setpgrp takes no argument" >&5 + if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3219,7 +3223,7 @@ + { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 3216 "configure" ++#line 3227 "configure" + #include "confdefs.h" + + #ifdef HAVE_UNISTD_H +@@ -3239,7 +3243,7 @@ + } + + EOF +-if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_func_setpgrp_void=no + else +@@ -3263,7 +3267,7 @@ + fi + + echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 +-echo "configure:3260: checking whether setvbuf arguments are reversed" >&5 ++echo "configure:3271: checking whether setvbuf arguments are reversed" >&5 + if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3271,7 +3275,7 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 3268 "configure" ++#line 3279 "configure" + #include "confdefs.h" + #include <stdio.h> + /* If setvbuf has the reversed format, exit 0. */ +@@ -3285,7 +3289,7 @@ + exit(0); /* Non-reversed systems segv here. */ + } + EOF +-if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_func_setvbuf_reversed=yes + else +@@ -3310,17 +3314,17 @@ + + ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 +-echo "configure:3307: checking for vfork.h" >&5 ++echo "configure:3318: checking for vfork.h" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3312 "configure" ++#line 3323 "configure" + #include "confdefs.h" + #include <vfork.h> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:3317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:3328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -3345,18 +3349,18 @@ + fi + + echo $ac_n "checking for working vfork""... $ac_c" 1>&6 +-echo "configure:3342: checking for working vfork" >&5 ++echo "configure:3353: checking for working vfork" >&5 + if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + if test "$cross_compiling" = yes; then + echo $ac_n "checking for vfork""... $ac_c" 1>&6 +-echo "configure:3348: checking for vfork" >&5 ++echo "configure:3359: checking for vfork" >&5 + if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3353 "configure" ++#line 3364 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char vfork(); below. */ +@@ -3379,7 +3383,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_vfork=yes" + else +@@ -3401,7 +3405,7 @@ + ac_cv_func_vfork_works=$ac_cv_func_vfork + else + cat > conftest.$ac_ext <<EOF +-#line 3398 "configure" ++#line 3409 "configure" + #include "confdefs.h" + /* Thanks to Paul Eggert for this test. */ + #include <stdio.h> +@@ -3496,7 +3500,7 @@ + } + } + EOF +-if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_func_vfork_works=yes + else +@@ -3518,15 +3522,15 @@ + + fi + +-for ac_func in setpgrp strchr strrchr memcmp memset memmove memcpy index rindex bcmp bcopy bzero select inet_ntoa inet_aton inet_addr inet_netof getrusage times strerror strtoken strtok stricmp strcasecmp sigaction sigset truncate poll vsyslog ++for ac_func in setpgrp strchr strrchr stricmp strcasecmp memcmp memset memmove memcpy index rindex bcmp bcopy bzero select inet_ntoa inet_aton inet_addr inet_netof getrusage times strerror strtoken strtok sigaction sigset truncate poll vsyslog + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:3518: checking for $ac_func" >&5 ++echo "configure:3529: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3523 "configure" ++#line 3534 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +@@ -3549,7 +3553,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -3574,12 +3578,12 @@ + done + + echo $ac_n "checking for sys_errlist declaration in stdio.h, errno.h or sys/errno.h""... $ac_c" 1>&6 +-echo "configure:3571: checking for sys_errlist declaration in stdio.h, errno.h or sys/errno.h" >&5 ++echo "configure:3582: checking for sys_errlist declaration in stdio.h, errno.h or sys/errno.h" >&5 + if eval "test \"`echo '$''{'irc_cv_decl_sys_errlist'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 3576 "configure" ++#line 3587 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -3598,7 +3602,7 @@ + char *msg = sys_errlist[0]; + ; return 0; } + EOF +-if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_sys_errlist=yes + else +@@ -3621,7 +3625,7 @@ + fi + + echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 +-echo "configure:3618: checking for 8-bit clean memcmp" >&5 ++echo "configure:3629: checking for 8-bit clean memcmp" >&5 + if eval "test \"`echo '$''{'irc_cv_func_memcmp_clean'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3629,7 +3633,7 @@ + irc_cv_func_memcmp_clean=no + else + cat > conftest.$ac_ext <<EOF +-#line 3626 "configure" ++#line 3637 "configure" + #include "confdefs.h" + + main() +@@ -3639,7 +3643,7 @@ + } + + EOF +-if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + irc_cv_func_memcmp_clean=yes + else +@@ -3662,7 +3666,7 @@ + fi + + echo $ac_n "checking whether select or poll system call will be used""... $ac_c" 1>&6 +-echo "configure:3659: checking whether select or poll system call will be used" >&5 ++echo "configure:3670: checking whether select or poll system call will be used" >&5 + if eval "test \"`echo '$''{'irc_cv_select_poll'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3691,7 +3695,7 @@ + + + echo $ac_n "checking for signal implementation""... $ac_c" 1>&6 +-echo "configure:3688: checking for signal implementation" >&5 ++echo "configure:3699: checking for signal implementation" >&5 + if eval "test \"`echo '$''{'irc_cv_signal_implementation'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3704,7 +3708,7 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 3701 "configure" ++#line 3712 "configure" + #include "confdefs.h" + + #if HAVE_SYS_TYPES_H +@@ -3735,7 +3739,7 @@ + } + + EOF +-if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + irc_cv_signal_implementation=bsd_signal + else +@@ -3782,7 +3786,7 @@ + fi + + echo $ac_n "checking for a working non-blocking system""... $ac_c" 1>&6 +-echo "configure:3779: checking for a working non-blocking system" >&5 ++echo "configure:3790: checking for a working non-blocking system" >&5 + if eval "test \"`echo '$''{'irc_cv_non_blocking_system'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3838,11 +3842,11 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 3835 "configure" ++#line 3846 "configure" + #include "confdefs.h" + $irc_code_posix + EOF +-if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + irc_cv_non_blocking_system=posix + else +@@ -3853,11 +3857,11 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 3850 "configure" ++#line 3861 "configure" + #include "confdefs.h" + $irc_code_bsd + EOF +-if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + irc_cv_non_blocking_system=bsd + else +@@ -3868,11 +3872,11 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 3865 "configure" ++#line 3876 "configure" + #include "confdefs.h" + $irc_code_sysv + EOF +-if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + irc_cv_non_blocking_system=sysv + else +@@ -3919,7 +3923,7 @@ + fi + + echo $ac_n "checking for working stdarg""... $ac_c" 1>&6 +-echo "configure:3916: checking for working stdarg" >&5 ++echo "configure:3927: checking for working stdarg" >&5 + if eval "test \"`echo '$''{'irc_cv_stdarg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -3927,7 +3931,7 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <<EOF +-#line 3924 "configure" ++#line 3935 "configure" + #include "confdefs.h" + + #if HAVE_STDIO_H +@@ -4009,7 +4013,7 @@ + } + + EOF +-if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + irc_cv_stdarg=yes + else +@@ -4035,7 +4039,7 @@ + fi + + echo $ac_n "checking for resolver configuration file""... $ac_c" 1>&6 +-echo "configure:4032: checking for resolver configuration file" >&5 ++echo "configure:4043: checking for resolver configuration file" >&5 + if eval "test \"`echo '$''{'irc_cv_path_resconf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4068,13 +4072,13 @@ + EOF + + echo $ac_n "checking IPv6 system type""... $ac_c" 1>&6 +-echo "configure:4065: checking IPv6 system type" >&5 ++echo "configure:4076: checking IPv6 system type" >&5 + if eval "test \"`echo '$''{'irc_cv_v6type'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext <<EOF +-#line 4071 "configure" ++#line 4082 "configure" + #include "confdefs.h" + + #include <unistd.h> +@@ -4083,7 +4087,7 @@ + struct in6_addr addr + ; return 0; } + EOF +-if { (eval echo configure:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:4091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_v6type=native + else +@@ -4095,7 +4099,7 @@ + if test "x$irc_cv_v6type" = x; then + if test -d /usr/inet6; then + cat > conftest.$ac_ext <<EOF +-#line 4092 "configure" ++#line 4103 "configure" + #include "confdefs.h" + dnl + #include "/usr/inet6/include/netinet/in.h" +@@ -4136,12 +4140,12 @@ + for ac_func in getipnodebyname + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:4133: checking for $ac_func" >&5 ++echo "configure:4144: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4138 "configure" ++#line 4149 "configure" + #include "confdefs.h" + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +@@ -4164,7 +4168,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -4190,7 +4194,7 @@ + + + echo $ac_n "checking for IPv6 name server addresses in resolv.conf ($irc_cv_path_resconf)""... $ac_c" 1>&6 +-echo "configure:4187: checking for IPv6 name server addresses in resolv.conf ($irc_cv_path_resconf)" >&5 ++echo "configure:4198: checking for IPv6 name server addresses in resolv.conf ($irc_cv_path_resconf)" >&5 + if grep nameserver $irc_cv_path_resconf | grep ':' >/dev/null 2>&1; then + echo "$ac_t""yes" 1>&6 + echo "configure: warning: $irc_cv_path_resconf is not setup correctly." 1>&2 +@@ -4214,17 +4218,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4211: checking for $ac_hdr" >&5 ++echo "configure:4222: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4216 "configure" ++#line 4227 "configure" + #include "confdefs.h" + #include <$ac_hdr> + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4251,7 +4255,7 @@ + done + + echo $ac_n "checking for dlclose in -ldl""... $ac_c" 1>&6 +-echo "configure:4248: checking for dlclose in -ldl" >&5 ++echo "configure:4259: checking for dlclose in -ldl" >&5 + ac_lib_var=`echo dl'_'dlclose | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4259,7 +4263,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-ldl $LIBS" + cat > conftest.$ac_ext <<EOF +-#line 4256 "configure" ++#line 4267 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 +@@ -4270,7 +4274,7 @@ + dlclose() + ; return 0; } + EOF +-if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4294,12 +4298,12 @@ + fi + + echo $ac_n "checking whether this is an alpha/beta release""... $ac_c" 1>&6 +-echo "configure:4291: checking whether this is an alpha/beta release" >&5 ++echo "configure:4302: checking whether this is an alpha/beta release" >&5 + if eval "test \"`echo '$''{'irc_cv_alpha_beta'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <<EOF +-#line 4296 "configure" ++#line 4307 "configure" + #include "confdefs.h" + #include "../common/patchlevel.h" + #ifdef PATCHLEVEL +@@ -4348,6 +4352,56 @@ + fi + + ++ ++echo $ac_n "checking "Set IRC Network Namedefault Rusnet"""... $ac_c" 1>&6 ++echo "configure:4358: checking "Set IRC Network Namedefault Rusnet"" >&5 ++cat >> confdefs.h <<\EOF ++#define IRC_NETNAME 1 ++EOF ++ ++# Check whether --with-name or --without-name was given. ++if test "${with_name+set}" = set; then ++ withval="$with_name" ++ IRC_NETNAME=$withval ++else ++ IRC_NETNAME='"RusNet"' ++fi ++ ++echo "$ac_t""$IRC_NETNAME " 1>&6 ++ ++ ++ ++echo $ac_n "checking "set user for own ircd files default nobody"""... $ac_c" 1>&6 ++echo "configure:4376: checking "set user for own ircd files default nobody"" >&5 ++cat >> confdefs.h <<\EOF ++#define IRC_UID 1 ++EOF ++ ++cat >> confdefs.h <<\EOF ++#define IRC_GID 1 ++EOF ++ ++# Check whether --with-user or --without-user was given. ++if test "${with_user+set}" = set; then ++ withval="$with_user" ++ user=$withval ++else ++ user="nobody" ++ ++fi ++ ++`id $user >/dev/null` ++if test $? -eq 1; then ++ { echo "configure: error: "no valid users set" " 1>&2; exit 1; } ++fi ++echo "$ac_t""$user " 1>&6 ++IRC_UID=`id -ru $user` ++IRC_GID=`id -rg $user` ++ ++ ++ ++ ++ + trap '' 1 2 15 + cat > confcache <<\EOF + # This file is a shell script that caches the results of configure +@@ -4449,7 +4503,7 @@ + ac_given_srcdir=$srcdir + ac_given_INSTALL="$INSTALL" + +-trap 'rm -fr `echo "Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist setup.h:../support/setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 ++trap 'rm -fr `echo "Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist config.h:../support/config.h.dist setup.h:../support/setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 + EOF + cat >> $CONFIG_STATUS <<EOF + +@@ -4509,6 +4563,9 @@ + s%@IRC_ZLIB_LIBRARY@%$IRC_ZLIB_LIBRARY%g + s%@IRC_CURSES_TERMCAP_LIBRARY@%$IRC_CURSES_TERMCAP_LIBRARY%g + s%@IRC_DLIB@%$IRC_DLIB%g ++s%@IRC_NETNAME@%$IRC_NETNAME%g ++s%@IRC_UID@%$IRC_UID%g ++s%@IRC_GID@%$IRC_GID%g + + CEOF + EOF +@@ -4550,7 +4607,7 @@ + + cat >> $CONFIG_STATUS <<EOF + +-CONFIG_FILES=\${CONFIG_FILES-"Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist"} ++CONFIG_FILES=\${CONFIG_FILES-"Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist config.h:../support/config.h.dist "} + EOF + cat >> $CONFIG_STATUS <<\EOF + for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then diff --git a/irc/ircd-rusnet/files/patch-support-configure.in b/irc/ircd-rusnet/files/patch-support-configure.in new file mode 100644 index 000000000000..308524cf133b --- /dev/null +++ b/irc/ircd-rusnet/files/patch-support-configure.in @@ -0,0 +1,60 @@ +--- support/configure.in.orig 2003-09-30 17:23:20.000000000 +0300 ++++ support/configure.in 2004-11-10 08:38:57.000000000 +0200 +@@ -1329,7 +1329,7 @@ + test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + AC_SUBST(INSTALL_PROGRAM)dnl + +-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -g ${IRC_USER} -o ${IRC_UID} -m 644' + AC_SUBST(INSTALL_DATA)dnl + ]) + +@@ -1434,6 +1434,38 @@ + fi + ]) + ++AC_DEFUN(IRC_SETUP_NETWORK, ++[ ++AC_MSG_CHECKING("Set IRC Network Name[default Rusnet]") ++AC_DEFINE(IRC_NETNAME) ++AC_ARG_WITH(name, [ --with-netname=[name] set IRC Network Name], ++[IRC_NETNAME=$withval], ++[IRC_NETNAME='"RusNet"'], ++) ++AC_MSG_RESULT( $IRC_NETNAME ) ++AC_SUBST(IRC_NETNAME) ++]) ++ ++AC_DEFUN(IRC_SETUP_USER, ++[ ++AC_MSG_CHECKING("set user for own ircd files [default nobody]") ++AC_DEFINE(IRC_UID) ++AC_DEFINE(IRC_GID) ++AC_ARG_WITH(user, [ --with-user=[username] set user for own ircd files], ++[user=$withval], ++[user="nobody"] ++) ++`id $user >/dev/null` ++if test $? -eq 1; then ++ AC_MSG_ERROR( "no valid users set" ) ++fi ++AC_MSG_RESULT( $user ) ++IRC_UID=`id -ru $user` ++IRC_GID=`id -rg $user` ++ ++AC_SUBST(IRC_UID) ++AC_SUBST(IRC_GID) ++]) + + dnl ---- + dnl main +@@ -1521,5 +1553,8 @@ + IRC_SHAREDMODULES + IRC_ALPHA_BETA + +-AC_OUTPUT(Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist) ++IRC_SETUP_NETWORK ++IRC_SETUP_USER ++ ++AC_OUTPUT(Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist config.h:../support/config.h.dist ) + AC_OUTPUT_COMMANDS(chmod a+x version.c.SH) diff --git a/irc/ircd-rusnet/pkg-deinstall b/irc/ircd-rusnet/pkg-deinstall new file mode 100644 index 000000000000..384e47482cd9 --- /dev/null +++ b/irc/ircd-rusnet/pkg-deinstall @@ -0,0 +1,26 @@ +#! /bin/sh + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +PATH=/bin:/usr/bin + +USER=ircd +GROUP=${USER} + +if /usr/sbin/pw groupdel ${GROUP}; then + echo "Deleted group \"${GROUP}\"" +else + echo "Deleting group \"${GROUP}\" failed" + exit 1 +fi + +if /usr/sbin/pw userdel ${USER}; then + echo "Deleted user \"${USER}\"" +else + echo "Deleting user \"${USER}\" failed" + exit 1 +fi + +exit 0 diff --git a/irc/ircd-rusnet/pkg-descr b/irc/ircd-rusnet/pkg-descr new file mode 100644 index 000000000000..036fa63bb3d8 --- /dev/null +++ b/irc/ircd-rusnet/pkg-descr @@ -0,0 +1,7 @@ +Special version of IRC server for RusNet IRC Network. +In addition to base features of ircd 2.9.10 it supports +russian charsets translation (koi8-r,cp1251,translit, etc..) +and also some RusNet protocol extensions. + +Author: see Authors +WWW: http://www.rusnet.org.ru/programms.html diff --git a/irc/ircd-rusnet/pkg-install b/irc/ircd-rusnet/pkg-install new file mode 100644 index 000000000000..0e7e251fabe4 --- /dev/null +++ b/irc/ircd-rusnet/pkg-install @@ -0,0 +1,35 @@ +#! /bin/sh + +if [ "$2" != "PRE-CONFIGURE" -a "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +PATH=/bin:/usr/bin + +USER=ircd +UID=72 +GROUP=${USER} +GID=${UID} + +if ! /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null 1>&2; then + if /usr/sbin/pw groupadd ${GROUP} -g ${GID}; then + echo -n "Added group: " + /usr/sbin/pw groupshow ${GROUP} + else + echo "Adding group \"${GROUP}\" failed" + exit 1 + fi +fi + +if ! /usr/sbin/pw usershow "${USER}" 2>/dev/null 1>&2; then + if /usr/sbin/pw useradd ${USER} -h - -u ${UID} -g ${GROUP} \ + -d "/nonexistent" -s "/sbin/nologin" -c "RusNet IRC Server"; then + echo -n "Added user: " + /usr/sbin/pw usershow ${USER} + else + echo "Adding user \"${USER}\" failed" + exit 1 + fi +fi + +exit 0 diff --git a/irc/ircd-rusnet/pkg-message b/irc/ircd-rusnet/pkg-message new file mode 100644 index 000000000000..aa52db04ec91 --- /dev/null +++ b/irc/ircd-rusnet/pkg-message @@ -0,0 +1,13 @@ + +===> INSTALL NOTES: + Now edit /usr/local/ircd-rusnet/etc/rusnet.conf + and /usr/local/ircd-rusnet/etc/rusnet.conf + (cd /usr/local/etc/ircd-rusnet + cp example.conf ircd.conf + cp example.rusnet.conf rusnet.conf + vi ircd.conf; vi rusnet.conf) + + And then start IRC server: + (cd /usr/local/etc/rc.d + mv ircd.sh.sample ircd.sh + /usr/local/etc/rc.d/ircd.sh start) diff --git a/irc/ircd-rusnet/pkg-plist b/irc/ircd-rusnet/pkg-plist new file mode 100644 index 000000000000..1c4607e1ff8e --- /dev/null +++ b/irc/ircd-rusnet/pkg-plist @@ -0,0 +1,48 @@ +bin/irc +etc/ircd-rusnet/codepages/ALT2UNI +etc/ircd-rusnet/codepages/ISO2UNI +etc/ircd-rusnet/codepages/KOI2UNI +etc/ircd-rusnet/codepages/MAC2UNI +etc/ircd-rusnet/codepages/MRO2UNI +etc/ircd-rusnet/codepages/TRN2UNI +etc/ircd-rusnet/codepages/UNI2ALT +etc/ircd-rusnet/codepages/UNI2ISO +etc/ircd-rusnet/codepages/UNI2KOI +etc/ircd-rusnet/codepages/UNI2MAC +etc/ircd-rusnet/codepages/UNI2MRO +etc/ircd-rusnet/codepages/UNI2TRN +etc/ircd-rusnet/codepages/UNI2WIN +etc/ircd-rusnet/codepages/WIN2UNI +etc/ircd-rusnet/example.conf +etc/ircd-rusnet/example.rusnet.conf +etc/ircd-rusnet/example.tkserv.access +etc/ircd-rusnet/iauth.conf +etc/ircd-rusnet/kills.conf +etc/ircd-rusnet/ircd.m4 +etc/ircd-rusnet/ircd.motd.sample +etc/rc.d/ircd.sh.sample +sbin/ircd +sbin/iauth +sbin/chkconf +sbin/ircd-mkpasswd +sbin/ircdwatch +sbin/tkserv +%%PORTDOCS%%%%DOCSDIR%%/CHANGED +%%PORTDOCS%%%%DOCSDIR%%/FAQ +%%PORTDOCS%%%%DOCSDIR%%/Authors +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/Etiquette +%%PORTDOCS%%%%DOCSDIR%%/INSTALL.appendix +%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES +%%PORTDOCS%%%%DOCSDIR%%/SERVICE.txt +%%PORTDOCS%%%%DOCSDIR%%/alt-irc-faq +%%PORTDOCS%%%%DOCSDIR%%/iauth-internals.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm etc/ircd-rusnet/codepages +@dirrm etc/ircd-rusnet +@unexec rmdir /var/log/ircd 2>/dev/null || true +@unexec rmdir /var/run/ircd 2>/dev/null || true |