summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2015-02-20 10:19:00 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-03-01 10:50:55 +0100
commit1f1831afb5617dec060143be51c1607c889320e7 (patch)
tree2cc036bb65c0d216beb83bf7bae1ccfbdd93682a
parent6ac25921e7afb3e1f3d752665678c587ecd221b2 (diff)
downloadptxdist-1f1831afb5617dec060143be51c1607c889320e7.tar.gz
ptxdist-1f1831afb5617dec060143be51c1607c889320e7.tar.xz
libndp: add library for Neighbor Discovery Protocol
Add new package required by the new NetworkManager Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/libndp.in19
-rw-r--r--rules/libndp.make59
2 files changed, 78 insertions, 0 deletions
diff --git a/rules/libndp.in b/rules/libndp.in
new file mode 100644
index 000000000..e25d58c6e
--- /dev/null
+++ b/rules/libndp.in
@@ -0,0 +1,19 @@
+## SECTION=system_libraries
+
+menuconfig LIBNDP
+ tristate
+ prompt "libndp "
+ help
+ The libndp package provides a wrapper for IPv6 Neighbor Discovery
+ Protocol. It also provides a tool named ndptool for sending and
+ receiving NDP messages
+
+if LIBNDP
+
+config LIBNDP_NDPTOOL
+ bool
+ prompt "install 'npdtool'"
+ help
+ Install the npdtool into the root filesystem
+
+endif
diff --git a/rules/libndp.make b/rules/libndp.make
new file mode 100644
index 000000000..a4c535f61
--- /dev/null
+++ b/rules/libndp.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Juergen Borleis <jbe@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_LIBNDP) += libndp
+
+#
+# Paths and names
+#
+LIBNDP_VERSION := 1.4
+LIBNDP_MD5 := 52c708d4b8729ae6e3781b3737a85e16
+LIBNDP := libndp-$(LIBNDP_VERSION)
+LIBNDP_SUFFIX := tar.gz
+LIBNDP_URL := http://libndp.org/files/$(LIBNDP).$(LIBNDP_SUFFIX)
+LIBNDP_SOURCE := $(SRCDIR)/$(LIBNDP).$(LIBNDP_SUFFIX)
+LIBNDP_DIR := $(BUILDDIR)/$(LIBNDP)
+LIBNDP_LICENSE := LGPLv2.1
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBNDP_CONF_TOOL := autoconf
+LIBNDP_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-logging \
+ --disable-debug
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libndp.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libndp)
+ @$(call install_fixup, libndp,PRIORITY,optional)
+ @$(call install_fixup, libndp,SECTION,base)
+ @$(call install_fixup, libndp,AUTHOR,"Juergen Borleis <jbe@pengutronix.de>")
+ @$(call install_fixup, libndp,DESCRIPTION,"Neighbor Discovery Protocol support")
+
+ @$(call install_lib, libndp, 0, 0, 0644, libndp)
+ifdef PTXCONF_LIBNDP_NDPTOOL
+ @$(call install_copy, libndp, 0, 0, 0755, -, /usr/bin/ndptool)
+endif
+ @$(call install_finish, libndp)
+
+ @$(call touch)
+
+# vim: syntax=make