package/libuhttpd: new package

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Jianhui Zhao 2020-04-05 01:04:28 +08:00 committed by Thomas Petazzoni
parent e9b393c676
commit c5d43d6d0e
5 changed files with 52 additions and 0 deletions

View File

@ -1273,6 +1273,7 @@ F: package/x11r7/xdriver_xf86-video-imx/
F: package/x11r7/xdriver_xf86-video-imx-viv/ F: package/x11r7/xdriver_xf86-video-imx-viv/
N: Jianhui Zhao <zhaojh329@gmail.com> N: Jianhui Zhao <zhaojh329@gmail.com>
F: package/libuhttpd/
F: package/libuwsc/ F: package/libuwsc/
F: package/rtty/ F: package/rtty/

View File

@ -1713,6 +1713,7 @@ menu "Networking"
source "package/libtirpc/Config.in" source "package/libtirpc/Config.in"
source "package/libtorrent/Config.in" source "package/libtorrent/Config.in"
source "package/libtorrent-rasterbar/Config.in" source "package/libtorrent-rasterbar/Config.in"
source "package/libuhttpd/Config.in"
source "package/libupnp/Config.in" source "package/libupnp/Config.in"
source "package/libupnp18/Config.in" source "package/libupnp18/Config.in"
source "package/libupnpp/Config.in" source "package/libupnpp/Config.in"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_LIBUHTTPD
bool "libuhttpd"
select BR2_PACKAGE_LIBEV
help
A lightweight and fully asynchronous HTTP server
library based on libev
https://github.com/zhaojh329/libuhttpd

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 9f938b75074f812375c5079189f8299c328e94801117ab1190a29fae0806f1a8 libuhttpd-3.1.2.tar.gz
sha256 99efed4bbc0b62f96f999ef23399e38234fb91651af734fd389a52b033a85b55 LICENSE

View File

@ -0,0 +1,39 @@
################################################################################
#
# libuhttpd
#
################################################################################
LIBUHTTPD_VERSION = 3.1.2
LIBUHTTPD_SITE = https://github.com/zhaojh329/libuhttpd/releases/download/v$(LIBUHTTPD_VERSION)
LIBUHTTPD_LICENSE = MIT
LIBUHTTPD_LICENSE_FILES = LICENSE
LIBUHTTPD_INSTALL_STAGING = YES
LIBUHTTPD_DEPENDENCIES = libev
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBUHTTPD_DEPENDENCIES += openssl
LIBUHTTPD_CONF_OPTS += \
-DUHTTPD_SSL_SUPPORT=ON \
-DUHTTPD_USE_MBEDTLS=OFF \
-DUHTTPD_USE_OPENSSL=ON \
-DUHTTPD_USE_WOLFSSL=OFF
else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
LIBUHTTPD_DEPENDENCIES += wolfssl
LIBUHTTPD_CONF_OPTS += \
-DUHTTPD_SSL_SUPPORT=ON \
-DUHTTPD_USE_MBEDTLS=OFF \
-DUHTTPD_USE_OPENSSL=OFF \
-DUHTTPD_USE_WOLFSSL=ON
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
LIBUHTTPD_DEPENDENCIES += mbedtls
LIBUHTTPD_CONF_OPTS += \
-DUHTTPD_SSL_SUPPORT=ON \
-DUHTTPD_USE_MBEDTLS=ON \
-DUHTTPD_USE_OPENSSL=OFF \
-DUHTTPD_USE_WOLFSSL=OFF
else
LIBUHTTPD_CONF_OPTS += -DUHTTPD_SSL_SUPPORT=OFF
endif
$(eval $(cmake-package))