diff options
author | hamajima <hamajima@pkgsrc.org> | 2004-06-05 07:43:25 +0000 |
---|---|---|
committer | hamajima <hamajima@pkgsrc.org> | 2004-06-05 07:43:25 +0000 |
commit | df87a55c12af1c8746bc9ed332b787a5729099df (patch) | |
tree | ded80ec0f774142dbf6eee56375d0957df77acdc /net/dtcp | |
parent | 3b59a3e45f250ce5707b2a6672b14fada3a10808 (diff) | |
download | pkgsrc-df87a55c12af1c8746bc9ed332b787a5729099df.tar.gz |
New package for dtcp-20030228, Dynamic Tunnel Configuration Protocol daemon and client
Diffstat (limited to 'net/dtcp')
-rw-r--r-- | net/dtcp/DESCR | 6 | ||||
-rw-r--r-- | net/dtcp/Makefile | 19 | ||||
-rw-r--r-- | net/dtcp/PLIST | 10 | ||||
-rw-r--r-- | net/dtcp/distinfo | 5 | ||||
-rwxr-xr-x | net/dtcp/files/dtcpc.sh | 42 | ||||
-rwxr-xr-x | net/dtcp/files/dtcps.sh | 64 | ||||
-rw-r--r-- | net/dtcp/patches/patch-aa | 133 |
7 files changed, 279 insertions, 0 deletions
diff --git a/net/dtcp/DESCR b/net/dtcp/DESCR new file mode 100644 index 00000000000..ef06a67b444 --- /dev/null +++ b/net/dtcp/DESCR @@ -0,0 +1,6 @@ +Dynamic Tunnel Configuration Protocol daemon and client + +dtcpc and dtcps 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/dtcp/Makefile b/net/dtcp/Makefile new file mode 100644 index 00000000000..30305b3a12d --- /dev/null +++ b/net/dtcp/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/06/05 07:43:25 hamajima Exp $ +# + +DISTNAME= dtcp-20030228 +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 daemon and client + +DEPENDS+= ruby-digest-*:../../security/ruby-digest +DEPENDS+= qpopper-*:../../mail/qpopper + +RCD_SCRIPTS= dtcpc dtcps +CONF_DEPENDS= YES + +.include "../../mk/bsd.pkg.mk" diff --git a/net/dtcp/PLIST b/net/dtcp/PLIST new file mode 100644 index 00000000000..de08cb04c76 --- /dev/null +++ b/net/dtcp/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/05 07:43:25 hamajima Exp $ +sbin/dtcpauth +sbin/dtcpc +sbin/dtcps +man/cat8/dtcpauth.0 +man/cat8/dtcpc.0 +man/cat8/dtcps.0 +man/man8/dtcpauth.8 +man/man8/dtcpc.8 +man/man8/dtcps.8 diff --git a/net/dtcp/distinfo b/net/dtcp/distinfo new file mode 100644 index 00000000000..bb073ce2ef9 --- /dev/null +++ b/net/dtcp/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/06/05 07:43:25 hamajima Exp $ + +SHA1 (dtcp-20030228.tar.gz) = bb9b4eea12eda6a31d35e2b1b7861aac0d74ae39 +Size (dtcp-20030228.tar.gz) = 17221 bytes +SHA1 (patch-aa) = 6666ff340134f013311cd400d67ff7cdbbcfb930 diff --git a/net/dtcp/files/dtcpc.sh b/net/dtcp/files/dtcpc.sh new file mode 100755 index 00000000000..51a94af2cf6 --- /dev/null +++ b/net/dtcp/files/dtcpc.sh @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $FreeBSD: /repoman/r/pcvs/ports/net/dtcp/files/dtcpc.sh,v 1.1 2004/04/19 18:40:52 ume Exp $ +# $NetBSD: dtcpc.sh,v 1.1.1.1 2004/06/05 07:43:25 hamajima Exp $ +# + +# PROVIDE: dtcpc +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# NOTE for FreeBSD 5.0+: +# If you want this script to start with the base rc scripts +# move dtcpc.sh to /etc/rc.d/dtcpc + +prefix=@PREFIX@ + +# Define these dtcpc_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/dtcpc +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +dtcpc_enable=${dtcpc_enable:-"NO"} # Enable dtcpc +#dtcpc_program="${prefix}/sbin/dtcpc" # Location of dtcpc +dtcpc_server=${dtcpc_server:-""} # DTCP server name +dtcpc_username=${dtcpc_username:-""} # DTCP user name +dtcpc_flags=${dtcpc_flags:-"-t network -Dl"} # Flags to dtcpc program + +. /etc/rc.subr + +name="dtcpc" +rcvar=$name +command="${prefix}/sbin/${name}" +command_interpreter="${prefix}/bin/ruby" +pidfile="/var/run/${name}.pid" +extra_commands="reload" + +load_rc_config $name +command_args="${dtcpc_flags} -u ${dtcpc_username} ${dtcpc_server}" +run_rc_command "$1" diff --git a/net/dtcp/files/dtcps.sh b/net/dtcp/files/dtcps.sh new file mode 100755 index 00000000000..102db28cf4c --- /dev/null +++ b/net/dtcp/files/dtcps.sh @@ -0,0 +1,64 @@ +#!/bin/sh +# +# $FreeBSD: /repoman/r/pcvs/ports/net/dtcp/files/dtcps.sh,v 1.1 2004/04/19 18:40:52 ume Exp $ +# $NetBSD: dtcps.sh,v 1.1.1.1 2004/06/05 07:43:25 hamajima Exp $ +# + +# PROVIDE: dtcps +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# NOTE for FreeBSD 5.0+: +# If you want this script to start with the base rc scripts +# move dtcps.sh to /etc/rc.d/dtcps + +prefix=@PREFIX@ + +# Define these dtcps_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/dtcps +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +dtcps_enable=${dtcps_enable:-"NO"} # Enable dtcps +#dtcps_program="${prefix}/sbin/dtcps" # Location of dtcps +dtcps_tunif=${dtcps_tunif:-""} # tunnel interface +dtcps_prefix=${dtcps_prefix:-""} # prefix for host tunnel type +dtcps_flags=${dtcps_flags:-""} # Flags to dtcps program + +# interface cloning example +#dtcps_tunif='gif70' + +# static allocation example +#dtcps_unit_min=70 +#dtcps_unit_max=79 +#dtcps_tunif='gif7[0-9]' + +# prefix for host tunnel type. +# YOU MUST CHANGE TO ASSIGN THIS WITHIN YOUR ADDRESS BLOCK. +#dtcps_prefix='3ffe:501:185b:8000::' + +. /etc/rc.subr + +name="dtcps" +rcvar=$name +command="${prefix}/sbin/${name}" +command_interpreter="${prefix}/bin/ruby" +pidfile="/var/run/${name}.pid" +start_precmd="dtcps_prestart" + +dtcps_prestart() { + if [ -n "${dtcps_unit_min}" -a -n "${dtcps_unit_max}" ]; then + unit=${dtcps_unit_min} + while [ ${unit} -le ${dtcps_unit_max} ]; do + ifconfig gif${unit} create >/dev/null 2>&1 + unit=$((${unit}+1)) + done + fi +} + +load_rc_config $name +command_args="-i ${dtcps_tunif} ${dtcps_flags} ${dtcps_prefix}" +run_rc_command "$1" diff --git a/net/dtcp/patches/patch-aa b/net/dtcp/patches/patch-aa new file mode 100644 index 00000000000..a9f4f3f7899 --- /dev/null +++ b/net/dtcp/patches/patch-aa @@ -0,0 +1,133 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/06/05 07:43:25 hamajima Exp $ + +--- Makefile.orig 2003-02-28 03:18:03.000000000 +0900 ++++ Makefile 2004-06-05 15:30:10.000000000 +0900 +@@ -21,21 +21,16 @@ + MAN= dtcps.8 dtcpc.8 dtcpauth.8 + .endif + +-.if (${OPSYS} == "NetBSD") +-LPREFIX= /usr/pkg/bin +-.else +-LPREFIX= /usr/local/bin +-.endif + CLEANFILES+= dtcps dtcpc dtcpauth + + all: dtcps dtcpc dtcpauth + + dtcps: dtcps.rb +- sed -e 's#@PREFIX@#${LPREFIX}#' < dtcps.rb > dtcps ++ sed -e 's#@PREFIX@#${PREFIX}#' < dtcps.rb > dtcps + dtcpc: dtcpc.rb +- sed -e 's#@PREFIX@#${LPREFIX}#' < dtcpc.rb > dtcpc ++ sed -e 's#@PREFIX@#${PREFIX}#' < dtcpc.rb > dtcpc + dtcpauth: dtcpauth.rb +- sed -e 's#@PREFIX@#${LPREFIX}#' < dtcpauth.rb > dtcpauth ++ sed -e 's#@PREFIX@#${PREFIX}#' < dtcpauth.rb > dtcpauth + + realinstall: + install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 555 dtcps \ +--- dtcpauth.rb.orig 2002-11-29 00:46:59.000000000 +0900 ++++ dtcpauth.rb 2004-06-05 15:40:03.000000000 +0900 +@@ -1,4 +1,4 @@ +-#! @PREFIX@/ruby ++#! @PREFIX@/bin/ruby + + # + # dtcpauth, manipulate POP authorization DB +@@ -37,7 +37,12 @@ + require 'etc' + + POPAUTHUID = 'pop' +-POPAUTHDB = '/usr/local/etc/qpopper/pop.auth' ++# FreeBSD port of qpopper 4.X ++#POPAUTHDB = '/usr/local/etc/qpopper/pop.auth' ++# FreeBSD port of qpopper 2.X ++#POPAUTHDB = '/usr/local/etc/popper/pop.auth' ++# NetBSD pkg of qpopper 4.X ++POPAUTHDB = '@PREFIX@/etc/apop.auth' + + #$debug = true + +--- dtcpc.rb.orig 2003-02-28 20:18:56.000000000 +0900 ++++ dtcpc.rb 2004-06-05 15:30:24.000000000 +0900 +@@ -1,4 +1,4 @@ +-#! @PREFIX@/ruby ++#! @PREFIX@/bin/ruby + + # + # dtcpc, Turmpet Dynamic Tunel Configuration Protocol client +@@ -50,7 +50,7 @@ + TIMEOUT = 60 + TUNTIMEOUT = 300 + DEBUG = false +-PASSWDFILE = '/usr/local/etc/dtcpc.auth' ++PASSWDFILE = '@PREFIX@/etc/dtcpc.auth' + PIDFILE = '/var/run/dtcpc.pid' + + ROUTE_GATEWAY = 0 +@@ -59,11 +59,11 @@ + ROUTE_IFP = 3 + + # NetBSD 1.6 or later +-#TUNIF = "gif0" +-#TUNIF_CLONING = true +-#TUNNEL_CREATE = 'ifconfig %s tunnel %s %s' +-#TUNNEL_DELETE = 'ifconfig %s deletetunnel' +-#ROUTE_METHOD = ROUTE_IFP ++TUNIF = "gif0" ++TUNIF_CLONING = true ++TUNNEL_CREATE = 'ifconfig %s tunnel %s %s' ++TUNNEL_DELETE = 'ifconfig %s deletetunnel' ++ROUTE_METHOD = ROUTE_IFP + # + # NetBSD 1.5.x or earlier + # and OpenBSD +@@ -74,11 +74,11 @@ + #ROUTE_METHOD = ROUTE_CHANGE + # + # FreeBSD 4.6-RELEASE or later +-TUNIF = "gif" +-TUNIF_CLONING = true +-TUNNEL_CREATE = 'ifconfig %s tunnel %s %s' +-TUNNEL_DELETE = 'ifconfig %s deletetunnel' +-ROUTE_METHOD = ROUTE_IFP ++#TUNIF = "gif" ++#TUNIF_CLONING = true ++#TUNNEL_CREATE = 'ifconfig %s tunnel %s %s' ++#TUNNEL_DELETE = 'ifconfig %s deletetunnel' ++#ROUTE_METHOD = ROUTE_IFP + #ROUTE_METHOD = ROUTE_INTERFACE + # + # FreeBSD 4.4-RELEASE or 4.5-RELEASE +--- dtcps.rb.orig 2003-02-28 13:36:04.000000000 +0900 ++++ dtcps.rb 2004-06-05 15:30:30.000000000 +0900 +@@ -1,4 +1,4 @@ +-#! @PREFIX@/ruby ++#! @PREFIX@/bin/ruby + + # + # dtcpd, Turmpet Dynamic Tunel Configuration Protocol daemon +@@ -56,7 +56,7 @@ + # must be less than 10, against RIPng and PIM6 - useless + TRAFFICTIMEOUT = 0 + POPAUTHUID = 'pop' +-ROUTETABLE = '/usr/local/etc/routetable' ++ROUTETABLE = '@PREFIX@/etc/routetable' + PIDFILE = '/var/run/dtcps.pid' + + ROUTE_GATEWAY = 0 +@@ -65,11 +65,11 @@ + ROUTE_IFP = 3 + + # FreeBSD port of qpopper 4.X +-POPAUTHDB = '/usr/local/etc/qpopper/pop.auth' ++#POPAUTHDB = '/usr/local/etc/qpopper/pop.auth' + # FreeBSD port of qpopper 2.X + #POPAUTHDB = '/usr/local/etc/popper/pop.auth' + # NetBSD pkg of qpopper 4.X +-#POPAUTHDB = '/usr/pkg/etc/apop.auth' ++POPAUTHDB = '@PREFIX@/etc/apop.auth' + + # NetBSD 1.5.x or earlier + # and OpenBSD |