Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v4 1/2] libubox: new package
@ 2014-03-19 21:54 Yegor Yefremov
  2014-03-19 21:54 ` [Buildroot] [PATCH v4 2/2] libuci: " Yegor Yefremov
  0 siblings, 1 reply; 6+ messages in thread
From: Yegor Yefremov @ 2014-03-19 21:54 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
Changes:
	v4: remove unneeded pkg-config macros
        v3: add Lua support
        v2: make package description more informative and fix license information

 package/Config.in          |  1 +
 package/libubox/Config.in  |  7 +++++++
 package/libubox/libubox.mk | 18 ++++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 package/libubox/Config.in
 create mode 100644 package/libubox/libubox.mk

diff --git a/package/Config.in b/package/Config.in
index f9c1b0b..a2e859c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -784,6 +784,7 @@ source "package/libsigc/Config.in"
 source "package/libsigsegv/Config.in"
 source "package/libtasn1/Config.in"
 source "package/libtpl/Config.in"
+source "package/libubox/Config.in"
 source "package/libunwind/Config.in"
 source "package/liburcu/Config.in"
 source "package/linux-pam/Config.in"
diff --git a/package/libubox/Config.in b/package/libubox/Config.in
new file mode 100644
index 0000000..3fa78cf
--- /dev/null
+++ b/package/libubox/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBUBOX
+	bool "libubox"
+	help
+	  Small utility library for OpenWrt. It is a dependency of
+	  libuci, that manages configuration files infrastructure.
+
+	  http://nbd.name/gitweb.cgi?p=luci2/libubox.git;a=summary
diff --git a/package/libubox/libubox.mk b/package/libubox/libubox.mk
new file mode 100644
index 0000000..fe3f420
--- /dev/null
+++ b/package/libubox/libubox.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# libubox
+#
+################################################################################
+
+LIBUBOX_VERSION = bbd846ec2d72b2629758b69dc122ac0b0f2c3e4b
+LIBUBOX_SITE = git://nbd.name/luci2/libubox.git
+LIBUBOX_LICENSE = LGPLv2.1, GPLv2, BSD-3c, MIT
+LIBUBOX_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_LUA),y)
+	LIBUBOX_DEPENDENCIES = lua
+else
+	LIBUBOX_CONF_OPT = -DBUILD_LUA:BOOL=OFF
+endif
+
+$(eval $(cmake-package))
-- 
1.8.3.2

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

* [Buildroot] [PATCH v4 2/2] libuci: new package
  2014-03-19 21:54 [Buildroot] [PATCH v4 1/2] libubox: new package Yegor Yefremov
@ 2014-03-19 21:54 ` Yegor Yefremov
  2014-03-19 22:23   ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Yegor Yefremov @ 2014-03-19 21:54 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
	v4: remove unneeded pkg-config macros
        v3: add Lua support

 package/Config.in        |  1 +
 package/libuci/Config.in |  9 +++++++++
 package/libuci/libuci.mk | 19 +++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 package/libuci/Config.in
 create mode 100644 package/libuci/libuci.mk

diff --git a/package/Config.in b/package/Config.in
index a2e859c..bc01d99 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -785,6 +785,7 @@ source "package/libsigsegv/Config.in"
 source "package/libtasn1/Config.in"
 source "package/libtpl/Config.in"
 source "package/libubox/Config.in"
+source "package/libuci/Config.in"
 source "package/libunwind/Config.in"
 source "package/liburcu/Config.in"
 source "package/linux-pam/Config.in"
diff --git a/package/libuci/Config.in b/package/libuci/Config.in
new file mode 100644
index 0000000..c1aba16
--- /dev/null
+++ b/package/libuci/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBUCI
+	bool "libuci"
+	select BR2_PACKAGE_LIBUBOX
+	help
+	  libuci is intended to centralize the whole configuration
+	  of a device running OpenWrt. This package will also install
+	  CLI tool uci.
+
+	  http://wiki.openwrt.org/doc/techref/uci
diff --git a/package/libuci/libuci.mk b/package/libuci/libuci.mk
new file mode 100644
index 0000000..8036cd2
--- /dev/null
+++ b/package/libuci/libuci.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# libuci
+#
+################################################################################
+
+LIBUCI_VERSION = 262fede3e8c8c08c1eb0d1be9bf102232fb86cb9
+LIBUCI_SITE = git://nbd.name/uci.git
+LIBUCI_LICENSE = LGPLv2.1
+LIBUCI_INSTALL_STAGING = YES
+LIBUCI_DEPENDENCIES = libubox
+
+ifeq ($(BR2_PACKAGE_LUA),y)
+	LIBUCI_DEPENDENCIES += lua
+else
+	LIBUCI_CONF_OPT = -DBUILD_LUA:BOOL=OFF
+endif
+
+$(eval $(cmake-package))
-- 
1.8.3.2

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

