* Jim Razmus <[EMAIL PROTECTED]> [051125 23:06]:
> * Nikolay Sturm <[EMAIL PROTECTED]> [051125 14:06]:
> > * Jim Razmus [2005-11-21]:
> > > This patch adds the HUB and BIG flavors to net/irc. The HUB flavor is
> > > required if you want to connect multiple IRC servers together with a
> > > hub server. The BIG flavor simply bumps the MAXCONNECTIONS and
> > > MAXCHANNELSPERUSER to 200 and 25 respectively. Big is relative and
> > > perhaps MAXCONNECTIONS should be ~1000.
> >
> > Would it hurt to make these defaults?
> >
> > Nikolay
> >
>
> Wouldn't bother me. I'll do some testing and report back. I'll also
> test cranking 'big' higher than 200 and see what happens.
>
> Jim
>
I am running a hub server built with this updated patch. It's working
just fine. I will be updating my leaf nodes at a much later date.
Let me know if you have any questions.
Jim
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/irc/Makefile,v
retrieving revision 1.26
diff -u -r1.26 Makefile
--- Makefile 16 Dec 2004 00:31:22 -0000 1.26
+++ Makefile 2 Dec 2005 16:10:14 -0000
@@ -26,7 +26,7 @@
--localstatedir="/var/run" \
--sysconfdir=${CONFDIR}
-FLAVORS= ipv6
+FLAVORS= ipv6 hub
FLAVOR?=
.if ${FLAVOR:L:Mipv6}
@@ -43,6 +43,11 @@
SUBST_VARS= CONFDIR
post-patch:
+.if ${FLAVOR:L:Mhub}
+ @perl -pi -e 's|^/\* #define\tHUB \*/|#define\tHUB|g'
${WRKSRC}/support/config.h.dist
+.endif
+ @perl -pi -e 's/define MAXCONNECTIONS\t50/define
MAXCONNECTIONS\t1000/g' ${WRKSRC}/support/config.h.dist
+ @perl -pi -e 's/define MAXCHANNELSPERUSER 10/define
MAXCHANNELSPERUSER\t25/g' ${WRKSRC}/support/config.h.dist
@sed -e s#!!SYSLOG_FACILITY!!#$(SYSLOG_FACILITY)#g \
$(WRKSRC)/support/config.h.dist >
$(WRKSRC)/support/config.h.dist.new
@mv $(WRKSRC)/support/config.h.dist.new $(WRKSRC)/support/config.h