This patch add OpenNHRP support to ptxdist
OpenNHRP implements NBMA Next Hop Resolution Protocol (RFC 2332)

Signed-off-by: Oliver Graute <[email protected]>
---
 rules/opennhrp.in   |    9 ++++++++
 rules/opennhrp.make |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 rules/opennhrp.in
 create mode 100644 rules/opennhrp.make

diff --git a/rules/opennhrp.in b/rules/opennhrp.in
new file mode 100644
index 0000000..6554e9d
--- /dev/null
+++ b/rules/opennhrp.in
@@ -0,0 +1,9 @@
+## SECTION=networking
+
+config OPENNHRP
+       tristate
+       select C_ARES
+       prompt "opennhrp"
+       help
+         OpenNHRP implements NBMA Next Hop Resolution Protocol
+         (as defined in RFC 2332)
diff --git a/rules/opennhrp.make b/rules/opennhrp.make
new file mode 100644
index 0000000..e91bd91
--- /dev/null
+++ b/rules/opennhrp.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, 
Oliver Graute <[email protected]>
+#
+# 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_OPENNHRP) += opennhrp
+
+#
+# Paths and names
+#
+OPENNHRP_VERSION       := 0.14.1
+OPENNHRP_MD5           := eb42ddb13e07ceb415b9ebb8eaca28ee
+OPENNHRP               := opennhrp-$(OPENNHRP_VERSION)
+OPENNHRP_SUFFIX        := tar.bz2
+OPENNHRP_URL           := $(call ptx/mirror, SF, 
opennhrp/$(OPENNHRP).$(OPENNHRP_SUFFIX))
+OPENNHRP_SOURCE        := $(SRCDIR)/$(OPENNHRP).$(OPENNHRP_SUFFIX)
+OPENNHRP_DIR           := $(BUILDDIR)/$(OPENNHRP)
+OPENNHRP_LICENSE       := MIT
+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+
+OPENNHRP_MAKE_OPT   := \
+       CROSS_COMPILE=$(COMPILER_PREFIX)
+
+OPENNHRP_INSTALL_OPT := $(COMPILE_OPT)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/opennhrp.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, opennhrp)
+       @$(call install_fixup, opennhrp,PRIORITY,optional)
+       @$(call install_fixup, opennhrp,SECTION,base)
+       @$(call install_fixup, opennhrp,AUTHOR,"<[email protected]>")
+       @$(call install_fixup, opennhrp,DESCRIPTION,missing)
+
+       @$(call install_copy, opennhrp, 0, 0, 0755, -, /usr/sbin/opennhrp)
+       @$(call install_copy, opennhrp, 0, 0, 0755, -, /usr/sbin/opennhrpctl)
+       @$(call install_alternative, opennhrp, 0, 0, 0644, 
/etc/opennhrp/opennhrp.conf)
+       @$(call install_alternative, opennhrp, 0, 0, 0755, 
/etc/opennhrp/racoon-ph1dead.sh)
+       @$(call install_alternative, opennhrp, 0, 0, 0755, 
/etc/opennhrp/racoon-ph1down.sh)
+
+       @$(call install_finish, opennhrp)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
1.7.9.5


-- 
ptxdist mailing list
[email protected]

Reply via email to