Added a patch to let mgpnet(1) work.
 Comments ? Ok ?
  Cheers
   Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/misc/magicpoint/Makefile,v
retrieving revision 1.47
diff -u -p -r1.47 Makefile
--- Makefile    13 Feb 2009 13:57:17 -0000      1.47
+++ Makefile    16 Feb 2009 07:49:26 -0000
@@ -4,7 +4,7 @@ COMMENT=        X11-based presentation tool
 
 DISTNAME=      magicpoint-1.09a
 # hack
-PKGNAME=       magicpoint-1.11bp7
+PKGNAME=       magicpoint-1.11bp8
 CATEGORIES=    misc productivity
 MASTER_SITES=  ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/
 
Index: patches/patch-contrib_mgpnet_in
===================================================================
RCS file: patches/patch-contrib_mgpnet_in
diff -N patches/patch-contrib_mgpnet_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-contrib_mgpnet_in     16 Feb 2009 07:49:26 -0000
@@ -0,0 +1,33 @@
+$OpenBSD$
+--- contrib/mgpnet.in.orig     Sun Feb 15 19:14:34 2009
++++ contrib/mgpnet.in  Sun Feb 15 19:15:32 2009
+@@ -256,20 +256,7 @@ sub httpserver {
+       $httpmethod = $httppath = $httpver = '';
+       ($httpmethod, $httppath, $httpver) = split(/\s+/, $httpreq);
+       $httppath =~ s/http:\/\/[^:\/]+(:\d+)\//\//;
+-      if ($httpver eq '' || $httpver eq 'HTTP/1.0') {
+-              ;       # ok
+-      } else {
+-              &httpheader(501, $cthtml) if ($httpver);
+ 
+-              print <<EOF;
+-<HEAD><TITLE>Version not implemented</TITLE></HEAD>
+-<BODY><H1>Version not implemented</H1>
+-HTTP protocol version $httpversion not supported.<P>
+-</BODY>
+-EOF
+-              return;
+-      }
+-
+       $httphost = "$hostname:$port";
+       if ($httpver) {
+               while (<NS>) {
+@@ -415,7 +402,7 @@ sub guessparam {
+ 'XXX4', 'SO_REUSEPORT',       'XXX5', 'SOCK_STREAM',  'XXX6', 'WNOHANG',
+ );
+       $tmpnam = &tmpname;
+-      open(CPP, "| @CPP@ >$tmpnam") || return;
++      open(CPP, "| @CPP@ - >$tmpnam") || return;
+       print CPP "#include <sys/socket.h>\n";
+       print CPP "#include <sys/wait.h>\n";
+       foreach $tmp (keys %varnames) {

Reply via email to