Re: Python versions, Zope and, Python modules

2007-11-13 Thread Marc Espie
Okay, I've had time to look at it.
Yeah, the conflict stuff is subtly wrong. There are gremlins in there.
You will have to wait until it's fixed, because it's not really easy
to do without breaking anything else...



win32-codecs and amd64 question

2007-11-13 Thread Didier Wiroth
Hello,

I'm currently running current i386 on my amd64 processor.
I'm considering to move to the amd64 distribution but I noticed that the 
win32-codecs package is only for i386.

Is there currently a win32-codecs alternative for amd64?

Thank you very much!
Didier




Offre n°596

2007-11-13 Thread Flore Depage
Si ce message ne s'affiche pas correctement, vous pouvez le visualiser en
suivant ce lien.

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Produit de l'année : la calculatrice à eau.
Cette incroyable calculatrice utilise le système innovant de l'énergie
hydrique. Cela permet de maintenir une énergie constante simplement en
remplissant l'objet d'eau. Un objet publicitaire ingénieux et doublement
écologique puisque tous les composants de la calculatrice sont
recyclables.
A découvrir en vidéo

Pour ne plus recevoir nos informations, suivez le lien


Fix: x11/xpad

2007-11-13 Thread Giovanni Bechis
Some WANTLIB fixes.
 Comments ? Ok ?
  Giovanni
Index: Makefile
===
RCS file: /cvs/ports/x11/xpad/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile15 Sep 2007 20:04:28 -  1.12
+++ Makefile13 Nov 2007 11:26:23 -
@@ -3,7 +3,7 @@
 COMMENT=   virtual sticky pad system
 
 DISTNAME=  xpad-2.12
-PKGNAME=   ${DISTNAME}p0
+PKGNAME=   ${DISTNAME}p1
 CATEGORIES=x11
 
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=xpad/}
@@ -17,7 +17,8 @@
 
 WANTLIB=   ICE SM X11 Xext Xrender atk-1.0 c z fontconfig freetype \
glib-2.0 gmodule-2.0 gobject-2.0 m pango-1.0 glitz png \
-   pangocairo-1.0 pangoft2-1.0 cairo
+   pangocairo-1.0 pangoft2-1.0 cairo Xrandr expat \
+   Xau Xcomposite Xcursor Xdamage Xdmcp Xfixes Xi Xinerama
 
 # GPL
 PERMIT_PACKAGE_CDROM=  Yes


NEW: www/havp

2007-11-13 Thread Giovanni Bechis
HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter. 
It does not cache or filter content but can be used with Squid
as parent proxy.
Havp uses its own user, patch to user.list attached.
Port available at http://bigio.snb.it/openbsd/havp-0.8.6.tgz
Tested @i386.
 Comments ? Ok ?
  Giovanni
Index: user.list
===
RCS file: /cvs/ports/infrastructure/db/user.list,v
retrieving revision 1.81
diff -u -r1.81 user.list
--- user.list   21 Sep 2007 05:55:49 -  1.81
+++ user.list   13 Nov 2007 14:12:08 -
@@ -104,3 +104,4 @@
 593 _nginx _nginx  www/nginx
 594 _ejabberd  _ejabberd   net/ejabberd
 595 _poppassd  _poppassd   sysutils/openpoppassd
+596 _havp  _havp   www/havp


Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Siju George
Hi,

 I tried to get http://www.monkey.org/~provos/spybye-0.3.tar.gz
complied on OpenBSD 4.2/amd64
as per instructions on http://www.spybye.org/index.php?/pages/installation.html

It gives the following error. Could somebody help me fix it?

Thank you so much

Kind Regards

Siju



$ make
event_rpcgen.py spybye.rpc || echo No Python installed
Reading spybye.rpc
  Created struct: dangerousload
Added entry: time_in_seconds
Added entry: parent_url
Added entry: dangerous_url
Added entry: virus_result
Added entry: digest
  Created struct: dangerous_report
Added entry: time_in_seconds
Added entry: remote_ip
Added entry: report
  Created struct: virusscan
Added entry: buffer
Added entry: context
  Created struct: virusresult
