Skip to contentSkip to conversation

ipcalc: add initial recipe for version 0.2.2

PATCH Superseded Mariia Movchan 2 participants 2 messages Mar 15, 2018

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ipcalc: add initial recipe for version 0.2.2

---
 .../0001-Makefile-pass-extra-linker-flags.patch    | 31 ++++++++++++++++++++++
 .../recipes-support/ipcalc/ipcalc_0.2.2.bb         | 22 +++++++++++++++
 2 files changed, 53 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
meta-networking/recipes-support/ipcalc/ipcalc/0001-Makefile-pass-extra-linker-flags.patch new file +31 -0
new file mode 100644
index 000000000..38d306475
@@ -0,0 +1,31 @@
+From fd80c0599083013a1b583feba5d7473f52b35938 Mon Sep 17 00:00:00 2001
+From: Mariia Movchan <[email protected]>
+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 <[email protected]>
+---
+ 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
+
meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb new file +22 -0
new file mode 100644
index 000000000..3e278db68
@@ -0,0 +1,22 @@
+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"
+
+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"
+
+export USE_GEOIP = "no"
+
+do_install() {
+    install -d ${D}/${bindir}
+    install -m 0755 ${S}/ipcalc ${D}/${bindir}
+}
Signature · 1 line
2.15.1
#1 lore raw
Quoted 58 lines · Mariia Movchan
---
 .../0001-Makefile-pass-extra-linker-flags.patch    | 31 ++++++++++++++++++++++
 .../recipes-support/ipcalc/ipcalc_0.2.2.bb         | 22 +++++++++++++++
 2 files changed, 53 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
meta-networking/recipes-support/ipcalc/ipcalc/0001-Makefile-pass-extra-linker-flags.patch new file +31 -0
new file mode 100644
index 000000000..38d306475
@@ -0,0 +1,31 @@
+From fd80c0599083013a1b583feba5d7473f52b35938 Mon Sep 17 00:00:00 2001
+From: Mariia Movchan <[email protected]>
+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 <[email protected]>
+---
+ 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
+
meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb new file +7 -0
new file mode 100644
index 000000000..3e278db68
@@ -0,0 +1,22 @@
+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"

meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb line 17

Quoted 10 lines
meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb new file +10 -0
+
+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"
+
+export USE_GEOIP = "no"

is there a way to turn it into a PACKAGECONFIG ?

Quoted 12 lines
meta-networking/recipes-support/ipcalc/ipcalc_0.2.2.bb new file +5 -1
+
+do_install() {
+    install -d ${D}/${bindir}
+    install -m 0755 ${S}/ipcalc ${D}/${bindir}
+}
--

2.15.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel