summaryrefslogtreecommitdiff
path: root/net/dtcpclient
diff options
context:
space:
mode:
authorhamajima <hamajima@pkgsrc.org>2005-01-23 05:07:43 +0000
committerhamajima <hamajima@pkgsrc.org>2005-01-23 05:07:43 +0000
commit8c8f014d8f668ae9c5dc14a7a41d060afada8635 (patch)
treee00ed0f511c2716511eb3ed0dbcfb44a9bb7d574 /net/dtcpclient
parent93b212eefa3c0623d53da2292fbfec06695e0cd5 (diff)
downloadpkgsrc-8c8f014d8f668ae9c5dc14a7a41d060afada8635.tar.gz
New package for dtcpclient-20040923, Dynamic Tunnel Configuration Protocol client.
dtcpc in pkgsrc/net/dtcp is ruby script, dtcpclient is native binary.
Diffstat (limited to 'net/dtcpclient')
-rw-r--r--net/dtcpclient/DESCR6
-rw-r--r--net/dtcpclient/MESSAGE8
-rw-r--r--net/dtcpclient/Makefile22
-rw-r--r--net/dtcpclient/PLIST7
-rw-r--r--net/dtcpclient/distinfo5
-rw-r--r--net/dtcpclient/files/dtcpclient.sh41
-rw-r--r--net/dtcpclient/patches/patch-aa58
7 files changed, 147 insertions, 0 deletions
diff --git a/net/dtcpclient/DESCR b/net/dtcpclient/DESCR
new file mode 100644
index 00000000000..867aa090271
--- /dev/null
+++ b/net/dtcpclient/DESCR
@@ -0,0 +1,6 @@
+Dynamic Tunnel Configuration Protocol client
+
+dtcpclient implement Dynamic Tunnel Configuration Protocol (DTCP for
+short) proposed by Trumpet:
+
+ http://jazz-1.trumpet.com.au/ipv6-draft/dtcp-draft-prt-13-may-1999.htm
diff --git a/net/dtcpclient/MESSAGE b/net/dtcpclient/MESSAGE
new file mode 100644
index 00000000000..cf494aee001
--- /dev/null
+++ b/net/dtcpclient/MESSAGE
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/01/23 05:07:43 hamajima Exp $
+
+If your password is found in ${PREFIX}/etc/dtcpclient.auth, dtcpclient does
+not ask for your password. The format is a colon-separated list of the
+server name, the user name, and the password.
+
+===========================================================================
diff --git a/net/dtcpclient/Makefile b/net/dtcpclient/Makefile
new file mode 100644
index 00000000000..e91776c343e
--- /dev/null
+++ b/net/dtcpclient/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/23 05:07:43 hamajima Exp $
+#
+
+DISTNAME= dtcpclient-20040923
+CATEGORIES= net
+MASTER_SITES= http://www.imasy.or.jp/~ume/ipv6/ \
+ http://home.jp.FreeBSD.org/~ume/ipv6/
+
+MAINTAINER= hamajima@NetBSD.org
+HOMEPAGE= http://www.imasy.or.jp/~ume/dtcp/
+COMMENT= Dynamic Tunnel Configuration Protocol client
+
+RCD_SCRIPTS= dtcpclient
+USE_PKGINSTALL= YES
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= "Fixing hardcoded paths."
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths= dtcpclient.8
+SUBST_SED.paths= 's|/usr/local|${PREFIX}|g'
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/dtcpclient/PLIST b/net/dtcpclient/PLIST
new file mode 100644
index 00000000000..01e4cb8e6a9
--- /dev/null
+++ b/net/dtcpclient/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/23 05:07:43 hamajima Exp $
+sbin/dtcpclient
+sbin/dtcpclient-script
+man/cat8/dtcpclient.0
+man/man8/dtcpclient.8
+share/examples/dtcpclient/dtcpclient-script
+@dirrm share/examples/dtcpclient
diff --git a/net/dtcpclient/distinfo b/net/dtcpclient/distinfo
new file mode 100644
index 00000000000..c0ecb8d2e28
--- /dev/null
+++ b/net/dtcpclient/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/23 05:07:43 hamajima Exp $
+
+SHA1 (dtcpclient-20040923.tar.gz) = 0cd18e7026fb6363399d4faf973fad82ca8a9b5c
+Size (dtcpclient-20040923.tar.gz) = 11989 bytes
+SHA1 (patch-aa) = 0a0b46dbe8ed56e0276c32cb777aaaeb21d7082e
diff --git a/net/dtcpclient/files/dtcpclient.sh b/net/dtcpclient/files/dtcpclient.sh
new file mode 100644
index 00000000000..097363f0b37
--- /dev/null
+++ b/net/dtcpclient/files/dtcpclient.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/net/dtcpclient/files/dtcpclient.sh,v 1.5 2004/06/11 15:49:48 ume Exp $
+# $NetBSD: dtcpclient.sh,v 1.1.1.1 2005/01/23 05:07:43 hamajima Exp $
+#
+
+# PROVIDE: dtcpclient
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+# NOTE for FreeBSD 5.0+:
+# If you want this script to start with the base rc scripts
+# move dtcpclient.sh to /etc/rc.d/dtcpclient
+
+prefix=@PREFIX@
+
+# Define these dtcpclient_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/dtcpclient
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+#dtcpclient_enable=${dtcpclient_enable:-"NO"} # Enable dtcpclient
+#dtcpclient_program="${prefix}/sbin/dtcpclient" # Location of dtcpclient
+dtcpclient_server=${dtcpclient_server:-""} # DTCP server name
+dtcpclient_username=${dtcpclient_username:-""} # DTCP user name
+dtcpclient_flags=${dtcpclient_flags:-"-t network -Dl"} # Flags to dtcpclient program
+
+. /etc/rc.subr
+
+name="dtcpclient"
+rcvar=`set_rcvar`
+command="${prefix}/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+extra_commands="reload"
+
+load_rc_config $name
+command_args="-u ${dtcpclient_username} ${dtcpclient_server}"
+run_rc_command "$1"
diff --git a/net/dtcpclient/patches/patch-aa b/net/dtcpclient/patches/patch-aa
new file mode 100644
index 00000000000..e64d48aa049
--- /dev/null
+++ b/net/dtcpclient/patches/patch-aa
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/01/23 05:07:44 hamajima Exp $
+
+--- Makefile.orig 2004-06-21 14:18:18.000000000 +0900
++++ Makefile 2005-01-23 12:25:32.000000000 +0900
+@@ -34,7 +34,7 @@
+ MAN= dtcpclient.8
+
+ BINDIR= $(PREFIX)/sbin
+-SCRIPTSDIR= $(PREFIX)/etc
++SCRIPTSDIR= $(PREFIX)/sbin
+ EXAMPLESDIR= $(PREFIX)/share/examples/dtcpclient
+
+ .if ($(OPSYS) == "NetBSD")
+@@ -61,9 +61,10 @@
+ dtcpclient $(BINDIR)/dtcpclient
+ $(INSTALL) -d $(EXAMPLESDIR)
+ $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 555 \
+- dtcpclient.script $(EXAMPLESDIR)/dtcpclient.script
+- if [ ! -f $(SCRIPTSDIR)/dtcpclient.script ]; then \
+- cp -p $(EXAMPLESDIR)/dtcpclient.script $(SCRIPTSDIR)/; \
++ dtcpclient.script $(EXAMPLESDIR)/dtcpclient-script
++ if [ ! -f $(SCRIPTSDIR)/dtcpclient-script ]; then \
++ cp -p $(EXAMPLESDIR)/dtcpclient-script \
++ $(SCRIPTSDIR)/dtcpclient-script; \
+ fi
+
+ dist:
+--- dtcpclient.c.orig 2005-01-23 12:17:28.000000000 +0900
++++ dtcpclient.c 2005-01-23 12:17:56.000000000 +0900
+@@ -73,7 +73,7 @@
+
+ #define PIDFILE _PATH_VARRUN "/dtcpclient.pid"
+ #define PASSWDFILE PREFIX "/etc/dtcpclient.auth"
+-#define SCRIPTFLIE PREFIX "/etc/dtcpclient.script"
++#define SCRIPTFLIE PREFIX "/sbin/dtcpclient-script"
+
+ typedef enum {
+ FALSE = 0,
+--- dtcpclient.8.orig 2004-06-24 00:18:18.000000000 +0900
++++ dtcpclient.8 2005-01-23 12:31:48.000000000 +0900
+@@ -97,7 +97,7 @@
+ .It Fl s Ar script
+ Specify the command to invoke on DTCP session is established or
+ closed. The default is
+-.Pa /usr/local/etc/dtcpclient.script .
++.Pa /usr/local/sbin/dtcpclient-script .
+ .It Fl t Ar tuntype
+ The spec defines several kind of tunnel requests.
+ .Nm
+@@ -180,7 +180,7 @@
+ .Nm
+ does not ask for your password. The format is a colon-separated list of
+ the server name, the user name and the password.
+-.It Pa /usr/local/etc/dtcpclient.script
++.It Pa /usr/local/sbin/dtcpclient-script
+ Default script invoked for setup or cleanup tunnel when DTCP session
+ is established or closed.
+ .It Pa /var/run/dtcpclient.pid