Added entry: result
Added entry: context
... creating spybye.gen.h
... creating spybye.gen.c
make  all-am
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT spybye.o -MD -MP
-MF .deps/spybye.Tpo -c -o spybye.o spybye.c;  then mv -f
.deps/spybye.Tpo .deps/spybye.Po; else rm -f .deps/spybye.Tpo;
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT utils.o -MD -MP
-MF .deps/utils.Tpo -c -o utils.o utils.c;  then mv -f
.deps/utils.Tpo .deps/utils.Po; else rm -f .deps/utils.Tpo; exit
1; fi
utils.c: In function `make_next_replacement':
utils.c:249: warning: implicit declaration of function `strnstr'
utils.c:249: warning: assignment makes pointer from integer without a cast
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT status.o -MD -MP
-MF .deps/status.Tpo -c -o status.o status.c;  then mv -f
.deps/status.Tpo .deps/status.Po; else rm -f .deps/status.Tpo;
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT spybye.gen.o -MD
-MP -MF .deps/spybye.gen.Tpo -c -o spybye.gen.o spybye.gen.c;  then
mv -f .deps/spybye.gen.Tpo .deps/spybye.gen.Po; else rm -f
.deps/spybye.gen.Tpo; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT log.o -MD -MP -MF
.deps/log.Tpo -c -o log.o log.c;  then mv -f .deps/log.Tpo
.deps/log.Po; else rm -f .deps/log.Tpo; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT atomicio.o -MD -MP
-MF .deps/atomicio.Tpo -c -o atomicio.o atomicio.c;  then mv -f
.deps/atomicio.Tpo .deps/atomicio.Po; else rm -f
.deps/atomicio.Tpo; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT virus.o -MD -MP
-MF .deps/virus.Tpo -c -o virus.o virus.c;  then mv -f
.deps/virus.Tpo .deps/virus.Po; else rm -f .deps/virus.Tpo; exit
1; fi
virus.c: In function `virus_init':
virus.c:61: warning: implicit declaration of function `cl_loaddbdir'
virus.c:68: warning: passing arg 1 of `cl_build' from incompatible pointer type
virus.c: In function `clamav_scan_buffer':
virus.c:114: warning: passing arg 4 of `cl_scandesc' from incompatible
pointer type
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT proxy.o -MD -MP
-MF .deps/proxy.Tpo -c -o proxy.o proxy.c;  then mv -f
.deps/proxy.Tpo .deps/proxy.Po; else rm -f .deps/proxy.Tpo; exit
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT strnstr.o -MD -MP
-MF .deps/strnstr.Tpo -c -o strnstr.o strnstr.c;  then mv -f
.deps/strnstr.Tpo .deps/strnstr.Po; else rm -f
.deps/strnstr.Tpo; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT strncasestr.o -MD
-MP -MF .deps/strncasestr.Tpo -c -o strncasestr.o strncasestr.c;
then mv -f .deps/strncasestr.Tpo .deps/strncasestr.Po; else rm -f
.deps/strncasestr.Tpo; exit 1; fi
gcc  -O2 -g -Wall   -o spybye  spybye.o utils.o status.o  spybye.gen.o
log.o atomicio.o  virus.o proxy.o strnstr.o strncasestr.o
-L/usr/local/lib -levent -L/usr/local/lib -liconv -lz -lbz2 -lgmp
-L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz
-lclamav
/usr/local/lib/libgmp.so.7.0: warning: vsprintf() is often misused,
please use vsnprintf()
/usr/local/lib/libevent.so.2.0: warning: strcpy() is almost always
misused, please use strlcpy()
/usr/local/lib/libcurl.so.6.0: warning: sprintf() is often misused,
please use snprintf()
/usr/local/lib/libbz2.so.10.4: warning: strcat() is almost always
misused, please use strlcat()
/usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'
/usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_mutex_unlock'

Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Paul Irofti
You're missing pthread linkage.



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Kurt Miller
On Tuesday 13 November 2007 10:10:14 am Siju George wrote:
 Hi,

  I tried to get http://www.monkey.org/~provos/spybye-0.3.tar.gz
 complied on OpenBSD 4.2/amd64
 as per instructions on
 http://www.spybye.org/index.php?/pages/installation.html

 It gives the following error. Could somebody help me fix it?

 Thank you so much

 Kind Regards

 Siju


...

 gcc  -O2 -g -Wall   -o spybye  spybye.o utils.o status.o  spybye.gen.o
 log.o atomicio.o  virus.o proxy.o strnstr.o strncasestr.o
 -L/usr/local/lib -levent -L/usr/local/lib -liconv -lz -lbz2 -lgmp
 -L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz
 -lclamav
 /usr/local/lib/libgmp.so.7.0: warning: vsprintf() is often misused,
 please use vsnprintf()
 /usr/local/lib/libevent.so.2.0: warning: strcpy() is almost always
 misused, please use strlcpy()
 /usr/local/lib/libcurl.so.6.0: warning: sprintf() is often misused,
 please use snprintf()
 /usr/local/lib/libbz2.so.10.4: warning: strcat() is almost always
 misused, please use strlcat()
 /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'
 /usr/local/lib/libclamav.so.4.2: undefined reference to
 `pthread_mutex_unlock' /usr/local/lib/libclamav.so.4.2: undefined reference
 to `pthread_mutex_lock' /usr/local/lib/libclamav.so.4.2: undefined
 reference to `pthread_join' collect2: ld returned 1 exit status

Shared lib /usr/local/lib/libclamav.so.4.2 is threaded so you need
to adjust the linking of spybye to include -pthread too (i.e. add it
to the above gcc command).

-Kurt



Re: NEW: www/havp

2007-11-13 Thread Nikns Siankin
On Tue, Nov 13, 2007 at 03:12:59PM +0100, Giovanni Bechis wrote:
HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter. 
It does not cache or filter content but can be used with Squid
as parent proxy.
Havp uses its own user, patch to user.list attached.
Port available at http://bigio.snb.it/openbsd/havp-0.8.6.tgz
Tested @i386.
 Comments ? Ok ?
  Giovanni

Tested on amd64 and eicar testfile, seems to work fine.

Index: user.list
===
RCS file: /cvs/ports/infrastructure/db/user.list,v
retrieving revision 1.81
diff -u -r1.81 user.list
--- user.list  21 Sep 2007 05:55:49 -  1.81
+++ user.list  13 Nov 2007 14:12:08 -
@@ -104,3 +104,4 @@
 593 _nginx_nginx  www/nginx
 594 _ejabberd _ejabberd   net/ejabberd
 595 _poppassd _poppassd   sysutils/openpoppassd
+596 _havp _havp   www/havp



update: mail/milter-greylist

