aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yegor Yefremov <yegorslists@googlemail.com>2014-03-17 11:57:07 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-29 11:33:49 +0100
commit2d07ad8026eaedc3fb01c94ac56791aeef3202f5 (patch)
tree18987c2e9e99653016d0801e3943d1f1f668c34b
parentaf156db8817efe27109b8cfc6933bc8ef6150fbb (diff)
downloadbuildroot-2d07ad8026eaedc3fb01c94ac56791aeef3202f5.tar.gz
buildroot-2d07ad8026eaedc3fb01c94ac56791aeef3202f5.tar.bz2
libndp: new package
[Thomas: add patch to add stdarg.h include needed on uClibc, add missing upstream URL in Config.in, fix license to be LGPLv2.1+ instead of LGPLv2.1] Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/libndp/Config.in12
-rw-r--r--package/libndp/libndp-01-missing-stdarg-include.patch16
-rw-r--r--package/libndp/libndp.mk15
4 files changed, 44 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index ad75d9bd19..2fee0ef800 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -714,6 +714,7 @@ source "package/libmbus/Config.in"
source "package/libmicrohttpd/Config.in"
source "package/libmnl/Config.in"
source "package/libmodbus/Config.in"
+source "package/libndp/Config.in"
source "package/libnetfilter_acct/Config.in"
source "package/libnetfilter_conntrack/Config.in"
source "package/libnetfilter_cthelper/Config.in"
diff --git a/package/libndp/Config.in b/package/libndp/Config.in
new file mode 100644
index 0000000000..bb9093bd95
--- /dev/null
+++ b/package/libndp/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LIBNDP
+ bool "libndp"
+ depends on BR2_INET_IPV6
+ help
+ This package contains a library which provides a wrapper
+ for IPv6 Neighbor Discovery Protocol. It also provides a tool
+ named ndptool for sending and receiving NDP messages.
+
+ https://github.com/jpirko/libndp
+
+comment "libndp needs a toolchain w/ IPv6"
+ depends on !BR2_INET_IPV6
diff --git a/package/libndp/libndp-01-missing-stdarg-include.patch b/package/libndp/libndp-01-missing-stdarg-include.patch
new file mode 100644
index 0000000000..e10848ee0b
--- /dev/null
+++ b/package/libndp/libndp-01-missing-stdarg-include.patch
@@ -0,0 +1,16 @@
+Add missing <stdarg.h> include for va_list
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/include/ndp.h
+===================================================================
+--- a/include/ndp.h
++++ b/include/ndp.h
+@@ -20,6 +20,7 @@
+ #ifndef _NDP_H_
+ #define _NDP_H_
+
++#include <stdarg.h>
+ #include <stdbool.h>
+ #include <netinet/in.h>
+
diff --git a/package/libndp/libndp.mk b/package/libndp/libndp.mk
new file mode 100644
index 0000000000..55d172b52b
--- /dev/null
+++ b/package/libndp/libndp.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# libndp
+#
+################################################################################
+
+LIBNDP_VERSION = v1.2
+LIBNDP_SITE = $(call github,jpirko,libndp,$(LIBNDP_VERSION))
+LIBNDP_LICENSE = LGPLv2.1+
+LIBNDP_LICENSE_FILES = COPYING
+LIBNDP_AUTORECONF = YES
+LIBNDP_INSTALL_STAGING = YES
+LIBNDP_CONF_OPT = --disable-debug
+
+$(eval $(autotools-package))