Patchwork [1/1] libmodbus: Added recipe for libmodbus stable version 3.0.4

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date Sept. 4, 2013, 7:52 a.m.
Message ID <51880e3a02d1a1d03670669f3207c7c26ee851bd.1378281029.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/272477/
State Accepted
Delegated to: Esben Haabendal
Headers show

Comments

christian.braunersorensen@prevas.dk - Sept. 4, 2013, 7:52 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 recipes/libmodbus/libmodbus.inc          | 21 +++++++++++++++++++++
 recipes/libmodbus/libmodbus_3.0.4.oe     |  3 +++
 recipes/libmodbus/libmodbus_3.0.4.oe.sig |  1 +
 3 files changed, 25 insertions(+)
 create mode 100644 recipes/libmodbus/libmodbus.inc
 create mode 100644 recipes/libmodbus/libmodbus_3.0.4.oe
 create mode 100644 recipes/libmodbus/libmodbus_3.0.4.oe.sig
Esben Haabendal - Sept. 17, 2013, 6:39 p.m.
<christian.braunersorensen@prevas.dk> writes:

> From: Christian Sørensen <christian.braunersorensen@prevas.dk>
>
> Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
> ---
>  recipes/libmodbus/libmodbus.inc          | 21 +++++++++++++++++++++
>  recipes/libmodbus/libmodbus_3.0.4.oe     |  3 +++
>  recipes/libmodbus/libmodbus_3.0.4.oe.sig |  1 +
>  3 files changed, 25 insertions(+)
>  create mode 100644 recipes/libmodbus/libmodbus.inc
>  create mode 100644 recipes/libmodbus/libmodbus_3.0.4.oe
>  create mode 100644 recipes/libmodbus/libmodbus_3.0.4.oe.sig

Merged to master, thanks.

/Esben

Patch

diff --git a/recipes/libmodbus/libmodbus.inc b/recipes/libmodbus/libmodbus.inc
new file mode 100644
index 0000000..6866e04
--- /dev/null
+++ b/recipes/libmodbus/libmodbus.inc
@@ -0,0 +1,21 @@ 
+DESCRIPTION = "A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Win32"
+HOMEPAGE = "http://www.libmodbus.org/"
+LICENSE = "LGPL"
+
+inherit autotools-autoreconf pkgconfig library
+
+do_install[postfuncs] += "do_install_modbus_tests"
+do_install_modbus_tests () {
+	mkdir -p ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/bandwidth-client ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/bandwidth-server-many-up ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/bandwidth-server-one ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/random-test-client ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/random-test-server ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/unit-test-client ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/unit-test-server ${D}${bindir}
+	install -m 0755 ${S}/tests/.libs/version ${D}${bindir}
+}
+
+PACKAGES =+ "${PN}-tests"
+FILES_${PN}-tests = "${bindir}"
diff --git a/recipes/libmodbus/libmodbus_3.0.4.oe b/recipes/libmodbus/libmodbus_3.0.4.oe
new file mode 100644
index 0000000..326e3a4
--- /dev/null
+++ b/recipes/libmodbus/libmodbus_3.0.4.oe
@@ -0,0 +1,3 @@ 
+require libmodbus.inc
+
+SRC_URI = "https://github.com/stephane/libmodbus/archive/v${PV}.tar.gz"
diff --git a/recipes/libmodbus/libmodbus_3.0.4.oe.sig b/recipes/libmodbus/libmodbus_3.0.4.oe.sig
new file mode 100644
index 0000000..c8d31e7
--- /dev/null
+++ b/recipes/libmodbus/libmodbus_3.0.4.oe.sig
@@ -0,0 +1 @@ 
+f808b5aa53b8fb3fe271fa3c655728abc7915487  v3.0.4.tar.gz