diff options
author | Rene Ladan <rene@FreeBSD.org> | 2019-05-09 15:03:38 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2019-05-09 15:03:38 +0000 |
commit | b8b8fa5aeb1df824ed5374149d0a7377dd0c1cd9 (patch) | |
tree | 67d5f350f6c92b847a528d27db9960acb190f10e /net/linuxigd/files/patch-pmlist.c | |
parent | Restore "hs-" package name prefix for Haskell packages. (diff) |
Remove expired ports:
2019-05-08 databases/ruby-odbc: Broken for more than 6 months
2019-05-08 databases/rubygem-dbd-odbc: Broken for more than 6 months
2019-05-08 devel/dlangui: Broken for more than 6 months
2019-05-08 editors/dlangide: Broken for more than 6 months
2019-05-08 emulators/desmume: Broken for more than 6 months
2019-05-08 emulators/yabause: Broken for more than 6 months
2019-05-08 emulators/yape: Broken for more than 6 months
2019-05-08 games/armagetron: Broken for more than 6 months
2019-05-08 games/boswars: Broken for more than 6 months
2019-05-08 games/ceferino: Broken for more than 6 months
2019-05-08 games/chanta: Broken for more than 6 months
2019-05-08 games/d2x-xl: Broken for more than 6 months
2019-05-08 games/drcreep: Broken for more than 6 months
2019-05-08 games/frobtads: Broken for more than 6 months
2019-05-08 games/paintown: Broken for more than 6 months
2019-05-08 games/pykawari: Broken for more than 6 months
2019-05-08 games/stepmania-devel: Broken for more than 6 months
2019-05-08 games/tinymux: Broken for more than 6 months
2019-05-08 games/voxelands: Broken for more than 6 months
2019-05-08 games/voxelands-server: Broken for more than 6 months
2019-05-08 games/warsow: Broken for more than 6 months
2019-05-08 graphics/appleseed: Broken for more than 6 months
2019-05-08 graphics/apvlv: Broken for more than 6 months
2019-05-08 graphics/qslim: Broken for more than 6 months
2019-05-08 graphics/rawstudio: Broken for more than 6 months
2019-05-08 graphics/tulip: Broken for more than 6 months
2019-05-08 lang/qore: Broken for more than 6 months
2019-05-08 mail/milter-manager: Broken for more than 6 months
2019-05-08 math/goblin: Broken for more than 6 months
2019-05-08 math/mosesdecoder: Broken for more than 6 months
2019-05-08 multimedia/asdcplib: Broken for more than 6 months
2019-05-08 net/crtmpserver: Broken for more than 6 months
2019-05-08 net/linuxigd: Abandonware; use net/miniupnpd instead
2019-05-08 net/openafs: Broken for more than 6 months
2019-05-08 security/quantis: Broken for more than 6 months
2019-05-08 sysutils/boxbackup: Broken for more than 6 months
2019-05-08 sysutils/grub2-efi: Broken for more than 6 months
2019-05-08 sysutils/grub2-pcbsd: Broken for more than 6 months
2019-05-08 sysutils/mdcp: Broken for more than 6 months
2019-05-08 sysutils/sbsigntool: Broken for more than 6 months
2019-05-08 www/py-cherrypy-old: Lates version is in tree and no dependent ports
Diffstat (limited to 'net/linuxigd/files/patch-pmlist.c')
-rw-r--r-- | net/linuxigd/files/patch-pmlist.c | 148 |
1 files changed, 0 insertions, 148 deletions
diff --git a/net/linuxigd/files/patch-pmlist.c b/net/linuxigd/files/patch-pmlist.c deleted file mode 100644 index 8a61b70c33d9..000000000000 --- a/net/linuxigd/files/patch-pmlist.c +++ /dev/null @@ -1,148 +0,0 @@ ---- pmlist.c.orig 2010-11-26 17:45:26.000000000 +0300 -+++ pmlist.c 2010-11-26 17:49:30.000000000 +0300 -@@ -1,3 +1,5 @@ -+#include <stdio.h> -+#include <string.h> - #include <stdlib.h> - #include <sys/wait.h> - #include <unistd.h> -@@ -8,10 +10,6 @@ - #include "gatedevice.h" - #include "util.h" - --#if HAVE_LIBIPTC --#include "iptc.h" --#endif -- - struct portMap* pmlist_NewNode(int enabled, long int duration, char *remoteHost, - char *externalPort, char *internalPort, - char *protocol, char *internalClient, char *desc) -@@ -233,55 +231,18 @@ - { - if (enabled) - { --#if HAVE_LIBIPTC -- char *buffer = malloc(strlen(internalClient) + strlen(internalPort) + 2); -- if (buffer == NULL) { -- fprintf(stderr, "failed to malloc memory\n"); -- return 0; -- } -- -- strcpy(buffer, internalClient); -- strcat(buffer, ":"); -- strcat(buffer, internalPort); -- -- if (g_vars.forwardRules) -- iptc_add_rule("filter", g_vars.forwardChainName, protocol, NULL, NULL, NULL, internalClient, NULL, internalPort, "ACCEPT", NULL, FALSE); -- -- iptc_add_rule("nat", g_vars.preroutingChainName, protocol, g_vars.extInterfaceName, NULL, NULL, NULL, NULL, externalPort, "DNAT", buffer, TRUE); -- free(buffer); --#else - char command[COMMAND_LEN]; -- int status; - -- { -- char dest[DEST_LEN]; -- char *args[] = {"iptables", "-t", "nat", "-I", g_vars.preroutingChainName, "-i", g_vars.extInterfaceName, "-p", protocol, "--dport", externalPort, "-j", "DNAT", "--to", dest, NULL}; -- -- snprintf(dest, DEST_LEN, "%s:%s", internalClient, internalPort); -- snprintf(command, COMMAND_LEN, "%s -t nat -I %s -i %s -p %s --dport %s -j DNAT --to %s:%s", g_vars.iptables, g_vars.preroutingChainName, g_vars.extInterfaceName, protocol, externalPort, internalClient, internalPort); -- trace(3, "%s", command); -- if (!fork()) { -- int rc = execv(g_vars.iptables, args); -- exit(rc); -- } else { -- wait(&status); -- } -- } -- -- if (g_vars.forwardRules) -- { -- char *args[] = {"iptables", "-A", g_vars.forwardChainName, "-p", protocol, "-d", internalClient, "--dport", internalPort, "-j", "ACCEPT", NULL}; -- -- snprintf(command, COMMAND_LEN, "%s -A %s -p %s -d %s --dport %s -j ACCEPT", g_vars.iptables,g_vars.forwardChainName, protocol, internalClient, internalPort); -- trace(3, "%s", command); -- if (!fork()) { -- int rc = execv(g_vars.iptables, args); -- exit(rc); -- } else { -- wait(&status); -- } -- } --#endif -+ FILE *ipnat = popen("/sbin/ipnat -f -", "w"); -+ sprintf(command, "rdr %s %s/32 port %s -> %s port %s %s\n", -+ g_vars.extInterfaceName, g_vars.extIpAddress, externalPort, internalClient, internalPort, protocol); -+ trace(3, "%s", command); -+ fprintf(ipnat, command); -+ sprintf(command, "rdr lo0 %s/32 port %s -> %s port %s %s\n", -+ g_vars.extIpAddress, externalPort, internalClient, internalPort, protocol); -+ trace(3, "%s", command); -+ fprintf(ipnat, command); -+ pclose(ipnat); - } - return 1; - } -@@ -290,52 +251,18 @@ - { - if (enabled) - { --#if HAVE_LIBIPTC -- char *buffer = malloc(strlen(internalClient) + strlen(internalPort) + 2); -- strcpy(buffer, internalClient); -- strcat(buffer, ":"); -- strcat(buffer, internalPort); -- -- if (g_vars.forwardRules) -- iptc_delete_rule("filter", g_vars.forwardChainName, protocol, NULL, NULL, NULL, internalClient, NULL, internalPort, "ACCEPT", NULL); -- -- iptc_delete_rule("nat", g_vars.preroutingChainName, protocol, g_vars.extInterfaceName, NULL, NULL, NULL, NULL, externalPort, "DNAT", buffer); -- free(buffer); --#else - char command[COMMAND_LEN]; -- int status; - -- { -- char dest[DEST_LEN]; -- char *args[] = {"iptables", "-t", "nat", "-D", g_vars.preroutingChainName, "-i", g_vars.extInterfaceName, "-p", protocol, "--dport", externalPort, "-j", "DNAT", "--to", dest, NULL}; -- -- snprintf(dest, DEST_LEN, "%s:%s", internalClient, internalPort); -- snprintf(command, COMMAND_LEN, "%s -t nat -D %s -i %s -p %s --dport %s -j DNAT --to %s:%s", -- g_vars.iptables, g_vars.preroutingChainName, g_vars.extInterfaceName, protocol, externalPort, internalClient, internalPort); -- trace(3, "%s", command); -- -- if (!fork()) { -- int rc = execv(g_vars.iptables, args); -- exit(rc); -- } else { -- wait(&status); -- } -- } -- -- if (g_vars.forwardRules) -- { -- char *args[] = {"iptables", "-D", g_vars.forwardChainName, "-p", protocol, "-d", internalClient, "--dport", internalPort, "-j", "ACCEPT", NULL}; -- -- snprintf(command, COMMAND_LEN, "%s -D %s -p %s -d %s --dport %s -j ACCEPT", g_vars.iptables, g_vars.forwardChainName, protocol, internalClient, internalPort); -- trace(3, "%s", command); -- if (!fork()) { -- int rc = execv(g_vars.iptables, args); -- exit(rc); -- } else { -- wait(&status); -- } -- } --#endif -+ FILE *ipnat = popen("/sbin/ipnat -rf -", "w"); -+ sprintf(command, "rdr %s %s/32 port %s -> %s port %s %s\n", -+ g_vars.extInterfaceName, g_vars.extIpAddress, externalPort, internalClient, internalPort, protocol); -+ trace(3, "%s", command); -+ fprintf(ipnat, command); -+ sprintf(command, "rdr lo0 %s/32 port %s -> %s port %s %s\n", -+ g_vars.extIpAddress, externalPort, internalClient, internalPort, protocol); -+ trace(3, "%s", command); -+ fprintf(ipnat, command); -+ pclose(ipnat); - } - return 1; - } |