summaryrefslogtreecommitdiff
path: root/net/tspc2/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/tspc2/files')
-rw-r--r--net/tspc2/files/patch-Makefile21
-rw-r--r--net/tspc2/files/patch-Mk-mk-freebsd.mk11
-rw-r--r--net/tspc2/files/patch-conf-tspc.conf.in11
-rw-r--r--net/tspc2/files/patch-platform-freebsd-tsp_local.c19
-rw-r--r--net/tspc2/files/tspc2.sh.in26
5 files changed, 88 insertions, 0 deletions
diff --git a/net/tspc2/files/patch-Makefile b/net/tspc2/files/patch-Makefile
new file mode 100644
index 000000000000..b28d79120589
--- /dev/null
+++ b/net/tspc2/files/patch-Makefile
@@ -0,0 +1,21 @@
+--- Makefile.old Wed Jul 14 21:08:03 2004
++++ Makefile Mon Jul 11 16:41:46 2005
+@@ -71,13 +71,14 @@
+
+ @mkdir -p $(install_bin)
+ @$(COPY) bin/$(TSPC) $(install_bin)
+- @$(COPY) bin/tspc.conf.sample $(install_bin)
+
+- @if [ ! -f $(install_bin)/tspc.conf ]; then \
+- $(COPY) $(install_bin)/tspc.conf.sample $(install_bin)/tspc.conf; \
++ @mkdir -p $(installdir)/etc
++ @$(COPY) bin/tspc.conf.sample $(installdir)/etc
++
++ @if [ ! -f $(installdir)/etc/tspc.conf ]; then \
++ $(COPY) $(installdir)/etc/tspc.conf.sample $(installdir)/etc/tspc.conf; \
+ fi
+
+- @$(COPY) GPL_LICENSE.txt $(installdir)
+
+ clean: pre-checks
+ @for dir in ${subdirs}; do \
diff --git a/net/tspc2/files/patch-Mk-mk-freebsd.mk b/net/tspc2/files/patch-Mk-mk-freebsd.mk
new file mode 100644
index 000000000000..db60e5b694fc
--- /dev/null
+++ b/net/tspc2/files/patch-Mk-mk-freebsd.mk
@@ -0,0 +1,11 @@
+--- Mk/mk-freebsd.mk.bak Fri Feb 13 01:05:08 2004
++++ Mk/mk-freebsd.mk Mon Jul 11 16:45:09 2005
+@@ -26,7 +26,7 @@
+ install_bin=$(installdir)/bin
+ install_etc=$(installdir)/etc
+ install_lib=$(installdir)/lib
+-install_template=$(installdir)/template
++install_template=$(installdir)/share/tspc2/template
+ install_man=$(installdir)/man
+ subdirs=src/net src/lib src/tsp src/xml platform/freebsd template conf man
+ ifname=gif0
diff --git a/net/tspc2/files/patch-conf-tspc.conf.in b/net/tspc2/files/patch-conf-tspc.conf.in
new file mode 100644
index 000000000000..583d21ddd074
--- /dev/null
+++ b/net/tspc2/files/patch-conf-tspc.conf.in
@@ -0,0 +1,11 @@
+--- conf/tspc.conf.in.bak Tue Jun 15 18:01:01 2004
++++ conf/tspc.conf.in Mon Jul 11 18:24:39 2005
+@@ -24,7 +24,7 @@
+ # the only use is for the OS scripts which will be taken
+ # from $tsp_dir/template
+ #
+-tsp_dir=@tsp_dir@
++tsp_dir=/usr/local/share/tspc2
+
+ #
+ # authentication method:
diff --git a/net/tspc2/files/patch-platform-freebsd-tsp_local.c b/net/tspc2/files/patch-platform-freebsd-tsp_local.c
new file mode 100644
index 000000000000..a2b9a3230ace
--- /dev/null
+++ b/net/tspc2/files/patch-platform-freebsd-tsp_local.c
@@ -0,0 +1,19 @@
+--- platform/freebsd/tsp_local.c.bak Wed Mar 31 00:27:35 2004
++++ platform/freebsd/tsp_local.c Mon Jul 11 18:12:14 2005
+@@ -59,13 +59,13 @@
+ #include "tsp_tun.h" /* freebsd's tun */
+
+
+-char *FileName = "tspc.conf";
+-char *LogFile = "tspc.log";
++char *FileName = "/usr/local/etc/tspc.conf";
++char *LogFile = "/var/log/tspc.log";
+ char *LogFileName = NULL;
+ char *ScriptInterpretor = "/bin/sh";
+ char *ScriptExtension = "sh";
+ char *ScriptDir = NULL;
+-char *TspHomeDir = "/usr/local/etc/tsp";
++char *TspHomeDir = "/usr/local/share/tspc2";
+ char DirSeparator = '/';
+
+ int Verbose = 0;
diff --git a/net/tspc2/files/tspc2.sh.in b/net/tspc2/files/tspc2.sh.in
new file mode 100644
index 000000000000..8c2b03c47973
--- /dev/null
+++ b/net/tspc2/files/tspc2.sh.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+case "$1" in
+
+start)
+ %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
+ echo -n ' tspc2'
+ ;;
+
+stop)
+ killall -TERM tspc
+ echo -n ' tspc2'
+ ;;
+
+restart)
+ killall -TERM tspc
+ %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
+ echo 'tspc2 restarted'
+ ;;
+
+*)
+ echo "Usage: ${0##*/}: { start | stop | restart }" >&2
+ exit 64
+ ;;
+
+esac