PATCH net/irc

2005-11-21 Thread Jim Razmus
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.

I'm running a 3 node IRC network consisting of a hub and two leafs.
It's been rock solid under light use for weeks.

Feedback?  Questions?

Jim


Index: Makefile
===
RCS file: /cvs/ports/net/irc/Makefile,v
retrieving revision 1.26
diff -u -r1.26 Makefile
--- Makefile16 Dec 2004 00:31:22 -  1.26
+++ Makefile21 Nov 2005 16:35:34 -
@@ -26,7 +26,7 @@
--localstatedir=/var/run \
--sysconfdir=${CONFDIR}
 
-FLAVORS=   ipv6
+FLAVORS=   ipv6 big hub
 FLAVOR?=   
 
 .if ${FLAVOR:L:Mipv6}
@@ -43,6 +43,13 @@
 SUBST_VARS=CONFDIR
 
 post-patch:
+.if ${FLAVOR:L:Mbig}
+   @perl -pi -e 's/define MAXCONNECTIONS\t50/define MAXCONNECTIONS\t200/g' 
${WRKSRC}/support/config.h.dist
+   @perl -pi -e 's/define MAXCHANNELSPERUSER  10/define 
MAXCHANNELSPERUSER\t25/g' ${WRKSRC}/support/config.h.dist
+.endif
+.if ${FLAVOR:L:Mhub}
+   @perl -pi -e 's|^/\* #define\tHUB \*/|#define\tHUB|g' 
${WRKSRC}/support/config.h.dist
+.endif
@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

Index: Makefile
===
RCS file: /cvs/ports/net/irc/Makefile,v
retrieving revision 1.26
diff -u -r1.26 Makefile
--- Makefile16 Dec 2004 00:31:22 -  1.26
+++ Makefile21 Nov 2005 16:35:34 -
@@ -26,7 +26,7 @@
--localstatedir=/var/run \
--sysconfdir=${CONFDIR}
 
-FLAVORS=   ipv6
+FLAVORS=   ipv6 big hub
 FLAVOR?=   
 
 .if ${FLAVOR:L:Mipv6}
@@ -43,6 +43,13 @@
 SUBST_VARS=CONFDIR
 
 post-patch:
+.if ${FLAVOR:L:Mbig}
+   @perl -pi -e 's/define MAXCONNECTIONS\t50/define MAXCONNECTIONS\t200/g' 
${WRKSRC}/support/config.h.dist
+   @perl -pi -e 's/define MAXCHANNELSPERUSER  10/define 
MAXCHANNELSPERUSER\t25/g' ${WRKSRC}/support/config.h.dist
+.endif
+.if ${FLAVOR:L:Mhub}
+   @perl -pi -e 's|^/\* #define\tHUB \*/|#define\tHUB|g' 
${WRKSRC}/support/config.h.dist
+.endif
@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


Re: mirroring-ports problem / fetch-all doesn't fetch all?

2005-11-21 Thread Christian Weisgerber
Jolan Luff [EMAIL PROTECTED] wrote:

 it seemed to be working in that i download distfiles from new commits.
 however, i wanted to build some packages offline on my laptop and copied
 over all the distfiles from my server.  it looks like i don't have a few
 distfiles available, namely the distfiles for www/opera* and
 print/acroread.

mirror-maker skips ports that don't have PERMIT_DISTFILES_FTP=Yes.

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: mirroring-ports problem / fetch-all doesn't fetch all?

2005-11-21 Thread Marc Espie
On Mon, Nov 21, 2005 at 06:23:52PM +, Christian Weisgerber wrote:
 Jolan Luff [EMAIL PROTECTED] wrote:
 
  it seemed to be working in that i download distfiles from new commits.
  however, i wanted to build some packages offline on my laptop and copied
  over all the distfiles from my server.  it looks like i don't have a few
  distfiles available, namely the distfiles for www/opera* and
  print/acroread.
 
 mirror-maker skips ports that don't have PERMIT_DISTFILES_FTP=Yes.

