summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johanson <latexer@gentoo.org>2003-05-31 19:34:49 +0000
committerPeter Johanson <latexer@gentoo.org>2003-05-31 19:34:49 +0000
commitfe5f33cb95345b0ba43094d558f0f59536a3d244 (patch)
tree6cf43ce78b3c2a70d96e5a9eb6e7419602819b5f /net-misc/ptrtd/files
parentInitial import (diff)
downloadhistorical-fe5f33cb95345b0ba43094d558f0f59536a3d244.tar.gz
historical-fe5f33cb95345b0ba43094d558f0f59536a3d244.tar.bz2
historical-fe5f33cb95345b0ba43094d558f0f59536a3d244.zip
Initial import
Diffstat (limited to 'net-misc/ptrtd/files')
-rw-r--r--net-misc/ptrtd/files/digest-ptrtd-0.5.21
-rw-r--r--net-misc/ptrtd/files/ptrtd.confd12
-rw-r--r--net-misc/ptrtd/files/ptrtd.initd38
3 files changed, 51 insertions, 0 deletions
diff --git a/net-misc/ptrtd/files/digest-ptrtd-0.5.2 b/net-misc/ptrtd/files/digest-ptrtd-0.5.2
new file mode 100644
index 000000000000..2abb18b5bdfe
--- /dev/null
+++ b/net-misc/ptrtd/files/digest-ptrtd-0.5.2
@@ -0,0 +1 @@
+MD5 bfe026445fdc4fe509a9c70ec4551744 ptrtd-0.5.2.tar.gz 50295
diff --git a/net-misc/ptrtd/files/ptrtd.confd b/net-misc/ptrtd/files/ptrtd.confd
new file mode 100644
index 000000000000..e3a9df79809e
--- /dev/null
+++ b/net-misc/ptrtd/files/ptrtd.confd
@@ -0,0 +1,12 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ptrtd/files/ptrtd.confd,v 1.1 2003/05/31 19:34:44 latexer Exp $
+
+
+# Config file for ptrtd
+#
+# Peter Johanson <latexer@gentoo.org>
+
+# IPV6_PREFIX should be an IPv6 prefix, usually of length 64
+#
+#IPV6_PREFIX="3ffe:abcd:1234:9876::"
diff --git a/net-misc/ptrtd/files/ptrtd.initd b/net-misc/ptrtd/files/ptrtd.initd
new file mode 100644
index 000000000000..423297daf3bc
--- /dev/null
+++ b/net-misc/ptrtd/files/ptrtd.initd
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ptrtd/files/ptrtd.initd,v 1.1 2003/05/31 19:34:44 latexer Exp $
+
+# Init script for the ptrtd daemon.
+#
+# Peter Johanson <latexer@gentoo.org>
+
+depends() {
+ need net
+}
+
+checkconfig() {
+ if [ -z ${IPV6_PREFIX} ]
+ then
+ eerror "You must define IPV6_PREFIX in /etc/conf.d/ptrtd"
+ return 1
+ else
+ return 0
+ fi
+}
+start() {
+
+ checkconfig || return 1
+
+ ebegin "Starting ptrtd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/ptrtd \
+ -- -p ${IPV6_PREFIX} &> /dev/null
+ eend $?
+}
+
+stop() {
+
+ ebegin "Stopping ptrtd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/ptrtd
+ eend $?
+}