Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-networking][rocko][PATCH] civetweb: Add new recipe for v1.10 version
@ 2018-04-17 12:15 Krzysztof Kozlowski
  2018-04-18  7:40 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2018-04-17 12:15 UTC (permalink / raw)
  To: openembedded-devel

Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
server with optional CGI, SSL and Lua support, under MIT license.

CivetWeb provides C and C++ libraries and a standalone server binary.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 .../recipes-connectivity/civetweb/civetweb_1.10.bb | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb

diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
new file mode 100644
index 000000000000..35af45680818
--- /dev/null
+++ b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
@@ -0,0 +1,34 @@
+SUMMARY = "Civetweb embedded web server"
+HOMEPAGE = "https://github.com/civetweb/civetweb"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=da079d81be91ff1d1ca56dcd751f897f"
+
+SRC_URI = " \
+    git://github.com/civetweb/civetweb.git;tag=v${PV} \
+"
+S = "${WORKDIR}/git"
+
+# civetweb supports building with make or cmake (although cmake lacks few features)
+inherit cmake
+
+# Disable Lua and Duktape because they do not compile from CMake (as of v1.8, v1.9 and v1.10)
+EXTRA_OECMAKE = " \
+    -DBUILD_SHARED_LIBS=ON \
+    -DCIVETWEB_ENABLE_DUKTAPE=OFF \
+    -DCIVETWEB_ENABLE_LUA=OFF \
+"
+
+PACKAGECONFIG ??= "asan caching cgi cpp debug ipv6 server websockets"
+PACKAGECONFIG[asan] = "-DCIVETWEB_ENABLE_ASAN=ON,-DCIVETWEB_ENABLE_ASAN=OFF,gcc-sanitizers"
+PACKAGECONFIG[caching] = "-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON,"
+PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
+PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
+PACKAGECONFIG[debug] = "-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF,"
+PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF,"
+PACKAGECONFIG[server] = "-DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_INSTALL_EXECUTABLE=OFF,"
+# As of v1.10, SSL does not work. Bring it back with v1.11:
+# PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON -DCIVETWEB_SSL_OPENSSL_API_1_1=ON -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl"
+PACKAGECONFIG[websockets] = "-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF,"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.7.4



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

* Re: [meta-networking][rocko][PATCH] civetweb: Add new recipe for v1.10 version
  2018-04-17 12:15 [meta-networking][rocko][PATCH] civetweb: Add new recipe for v1.10 version Krzysztof Kozlowski
@ 2018-04-18  7:40 ` Khem Raj
  2018-04-18  8:00   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2018-04-18  7:40 UTC (permalink / raw)
  To: Krzysztof Kozlowski, openembedded-devel



On 4/17/18 5:15 AM, Krzysztof Kozlowski wrote:
> Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
> server with optional CGI, SSL and Lua support, under MIT license.
> 
> CivetWeb provides C and C++ libraries and a standalone server binary.
> 
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
> ---
>   .../recipes-connectivity/civetweb/civetweb_1.10.bb | 34 ++++++++++++++++++++++
>   1 file changed, 34 insertions(+)
>   create mode 100644 meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
> 
> diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
> new file mode 100644
> index 000000000000..35af45680818
> --- /dev/null
> +++ b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
> @@ -0,0 +1,34 @@
> +SUMMARY = "Civetweb embedded web server"
> +HOMEPAGE = "https://github.com/civetweb/civetweb"
> +
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=da079d81be91ff1d1ca56dcd751f897f"
> +
> +SRC_URI = " \
> +    git://github.com/civetweb/civetweb.git;tag=v${PV} \

its better to use SHA version corresponding to this tag, tags result in 
fetcher n/w access and builds might fail when n/w access is disabled, 
secondly tags are floating types and can be moved.

> +"
> +S = "${WORKDIR}/git"
> +
> +# civetweb supports building with make or cmake (although cmake lacks few features)
> +inherit cmake
> +
> +# Disable Lua and Duktape because they do not compile from CMake (as of v1.8, v1.9 and v1.10)
> +EXTRA_OECMAKE = " \
> +    -DBUILD_SHARED_LIBS=ON \
> +    -DCIVETWEB_ENABLE_DUKTAPE=OFF \
> +    -DCIVETWEB_ENABLE_LUA=OFF \
> +"
> +
> +PACKAGECONFIG ??= "asan caching cgi cpp debug ipv6 server websockets"
> +PACKAGECONFIG[asan] = "-DCIVETWEB_ENABLE_ASAN=ON,-DCIVETWEB_ENABLE_ASAN=OFF,gcc-sanitizers"
> +PACKAGECONFIG[caching] = "-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON,"
> +PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
> +PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
> +PACKAGECONFIG[debug] = "-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF,"
> +PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF,"
> +PACKAGECONFIG[server] = "-DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_INSTALL_EXECUTABLE=OFF,"
> +# As of v1.10, SSL does not work. Bring it back with v1.11:
> +# PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON -DCIVETWEB_SSL_OPENSSL_API_1_1=ON -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl"
> +PACKAGECONFIG[websockets] = "-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF,"
> +
> +BBCLASSEXTEND = "native nativesdk"
> 


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

* Re: [meta-networking][rocko][PATCH] civetweb: Add new recipe for v1.10 version
  2018-04-18  7:40 ` Khem Raj
@ 2018-04-18  8:00   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2018-04-18  8:00 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

On Wed, Apr 18, 2018 at 9:40 AM, Khem Raj <raj.khem@gmail.com> wrote:
>
>
> On 4/17/18 5:15 AM, Krzysztof Kozlowski wrote:
>>
>> Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
>> server with optional CGI, SSL and Lua support, under MIT license.
>>
>> CivetWeb provides C and C++ libraries and a standalone server binary.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
>> ---
>>   .../recipes-connectivity/civetweb/civetweb_1.10.bb | 34
>> ++++++++++++++++++++++
>>   1 file changed, 34 insertions(+)
>>   create mode 100644
>> meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>>
>> diff --git
>> a/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>> b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>> new file mode 100644
>> index 000000000000..35af45680818
>> --- /dev/null
>> +++ b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>> @@ -0,0 +1,34 @@
>> +SUMMARY = "Civetweb embedded web server"
>> +HOMEPAGE = "https://github.com/civetweb/civetweb"
>> +
>> +LICENSE = "MIT"
>> +LIC_FILES_CHKSUM =
>> "file://LICENSE.md;md5=da079d81be91ff1d1ca56dcd751f897f"
>> +
>> +SRC_URI = " \
>> +    git://github.com/civetweb/civetweb.git;tag=v${PV} \
>
>
> its better to use SHA version corresponding to this tag, tags result in
> fetcher n/w access and builds might fail when n/w access is disabled,
> secondly tags are floating types and can be moved.

Right, thanks for feedback. I'll send v2.

BR,
Krzysztof


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

end of thread, other threads:[~2018-04-18  8:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-17 12:15 [meta-networking][rocko][PATCH] civetweb: Add new recipe for v1.10 version Krzysztof Kozlowski
2018-04-18  7:40 ` Khem Raj
2018-04-18  8:00   ` Krzysztof Kozlowski

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