2007-11-13 Thread Okan Demirmen
i took the liberty to update the port from 3.0 to 4.0 (maintainer
timeout, but cc'd), but i made some additional changes.

- create and use the group (already in user.list)
- add/use variables for username/greylistdir
- update documentation to reflect our defaults
- added @sample ${SYSCONFIGDIR}/mail/

comments/suggestions...

thanks.

Index: Makefile
===
RCS file: /cvs/ports/mail/milter-greylist/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile16 Sep 2007 00:17:05 -  1.4
+++ Makefile7 Nov 2007 17:26:31 -
@@ -2,7 +2,7 @@
 
 COMMENT=   greylist milter
 
-DISTNAME=  milter-greylist-3.0
+DISTNAME=  milter-greylist-4.0
 PKGNAME=   ${DISTNAME}
 CATEGORIES=mail
 HOMEPAGE=  http://hcpnet.free.fr/milter-greylist/
@@ -22,11 +22,21 @@
 
 BUILD_DEPENDS= ::devel/bison
 
-USERNAME=  _milter-greylist
+USERNAME=  _milter-greylist:_milter-greylist
+GREYLISTDIR=   /var/db/milter-greylist
 EXAMPLESDIR=   share/examples/milter-greylist
 
+SUBST_VARS=GREYLISTDIR
+
 CONFIGURE_STYLE=   gnu
-CONFIGURE_ARGS+=   --with-user=${USERNAME}
+CONFIGURE_ARGS+=   --with-user=${USERNAME} \
+   --with-dumpfile=${GREYLISTDIR}/greylist.db
+
+post-patch:
+   @perl -pi -e 's,!!USERNAME!!,${USERNAME},; \
+   s,!!GREYLISTDIR!!,${GREYLISTDIR},' ${WRKSRC}/greylist.conf
+   @perl -pi -e 's,!!GREYLISTDIR!!,${GREYLISTDIR},' \
+   ${WRKSRC}/greylist.conf.5 ${WRKSRC}/milter-greylist.8
 
 do-install:
${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/libexec
Index: distinfo
===
RCS file: /cvs/ports/mail/milter-greylist/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo5 Apr 2007 16:20:02 -   1.3
+++ distinfo7 Nov 2007 17:26:31 -
@@ -1,5 +1,5 @@
-MD5 (milter-greylist-3.0.tgz) = /91ViMeKQFwQfUyKQMfgGg==
-RMD160 (milter-greylist-3.0.tgz) = Y5GIO+kHax95CrWCBwsVK4DiBQw=
-SHA1 (milter-greylist-3.0.tgz) = OLM0MA/hFBqDKf4Zh1TmMoaYESk=
-SHA256 (milter-greylist-3.0.tgz) = iWLCm3MOsCToPRQvjC/zb/xBtl9hEcpnB3Uhc7JcjNA=
-SIZE (milter-greylist-3.0.tgz) = 141461
+MD5 (milter-greylist-4.0.tgz) = KDSTOycpjTBjDupiHL/c9Q==
+RMD160 (milter-greylist-4.0.tgz) = 6EMpSR6gYERUmq+/Zb+K30wBlWs=
+SHA1 (milter-greylist-4.0.tgz) = 6UyMin7VzydVDrafZgx9dcYPasE=
+SHA256 (milter-greylist-4.0.tgz) = izSAYq+PRoeaIaGQBw1yYWU2Nl9uHjGO/xjD/LAkyHU=
+SIZE (milter-greylist-4.0.tgz) = 185107
Index: patches/patch-greylist_conf
===
RCS file: /cvs/ports/mail/milter-greylist/patches/patch-greylist_conf,v
retrieving revision 1.2
diff -u -r1.2 patch-greylist_conf
--- patches/patch-greylist_conf 22 Nov 2006 22:26:31 -  1.2
+++ patches/patch-greylist_conf 7 Nov 2007 17:26:31 -
@@ -1,12 +1,20 @@
 $OpenBSD: patch-greylist_conf,v 1.2 2006/11/22 22:26:31 jakob Exp $
 greylist.conf.orig Wed Sep 27 22:03:49 2006
-+++ greylist.conf  Wed Nov 22 15:54:29 2006
-@@ -8,7 +8,7 @@
+--- greylist.conf.orig Wed Oct 24 23:20:11 2007
 greylist.conf  Wed Nov  7 11:35:35 2007
+@@ -6,12 +6,12 @@
+ #
+ 
  pidfile /var/run/milter-greylist.pid
- socket /var/milter-greylist/milter-greylist.sock
- dumpfile /var/milter-greylist/greylist.db
+-socket /var/milter-greylist/milter-greylist.sock
+-dumpfile /var/milter-greylist/greylist.db
 -user smmsp
-+user _milter-greylist
++socket !!GREYLISTDIR!!/milter-greylist.sock
++dumpfile !!GREYLISTDIR!!/greylist.db
++user !!USERNAME!!
  
- # Be verbose (or use -v flag)
- #verbose
+ # Log milter-greylist activity to a file
+-#stat /var/milter-greylist/greylist.log \
++#stat !!GREYLISTDIR!!/greylist.log \
+ #  %T{%Y/%m/%d %T} %d [%i] %r - %f %S (ACL %A) %Xc %Xe %Xm %Xh
+ # Same, sent to syslog
+ #stat |logger -p local7.info \
Index: patches/patch-greylist_conf_5
===
RCS file: patches/patch-greylist_conf_5
diff -N patches/patch-greylist_conf_5
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-greylist_conf_5   7 Nov 2007 17:26:31 -
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- greylist.conf.5.orig   Sun Oct 28 19:14:26 2007
 greylist.conf.5Wed Nov  7 11:35:21 2007
+@@ -802,7 +802,7 @@ This chooses the location of the greylist dump file, l
+ command line option does. The path must be absolute and enclosed in quotes.
+ Example:
+ .IP
+-  dumpfile /var/milter-greylist/greylist.db
++  dumpfile !!GREYLISTDIR!!/greylist.db
+ .TP
+ .I subnetmatch
+ This is equivalent to the 
+@@ -831,7 +831,7 @@ to communicate with
+ It must be enclosed in quotes and can optionally be followed by a permission 
mode
+ (valid values are 666, 660 or 600, other values cause an error):
+ .IP
+-  socket /var/milter-greylist/milter-greylist.sock 660
++  socket !!GREYLISTDIR!!/milter-greylist.sock 660
+ .TP
+ .I user
+ This keyword should 

draft port of libspf2

2007-11-13 Thread Jakob Schlyter
I've created a port of libspf2 - feedback and comments appreciated.  
issues regarding threading would be very useful.


 -  http://www.rfc.se/~jakob/openbsd/libspf2.tar.gz

jakob



Re: draft port of libspf2

2007-11-13 Thread Okan Demirmen
On Tue 2007.11.13 at 18:47 +0100, Jakob Schlyter wrote:
 I've created a port of libspf2 - feedback and comments appreciated. issues 
 regarding threading would be very useful.

  -  http://www.rfc.se/~jakob/openbsd/libspf2.tar.gz

2 collisions with p5-Mail-SPF-Query
bin/spfd
bin/spfquery

minor: no need for 's in COMMENT, nor is the PKGNAME var



Re: draft port of libspf2

2007-11-13 Thread Jakob Schlyter

On 13 nov 2007, at 19.59, Okan Demirmen wrote:


On Tue 2007.11.13 at 18:47 +0100, Jakob Schlyter wrote:
I've created a port of libspf2 - feedback and comments  
appreciated. issues

regarding threading would be very useful.

 -  http://www.rfc.se/~jakob/openbsd/libspf2.tar.gz


2 collisions with p5-Mail-SPF-Query
bin/spfd
bin/spfquery


hmmm... how would we handle that?


jakob



Re: draft port of libspf2

2007-11-13 Thread Okan Demirmen
On Tue 2007.11.13 at 21:00 +0100, Jakob Schlyter wrote:
 On 13 nov 2007, at 19.59, Okan Demirmen wrote:

 On Tue 2007.11.13 at 18:47 +0100, Jakob Schlyter wrote:
 I've created a port of libspf2 - feedback and comments appreciated. 
 issues
 regarding threading would be very useful.

  -  http://www.rfc.se/~jakob/openbsd/libspf2.tar.gz

 2 collisions with p5-Mail-SPF-Query
 bin/spfd
 bin/spfquery

 hmmm... how would we handle that?

well, that's a good question...

i don't really see a @conflict marker helping, for one would be stuck
further up with the dependants.

since those 2 already exist in the tree, removing them completely might
not be wise, but what are their uses anyway?  the p5-Mail-SPF-Query
dependants use the library, not the (perl) scripts.  the same could be
said for libspf2 too.  could those sit in share/examples instead, for
both ports?



UPDATE: Add no_x11 flavor to textproc/xpdf

2007-11-13 Thread Jeremy Evans
This diff adds a no_x11 flavor to textproc/xpdf.  This is necessary if
you want to use the pdftotext program without X being installed.  This
patch is the same is one sent last week, update to -current for the
recent security patch to xpdf.

Tested on i386. Please test and commit.

Jeremy
? pkg/PFRAG.no-no_x11
Index: Makefile
===
RCS file: /cvs/ports/textproc/xpdf/Makefile,v
retrieving revision 1.57
diff -u -r1.57 Makefile
--- Makefile9 Nov 2007 07:15:12 -   1.57
+++ Makefile13 Nov 2007 22:29:58 -
@@ -3,7 +3,7 @@
 COMMENT=   PDF viewer for X11
 
 DISTNAME=  xpdf-3.02
-PKGNAME=   xpdf-3.02pl2
+PKGNAME=   xpdf-3.02pl2p0
 CATEGORIES=textproc x11
 
 MASTER_SITES=  ftp://ftp.foolabs.com/pub/xpdf/ \
@@ -17,24 +17,36 @@
 LIB_DEPENDS+=  t1.=3::devel/t1lib
 RUN_DEPENDS+=  ::print/ghostscript/gnu-fonts
 
+FLAVORS=no_x11
+FLAVOR?=
+
 # GPL
 PERMIT_PACKAGE_CDROM=  Yes
 PERMIT_PACKAGE_FTP=Yes
 PERMIT_DISTFILES_CDROM=Yes
 PERMIT_DISTFILES_FTP=  Yes
-WANTLIB=   ICE SM X11 Xext Xp Xpm Xt c freetype m pthread \
-   stdc++ z
+WANTLIB=   c m pthread stdc++
 
-USE_X11=   Yes
 USE_GMAKE= Yes
-USE_MOTIF= openmotif
 CONFIGURE_STYLE=autoconf no-autoheader
 AUTOCONF_VERSION=2.59
 CONFIGURE_ARGS+= --enable-multithreaded \
 --without-Sgm-library \
 --without-libpaper-library
-CONFIGURE_ENV= CPPFLAGS=-I${X11BASE}/include/freetype2 -I${X11BASE}/include 
-I${LOCALBASE}/include \
+
+BINARIES=  pdffonts pdfimages pdfinfo pdftops pdftotext
+.if ${FLAVOR:L:Mno_x11}
+CONFIGURE_ARGS+= --without-x
+CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \
+   LDFLAGS=-L${LOCALBASE}/lib
+.else
+USE_X11=   Yes
+USE_MOTIF= openmotif
+BINARIES+= pdftoppm xpdf
+WANTLIB+=  ICE SM X11 Xext Xp Xpm Xt freetype z
+CONFIGURE_ENV=  CPPFLAGS=-I${X11BASE}/include/freetype2 -I${X11BASE}/include 
-I${LOCALBASE}/include \
LDFLAGS=-L${X11BASE}/lib -L${LOCALBASE}/lib -lz
+.endif
 
 NO_REGRESS=Yes
 
Index: pkg/PLIST
===
RCS file: /cvs/ports/textproc/xpdf/pkg/PLIST,v
retrieving revision 1.9
diff -u -r1.9 PLIST
--- pkg/PLIST   15 Sep 2004 18:44:09 -  1.9
+++ pkg/PLIST   13 Nov 2007 22:29:58 -
@@ -2,18 +2,15 @@
 bin/pdffonts
 bin/pdfimages
 bin/pdfinfo
-bin/pdftoppm
 bin/pdftops
 bin/pdftotext
-bin/xpdf
 @man man/man1/pdffonts.1
 @man man/man1/pdfimages.1
 @man man/man1/pdfinfo.1
[EMAIL PROTECTED] man/man1/pdftoppm.1
 @man man/man1/pdftops.1
 @man man/man1/pdftotext.1
[EMAIL PROTECTED] man/man1/xpdf.1
 @man man/man5/xpdfrc.5
 share/examples/xpdf/
 share/examples/xpdf/xpdfrc
 @sample ${SYSCONFDIR}/xpdfrc
+!%%no_x11%%


NEW: net/p3scan

2007-11-13 Thread Soner Tari
This is a full-transparent proxy-server for email clients. It can be
used to provide email scanning from the internet, to any internal
network and is ideal for helping to protect your Other OS LAN from
harm, especially when used in conjunction with a firewall and other
Internet Proxy servers.

It is designed to enable scanning of incoming/outgoing email messages
for Virus's, Worms, Trojans, Spam (read as Un-solicited Bulk Email),
and harmfull attachments. Because viewing HTML mail can enable a
Spammer to validate an email address (via Web bugs), it can also
provide HTML stripping.

I've been using this proxy for months with clamd and spamd
(SpamAssassin). Version 2.3.2 is much faster than version 1.1 due to the
new clamd TCPSocket support (which also enables remote virus scan).

This is the same version running on ComixWall 4.1b.

Attached file can be found at the following link too:
http://comixwall.org/index.php?option=com_docmantask=cat_viewgid=22Itemid=35


p3scan-2.3.2.tar.gz
Description: application/compressed-tar


Re: NEW: net/p3scan

2007-11-13 Thread Okan Demirmen
On Wed 2007.11.14 at 00:45 +0200, Soner Tari wrote:
 This is a full-transparent proxy-server for email clients. It can be
 used to provide email scanning from the internet, to any internal
 network and is ideal for helping to protect your Other OS LAN from
 harm, especially when used in conjunction with a firewall and other
 Internet Proxy servers.
 
 It is designed to enable scanning of incoming/outgoing email messages
 for Virus's, Worms, Trojans, Spam (read as Un-solicited Bulk Email),
 and harmfull attachments. Because viewing HTML mail can enable a
 Spammer to validate an email address (via Web bugs), it can also
 provide HTML stripping.
 
 I've been using this proxy for months with clamd and spamd
 (SpamAssassin). Version 2.3.2 is much faster than version 1.1 due to the
 new clamd TCPSocket support (which also enables remote virus scan).
 
 This is the same version running on ComixWall 4.1b.
 
 Attached file can be found at the following link too:
 http://comixwall.org/index.php?option=com_docmantask=cat_viewgid=22Itemid=35

a few things to start:
- no need for quotes in COMMENT
- remove that #comment
- probably just belongs in mail category
- run pkg/DESRC through fmt(1) or something
- missing pcre dependency
- hardcoding /usr/local in patches...

i think there's more, but that's a start.



Re: NEW: net/p3scan

2007-11-13 Thread Stuart Henderson
On 2007/11/13 18:05, Okan Demirmen wrote:
 - hardcoding /usr/local in patches...

this is normally handled by some placeholder e.g. !!LOCALBASE!! in the
patches, and then use something like:

perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g'

in pre-configure.



Re: NEW: net/p3scan

2007-11-13 Thread RW
On Tue, 13 Nov 2007 18:05:41 -0500, Okan Demirmen wrote:

- no need for quotes in COMMENT

Puhlease, please don't say that!

ALL  such lines should be doublequoted to avoid breaking make readmes
whenever special chars appear in COMMENT.

Examples: posessive apostrophes and parentheses are used in COMMENT and
break the make so that you have to go find all the unquoted COMMENTS
and fix them, which is how I did it for 4.2, or let the make fail on
each one individually and then patch, go back to square one and restart
make readmes.

Unnecessary time waster.


Rod/
/earth: write failed, file system is full
cp: /earth/creatures: No space left on device




Re: NEW: net/p3scan

2007-11-13 Thread Stuart Henderson
On 2007/11/14 11:03, RW wrote:
 On Tue, 13 Nov 2007 18:05:41 -0500, Okan Demirmen wrote:
 
 - no need for quotes in COMMENT
 
 Puhlease, please don't say that!

they are all gone now.

 ALL  such lines should be doublequoted to avoid breaking make readmes
 whenever special chars appear in COMMENT.

sounds like you need bsd.port.mk rev 1.913:

Index: bsd.port.mk
===
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.912
retrieving revision 1.913
diff -u -p -r1.912 -r1.913
--- bsd.port.mk 28 Jul 2007 12:58:34 -  1.912
+++ bsd.port.mk 16 Sep 2007 21:38:34 -  1.913
@@ -1,6 +1,6 @@
 #-*- mode: Makefile; tab-width: 4; -*-
 # ex:ts=4 sw=4 filetype=make:
-#  $OpenBSD: bsd.port.mk,v 1.912 2007/07/28 12:58:34 espie Exp $
+#  $OpenBSD: bsd.port.mk,v 1.913 2007/09/16 21:38:34 naddy Exp $
 #  $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
 #  $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
 #
@@ -2492,7 +2492,7 @@ readmes:
 .for _S in ${MULTI_PACKAGES}
 ${READMES_TOP}/${PKGPATH}/${FULLPKGNAME${_S}}.html:
@mkdir -p [EMAIL PROTECTED]
-   @echo ${_COMMENT${_S}} | ${HTMLIFY} ${TMPDIR}/comment${_S}
+   @echo ${_COMMENT${_S}:Q} | ${HTMLIFY} ${TMPDIR}/comment${_S}
@echo ${FULLPKGNAME${_S}} | ${HTMLIFY}  ${TMPDIR}/pkgname${_S}
 .  if defined(HOMEPAGE)
@echo 'See a href=${HOMEPAGE}${HOMEPAGE}/a for details.' 
${TMPDIR}/home${_S}



Re: NEW: net/p3scan

2007-11-13 Thread Okan Demirmen
On Tue 2007.11.13 at 23:32 +, Stuart Henderson wrote:
 On 2007/11/13 18:05, Okan Demirmen wrote:
  - hardcoding /usr/local in patches...
 
 this is normally handled by some placeholder e.g. !!LOCALBASE!! in the
 patches, and then use something like:
 
   perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g'
 
 in pre-configure.

yes, i meant _not_ to hardcode...thanks for the clarifying.



Re: NEW: net/p3scan

2007-11-13 Thread Okan Demirmen
On Wed 2007.11.14 at 11:03 +1100, RW wrote:
 On Tue, 13 Nov 2007 18:05:41 -0500, Okan Demirmen wrote:
 
 - no need for quotes in COMMENT
 
 Puhlease, please don't say that!

uhm, have you looked at the ports tree recently?

 ALL  such lines should be doublequoted to avoid breaking make readmes
 whenever special chars appear in COMMENT.
 
 Examples: posessive apostrophes and parentheses are used in COMMENT and
 break the make so that you have to go find all the unquoted COMMENTS
 and fix them, which is how I did it for 4.2, or let the make fail on
 each one individually and then patch, go back to square one and restart
 make readmes.
 
 Unnecessary time waster.
 
 
 Rod/
 /earth: write failed, file system is full
 cp: /earth/creatures: No space left on device
 
 



Re: NEW: net/p3scan

2007-11-13 Thread RW
On Tue, 13 Nov 2007 19:25:47 -0500, Okan Demirmen wrote:

On Wed 2007.11.14 at 11:03 +1100, RW wrote:
 On Tue, 13 Nov 2007 18:05:41 -0500, Okan Demirmen wrote:
 
 - no need for quotes in COMMENT
 
 Puhlease, please don't say that!

uhm, have you looked at the ports tree recently?

No. It is run around and update lots of boxes to 4.2 ATM.

That problem I mentioned has been around for quite a while but it
really got to me in 4.2 where I wanted to look over the ports tree that
I got with my (nice early) 4.2 CD when I could not download packages
(not ones on CD) to match.

I did post a note here about it at the time but nobody mentioned
anything so I figured nothing would happen but it looks like the
shoemaker's elves did a little extra midnight toil.
;-)

Thanks to Stuart I can patch to fix on my 4.2 installs.



Rod/
/earth: write failed, file system is full
cp: /earth/creatures: No space left on device




UPDATE: audio/libmpcdec.

2007-11-13 Thread Stuart Henderson
as discussed with MAINTAINER: unbreaks musepack for mplayer (tested
on p2k7 audio server after some *horrible* noises from the previous
version) - doesn't break any ports that depend on it that currently
work (mpd tested by jasper, others by me). audacious-plugins failed
with musepack before, this doesn't change that behaviour.

also, the Makefile is much more pleasant to read now.  ok?

Index: Makefile
===
RCS file: /cvs/ports/audio/libmpcdec/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile15 Sep 2007 21:26:01 -  1.5
+++ Makefile7 Nov 2007 00:44:48 -
@@ -1,8 +1,8 @@
 # $OpenBSD: Makefile,v 1.5 2007/09/15 21:26:01 simon Exp $
 COMMENT=   musepack decoder library
 
-DISTNAME=  libmpcdec-1.2.4
-SHARED_LIBS += mpcdec   2.0  # .5.1
+DISTNAME=  libmpcdec-1.2.6
+SHARED_LIBS += mpcdec   3.0  # .5.2
 CATEGORIES=audio
 
 HOMEPAGE=  http://www.musepack.net/
@@ -18,27 +18,15 @@ PERMIT_DISTFILES_FTP=   Yes
 PERMIT_PACKAGE_CDROM=   Yes
 PERMIT_PACKAGE_FTP= Yes
 
-# documentation is no longer distributed in the tarball
-#DOCDIR=${PREFIX}/share/doc/libmpcdec
-
-BUILD_DEPENDS= 
:automake-${AUTOMAKE_VERSION}*:devel/automake/${AUTOMAKE_VERSION} \
-   
:autoconf-${AUTOCONF_VERSION}*:devel/autoconf/${AUTOCONF_VERSION}
-
 pre-configure:
-   cd ${WRKSRC}  ${SETENV} AUTOCONF_VERSION=${AUTOCONF_VERSION} \
-   AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./autogen.sh
@perl -pi -e 's|-O3\ -fomit-frame-pointer||g' ${WRKSRC}/configure
 
 post-install:
-   ${INSTALL} ${WRKBUILD}/src/.libs/sample ${PREFIX}/bin/mpc2wav
-#  ${INSTALL_DATA_DIR} ${DOCDIR}
-#  cp -r ${WRKDIST}/docs/* ${DOCDIR}
+   ${INSTALL} ${WRKBUILD}/src/sample ${PREFIX}/bin/mpc2wav
 
 USE_LIBTOOL=   Yes
 WANTLIB=   c m stdc++
 
 CONFIGURE_STYLE=gnu
-AUTOCONF_VERSION=2.59
-AUTOMAKE_VERSION=1.9
 
 .include bsd.port.mk
Index: distinfo
===
RCS file: /cvs/ports/audio/libmpcdec/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo5 Apr 2007 15:37:43 -   1.3
+++ distinfo7 Nov 2007 00:44:48 -
@@ -1,5 +1,5 @@
-MD5 (libmpcdec-1.2.4.tar.bz2) = fJBPUZAg35lITcbOpvTIaQ==
-RMD160 (libmpcdec-1.2.4.tar.bz2) = 3djkxa2kHnER3zhqL1r/KqIhOlE=
-SHA1 (libmpcdec-1.2.4.tar.bz2) = DcogW+i2FJ1hek9LEp3E2/WRA3w=
-SHA256 (libmpcdec-1.2.4.tar.bz2) = SLaiZfz9j3UDE2Rd262oODNseWOAhX3H22KX0cY1wm0=
-SIZE (libmpcdec-1.2.4.tar.bz2) = 43735
+MD5 (libmpcdec-1.2.6.tar.bz2) = f3oGDoO0J4rPS3fXp7nSwA==
+RMD160 (libmpcdec-1.2.6.tar.bz2) = lxc6HAN8G+dI+w035/t3UGEEhts=
+SHA1 (libmpcdec-1.2.6.tar.bz2) = MhOf9ctDoY98mWN9p2cDxjpVSFo=
+SHA256 (libmpcdec-1.2.6.tar.bz2) = S9VJKagIUHVPJ7Vo14keHj4bjS8gjTcfJ9H9oJ5vEqg=
+SIZE (libmpcdec-1.2.6.tar.bz2) = 250302
Index: patches/patch-configure_ac
===
RCS file: patches/patch-configure_ac
diff -N patches/patch-configure_ac
--- patches/patch-configure_ac  24 Dec 2006 22:45:35 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,43 +0,0 @@
-$OpenBSD: patch-configure_ac,v 1.1 2006/12/24 22:45:35 steven Exp $
 configure.ac.orig  Mon Dec 11 11:48:33 2006
-+++ configure.ac   Mon Dec 11 11:50:22 2006
-@@ -26,6 +26,7 @@ AC_CHECK_FUNCS([memmove memset sqrt])
- AC_MSG_CHECKING(for int16_t)
- AC_CACHE_VAL(has_int16_t,
- [AC_TRY_RUN([
-+#include stdint.h
- int16_t foo;
- int main() {return 0;}
- ],
-@@ -38,6 +39,7 @@ AC_MSG_RESULT($has_int16_t)
- AC_MSG_CHECKING(for int32_t)
- AC_CACHE_VAL(has_int32_t,
- [AC_TRY_RUN([
-+#include stdint.h
- int32_t foo;
- int main() {return 0;}
- ],
-@@ -50,6 +52,7 @@ AC_MSG_RESULT($has_int32_t)
- AC_MSG_CHECKING(for uint32_t)
- AC_CACHE_VAL(has_uint32_t,
- [AC_TRY_RUN([
-+#include stdint.h
- uint32_t foo;
- int main() {return 0;}
- ],
-@@ -62,6 +65,7 @@ AC_MSG_RESULT($has_uint32_t)
- AC_MSG_CHECKING(for uint16_t)
- AC_CACHE_VAL(has_uint16_t,
- [AC_TRY_RUN([
-+#include stdint.h
- uint16_t foo;
- int main() {return 0;}
- ],
-@@ -98,6 +102,7 @@ AC_MSG_RESULT($has_u_int16_t)
- AC_MSG_CHECKING(for int64_t)
- AC_CACHE_VAL(has_int64_t,
- [AC_TRY_RUN([
-+#include stdint.h
- int64_t foo;
- int main() {return 0;}
- ],





Re: NEW: net/p3scan

2007-11-13 Thread Soner Tari
On Tue, 2007-11-13 at 18:05 -0500, Okan Demirmen wrote:
 a few things to start:
 - no need for quotes in COMMENT

Done.

 - remove that #comment

Uhm, which one?

 - probably just belongs in mail category

Done (I'm still not sure, it's a proxy, but anyway).

 - run pkg/DESRC through fmt(1) or something

Done (hmm, how did I miss that?)

 - missing pcre dependency

Done.

 - hardcoding /usr/local in patches...

Done.

 i think there's more, but that's a start.

Did fix some more myself already. But I am sure there is more.

Please see the new package attached. Any ideas again?

(Btw, the original Makefile-ripmime patches were from 1.1 port, I did
many changes, but is it me or is this Makefile-ripmime too ugly to fix?)

Thanks,


p3scan-2.3.2.tar.gz
Description: application/compressed-tar


draft port of security/pwman

2007-11-13 Thread Aaron S.
pwman is a curses password manager which uses gpg to store passwords.
This is my first port, comments and recommendations are appreciated.
It looks like it's been submitted 3 years ago or so, but hasn't been
picked up.
http://www.x96.org/pwman.tar.gz



Re: NEW: net/p3scan

2007-11-13 Thread Okan Demirmen
On Wed 2007.11.14 at 03:43 +0200, Soner Tari wrote:
  - remove that #comment
 Uhm, which one?

oh, that one about the original - go ahead and mention here on ports@ so
people if that's the intention.

  - probably just belongs in mail category
 Done (I'm still not sure, it's a proxy, but anyway).

yea, well...maybe others will have a comment too ;)

  - hardcoding /usr/local in patches...
 Done.

i think that i may have been misleading in my first reply. sthen@ gave a
much more accurate and verbose comment. you'll want to _not_ hardcode
paths, but rather substitute - see his mail for the example.

  i think there's more, but that's a start.
 
 Did fix some more myself already. But I am sure there is more.

 Please see the new package attached. Any ideas again?

great, and yes i have another comment ;)

i'm confused to the purpose of files/p3scan-config - the packaging tools
will take care of all this for you. check out the different markers for
PLIST (e.g. @sample) - lots of ports use them so reference them for
examples.

 (Btw, the original Makefile-ripmime patches were from 1.1 port, I did
 many changes, but is it me or is this Makefile-ripmime too ugly to fix?)

well honestly, i haven't gone through all the patches yet - by the time
you re-write/patch the makefiles, it might be simpler to just roll your
own - but again, i haven't looked too carefully here, yet.

cheers,
okan



Re: draft port of security/pwman

2007-11-13 Thread Aaron S.
Okan Demirmen wrote:

 you should probably run update-plist - will get rid of the 3 erroneous
 directories in the PLIST.

 also, i'm not sure you need any of the ${DOCS} - the interesting one for
 a package is README, but you have the important bit in DESCR already.

 cheers.

   
thanks for feedback, updated the port.

- http://www.x96.org/pwman.tar.gz



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Siju George
On Nov 13, 2007 8:55 PM, Kurt Miller [EMAIL PROTECTED] wrote:
 On Tuesday 13 November 2007 10:10:14 am Siju George wrote:

  gcc  -O2 -g -Wall   -o spybye  spybye.o utils.o status.o  spybye.gen.o
  log.o atomicio.o  virus.o proxy.o strnstr.o strncasestr.o
  -L/usr/local/lib -levent -L/usr/local/lib -liconv -lz -lbz2 -lgmp
  -L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz
  -lclamav
  /usr/local/lib/libgmp.so.7.0: warning: vsprintf() is often misused,
  please use vsnprintf()
  /usr/local/lib/libevent.so.2.0: warning: strcpy() is almost always
  misused, please use strlcpy()
  /usr/local/lib/libcurl.so.6.0: warning: sprintf() is often misused,
  please use snprintf()
  /usr/local/lib/libbz2.so.10.4: warning: strcat() is almost always
  misused, please use strlcat()
  /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'
  /usr/local/lib/libclamav.so.4.2: undefined reference to
  `pthread_mutex_unlock' /usr/local/lib/libclamav.so.4.2: undefined reference
  to `pthread_mutex_lock' /usr/local/lib/libclamav.so.4.2: undefined
  reference to `pthread_join' collect2: ld returned 1 exit status

 Shared lib /usr/local/lib/libclamav.so.4.2 is threaded so you need
 to adjust the linking of spybye to include -pthread too (i.e. add it
 to the above gcc command).


Thank you so much Kurt, Landry, Paul, Owain for the help :-)

I changed the line

CFLAGS = -O2 -g -Wall -pthread

in

spybye-0.3/Makefile.am

to include -pthread but now it gives another error.

===
$ make
event_rpcgen.py spybye.rpc || echo No Python installed
Reading spybye.rpc
  Created struct: dangerousload
Added entry: time_in_seconds
Added entry: parent_url
Added entry: dangerous_url
Added entry: virus_result
Added entry: digest
  Created struct: dangerous_report
Added entry: time_in_seconds
Added entry: remote_ip
Added entry: report
  Created struct: virusscan
Added entry: buffer
Added entry: context
  Created struct: virusresult
Added entry: result
Added entry: context
... creating spybye.gen.h
... creating spybye.gen.c
make  all-am
 cd .  /bin/sh /var/Software/spybye-0.3/missing --run automake-1.9
--foreign  Makefile
Use of uninitialized value in string eq at /usr/local/bin/automake-1.9
line 4673, GEN0 line 1.
Use of uninitialized value in exists at /usr/local/bin/automake-1.9
line 4675, GEN0 line 1.
Use of uninitialized value in concatenation (.) or string at
/usr/local/bin/automake-1.9 line 4675, GEN0 line 1.
automake-1.9: 
automake-1.9: ## Internal Error ##
automake-1.9: 
automake-1.9: unrequested trace `'
automake-1.9: Please contact [EMAIL PROTECTED].
 at /usr/local/share/automake-1.9/Automake/Channels.pm line 562
Automake::Channels::msg('automake', '', 'unrequested trace
`\'') called at /usr/local/share/automake-1.9/Automake/ChannelDefs.pm
line 191
Automake::ChannelDefs::prog_error('unrequested trace `\'')
called at /usr/local/bin/automake-1.9 line 4675
Automake::scan_autoconf_traces('configure.in') called at
/usr/local/bin/automake-1.9 line 4877
Automake::scan_autoconf_files() called at
/usr/local/bin/automake-1.9 line 7493
*** Error code 1

Stop in /var/Software/spybye-0.3 (line 245 of Makefile).
*** Error code 1

Stop in /var/Software/spybye-0.3 (line 227 of Makefile).

=

Meanwhile Neils Provos answered me with the following lines.

===
You probably have to change the Makefile and add -lpthread to the link
line.   However, that's a problem of your ClamAV installation and not
with SpyBye.
I am super busy.  Please, ask the [EMAIL PROTECTED] people for help.
==

So I have Cced to marc as well since he maintains ClamAV in ports.

Should I really contact [EMAIL PROTECTED]. as said in the error message?
This is my first time editing a Make file :-) So just wanted to make
sure it is not some thing I did wrong :-))

Thank you so much

Kind Regards

Siju



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Jacob Meuser
On Wed, Nov 14, 2007 at 11:46:43AM +0530, Siju George wrote:
   /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'

 Meanwhile Neils Provos answered me with the following lines.
 
 ===
 You probably have to change the Makefile and add -lpthread to the link
 line.   However, that's a problem of your ClamAV installation and not
 with SpyBye.
 I am super busy.  Please, ask the [EMAIL PROTECTED] people for help.

yes, `clamav-config --libs` should include '-pthread', but it does not
do so, at least in -current.

that is the source of the problem.  fix it there instead of hacking
a Makefile makes more sense to me.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org