Add new package required by the new NetworkManager

Signed-off-by: Juergen Borleis <[email protected]>
---
 rules/libndp.in   | 19 ++++++++++++++++++
 rules/libndp.make | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 rules/libndp.in
 create mode 100644 rules/libndp.make

diff --git a/rules/libndp.in b/rules/libndp.in
new file mode 100644
index 0000000..e25d58c
--- /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 0000000..3ecdc71
--- /dev/null
+++ b/rules/libndp.make
@@ -0,0 +1,60 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Juergen Borleis <[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_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) \
+       --enable-shared \
+       --disable-static \
+       --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 
<[email protected]>")
+       @$(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
-- 
2.1.4


-- 
ptxdist mailing list
[email protected]

Reply via email to