All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Added a recipe for libmodbus
@ 2011-03-26 16:50 Radoslav Kolev
  2011-03-26 17:08 ` Koen Kooi
  0 siblings, 1 reply; 4+ messages in thread
From: Radoslav Kolev @ 2011-03-26 16:50 UTC (permalink / raw)
  To: openembedded-devel


Signed-off-by: Radoslav Kolev <radoslav@kolev.info>
---
 recipes/libmodbus/libmodbus.inc      |    8 ++++++++
 recipes/libmodbus/libmodbus_2.0.3.bb |    8 ++++++++
 recipes/libmodbus/libmodbus_git.bb   |   11 +++++++++++
 3 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libmodbus/libmodbus.inc
 create mode 100644 recipes/libmodbus/libmodbus_2.0.3.bb
 create mode 100644 recipes/libmodbus/libmodbus_git.bb

diff --git a/recipes/libmodbus/libmodbus.inc b/recipes/libmodbus/libmodbus.inc
new file mode 100644
index 0000000..c5a673a
--- /dev/null
+++ b/recipes/libmodbus/libmodbus.inc
@@ -0,0 +1,8 @@
+DESCRIPTION = "A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Win32"
+HOMEPAGE = "http://www.libmodbus.org/"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPL"
+INC_PR = "r1"
+
+inherit autotools pkgconfig
diff --git a/recipes/libmodbus/libmodbus_2.0.3.bb b/recipes/libmodbus/libmodbus_2.0.3.bb
new file mode 100644
index 0000000..bf6062c
--- /dev/null
+++ b/recipes/libmodbus/libmodbus_2.0.3.bb
@@ -0,0 +1,8 @@
+require libmodbus.inc
+
+PR = "${INC_PR}.1"
+
+SRC_URI = "http://github.com/downloads/stephane/libmodbus/libmodbus-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "0646f3edca6d7783d0356dc2fc4f9f4c"
+SRC_URI[sha256sum] = "cf9d8d3981ace78a4ed559f2e28c5e0270d56a607b9ae79484e5742e36543feb"
diff --git a/recipes/libmodbus/libmodbus_git.bb b/recipes/libmodbus/libmodbus_git.bb
new file mode 100644
index 0000000..5b405f8
--- /dev/null
+++ b/recipes/libmodbus/libmodbus_git.bb
@@ -0,0 +1,11 @@
+require libmodbus.inc
+
+SRCREV = "6254ede9156095ee0300"
+
+PR = "${INC_PR}.1"
+
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "git://github.com/stephane/libmodbus;branch=master;protocol=git"
+S = "${WORKDIR}/git"
+
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Added a recipe for libmodbus
  2011-03-26 16:50 [PATCH] Added a recipe for libmodbus Radoslav Kolev
@ 2011-03-26 17:08 ` Koen Kooi
  2011-03-26 17:33   ` Radoslav Kolev
  2011-03-27  9:19   ` [PATCH v2] " Radoslav Kolev
  0 siblings, 2 replies; 4+ messages in thread
From: Koen Kooi @ 2011-03-26 17:08 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26-03-11 17:50, Radoslav Kolev wrote:

> +++ b/recipes/libmodbus/libmodbus_git.bb
> @@ -0,0 +1,11 @@
> +require libmodbus.inc
> +
> +SRCREV = "6254ede9156095ee0300"
> +
> +PR = "${INC_PR}.1"

