summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Buerger <b.buerger@pengutronix.de>2009-09-06 15:27:37 +0200
committerBjoern Buerger <b.buerger@pengutronix.de>2009-09-15 11:01:45 +0200
commita7d2617c86db0d35ea1e00b3f1b9e43bc742eec5 (patch)
tree6b46b22f22d2d0b658fe0223f7bf38cd3a837e52
parentfba52d64102f7a1b989a2de6053684447135cfe8 (diff)
downloadptxdist-a7d2617c86db0d35ea1e00b3f1b9e43bc742eec5.tar.gz
ptxdist-a7d2617c86db0d35ea1e00b3f1b9e43bc742eec5.tar.xz
[totd] added Trick Or Treat Daemon (TOTD)
initial package, currently broken needs compile fixed, addiditional patches available, needs review. Signed-off-by: Bjoern Buerger <b.buerger@pengutronix.de>
-rw-r--r--rules/totd.in23
-rw-r--r--rules/totd.make116
2 files changed, 139 insertions, 0 deletions
diff --git a/rules/totd.in b/rules/totd.in
new file mode 100644
index 000000000..e9ecf89f1
--- /dev/null
+++ b/rules/totd.in
@@ -0,0 +1,23 @@
+## SECTION=networking_ipv6_transition
+
+config TOTD
+ tristate
+ prompt "totd"
+ help
+ This is the Trick Or Treat Daemon (TOTD)
+
+ Totd is a DNS proxy for IPv4/IPv6 translation,
+ developed by the Vermicelli Project (Norway)
+ and can be used as a DNS-ALG for NAT-PT or
+ pTRTd based setups.
+
+ Beware: This is rather old vodoo, last upstream update was
+ in 2005. This ptxdist package ist provided primarily for
+ test environments, ipv6 transition planing, etc.
+
+ The Debian Project has a slightly older version of this
+ package at http://packages.qa.debian.org/t/totd.html with
+ some patches (resolvconf integration, l10n, etc)
+
+ References:
+ http://www.vermicelli.pasta.cs.uit.no/
diff --git a/rules/totd.make b/rules/totd.make
new file mode 100644
index 000000000..03fee898a
--- /dev/null
+++ b/rules/totd.make
@@ -0,0 +1,116 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2009 by Bjoern Buerger <b.buerger@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_TOTD) += totd
+
+#
+# Paths and names
+#
+TOTD_VERSION := 1.5
+TOTD := totd-$(TOTD_VERSION)
+TOTD_SUFFIX := tar.gz
+TOTD_URL := ftp://ftp.pasta.cs.uit.no/pub/Vermicelli//$(TOTD).$(TOTD_SUFFIX)
+TOTD_SOURCE := $(SRCDIR)/$(TOTD).$(TOTD_SUFFIX)
+TOTD_DIR := $(BUILDDIR)/$(TOTD)
+PTRTD_LICENSE := multiple, BSD Style
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(TOTD_SOURCE):
+ @$(call targetinfo)
+ @$(call get, TOTD)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/totd.extract:
+ @$(call targetinfo)
+ @$(call clean, $(TOTD_DIR))
+ @$(call extract, TOTD)
+ @$(call patchin, TOTD)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+TOTD_PATH := PATH=$(CROSS_PATH)
+TOTD_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+TOTD_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/totd.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(TOTD_DIR)/config.cache)
+ cd $(TOTD_DIR) && \
+ $(TOTD_PATH) $(TOTD_ENV) \
+ ./configure $(TOTD_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/totd.compile:
+ @$(call targetinfo)
+ cd $(TOTD_DIR) && $(TOTD_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/totd.install:
+ @$(call targetinfo)
+ @$(call install, TOTD)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/totd.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, totd)
+ @$(call install_fixup, totd,PACKAGE,totd)
+ @$(call install_fixup, totd,PRIORITY,optional)
+ @$(call install_fixup, totd,VERSION,$(TOTD_VERSION))
+ @$(call install_fixup, totd,SECTION,base)
+ @$(call install_fixup, totd,AUTHOR,"Bjoern Buerger <b.buerger@pengutronix.de>")
+ @$(call install_fixup, totd,DEPENDS,)
+ @$(call install_fixup, totd,DESCRIPTION,missing)
+
+ @$(call install_copy, totd, 0, 0, 0755, $(TOTD_DIR)/foobar, /dev/null)
+
+ @$(call install_finish, totd)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+totd_clean:
+ rm -rf $(STATEDIR)/totd.*
+ rm -rf $(PKGDIR)/totd_*
+ rm -rf $(TOTD_DIR)
+
+# vim: syntax=make