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
commitc34a2c22b1a487b207fba8c484d921714c130f30 (patch)
tree0451a01919d2b9a5aa41ec950f4be9d513ec8702 /net-misc/ptrtd
parentInitial import (diff)
downloadgentoo-2-c34a2c22b1a487b207fba8c484d921714c130f30.tar.gz
gentoo-2-c34a2c22b1a487b207fba8c484d921714c130f30.tar.bz2
gentoo-2-c34a2c22b1a487b207fba8c484d921714c130f30.zip
Initial import
Diffstat (limited to 'net-misc/ptrtd')
-rw-r--r--net-misc/ptrtd/ChangeLog10
-rw-r--r--net-misc/ptrtd/Manifest7
-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
-rw-r--r--net-misc/ptrtd/ptrtd-0.5.2.ebuild50
6 files changed, 115 insertions, 3 deletions
diff --git a/net-misc/ptrtd/ChangeLog b/net-misc/ptrtd/ChangeLog
new file mode 100644
index 000000000000..448576a06fef
--- /dev/null
+++ b/net-misc/ptrtd/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/ptrtd
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ptrtd/ChangeLog,v 1.1 2003/05/31 19:34:44 latexer Exp $
+
+*ptrtd-0.5.2 (31 May 2003)
+
+ 31 May 2003; Peter Johanson <latexer@gentoo.org> ptrtd-0.5.2.ebuild,
+ files/ptrtd.confd, files/ptrtd.initd:
+ Initial import. Useful app for doing 6to4 connections.
+
diff --git a/net-misc/ptrtd/Manifest b/net-misc/ptrtd/Manifest
index 29fc6f132f3e..3d4d4b6f96bd 100644
--- a/net-misc/ptrtd/Manifest
+++ b/net-misc/ptrtd/Manifest
@@ -1,4 +1,5 @@
-MD5 a904c4699c7417c5b6e42414d1aa2240 ptrtd-0.5.2.ebuild 1018
+MD5 7d6aa400edc230ab6ba67b2692c34acd ptrtd-0.5.2.ebuild 1115
+MD5 5d656dc5e38e39b986031b8841bc0968 ChangeLog 408
MD5 2bf2484cf9bc9fb2d9d22e3a2079b4ba files/digest-ptrtd-0.5.2 62
-MD5 c79a7bb803eea5025cce1cfd7c1009c1 files/ptrtd.confd 295
-MD5 86671045b66e3358d9376d708312dbc7 files/ptrtd.initd 667
+MD5 b940bf96f1fae76043b5e72033279a9a files/ptrtd.confd 391
+MD5 9a40aa544aa8da5502cf5412e53e957c files/ptrtd.initd 763
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 $?
+}
diff --git a/net-misc/ptrtd/ptrtd-0.5.2.ebuild b/net-misc/ptrtd/ptrtd-0.5.2.ebuild
new file mode 100644
index 000000000000..c53ee73331ef
--- /dev/null
+++ b/net-misc/ptrtd/ptrtd-0.5.2.ebuild
@@ -0,0 +1,50 @@
+# 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/ptrtd-0.5.2.ebuild,v 1.1 2003/05/31 19:34:44 latexer Exp $
+
+DESCRIPTION="Portable Transport Relay Translator Daemon for IPv6"
+
+HOMEPAGE="http://v6web.litech.org/ptrtd"
+
+SRC_URI="http://v6web.litech.org/ptrtd/dist/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~x86"
+DEPEND=""
+RDEPEND="sys-apps/iproute"
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ mv -f Makefile.in ${T}
+ sed -e "s:-Wall -g:-Wall ${CFLAGS}:" \
+ ${T}/Makefile.in > Makefile.in
+}
+
+src_compile() {
+ econf || die
+ emake || die
+}
+
+src_install() {
+ einstall || die
+
+ dodir /etc/init.d
+ dodir /etc/conf.d
+
+ exeinto /etc/init.d/
+ newexe ${FILESDIR}/ptrtd.initd ptrtd
+
+ insinto /etc/conf.d/
+ newins ${FILESDIR}/ptrtd.confd ptrtd
+
+ dodoc README
+}
+
+pkg_postinst() {
+ einfo "ptrtd requires access to the 'tun' and 'tap' interfaces to function"
+ einfo "Make sure you have compiled support for it under"
+ einfo "Network Device Support -> Universal TUN/TAP device driver support"
+}