From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YOjjp-0001r7-HJ for ptxdist@pengutronix.de; Fri, 20 Feb 2015 10:19:09 +0100 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.84) (envelope-from ) id 1YOjjp-0001r5-GI for ptxdist@pengutronix.de; Fri, 20 Feb 2015 10:19:09 +0100 From: Juergen Borleis Date: Fri, 20 Feb 2015 10:19:00 +0100 Message-Id: <1424423943-28091-2-git-send-email-jbe@pengutronix.de> In-Reply-To: <1424423943-28091-1-git-send-email-jbe@pengutronix.de> References: <1424423943-28091-1-git-send-email-jbe@pengutronix.de> Subject: [ptxdist] [PATCH 1/4] libndp: add library for Neighbor Discovery Protocol Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Add new package required by the new NetworkManager Signed-off-by: Juergen Borleis --- 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 +# +# 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 ") + @$(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