diff options
author | ghen <ghen@pkgsrc.org> | 2005-12-28 12:10:44 +0000 |
---|---|---|
committer | ghen <ghen@pkgsrc.org> | 2005-12-28 12:10:44 +0000 |
commit | 099216653952441be9e96a3e3679714d9ae3a188 (patch) | |
tree | 16280082f1c8d61e0eeca5c5485e98aeae3062d9 /net/tspc | |
parent | 561cd166d7a36ae8912a9d6be91c4618fad7950e (diff) | |
download | pkgsrc-099216653952441be9e96a3e3679714d9ae3a188.tar.gz |
Import new tspc package from PR#32252. Ok by grant and wiz.
Diffstat (limited to 'net/tspc')
-rw-r--r-- | net/tspc/DESCR | 11 | ||||
-rw-r--r-- | net/tspc/Makefile | 45 | ||||
-rw-r--r-- | net/tspc/PLIST | 7 | ||||
-rw-r--r-- | net/tspc/distinfo | 9 | ||||
-rw-r--r-- | net/tspc/files/tspc.sh | 24 | ||||
-rw-r--r-- | net/tspc/patches/patch-aa | 15 | ||||
-rw-r--r-- | net/tspc/patches/patch-ab | 15 | ||||
-rw-r--r-- | net/tspc/patches/patch-ac | 15 | ||||
-rw-r--r-- | net/tspc/patches/patch-ad | 15 |
9 files changed, 156 insertions, 0 deletions
diff --git a/net/tspc/DESCR b/net/tspc/DESCR new file mode 100644 index 00000000000..523139e72f3 --- /dev/null +++ b/net/tspc/DESCR @@ -0,0 +1,11 @@ +Freenet6 is a free IPv6 access service offered by Hexago. This service enables +thousands of people from all over the world to experience the best solution for +a smooth and incremental deployment of IPv6. + +Instead of a Web interface, which is usually offered by traditional tunnel +brokers, Freenet6 uses an innovative model based on the TSP Client. The TSP +Client is software that usually runs on a PC and that implements the Tunnel +Setup Protocol (TSP). The TSP Client is used to automatically negotiate a +configured tunnel between a PC or router and the Freenet6 tunnel broker, making +IPv6 easy to install and maintain. The TSP Client source code is licensed under +the GPL. A commercial license is also available. diff --git a/net/tspc/Makefile b/net/tspc/Makefile new file mode 100644 index 00000000000..871767fca66 --- /dev/null +++ b/net/tspc/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.10 2005/12/28 12:10:44 ghen Exp $ + +DISTNAME= tspc-2.1.1-src +PKGNAME= ${DISTNAME:S/-src//} +CATEGORIES= net +MASTER_SITES= http://www.hexago.com/files/ +EXTRACT_SUFX= .tgz + +MAINTAINER= ghen@NetBSD.org +COMMENT= Tunnel Setup Protocol Client for Freenet6 +HOMEPAGE= http://www.hexago.com/ + +# USE_INET6 (pick this up for README-IPv6.html) + +ONLY_FOR_PLATFORM= NetBSD-*-* +ONLY_FOR_PLATFORM+= OpenBSD-*-* +ONLY_FOR_PLATFORM+= FreeBSD-*-* +ONLY_FOR_PLATFORM+= Linux-*-* +ONLY_FOR_PLATFORM+= Darwin-*-* +ONLY_FOR_PLATFORM+= SunOS-*-* + +.if "${OPSYS}" == "SunOS" +TARGET= solaris +.else +TARGET= ${LOWER_OPSYS} +.endif + +MAKE_ENV+= target=${TARGET:Q} + +WRKSRC= ${WRKDIR}/tspc2 + +USE_PKGINSTALL= yes +CONF_FILES+= ${PREFIX}/share/examples/tspc/tspc.conf ${PKG_SYSCONFDIR}/tspc.conf +CONF_FILES_MODE= 0600 + +RCD_SCRIPTS= tspc + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${PREFIX}/sbin/ + ${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${PREFIX}/${PKGMANDIR}/man5/ + ${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${PREFIX}/${PKGMANDIR}/man8/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tspc/ + ${INSTALL_DATA} ${WRKSRC}/bin/tspc.conf.sample ${PREFIX}/share/examples/tspc/tspc.conf + +.include "../../mk/bsd.pkg.mk" diff --git a/net/tspc/PLIST b/net/tspc/PLIST new file mode 100644 index 00000000000..b958987dbae --- /dev/null +++ b/net/tspc/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.4 2005/12/28 12:10:44 ghen Exp $ +man/man5/tspc.conf.5 +man/man8/tspc.8 +sbin/tspc +share/examples/rc.d/tspc +share/examples/tspc/tspc.conf +@dirrm share/examples/tspc diff --git a/net/tspc/distinfo b/net/tspc/distinfo new file mode 100644 index 00000000000..6c204a584f1 --- /dev/null +++ b/net/tspc/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.6 2005/12/28 12:10:44 ghen Exp $ + +SHA1 (tspc-2.1.1-src.tgz) = 55b1385fa860c6f2bbe63a6d2559eb6e8edea64b +RMD160 (tspc-2.1.1-src.tgz) = 53031fb1d157d5eae9b828c8fcc632cd01e247c9 +Size (tspc-2.1.1-src.tgz) = 1745514 bytes +SHA1 (patch-aa) = e51b35c077acc90035ef4e2624002b37fe615f96 +SHA1 (patch-ab) = 6dc480d452d433ff4444349bcb1de800cb48e8b5 +SHA1 (patch-ac) = a89fda0331837399062c3486306adbd0b0e78474 +SHA1 (patch-ad) = e138a9a274607cbf8162868596b7399df9041c51 diff --git a/net/tspc/files/tspc.sh b/net/tspc/files/tspc.sh new file mode 100644 index 00000000000..a5b6e320104 --- /dev/null +++ b/net/tspc/files/tspc.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# +# $NetBSD: tspc.sh,v 1.1 2005/12/28 12:10:44 ghen Exp $ +# + +# PROVIDE: tspc +# REQUIRE: NETWORKING + +$_rc_subr_loaded . /etc/rc.subr + +name="tspc" +rcvar=${name} +command="@PREFIX@/sbin/${name}" +required_files="@PKG_SYSCONFDIR@/${name}.conf" +command_args="-f @PKG_SYSCONFDIR@/${name}.conf" +start_precmd="chdir" + +chdir() +{ + cd @VARBASE@/log +} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/tspc/patches/patch-aa b/net/tspc/patches/patch-aa new file mode 100644 index 00000000000..57e367b9927 --- /dev/null +++ b/net/tspc/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.4 2005/12/28 12:10:44 ghen Exp $ + +--- src/lib/Makefile.orig 2004-09-22 17:26:21.000000000 +0200 ++++ src/lib/Makefile +@@ -24,8 +24,8 @@ OBJDIR=../../objs + OBJ=$(OBJDIR)/base64.o $(OBJDIR)/cli.o $(OBJDIR)/config.o $(OBJDIR)/lib.o $(OBJDIR)/log.o $(OBJDIR)/md5c.o $(OBJDIR)/cnfchk.o + BIN=../bin + +-CFLAGS=-O2 -g -Wall -I../../include -I../../platform/$(target) +-CC=gcc ++CFLAGS+=-Wall -I../../include -I../../platform/$(target) ++CC?=gcc + + all: $(OBJ) + diff --git a/net/tspc/patches/patch-ab b/net/tspc/patches/patch-ab new file mode 100644 index 00000000000..eebec830c32 --- /dev/null +++ b/net/tspc/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.5 2005/12/28 12:10:44 ghen Exp $ + +--- src/net/Makefile.orig 2004-09-22 17:26:22.000000000 +0200 ++++ src/net/Makefile +@@ -25,8 +25,8 @@ OBJDIR=../../objs + OBJ=$(OBJDIR)/net.o $(OBJDIR)/net_rudp.o $(OBJDIR)/net_tcp.o $(OBJDIR)/net_udp.o $(OBJDIR)/net_ka.o $(OBJDIR)/net_cksm.o + BIN=../bin + +-CFLAGS=-O2 -g -Wall -I../../include -I../../platform/$(target) +-CC=gcc ++CFLAGS+=-Wall -I../../include -I../../platform/$(target) ++CC?=gcc + + all: $(OBJ) + diff --git a/net/tspc/patches/patch-ac b/net/tspc/patches/patch-ac new file mode 100644 index 00000000000..52b2efee75d --- /dev/null +++ b/net/tspc/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.4 2005/12/28 12:10:44 ghen Exp $ + +--- src/tsp/Makefile.orig 2004-09-22 17:26:23.000000000 +0200 ++++ src/tsp/Makefile +@@ -25,8 +25,8 @@ OBJDIR=../../objs + OBJ=$(OBJDIR)/tsp_auth.o $(OBJDIR)/tsp_cap.o $(OBJDIR)/tsp_client.o $(OBJDIR)/tsp_net.o $(OBJDIR)/tsp_setup.o + BIN=../bin + +-CFLAGS=-O2 -g -Wall -I../../include -I../../platform/$(target) +-CC=gcc ++CFLAGS+=-Wall -I../../include -I../../platform/$(target) ++CC?=gcc + + all: $(OBJ) + diff --git a/net/tspc/patches/patch-ad b/net/tspc/patches/patch-ad new file mode 100644 index 00000000000..d1223884dfa --- /dev/null +++ b/net/tspc/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.3 2005/12/28 12:10:44 ghen Exp $ + +--- src/xml/Makefile.orig 2004-09-22 17:26:24.000000000 +0200 ++++ src/xml/Makefile +@@ -25,8 +25,8 @@ OBJDIR=../../objs + OBJ=$(OBJDIR)/xmlparse.o $(OBJDIR)/xml_req.o $(OBJDIR)/xml_tun.o + BIN=../bin + +-CFLAGS=-O2 -g -Wall -I../../include -I../../platform/$(target) +-CC=gcc ++CFLAGS+=-Wall -I../../include -I../../platform/$(target) ++CC?=gcc + + all: $(OBJ) + |