aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2005-10-15 05:31:21 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2005-10-15 05:31:21 +0000
commit7b95b4263e36f1a7caaf67a08063710e713ac079 (patch)
treee3f07bc7e79f68209a95eaf889bcf0f3b8111ad8 /irc
parent41c1cd003665ad707232f853e8ef0a80f55eb9bb (diff)
downloadports-7b95b4263e36f1a7caaf67a08063710e713ac079.tar.gz
ports-7b95b4263e36f1a7caaf67a08063710e713ac079.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/tircproxy/Makefile2
-rw-r--r--irc/tircproxy/files/patch-Makefile.in (renamed from irc/tircproxy/files/patch-ab)4
-rw-r--r--irc/tircproxy/files/patch-ac12
-rw-r--r--irc/tircproxy/files/patch-ad43
-rw-r--r--irc/tircproxy/files/patch-tircproxy.c76
-rw-r--r--irc/tircproxy/files/patch-tircproxy.h (renamed from irc/tircproxy/files/patch-aa)4
6 files changed, 81 insertions, 60 deletions
diff --git a/irc/tircproxy/Makefile b/irc/tircproxy/Makefile
index ce0a6efd78f6..152200e7f3f2 100644
--- a/irc/tircproxy/Makefile
+++ b/irc/tircproxy/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tircproxy
PORTVERSION= 0.4.5
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= irc
MASTER_SITES= http://bre.klaki.net/programs/tircproxy/
diff --git a/irc/tircproxy/files/patch-ab b/irc/tircproxy/files/patch-Makefile.in
index 7242aa8cb7d8..2db323709ffb 100644
--- a/irc/tircproxy/files/patch-ab
+++ b/irc/tircproxy/files/patch-Makefile.in
@@ -1,5 +1,5 @@
---- Makefile.in.orig Thu May 4 08:11:25 2000
-+++ Makefile.in Thu Mar 29 14:31:46 2001
+--- Makefile.in Sat Oct 15 06:49:57 2005
++++ Makefile.in Sat Oct 15 06:50:00 2005
@@ -12,7 +12,7 @@
TARGETNAME=@sbindir@/tircproxy
STRIP=@STRIP@
diff --git a/irc/tircproxy/files/patch-ac b/irc/tircproxy/files/patch-ac
deleted file mode 100644
index 386946627b62..000000000000
--- a/irc/tircproxy/files/patch-ac
+++ /dev/null
@@ -1,12 +0,0 @@
---- tircproxy.c.orig Thu Mar 29 14:28:26 2001
-+++ tircproxy.c Thu Mar 29 14:28:28 2001
-@@ -2201,7 +2201,9 @@
- /* People neither using the CDIR stuff nor running as root probably
- * couldn't care less about ident problems.
- */
-+#ifdef CDIR_IDENT
- if (!use_cdir && getuid()) tries = 10;
-+#endif
-
- /* FIXME: dangerous sprintfs */
- #ifdef CDIR
diff --git a/irc/tircproxy/files/patch-ad b/irc/tircproxy/files/patch-ad
deleted file mode 100644
index 19ddb4493041..000000000000
--- a/irc/tircproxy/files/patch-ad
+++ /dev/null
@@ -1,43 +0,0 @@
---- tircproxy.c.orig Wed Jun 29 13:40:45 2005
-+++ tircproxy.c Wed Jun 29 13:42:01 2005
-@@ -131,9 +131,14 @@
- # include <netinet/ip_compat.h>
- # endif
- # include <netinet/ip_fil.h>
-+# include <netinet/ip_nat.h>
-+# include <netinet/ip_state.h>
- # include <netinet/ip_proxy.h>
- # include <netinet/ip_nat.h>
- # define TRANS 1
-+# ifndef IPL_NAT
-+# define IPL_NAT IPNAT_NAME
-+# endif
- # warning IPF transparent proxying available
- # else
- # undef IPF
-@@ -1066,9 +1071,10 @@
- struct sockaddr_in to_addr;
- int to_len;
- #if IPF
-- struct sockaddr_in socketin, sloc;
-- natlookup_t natlook;
-- int fd;
-+ struct sockaddr_in socketin, sloc;
-+ natlookup_t natlook;
-+ natlookup_t *natlookp = &natlook;
-+ int fd;
- #endif
-
- /* Give this thing 10 minutes to get started (paranoia).
-@@ -1152,9 +1158,9 @@
- natlook.nl_inport = sloc.sin_port;
-
- fd = open(IPL_NAT, O_RDONLY);
-- if (ioctl(fd, SIOCGNATL, &natlook) == -1)
-+ if (ioctl(fd, SIOCGNATL, &natlookp) == -1)
- {
-- perror("ioctl");
-+ perror("ioctl(SIOCGNATL)");
- exit(-1);
- }
- close(fd);
diff --git a/irc/tircproxy/files/patch-tircproxy.c b/irc/tircproxy/files/patch-tircproxy.c
new file mode 100644
index 000000000000..3f49a4fc8e10
--- /dev/null
+++ b/irc/tircproxy/files/patch-tircproxy.c
@@ -0,0 +1,76 @@
+--- tircproxy.c.orig Thu May 4 22:53:30 2000
++++ tircproxy.c Sat Oct 15 07:02:11 2005
+@@ -131,9 +131,16 @@
+ # include <netinet/ip_compat.h>
+ # endif
+ # include <netinet/ip_fil.h>
++# include <netinet/ip_nat.h>
++# include <netinet/ip_state.h>
+ # include <netinet/ip_proxy.h>
+ # include <netinet/ip_nat.h>
++# include <netinet/ipl.h>
++# include <osreldate.h>
+ # define TRANS 1
++# ifndef IPL_NAT
++# define IPL_NAT IPNAT_NAME
++# endif
+ # warning IPF transparent proxying available
+ # else
+ # undef IPF
+@@ -1066,9 +1073,13 @@
+ struct sockaddr_in to_addr;
+ int to_len;
+ #if IPF
+- struct sockaddr_in socketin, sloc;
+- natlookup_t natlook;
+- int fd;
++#if __FreeBSD_version >=600024
++ ipfobj_t obj;
++#endif
++ struct sockaddr_in socketin, sloc;
++ natlookup_t natlook;
++ natlookup_t *natlookp = &natlook;
++ int fd;
+ #endif
+
+ /* Give this thing 10 minutes to get started (paranoia).
+@@ -1144,6 +1155,13 @@
+ exit(-1);
+ }
+
++#if __FreeBSD_version >=600024
++ bzero(&obj, sizeof(obj));
++ obj.ipfo_rev = IPFILTER_VERSION;
++ obj.ipfo_size = sizeof(natlook);
++ obj.ipfo_ptr = &natlook;
++ obj.ipfo_type = IPFOBJ_NATLOOKUP;
++#endif
+ bzero((char *)&natlook, sizeof(natlook));
+ natlook.nl_outip = socketin.sin_addr;
+ natlook.nl_inip = sloc.sin_addr;
+@@ -1152,9 +1170,13 @@
+ natlook.nl_inport = sloc.sin_port;
+
+ fd = open(IPL_NAT, O_RDONLY);
+- if (ioctl(fd, SIOCGNATL, &natlook) == -1)
++#if __FreeBSD_version >=600024
++ if (ioctl(fd, SIOCGNATL, &obj) == -1)
++#else
++ if (ioctl(fd, SIOCGNATL, &natlookp) == -1)
++#endif
+ {
+- perror("ioctl");
++ perror("ioctl(SIOCGNATL)");
+ exit(-1);
+ }
+ close(fd);
+@@ -2201,7 +2223,9 @@
+ /* People neither using the CDIR stuff nor running as root probably
+ * couldn't care less about ident problems.
+ */
++#ifdef CDIR_IDENT
+ if (!use_cdir && getuid()) tries = 10;
++#endif
+
+ /* FIXME: dangerous sprintfs */
+ #ifdef CDIR
diff --git a/irc/tircproxy/files/patch-aa b/irc/tircproxy/files/patch-tircproxy.h
index 16c03da0efeb..51796e64dd71 100644
--- a/irc/tircproxy/files/patch-aa
+++ b/irc/tircproxy/files/patch-tircproxy.h
@@ -1,5 +1,5 @@
---- tircproxy.h.orig Fri Dec 22 01:13:40 2000
-+++ tircproxy.h Fri Dec 22 01:15:39 2000
+--- tircproxy.h Sat Oct 15 06:49:51 2005
++++ tircproxy.h Sat Oct 15 06:50:00 2005
@@ -34,8 +34,8 @@
/* Set the location of the broadcast & MOTD files. Undef these to disable
** the broadcasting feature.