mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
update to linuxigd-0.92, add WWW: in pkg-pdesc
This commit is contained in:
parent
aa6a494f53
commit
ffc299071e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73832
@ -6,11 +6,10 @@
|
||||
#
|
||||
|
||||
PORTNAME= linuxigd
|
||||
PORTVERSION= 0.75
|
||||
PORTVERSION= 0.92
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= linux-igd
|
||||
DISTNAME= gateway-${PORTVERSION}
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= leeym@FreeBSD.org
|
||||
@ -19,11 +18,9 @@ LIB_DEPENDS= upnp.1:${PORTSDIR}/devel/upnp
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
WRKSRC= ${WRKDIR}/linux-igd
|
||||
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
|
||||
|
||||
post-extract:
|
||||
@${CHMOD} 755 ${WRKSRC}/etc
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/gateway.h
|
||||
|
||||
|
@ -1 +1 @@
|
||||
MD5 (gateway-0.75.tgz) = d2d69493fb0ccfaf02f278a065623d48
|
||||
MD5 (linuxigd-0.92.tgz) = dcda2e1daf524927b1be91f06bc6a3af
|
||||
|
@ -1,45 +1,44 @@
|
||||
--- pmlist.cpp.orig Fri May 3 00:16:28 2002
|
||||
+++ pmlist.cpp Sat Aug 3 22:11:41 2002
|
||||
@@ -30,6 +30,9 @@
|
||||
#include <stdlib.h>
|
||||
--- pmlist.cpp.orig Fri Jan 3 03:14:24 2003
|
||||
+++ pmlist.cpp Mon Jan 20 20:38:16 2003
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <unistd.h>
|
||||
#include <iostream.h>
|
||||
+
|
||||
#include <iostream>
|
||||
|
||||
+extern char *ExtIf;
|
||||
+
|
||||
PortMapList::PortMapList()
|
||||
{
|
||||
|
||||
@@ -190,9 +193,12 @@
|
||||
else
|
||||
strcpy (prt, "udp");
|
||||
@@ -182,8 +184,13 @@
|
||||
{
|
||||
char command[255];
|
||||
|
||||
- sprintf(command,"/usr/sbin/iptables -t nat -A PREROUTING -p %s -d %s --dport %d -j DNAT --to %s:%d", prt, ExtIP, ExtPort, IntIP, IntPort);
|
||||
-
|
||||
- sprintf(command,"/usr/sbin/iptables -t nat -A PREROUTING -p %s -d %s --dport %d -j DNAT --to %s:%d", Proto, ExtIP, ExtPort, IntIP, IntPort);
|
||||
- system(command);
|
||||
+ FILE *ipnat = popen("/sbin/ipnat -f -", "w");
|
||||
+ if (ipnat == NULL)
|
||||
+ return 0;
|
||||
+ sprintf(command, "rdr %s %s/32 port %d -> %s port %d %s", ExtIf, ExtIP, ExtPort, IntIP, IntPort, prt);
|
||||
+ sprintf(command, "rdr %s %s/32 port %d -> %s port %d %s",
|
||||
+ ExtIf, ExtIP, ExtPort, IntIP, IntPort, Proto);
|
||||
+ fprintf(ipnat, command);
|
||||
+ pclose(ipnat);
|
||||
|
||||
ret=1;
|
||||
return (ret);
|
||||
@@ -234,9 +240,13 @@
|
||||
else
|
||||
strcpy (prt, "udp");
|
||||
|
||||
- sprintf(command, "/usr/sbin/iptables -t nat -D PREROUTING -p %s -d %s --dport %d -j DNAT --to %s:%d", prt, ExtIP, ExtPort, IntIP, IntPort);
|
||||
-
|
||||
- system(command);
|
||||
return (1);
|
||||
}
|
||||
@@ -218,9 +225,14 @@
|
||||
{
|
||||
char command[255];
|
||||
|
||||
+ FILE *ipnat = popen("/sbin/ipnat -rf -", "w");
|
||||
+ if (ipnat == NULL)
|
||||
+ return 0;
|
||||
+ sprintf(command, "rdr %s %s/32 port %d -> %s port %d %s", ExtIf, ExtIP, ExtPort, IntIP, IntPort, prt);
|
||||
+ sprintf(command, "rdr %s %s/32 port %d -> %s port %d %s",
|
||||
+ ExtIf, ExtIP, ExtPort, IntIP, IntPort, Proto);
|
||||
+ fprintf(ipnat, command);
|
||||
+ pclose(ipnat);
|
||||
+
|
||||
ret = 1;
|
||||
|
||||
return (ret);
|
||||
- sprintf(command, "/usr/sbin/iptables -t nat -D PREROUTING -p %s -d %s --dport %d -j DNAT --to %s:%d", Proto, ExtIP, ExtPort, IntIP, IntPort);
|
||||
- system(command);
|
||||
return (1);
|
||||
}
|
||||
|
||||
|
@ -2,3 +2,5 @@ This project is a deamon that emulates Microsoft's Internet Connection
|
||||
Service (ICS). It implements the UPnP Internet Gateway Device specification
|
||||
(IGD) and allows UPnP aware clients, such as MSN Messenger to work properly
|
||||
from behind a NAT firewall.
|
||||
|
||||
WWW: http://linux-igd.sourceforge.net/
|
||||
|
Loading…
Reference in New Issue
Block a user