That's missing a PV = 1.2 or similar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNjh2OMkyGM64RGpERAn/bAKCy5pAexAIwWE/LlH6bE+b+03WpwQCgqLLR
ScFrtf6DFwZlBoMm8hextko=
=0ktX
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Added a recipe for libmodbus
  2011-03-26 17:08 ` Koen Kooi
@ 2011-03-26 17:33   ` Radoslav Kolev
  2011-03-27  9:19   ` [PATCH v2] " Radoslav Kolev
  1 sibling, 0 replies; 4+ messages in thread
From: Radoslav Kolev @ 2011-03-26 17:33 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Mar 26, 2011 at 7:08 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 26-03-11 17:50, Radoslav Kolev wrote:
>
>> +++ b/recipes/libmodbus/libmodbus_git.bb
>> @@ -0,0 +1,11 @@
>> +require libmodbus.inc
>> +
>> +SRCREV = "6254ede9156095ee0300"
>> +
>> +PR = "${INC_PR}.1"
>
> That's missing a PV = 1.2 or similar

Ah, OK. Just I'm not sure what that value should be.

So, the libmodbus project releases two tarballs - stable and
development. Now stable is at 2.0.3, and I made a separate recipe for
it.

I didn't make a recipe for the current development tarball (now at
2.9.3), but instead added this _git recipe for which the SRCREV points
to the top of the master branch as of today. It is not tagged with any
numeric release version. My intention being to be used by people who
want to test the bleeding edge, and for this reason added the
DEFAULT_PREFERENCE = "-1" to it, so it has to be explicitly selected.

This is the first recipe I submit, so I don't know exactly what is the
official policy for beta/trunk versions of software.

In this case when we have two releases - stable and dev tarballs and a
git repository what would you advise to do?

Best regads,
Radoslav Kolev



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] Added a recipe for libmodbus
  2011-03-26 17:08 ` Koen Kooi
  2011-03-26 17:33   ` Radoslav Kolev
@ 2011-03-27  9:19   ` Radoslav Kolev
  1 sibling, 0 replies; 4+ messages in thread
From: Radoslav Kolev @ 2011-03-27  9:19 UTC (permalink / raw)
  To: openembedded-devel


Signed-off-by: Radoslav Kolev <radoslav@kolev.info>
---
 recipes/libmodbus/libmodbus.inc      |    8 ++++++++
 recipes/libmodbus/libmodbus_2.0.3.bb |    8 ++++++++
 recipes/libmodbus/libmodbus_git.bb   |   13 +++++++++++++
 3 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libmodbus/libmodbus.inc
 create mode 100644 recipes/libmodbus/libmodbus_2.0.3.bb
 create mode 100644 recipes/libmodbus/libmodbus_git.bb

diff --git a/recipes/libmodbus/libmodbus.inc b/recipes/libmodbus/libmodbus.inc
new file mode 100644
index 0000000..c5a673a
--- /dev/null
+++ b/recipes/libmodbus/libmodbus.inc
@@ -0,0 +1,8 @@
+DESCRIPTION = "A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Win32"
+HOMEPAGE = "http://www.libmodbus.org/"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPL"
+INC_PR = "r1"
+
+inherit autotools pkgconfig
diff --git a/recipes/libmodbus/libmodbus_2.0.3.bb b/recipes/libmodbus/libmodbus_2.0.3.bb
new file mode 100644
index 0000000..bf6062c
--- /dev/null
+++ b/recipes/libmodbus/libmodbus_2.0.3.bb
@@ -0,0 +1,8 @@
+require libmodbus.inc
+
+PR = "${INC_PR}.1"
+
+SRC_URI = "http://github.com/downloads/stephane/libmodbus/libmodbus-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "0646f3edca6d7783d0356dc2fc4f9f4c"
+SRC_URI[sha256sum] = "cf9d8d3981ace78a4ed559f2e28c5e0270d56a607b9ae79484e5742e36543feb"
diff --git a/recipes/libmodbus/libmodbus_git.bb b/recipes/libmodbus/libmodbus_git.bb
new file mode 100644
index 0000000..dd15e58
--- /dev/null
+++ b/recipes/libmodbus/libmodbus_git.bb
@@ -0,0 +1,13 @@
+require libmodbus.inc
+
+SRCREV = "6254ede9156095ee0300"
+
+PV = "2.9.3+gitr${SRCPV}"
+
+PR = "${INC_PR}.2"
+
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "git://github.com/stephane/libmodbus;branch=master;protocol=git"
+S = "${WORKDIR}/git"
+
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-27  9:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26 16:50 [PATCH] Added a recipe for libmodbus Radoslav Kolev
2011-03-26 17:08 ` Koen Kooi
2011-03-26 17:33   ` Radoslav Kolev
2011-03-27  9:19   ` [PATCH v2] " Radoslav Kolev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.