mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/4] libndp: add library for Neighbor Discovery Protocol
Date: Fri, 20 Feb 2015 10:19:00 +0100	[thread overview]
Message-ID: <1424423943-28091-2-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1424423943-28091-1-git-send-email-jbe@pengutronix.de>

Add new package required by the new NetworkManager

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 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 <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) \
+	--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 <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
-- 
2.1.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2015-02-20  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-20  9:18 [ptxdist] [RFC] update NetworkManager Juergen Borleis
2015-02-20  9:19 ` Juergen Borleis [this message]
2015-02-20  9:19 ` [ptxdist] [PATCH 2/4] NetworkManager: update package Juergen Borleis
2015-02-20  9:19 ` [ptxdist] [PATCH 3/4] libnewt: windowing toolkit Juergen Borleis
2015-02-20  9:19 ` [ptxdist] [PATCH 4/4] NetworkManager: add nmtui support Juergen Borleis
2015-03-18 10:20 ` [ptxdist] [RFC] update NetworkManager Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424423943-28091-2-git-send-email-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox