aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/Makefile1
-rw-r--r--www/www6to4/Makefile33
-rw-r--r--www/www6to4/distinfo1
-rw-r--r--www/www6to4/files/patch-Makefile13
-rw-r--r--www/www6to4/files/patch-www6to4.c19
-rw-r--r--www/www6to4/files/www6to4.sh41
-rw-r--r--www/www6to4/pkg-comment1
-rw-r--r--www/www6to4/pkg-descr10
-rw-r--r--www/www6to4/pkg-plist7
9 files changed, 126 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index e2c02fccd71a..132e708d5831 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -416,6 +416,7 @@
SUBDIR += wmnetselect
SUBDIR += wn
SUBDIR += wsmake
+ SUBDIR += www6to4
SUBDIR += wwwcount
SUBDIR += wwwoffle
SUBDIR += wwwstat
diff --git a/www/www6to4/Makefile b/www/www6to4/Makefile
new file mode 100644
index 000000000000..f8f5b7006606
--- /dev/null
+++ b/www/www6to4/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: www6to4
+# Date created: 22.03.2002
+# Whom: Janos Mohacsi <janos.mohacsi@dante.org.uk>
+#
+# $FreeBSD$
+
+PORTNAME= www6to4
+PORTVERSION= 1.5
+CATEGORIES= www ipv6
+MASTER_SITES= ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/
+
+MAINTAINER= Janos.Mohacsi@dante.org.uk
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/www6to4 ${PREFIX}/sbin
+ @if [ ! -d ${PREFIX}/etc/www6to4 ]; then \
+ ${MKDIR} ${PREFIX}/etc/www6to4; fi
+ ${INSTALL_DATA} ${WRKSRC}/www6to4.conf \
+ ${PREFIX}/etc/www6to4/www6to4.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/www6to4_forward.conf \
+ ${PREFIX}/etc/www6to4/www6to4_forward.conf.sample
+.if !defined(NOPORTDOCS)
+ if [ ! -d ${DOCSDIR} ]; then \
+ ${MKDIR} ${DOCSDIR}; fi
+ ${INSTALL_DATA} ${WRKSRC}/README \
+ ${DOCSDIR}
+.endif
+ @if [ ! -f ${PREFIX}/etc/rc.d/www6to4.sh ]; then \
+ ${ECHO} "Installing ${PREFIX}/etc/rc.d/www6to4.sh startup file."; \
+ ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/www6to4.sh ${PREFIX}/etc/rc.d/www6to4.sh; \
+ fi
+
+.include <bsd.port.mk>
diff --git a/www/www6to4/distinfo b/www/www6to4/distinfo
new file mode 100644
index 000000000000..473035dfe193
--- /dev/null
+++ b/www/www6to4/distinfo
@@ -0,0 +1 @@
+MD5 (www6to4-1.5.tar.gz) = 6f1e4940c0f82196d8ebbe52761e2478
diff --git a/www/www6to4/files/patch-Makefile b/www/www6to4/files/patch-Makefile
new file mode 100644
index 000000000000..74ded54980c2
--- /dev/null
+++ b/www/www6to4/files/patch-Makefile
@@ -0,0 +1,13 @@
+*** Makefile.orig Fri Mar 22 00:24:37 2002
+--- Makefile Fri Mar 22 00:25:17 2002
+***************
+*** 6,11 ****
+--- 6,13 ----
+
+ OBJS = www6to4.o parsers.c loaders.o socket.o
+
++ all: $(PROG)
++
+ $(PROG): $(OBJS)
+ $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
+
diff --git a/www/www6to4/files/patch-www6to4.c b/www/www6to4/files/patch-www6to4.c
new file mode 100644
index 000000000000..fb0aa71dd939
--- /dev/null
+++ b/www/www6to4/files/patch-www6to4.c
@@ -0,0 +1,19 @@
+*** www6to4.c.orig Fri Mar 22 00:25:51 2002
+--- www6to4.c Fri Mar 22 00:26:48 2002
+***************
+*** 59,65 ****
+ char *patterns[MAXPATTERNS];
+ int lastpattern = -1;
+
+! char *default_configfile = "/etc/www6to4.conf";
+ char *configfile = NULL;
+ char *forwardfile = NULL;
+ int debug = 0;
+--- 59,65 ----
+ char *patterns[MAXPATTERNS];
+ int lastpattern = -1;
+
+! char *default_configfile = "/usr/local/etc/www6to4/www6to4.conf";
+ char *configfile = NULL;
+ char *forwardfile = NULL;
+ int debug = 0;
diff --git a/www/www6to4/files/www6to4.sh b/www/www6to4/files/www6to4.sh
new file mode 100644
index 000000000000..09ec00218b64
--- /dev/null
+++ b/www/www6to4/files/www6to4.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# $FreeBSD$
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+WWW6TO4DIR=${PREFIX}/etc/www6to4
+
+
+case $1 in
+start)
+ if [ -d ${WWW6TO4DIR} \
+ -a -x ${PREFIX}/sbin/www6to4 \
+ -a -f ${WWW6TO4DIR}/www6to4.conf ]; then
+ : seems OK
+ else
+ echo >&2 "$0: missing files!"
+ exit 1
+ fi
+ cd ${WWW6TO4DIR}
+ su -m nobody -c "${PREFIX}/sbin/www6to4 &" \
+ >/dev/null \
+ && echo -n " www6to4" \
+ || echo " www6to4 FAILED TO START"
+ ;;
+stop)
+ killall www6to4 && echo -n " www6to4"
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0
diff --git a/www/www6to4/pkg-comment b/www/www6to4/pkg-comment
new file mode 100644
index 000000000000..4feaf01785ac
--- /dev/null
+++ b/www/www6to4/pkg-comment
@@ -0,0 +1 @@
+Lightweight http proxy to help IPv4 only browsers
diff --git a/www/www6to4/pkg-descr b/www/www6to4/pkg-descr
new file mode 100644
index 000000000000..9f6471af431b
--- /dev/null
+++ b/www/www6to4/pkg-descr
@@ -0,0 +1,10 @@
+This is a little WWW-proxy that can communicate over both IPv4 and IPv6. It's
+primary use is as stub-proxy between a IPv4-only browser and the rest of the
+(v4 and v6) Internet. This proxy is meant to run on a client machine as
+frontend to an IPv4-only browser and not to serve a large number of clients.
+If you need the latter you're much better off with a full-fledged proxy like
+squid.
+
+This program is based on same code copyrighted by the Junkbusters Corp.
+
+WWW: http://www.vermicelli.pasta.cs.uit.no/ipv6/software.html
diff --git a/www/www6to4/pkg-plist b/www/www6to4/pkg-plist
new file mode 100644
index 000000000000..efdf5e1d94a6
--- /dev/null
+++ b/www/www6to4/pkg-plist
@@ -0,0 +1,7 @@
+sbin/www6to4
+etc/www6to4/www6to4.conf.sample
+etc/www6to4/www6to4_forward.conf.sample
+etc/rc.d/www6to4.sh
+%%PORTDOCS%%share/doc/www6to4/README
+@dirrm etc/www6to4
+%%PORTDOCS%%@dirrm share/doc/www6to4