Skip to contentSkip to conversation

ustream-ssl: new package

PATCH Superseded Rahul Jain 2 participants 5 messages Oct 10, 2016 – Oct 17, 2016

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Rahul Jain

author
#0 lore raw

PATCH v3 1/3 ustream-ssl: new package

ustream-ssl has support for polarssl and cyassl
but since polarssl is made obsolete by mbedtls and cyassl is not present in buildroot, we have not added support for it.

---
Changes v2 -> v3:
- Remove entry from DEVELOPERS file
Changes v1 -> v2:
- No changes

 package/Config.in                  |  1 +
 package/ustream-ssl/Config.in      | 12 ++++++++++++
 package/ustream-ssl/ustream-ssl.mk | 20 ++++++++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 package/ustream-ssl/Config.in
 create mode 100644 package/ustream-ssl/ustream-ssl.mk
package/Config.in +1 -0
index 60184ce..352ef42 100644
@@ -910,6 +910,7 @@ menu "Crypto"
 	source "package/polarssl/Config.in"
 	source "package/tinydtls/Config.in"
 	source "package/trousers/Config.in"
+	source "package/ustream-ssl/Config.in"
 endmenu
 
 menu "Database"
package/ustream-ssl/Config.in new file +12 -0
new file mode 100644
index 0000000..540e436
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_USTREAM_SSL
+	bool "ustream-ssl"
+	depends on !BR2_STATIC_LIBS #libubox
+	select BR2_PACKAGE_LIBUBOX
+	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
+	help
+	  ustream SSL wrapper
+
+	  https://git.openwrt.org/?p=project/ustream-ssl.git;a=summary
+
+comment "ustream-ssl needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
package/ustream-ssl/ustream-ssl.mk new file +20 -0
new file mode 100644
index 0000000..d8f8aed
@@ -0,0 +1,20 @@
+################################################################################
+#
+# ustream-ssl
+#
+################################################################################
+
+USTREAM_SSL_VERSION = ec80adaa1b47f28d426fa19c692011ce60b992d6
+USTREAM_SSL_SITE = git://git.openwrt.org/project/ustream-ssl.git
+USTREAM_SSL_LICENSE = ISC
+USTREAM_SSL_INSTALL_STAGING = YES
+USTREAM_SSL_DEPENDENCIES = libubox
+
+ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+USTREAM_SSL_DEPENDENCIES += mbedtls
+USTREAM_SSL_CONF_OPTS += -DMBEDTLS=ON
+else
+USTREAM_SSL_DEPENDENCIES += openssl
+endif
+
+$(eval $(cmake-package))
Signature · 1 line
2.6.2
author
#1 lore raw

PATCH v3 2/3 uhttpd: new package

---
Changes v2 -> v3:
- Remove entry from DEVELOPERS file
Changes v1 -> v2:
- Updated the url in help (Suggested by Arnout)
- Use http url (Suggested by Arnout)
- Add hash file (Suggested by Arnout)
- Improve handling of optional dependency on lua (Suggested by Arnout)
- Remove unrequired config options (Suggested by Arnout)
- Explicitly specify the config option when enabling lua, ssl and ubus support (Suggested by Arnout)

 package/Config.in          |  1 +
 package/uhttpd/Config.in   | 18 ++++++++++++++++++
 package/uhttpd/uhttpd.hash |  2 ++
 package/uhttpd/uhttpd.mk   | 38 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+)
 create mode 100644 package/uhttpd/Config.in
 create mode 100644 package/uhttpd/uhttpd.hash
 create mode 100644 package/uhttpd/uhttpd.mk
package/Config.in +1 -0
index 352ef42..426a1be 100644
@@ -1613,6 +1613,7 @@ endif
 	source "package/tunctl/Config.in"
 	source "package/tvheadend/Config.in"
 	source "package/udpcast/Config.in"
+	source "package/uhttpd/Config.in"
 	source "package/ulogd/Config.in"
 	source "package/ushare/Config.in"
 	source "package/ussp-push/Config.in"
