summaryrefslogtreecommitdiff
path: root/net/tspc
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2002-08-22 18:14:51 +0000
committergrant <grant@pkgsrc.org>2002-08-22 18:14:51 +0000
commit12fdec6728a8b1b416742901c13ca05a9700d1f3 (patch)
tree4925649ea39765bba9bd1ec9279b8294254150ee /net/tspc
parent041c2bed3ce3039bf1969f38379b1c9d0067f772 (diff)
downloadpkgsrc-12fdec6728a8b1b416742901c13ca05a9700d1f3.tar.gz
Initlal import of tspc-0.9.6 into the NetBSD packages collection.
tspc is a tunnel server protocol client used to establish an IPv6 tunnel to Freenet6, an free IPv6 over IPv4 provider.
Diffstat (limited to 'net/tspc')
-rw-r--r--net/tspc/DESCR2
-rw-r--r--net/tspc/Makefile67
-rw-r--r--net/tspc/PLIST18
-rw-r--r--net/tspc/distinfo7
-rw-r--r--net/tspc/patches/patch-aa13
-rw-r--r--net/tspc/patches/patch-ab24
-rw-r--r--net/tspc/patches/patch-ac13
7 files changed, 144 insertions, 0 deletions
diff --git a/net/tspc/DESCR b/net/tspc/DESCR
new file mode 100644
index 00000000000..a73aceecd84
--- /dev/null
+++ b/net/tspc/DESCR
@@ -0,0 +1,2 @@
+tspc is a tunnel server protocol client used to establish an IPv6
+tunnel to Freenet6, an free IPv6 over IPv4 provider.
diff --git a/net/tspc/Makefile b/net/tspc/Makefile
new file mode 100644
index 00000000000..6fd0794f6dd
--- /dev/null
+++ b/net/tspc/Makefile
@@ -0,0 +1,67 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/08/22 18:14:51 grant Exp $
+#
+
+DISTNAME= freenet6-0.9.6
+PKGNAME= tspc-0.9.6
+CATEGORIES= net
+MASTER_SITES= # empty
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= grant@netbsd.org
+HOMEPAGE= http://www.freenet6.net/
+COMMENT= freenet6 IPv6 tunnel server protocol client
+
+NO_CONFIGURE= yes
+INTERACTIVE_STAGE= fetch
+ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-5.[8-9]-*
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+TARGET= ${LOWER_OPSYS}8
+.else
+TARGET= ${LOWER_OPSYS}
+.endif
+
+ALL_TARGET= all target="${TARGET}"
+INSTALL_TARGET= ${ALL_TARGET}
+
+DOWNLOAD= http://www.freenet6.net/cgi-bin/download.cgi?fn=${DISTNAME}${EXTRACT_SUFX}
+
+_FETCH_MESSAGE= \
+ ${ECHO} "==============================================================="; \
+ ${ECHO} " The Freenet6 client must be fetched"; \
+ ${ECHO} " into ${DISTDIR} from"; \
+ ${ECHO} " ${DOWNLOAD}."; \
+ ${ECHO} "==============================================================="
+
+TSP_DIR= ${PREFIX}/share/tspc
+CONF_FILES= ${WRKSRC}/bin/tspc.conf ${PREFIX}/etc/tspc.conf
+
+pre-build:
+.for file in src/Makefile src/tspc.c man/man8/tspc.8
+ ${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.orig
+ ${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/${file}.orig > \
+ ${WRKSRC}/${file}
+.endfor
+.for file in src/tspc.c src/tspc.conf.in
+ ${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.orig
+ ${SED} -e 's|@TSP_DIR@|${TSP_DIR}|' ${WRKSRC}/${file}.orig > \
+ ${WRKSRC}/${file}
+.endfor
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${PREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${PREFIX}/man/man8
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tspc
+ ${INSTALL_DATA} ${WRKSRC}/CONTRIB.txt ${PREFIX}/share/doc/tspc
+ ${INSTALL_DATA} ${WRKSRC}/LEGAL ${PREFIX}/share/doc/tspc
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tspc
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/tspc
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/tspc/template
+.for template in checktunnel.sh cisco.sh freebsd4.sh freebsd44.sh linux.sh netbsd.sh openbsd.sh solaris8.sh
+ ${INSTALL_SCRIPT} ${WRKSRC}/template/${template} ${PREFIX}/share/tspc/template
+.endfor
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/tspc/PLIST b/net/tspc/PLIST
new file mode 100644
index 00000000000..ab18aa4f03a
--- /dev/null
+++ b/net/tspc/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/08/22 18:14:51 grant Exp $
+man/man5/tspc.conf.5
+man/man8/tspc.8
+sbin/tspc
+share/doc/tspc/CONTRIB.txt
+share/doc/tspc/LEGAL
+share/doc/tspc/README
+share/tspc/template/checktunnel.sh
+share/tspc/template/cisco.sh
+share/tspc/template/freebsd4.sh
+share/tspc/template/freebsd44.sh
+share/tspc/template/linux.sh
+share/tspc/template/netbsd.sh
+share/tspc/template/openbsd.sh
+share/tspc/template/solaris8.sh
+@dirrm share/doc/tspc
+@dirrm share/tspc/template
+@dirrm share/tspc
diff --git a/net/tspc/distinfo b/net/tspc/distinfo
new file mode 100644
index 00000000000..06619a42661
--- /dev/null
+++ b/net/tspc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/08/22 18:14:52 grant Exp $
+
+SHA1 (freenet6-0.9.6.tgz) = f3e063a25a199b10b03a322f83fdf49cd7818f72
+Size (freenet6-0.9.6.tgz) = 334333 bytes
+SHA1 (patch-aa) = ba2521fe708a9bae5c8efdd6c3c7b7f957f82dd5
+SHA1 (patch-ab) = 6f3da6e14e0a0fbf1eac1735b364b38e89d845d3
+SHA1 (patch-ac) = e586056941f011765f3f4d7c96da215a24e8d054
diff --git a/net/tspc/patches/patch-aa b/net/tspc/patches/patch-aa
new file mode 100644
index 00000000000..dadadf775b6
--- /dev/null
+++ b/net/tspc/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/08/22 18:14:52 grant Exp $
+
+--- src/tspc.conf.in.orig Sat May 12 04:11:49 2001
++++ src/tspc.conf.in
+@@ -6,7 +6,7 @@
+ # tsp client version
+ #
+ tsp_version=1.0.0
+-tsp_dir=@tsp_dir@
++tsp_dir=@TSP_DIR@
+
+ #
+ # auth_method=any|supported mechanism
diff --git a/net/tspc/patches/patch-ab b/net/tspc/patches/patch-ab
new file mode 100644
index 00000000000..2cdf13649ff
--- /dev/null
+++ b/net/tspc/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/08/22 18:14:52 grant Exp $
+
+--- src/tspc.c.orig Sat Dec 8 07:18:05 2001
++++ src/tspc.c
+@@ -55,8 +55,8 @@ Copyright (c) 2001 Viagenie Inc. All rig
+
+ #define Identification "tspc - Tunnel Server Protocol Client\n"
+
+-char *FileName = "tspc.conf";
+-char *LogFile = "tspc.log";
++char *FileName = "@PREFIX@/etc/tspc.conf";
++char *LogFile = "/var/log/tspc.log";
+ char *ScriptDir = NULL;
+ char *LogFileName = NULL;
+ tConf Conf;
+@@ -77,7 +77,7 @@ int Verbose = 0;
+ */
+ # define ScriptExtension "bat"
+ #else
+- char *TspHomeDir = "/usr/local/etc/tsp";
++ char *TspHomeDir = "@TSP_DIR@";
+ char DirSeparator = '/';
+ int RootUid = 0;
+ # define ScriptInterpretor "/bin/sh "
diff --git a/net/tspc/patches/patch-ac b/net/tspc/patches/patch-ac
new file mode 100644
index 00000000000..b8d085faaaf
--- /dev/null
+++ b/net/tspc/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/08/22 18:14:52 grant Exp $
+
+--- man/man8/tspc.8.orig Wed May 30 06:01:50 2001
++++ man/man8/tspc.8
+@@ -85,7 +85,7 @@ for more information.
+ .Pp
+ .It Fl f Ar configuration_file
+ Specifies a different configuration file to be used in placed of
+-the default file /usr/local/tsp/etc/tspc.conf. The file format is
++the default file @PREFIX@/etc/tspc.conf. The file format is
+ detailed in
+ .Xr tspc.conf 5
+ and lists the options available to customize the client.