* [Buildroot] [PATCH v4 2/2] libuci: new package
  2014-03-19 21:54 ` [Buildroot] [PATCH v4 2/2] libuci: " Yegor Yefremov
@ 2014-03-19 22:23   ` Thomas Petazzoni
  2014-03-20  8:17     ` Yegor Yefremov
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2014-03-19 22:23 UTC (permalink / raw)
  To: buildroot

Dear Yegor Yefremov,

On Wed, 19 Mar 2014 22:54:56 +0100, Yegor Yefremov wrote:

> +config BR2_PACKAGE_LIBUCI
> +	bool "libuci"
> +	select BR2_PACKAGE_LIBUBOX
> +	help
> +	  libuci is intended to centralize the whole configuration
> +	  of a device running OpenWrt. This package will also install

What is a "device running OpenWrt" in the context of Buildroot ?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v4 2/2] libuci: new package
  2014-03-19 22:23   ` Thomas Petazzoni
@ 2014-03-20  8:17     ` Yegor Yefremov
  2014-03-20 14:51       ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Yegor Yefremov @ 2014-03-20  8:17 UTC (permalink / raw)
  To: buildroot

On Wed, Mar 19, 2014 at 11:23 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Yegor Yefremov,
>
> On Wed, 19 Mar 2014 22:54:56 +0100, Yegor Yefremov wrote:
>
>> +config BR2_PACKAGE_LIBUCI
>> +     bool "libuci"
>> +     select BR2_PACKAGE_LIBUBOX
>> +     help
>> +       libuci is intended to centralize the whole configuration
>> +       of a device running OpenWrt. This package will also install
>
> What is a "device running OpenWrt" in the context of Buildroot ?
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

libuci provides just another config infrastructure. All config files
will be placed to /etc/config and you can read/write it's content via
libuci or UCI CLI. OpenWrt is using this approach and also develops
these packages. But it's usage is not limited to OpenWrt and can be
used by any distribution. See http://wiki.openwrt.org/doc/uci for more
details. I have found this tutorial for Ubunut:
http://www.wakoond.hu/2013/06/using-uci-on-ubuntu.html

I need these packages, because I have some programs I've developed for
OpenWrt, but would also like to use in BR. Another usage were to play
with swconfig (https://github.com/ringlej/swconfig). Of course you can
compile swconfig without uci support, but uci like config is much more
readable and handy: http://wiki.openwrt.org/doc/uci/network/switch.

And the real master plan were to port LuCI
(http://luci.subsignal.org/trac) or LuCI2 to BR, so that BR can get a
"standard" web-frontend.

I think OpenWrt is good tag for those familiar with this infrastructure.

Yegor

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

* [Buildroot] [PATCH v4 2/2] libuci: new package
  2014-03-20  8:17     ` Yegor Yefremov
@ 2014-03-20 14:51       ` Thomas Petazzoni
  2014-03-20 15:04         ` Yegor Yefremov
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2014-03-20 14:51 UTC (permalink / raw)
  To: buildroot

Dear Yegor Yefremov,

On Thu, 20 Mar 2014 09:17:55 +0100, Yegor Yefremov wrote:

> >> +config BR2_PACKAGE_LIBUCI
> >> +     bool "libuci"
> >> +     select BR2_PACKAGE_LIBUBOX
> >> +     help
> >> +       libuci is intended to centralize the whole configuration
> >> +       of a device running OpenWrt. This package will also install
> >
> > What is a "device running OpenWrt" in the context of Buildroot ?
> >
> > Thomas
> > --
> > Thomas Petazzoni, CTO, Free Electrons
> > Embedded Linux, Kernel and Android engineering
> > http://free-electrons.com
> 
> libuci provides just another config infrastructure. All config files
> will be placed to /etc/config and you can read/write it's content via
> libuci or UCI CLI. OpenWrt is using this approach and also develops
> these packages. But it's usage is not limited to OpenWrt and can be
> used by any distribution. See http://wiki.openwrt.org/doc/uci for more
> details. I have found this tutorial for Ubunut:
> http://www.wakoond.hu/2013/06/using-uci-on-ubuntu.html
> 
> I need these packages, because I have some programs I've developed for
> OpenWrt, but would also like to use in BR. Another usage were to play
> with swconfig (https://github.com/ringlej/swconfig). Of course you can
> compile swconfig without uci support, but uci like config is much more
> readable and handy: http://wiki.openwrt.org/doc/uci/network/switch.
> 
> And the real master plan were to port LuCI
> (http://luci.subsignal.org/trac) or LuCI2 to BR, so that BR can get a
> "standard" web-frontend.
> 
> I think OpenWrt is good tag for those familiar with this infrastructure.

Thanks for the explanation, but in fact I kind of knew all of this
already. My message was more that your Config.in help text is
misleading, as it doesn't really explain what libuci is, and it only
indicates that it is "for OpenWrt", which doesn't make sense in the
context of Buildroot. So I would rephrase the help text by indicating
something like: "This library originates from the OpenWrt project to
handle the configuration blablabla, but can also be used for the same
purposes in projects other than OpenWrt".

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v4 2/2] libuci: new package
  2014-03-20 14:51       ` Thomas Petazzoni
@ 2014-03-20 15:04         ` Yegor Yefremov
  0 siblings, 0 replies; 6+ messages in thread
From: Yegor Yefremov @ 2014-03-20 15:04 UTC (permalink / raw)
  To: buildroot

On Thu, Mar 20, 2014 at 3:51 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Yegor Yefremov,
>
> On Thu, 20 Mar 2014 09:17:55 +0100, Yegor Yefremov wrote:
>
>> >> +config BR2_PACKAGE_LIBUCI
>> >> +     bool "libuci"
>> >> +     select BR2_PACKAGE_LIBUBOX
>> >> +     help
>> >> +       libuci is intended to centralize the whole configuration
>> >> +       of a device running OpenWrt. This package will also install
>> >
>> > What is a "device running OpenWrt" in the context of Buildroot ?
>> >
>> > Thomas
>> > --
>> > Thomas Petazzoni, CTO, Free Electrons
>> > Embedded Linux, Kernel and Android engineering
>> > http://free-electrons.com
>>
>> libuci provides just another config infrastructure. All config files
>> will be placed to /etc/config and you can read/write it's content via
>> libuci or UCI CLI. OpenWrt is using this approach and also develops
>> these packages. But it's usage is not limited to OpenWrt and can be
>> used by any distribution. See http://wiki.openwrt.org/doc/uci for more
>> details. I have found this tutorial for Ubunut:
>> http://www.wakoond.hu/2013/06/using-uci-on-ubuntu.html
>>
>> I need these packages, because I have some programs I've developed for
>> OpenWrt, but would also like to use in BR. Another usage were to play
>> with swconfig (https://github.com/ringlej/swconfig). Of course you can
>> compile swconfig without uci support, but uci like config is much more
>> readable and handy: http://wiki.openwrt.org/doc/uci/network/switch.
>>
>> And the real master plan were to port LuCI
>> (http://luci.subsignal.org/trac) or LuCI2 to BR, so that BR can get a
>> "standard" web-frontend.
>>
>> I think OpenWrt is good tag for those familiar with this infrastructure.
>
> Thanks for the explanation, but in fact I kind of knew all of this
> already. My message was more that your Config.in help text is
> misleading, as it doesn't really explain what libuci is, and it only
> indicates that it is "for OpenWrt", which doesn't make sense in the
> context of Buildroot. So I would rephrase the help text by indicating
> something like: "This library originates from the OpenWrt project to
> handle the configuration blablabla, but can also be used for the same
> purposes in projects other than OpenWrt".

O.K. Thomas. I'll resend the patches with proper description.

Yegor

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

end of thread, other threads:[~2014-03-20 15:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-19 21:54 [Buildroot] [PATCH v4 1/2] libubox: new package Yegor Yefremov
2014-03-19 21:54 ` [Buildroot] [PATCH v4 2/2] libuci: " Yegor Yefremov
2014-03-19 22:23   ` Thomas Petazzoni
2014-03-20  8:17     ` Yegor Yefremov
2014-03-20 14:51       ` Thomas Petazzoni
2014-03-20 15:04         ` Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox