Return-Path: Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) by mail.openembedded.org (Postfix) with ESMTP id 8C46D7897A for ; Wed, 21 Mar 2018 17:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2725; q=dns/txt; s=iport; t=1521652221; x=1522861821; h=from:to:cc:subject:date:message-id; bh=Ijbw4ibZKkXxlxCFDBI84OZoh6dINCPpmY1dWjpeGhU=; b=SDlvlkjv6egomqjvZ2F/ORF0Ngia0szU2NYycBP9WX+DXRpDB9URJFiz LDgrYIc+cwbbe4cALFNNBLa46osEhLzgm/2et8RH+cuBtzX8Sq35hyoHt hWqVYlJ1EIbwl+JzadzMVSI9GlSBvq4/y7n7uvZNbEE0skcZC5eiGXgQu o=; X-IronPort-AV: E=Sophos;i="5.48,340,1517875200"; d="scan'208";a="2752110" Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2018 17:10:19 +0000 Received: from KBP1-LHP-F55617.cisco.com ([10.61.244.85]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id w2LHAJL6005436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 21 Mar 2018 17:10:19 GMT From: Mariia Movchan To: openembedded-devel@lists.openembedded.org Date: Wed, 21 Mar 2018 19:10:15 +0200 Message-Id: <20180321171015.29005-1-mmovchan@cisco.com> X-Mailer: git-send-email 2.15.1 X-Auto-Response-Suppress: DR, OOF, AutoReply Cc: xe-linux-external@cisco.com Subject: [meta-networking] [PATCH v3] ipcalc: add initial recipe for version 0.2.2 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 17:10:19 -0000 Signed-off-by: Mariia Movchan --- .../0001-Makefile-pass-extra-linker-flags.patch | 31 ++++++++++++++++++++++ .../recipes-support/ipcalc/ipcalc_0.2.2.bb | 29 ++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 meta-networking/recipes-support/ipcalc/ipcalc/0001-Makefile-pass-extra-linker-flags.patch create mode 100644 meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb diff --git a/meta-networking/recipes-support/ipcalc/ipcalc/0001-Makefile-pass-extra-linker-flags.patch b/meta-networking/recipes-support/ipcalc/ipcalc/0001-Makefile-pass-extra-linker-flags.patch new file mode 100644 index 000000000..38d306475 --- /dev/null +++ b/meta-networking/recipes-support/ipcalc/ipcalc/0001-Makefile-pass-extra-linker-flags.patch @@ -0,0 +1,31 @@ +From fd80c0599083013a1b583feba5d7473f52b35938 Mon Sep 17 00:00:00 2001 +From: Mariia Movchan +Date: Tue, 6 Mar 2018 16:03:39 +0200 +Subject: [PATCH] Makefile: pass extra linker flags + +Fixes +ERROR: QA Issue: No GNU_HASH in the elf binary + +Upstream-Status: Pending + +Signed-off-by: Mariia Movchan +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 8beff8f..047f02a 100644 +--- a/Makefile ++++ b/Makefile +@@ -8,7 +8,7 @@ LIBS?= + VERSION=0.2.2 + CC?=gcc + CFLAGS?=-O2 -g -Wall +-LDFLAGS=$(LIBS) ++LDFLAGS+=$(LIBS) + + ifeq ($(USE_GEOIP),yes) + ifeq ($(USE_DYN_GEOIP),yes) +-- +2.15.1 + diff --git a/meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb b/meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb new file mode 100644 index 000000000..e3a14348a --- /dev/null +++ b/meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb @@ -0,0 +1,29 @@ +SUMMARY = "Tool to assist in network address calculations for IPv4 and IPv6." +HOMEPAGE = "https://github.com/nmav/ipcalc" + +SECTION = "net" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[geoip] = ",,geoip," + +SRC_URI = "\ + https://github.com/nmav/ipcalc/archive/${PV}.tar.gz;downloadfilename=ipcalc-${PV}.tar.gz \ + file://0001-Makefile-pass-extra-linker-flags.patch \ +" + +SRC_URI[md5sum] = "343db932a3ad407328920b7430965faf" +SRC_URI[sha256sum] = "bf1b95eca219e564c85fa4233fe65342963cf3e8a303a7e10b4dd7269c864794" + +do_compile_prepend() { + if ${@bb.utils.contains('PACKAGECONFIG', 'geoip', 'false', 'true', d)}; then + export USE_GEOIP="no" + fi +} + +do_install() { + install -d ${D}/${bindir} + install -m 0755 ${S}/ipcalc ${D}/${bindir} +} -- 2.15.1