package/uhttpd/Config.in new file +18 -0
new file mode 100644
index 0000000..e463b93
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_UHTTPD
+	bool "uhttpd"
+	depends on !BR2_STATIC_LIBS # dlopen()
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_LIBUBOX
+	select BR2_PACKAGE_JSON_C
+	help
+	  uHTTPd is a tiny single threaded HTTP server with TLS, CGI and Lua
+	  support. It is intended as a drop-in replacement for the Busybox
+	  HTTP daemon.
+
+	  https://wiki.openwrt.org/doc/howto/http.uhttpd
+
+comment "uhttpd needs a toolchain w/ dynamic library"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
+	depends on BR2_USE_MMU
+	depends on BR2_STATIC_LIBS
package/uhttpd/uhttpd.hash new file +2 -0
new file mode 100644
index 0000000..59e54ad
@@ -0,0 +1,2 @@
+# No hash for this git snapshot
+none	xxx	uhttpd-59e0c739634f46a164d939e54416287b91ff8a9b.tar.gz
package/uhttpd/uhttpd.mk new file +38 -0
new file mode 100644
index 0000000..b4ef291
@@ -0,0 +1,38 @@
+################################################################################
+#
+# uhttpd
+#
+################################################################################
+
+UHTTPD_VERSION = 59e0c739634f46a164d939e54416287b91ff8a9b
+UHTTPD_SITE = http://git.openwrt.org/project/uhttpd.git
+UHTTPD_SITE_METHOD = git
+UHTTPD_LICENSE = ISC
+UHTTPD_DEPENDENCIES = libubox json-c
+
+ifeq ($(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION),"5.1")
+ifeq ($(BR2_PACKAGE_LUA),y)
+UHTTPD_DEPENDENCIES += lua
+else ifeq ($(BR2_PACKAGE_LUAJIT),y)
+UHTTPD_DEPENDENCIES += luajit
+endif
+UHTTPD_CONF_OPTS += -DLUA_SUPPORT=ON
+else
+UHTTPD_CONF_OPTS += -DLUA_SUPPORT=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_USTREAM_SSL),y)
+UHTTPD_DEPENDENCIES += ustream-ssl
+UHTTPD_CONF_OPTS += -DTLS_SUPPORT=ON
+else
+UHTTPD_CONF_OPTS += -DTLS_SUPPORT=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_UBUS),y)
+UHTTPD_DEPENDENCIES += ubus
+UHTTPD_CONF_OPTS += -DUBUS_SUPPORT=ON
+else
+UHTTPD_CONF_OPTS += -DUBUS_SUPPORT=OFF
+endif
+
+$(eval $(cmake-package))
Signature · 1 line
2.6.2
#2 lore raw

PATCH v3 2/3 uhttpd: new package

Hello Rahul,

Quoted 76 lines · Rahul Jain

---
Changes v2 -> v3:
- Remove entry from DEVELOPERS file
Changes v1 -> v2:
- Updated the url in help (Suggested by Arnout)
- Use http url (Suggested by Arnout)
- Add hash file (Suggested by Arnout)
- Improve handling of optional dependency on lua (Suggested by Arnout)
- Remove unrequired config options (Suggested by Arnout)
- Explicitly specify the config option when enabling lua, ssl and ubus support (Suggested by Arnout)

 package/Config.in          |  1 +
 package/uhttpd/Config.in   | 18 ++++++++++++++++++
 package/uhttpd/uhttpd.hash |  2 ++
 package/uhttpd/uhttpd.mk   | 38 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+)
 create mode 100644 package/uhttpd/Config.in
 create mode 100644 package/uhttpd/uhttpd.hash
 create mode 100644 package/uhttpd/uhttpd.mk
package/Config.in +1 -0
index 352ef42..426a1be 100644
@@ -1613,6 +1613,7 @@ endif
 	source "package/tunctl/Config.in"
 	source "package/tvheadend/Config.in"
 	source "package/udpcast/Config.in"
+	source "package/uhttpd/Config.in"
 	source "package/ulogd/Config.in"
 	source "package/ushare/Config.in"
 	source "package/ussp-push/Config.in"
