aboutsummaryrefslogtreecommitdiffstats
path: root/irc/tircproxy
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-11-25 03:49:18 +0800
committerdwcjr <dwcjr@FreeBSD.org>2001-11-25 03:49:18 +0800
commit8510fb384bcae551b1600f377cb580df6d1964c5 (patch)
tree484acc4a2a519344ce1d858800e73dc17c37d5b0 /irc/tircproxy
parenta89a5f4543c3acb3c4c26878428043258f644730 (diff)
downloadfreebsd-ports-gnome-8510fb384bcae551b1600f377cb580df6d1964c5.tar.gz
freebsd-ports-gnome-8510fb384bcae551b1600f377cb580df6d1964c5.tar.zst
freebsd-ports-gnome-8510fb384bcae551b1600f377cb580df6d1964c5.zip
Fix transparent proxy with ipf
PR: 29954 Submitted by: nottebrock@crosswinds.net No response: maintainer
Diffstat (limited to 'irc/tircproxy')
-rw-r--r--irc/tircproxy/Makefile1
-rw-r--r--irc/tircproxy/files/patch-ad59
2 files changed, 60 insertions, 0 deletions
diff --git a/irc/tircproxy/Makefile b/irc/tircproxy/Makefile
index 973fe4d16cd5..6ec0310c3015 100644
--- a/irc/tircproxy/Makefile
+++ b/irc/tircproxy/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tircproxy
PORTVERSION= 0.4.5
+PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= http://bre.klaki.net/programs/tircproxy/
diff --git a/irc/tircproxy/files/patch-ad b/irc/tircproxy/files/patch-ad
new file mode 100644
index 000000000000..f37ddbba3403
--- /dev/null
+++ b/irc/tircproxy/files/patch-ad
@@ -0,0 +1,59 @@
+*** tircproxy.c.orig Thu May 4 22:53:30 2000
+--- tircproxy.c Wed Aug 22 13:42:46 2001
+***************
+*** 1065,1074 ****
+ {
+ struct sockaddr_in to_addr;
+ int to_len;
+ #if IPF
+! struct sockaddr_in socketin, sloc;
+! natlookup_t natlook;
+! int fd;
+ #endif
+
+ /* Give this thing 10 minutes to get started (paranoia).
+--- 1065,1084 ----
+ {
+ struct sockaddr_in to_addr;
+ int to_len;
++
+ #if IPF
+! struct sockaddr_in socketin, sloc;
+! natlookup_t natlook;
+!
+! #if __FreeBSD__ >= 2
+! #include <osreldate.h>
+! #if __FreeBSD_version >= 430000
+!
+! natlookup_t *natlookp = &natlook;
+!
+! #endif
+! #endif
+! int fd;
+ #endif
+
+ /* Give this thing 10 minutes to get started (paranoia).
+***************
+*** 1152,1158 ****
+ natlook.nl_inport = sloc.sin_port;
+
+ fd = open(IPL_NAT, O_RDONLY);
+! if (ioctl(fd, SIOCGNATL, &natlook) == -1)
+ {
+ perror("ioctl");
+ exit(-1);
+--- 1162,1175 ----
+ natlook.nl_inport = sloc.sin_port;
+
+ fd = open(IPL_NAT, O_RDONLY);
+! #if __FreeBSD__ >= 2
+! #include <osreldate.h>
+! #if __FreeBSD_version >= 430000
+! if (ioctl(fd, SIOCGNATL, &natlookp) == -1)
+! #else
+! if (ioctl(fd, SIOCGNATL, &natlook) == -1)
+! #endif
+! #endif
+ {
+ perror("ioctl");
+ exit(-1);