SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,32 @@
--- 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) {