aboutsummaryrefslogtreecommitdiff
path: root/www/www6to4
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2002-09-10 21:36:05 +0000
committerOliver Braun <obraun@FreeBSD.org>2002-09-10 21:36:05 +0000
commitb2f10820bdde89929c7d701fe9c947633f9ec861 (patch)
tree7ae73fe5e20ef54d53db7266eca27c4049d50909 /www/www6to4
parent4f0988e95960b1436c71aa38d81763079073f360 (diff)
downloadports-b2f10820bdde89929c7d701fe9c947633f9ec861.tar.gz
ports-b2f10820bdde89929c7d701fe9c947633f9ec861.zip
Notes
Diffstat (limited to 'www/www6to4')
-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
8 files changed, 125 insertions, 0 deletions
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