package/uhttpd/Config.in new file +18 -0
new file mode 100644
index 0000000..e463b93
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_UHTTPD
+	bool "uhttpd"
+	depends on !BR2_STATIC_LIBS # dlopen()
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_LIBUBOX
+	select BR2_PACKAGE_JSON_C
+	help
+	  uHTTPd is a tiny single threaded HTTP server with TLS, CGI and Lua
+	  support. It is intended as a drop-in replacement for the Busybox
+	  HTTP daemon.
+
+	  https://wiki.openwrt.org/doc/howto/http.uhttpd
+
+comment "uhttpd needs a toolchain w/ dynamic library"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
+	depends on BR2_USE_MMU
+	depends on BR2_STATIC_LIBS
package/uhttpd/uhttpd.hash new file +2 -0
new file mode 100644
index 0000000..59e54ad
@@ -0,0 +1,2 @@
+# No hash for this git snapshot
+none	xxx	uhttpd-59e0c739634f46a164d939e54416287b91ff8a9b.tar.gz
package/uhttpd/uhttpd.mk new file +0 -0
new file mode 100644
index 0000000..b4ef291

package/uhttpd/uhttpd.mk line 10

Quoted 10 lines
package/uhttpd/uhttpd.mk new file +10 -0
@@ -0,0 +1,38 @@
+################################################################################
+#
+# uhttpd
+#
+################################################################################
+
+UHTTPD_VERSION = 59e0c739634f46a164d939e54416287b91ff8a9b
+UHTTPD_SITE = http://git.openwrt.org/project/uhttpd.git
+UHTTPD_SITE_METHOD = git
+UHTTPD_LICENSE = ISC

Same thing here, UHTTPD_LICENSE_FILES is missing. You are saying that the license is ISC, but, how can you check it? You need some file to look at in order to check it.

Regards,

Vincent.

Quoted 29 lines
package/uhttpd/uhttpd.mk new file +28 -0
+UHTTPD_DEPENDENCIES = libubox json-c
+
+ifeq ($(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION),"5.1")
+ifeq ($(BR2_PACKAGE_LUA),y)
+UHTTPD_DEPENDENCIES += lua
+else ifeq ($(BR2_PACKAGE_LUAJIT),y)
+UHTTPD_DEPENDENCIES += luajit
+endif
+UHTTPD_CONF_OPTS += -DLUA_SUPPORT=ON
+else
+UHTTPD_CONF_OPTS += -DLUA_SUPPORT=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_USTREAM_SSL),y)
+UHTTPD_DEPENDENCIES += ustream-ssl
+UHTTPD_CONF_OPTS += -DTLS_SUPPORT=ON
+else
+UHTTPD_CONF_OPTS += -DTLS_SUPPORT=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_UBUS),y)
+UHTTPD_DEPENDENCIES += ubus
+UHTTPD_CONF_OPTS += -DUBUS_SUPPORT=ON
+else
+UHTTPD_CONF_OPTS += -DUBUS_SUPPORT=OFF
+endif
+
+$(eval $(cmake-package))
author
#3 lore raw

PATCH v3 2/3 uhttpd: new package

Hi Vicente,

Thanks for your comments.

Quoted 13 lines · Vicente Olivert Riera
Quoted 13 lines
package/uhttpd/uhttpd.mk new file +5 -0
new file mode 100644
index 0000000..b4ef291
@@ -0,0 +1,38 @@
+################################################################################
 
+#
+# uhttpd
+#
+################################################################################
Quoted 10 lines

package/uhttpd/uhttpd.mk line 10

Quoted 5 lines
package/uhttpd/uhttpd.mk new file +5 -0
+
+UHTTPD_VERSION = 59e0c739634f46a164d939e54416287b91ff8a9b
+UHTTPD_SITE = http://git.openwrt.org/project/uhttpd.git
+UHTTPD_SITE_METHOD = git
+UHTTPD_LICENSE = ISC

Same thing here, UHTTPD_LICENSE_FILES is missing. You are saying that the license is ISC, but, how can you check it? You need some file to look at in order to check it.

The package does not provide any license file, but all the source files have the ISC license header. I will add one of the source file as the license file.

Thanks,
Rahul Jain

author
#4 lore raw

PATCH v3 3/3 DEVELOPERS: add entry for uhttpd and ustream-ssl

In reply to Rahul Jain
---
 DEVELOPERS | 4 ++++
 1 file changed, 4 insertions(+)
DEVELOPERS +4 -0
index 240fb2c..5e6e6d1 100644
@@ -1200,6 +1200,10 @@ F:	package/gssdp/
 F:	package/gupnp/
 F:	package/gupnp-av/
 
+N:	Rahul Jain <[email protected]>
+F:	package/uhttpd
+F:	package/ustream-ssl
+
 N:	Renaud Aubin <[email protected]>
 F:	package/libhttpparser/
 
Signature · 1 line
2.6.2