Not true. They end up in the all: category.
The default target is ftp: however.



Re: UPDATE: lang/python

2005-11-21 Thread Aleksander Piotrowski
steven mestdagh [EMAIL PROTECTED] wrote:

 I tested on i386 and got 1 error during regression checks:
 
 test test_compare produced unexpected output:
 **
 *** lines 102-149 of actual output doesn't appear in expected output after 
 line 101:
 + ERROR: 1 -1 -1965125748 2123489356
 + ERROR: 1 -1 -1965125748 2123489420
 + ERROR: 1 -1 -1965125748 2123489388
 + ERROR: 1 -1 -1965125748 2123489324
 + ERROR: 1 -1 -1965125716 2123489356
 + ERROR: 1 -1 -1965125716 2123489420
 + ERROR: 1 -1 -1965125716 2123489388
 + ERROR: 1 -1 -1965125716 2123489324
 + ERROR: 1 -1 -1965125652 2123489356
 + ERROR: 1 -1 -1965125652 2123489420
 + ERROR: 1 -1 -1965125652 2123489388
 + ERROR: 1 -1 -1965125652 2123489324
 + ERROR: -1 1 2123489356 -1965125748
 + ERROR: -1 1 2123489356 -1965125716
 + ERROR: -1 1 2123489356 -1965125652

Anyone else seeing this on i386?

Alek
-- 
I can't believe you're asking this. OpenBSD is more than just a source tree
providing functionality. OpenBSD is an attitude. Part of that attitude is to
do a serious job _while having fun_. Having fun is vital; otherwise all
developers would run away.
 -- Otto Moerbeek, [EMAIL PROTECTED]



Re: NEW: graphics/djvulibre

2005-11-21 Thread David Cathcart
On Sun, Nov 20, 2005 at 10:54:07AM +0100, steven mestdagh wrote:

Added fixes, updated port attached. 

 - djvudigital requires the gsdjvu driver, so maybe another port should
   be created for that

Building gsdjvu seems to be ugly and the resultant binaries can't be 
redistributed:

   The script unpacks the source files, patches ghostscript
   with the gdevdjvu driver, compiles ghostscript, and
   selects which files should be kept around.
   Please consult the script itself for more details.

   http://djvulibre.djvuzone.org/gsdjvu/README

If anyone actually needs this I'll look into it.

David


djvulibre.tar.gz
Description: application/tar-gz


Re: UPDATE: x11/py-gtk2

2005-11-21 Thread Lars Hansson
Something's not right, at least not for me:

$ make configure
[...]
The following modules will be built:

gobject
atk
pango
gtk (without cairo)
gtk.glade

The following modules will NOT be built:

pangocairo
$ make package
[...]
===  Building package for py-gtk2-2.8.2
Error in package: 
/usr/ports/mystuff/x11/py-gtk2/w-py-gtk2-2.8.2/fake-i386//usr/local/lib/python2.3/site-packages/gtk-2.0/pangocairo.so
 does not exist
Error in package: 
/usr/ports/mystuff/x11/py-gtk2/w-py-gtk2-2.8.2/fake-i386//usr/local/share/pygtk/2.0/defs/pangocairo.defs
 does not exist
Error in package: 
/usr/ports/mystuff/x11/py-gtk2/w-py-gtk2-2.8.2/fake-i386//usr/local/share/pygtk/2.0/defs/pangocairo.override
 does not exist
===  Cleaning for py-gtk2-2.8.2
[...]

---
Lars Hansson



Re: UPDATE: x11/py-gtk2

2005-11-21 Thread Eric Faurot
On 11/22/05, Lars Hansson [EMAIL PROTECTED] wrote:
 Something's not right, at least not for me:

 $ make configure
 [...]
 The following modules will be built:

 gobject
 atk
 pango
 gtk (without cairo)
 gtk.glade

 The following modules will NOT be built:

 pangocairo

Because of the missing pycairo.pc. Please update py-cairo (and cairo too)
with patches at http://ekyo.nerim.net/openbsd/index.html

Eric.