From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/libuhttpd: new package
Date: Sat, 4 Apr 2020 16:54:35 +0200 [thread overview]
Message-ID: <20200404165435.286382cd@gmx.net> (raw)
In-Reply-To: <20200403141503.21643-1-zhaojh329@gmail.com>
Hello Jianhui,
On Fri, 3 Apr 2020 22:15:03 +0800, Jianhui Zhao <zhaojh329@gmail.com> wrote:
> Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
> ---
> DEVELOPERS | 1 +
> package/Config.in | 1 +
> package/libuhttpd/Config.in | 8 +++++++
> package/libuhttpd/libuhttpd.hash | 3 +++
> package/libuhttpd/libuhttpd.mk | 39 ++++++++++++++++++++++++++++++++
> 5 files changed, 52 insertions(+)
> create mode 100644 package/libuhttpd/Config.in
> create mode 100644 package/libuhttpd/libuhttpd.hash
> create mode 100644 package/libuhttpd/libuhttpd.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index f1bf5c263c..c34018405c 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1273,6 +1273,7 @@ F: package/x11r7/xdriver_xf86-video-imx/
> F: package/x11r7/xdriver_xf86-video-imx-viv/
>
> N: Jianhui Zhao <zhaojh329@gmail.com>
> +F: package/libuhttpd/
> F: package/libuwsc/
> F: package/rtty/
>
> diff --git a/package/Config.in b/package/Config.in
> index 4aaf2d93f8..09f92f0b85 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1713,6 +1713,7 @@ menu "Networking"
> source "package/libtirpc/Config.in"
> source "package/libtorrent/Config.in"
> source "package/libtorrent-rasterbar/Config.in"
> + source "package/libuhttpd/Config.in"
> source "package/libupnp/Config.in"
> source "package/libupnp18/Config.in"
> source "package/libupnpp/Config.in"
> diff --git a/package/libuhttpd/Config.in b/package/libuhttpd/Config.in
> new file mode 100644
> index 0000000000..1ab39c5878
> --- /dev/null
> +++ b/package/libuhttpd/Config.in
> @@ -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
> diff --git a/package/libuhttpd/libuhttpd.hash b/package/libuhttpd/libuhttpd.hash
> new file mode 100644
> index 0000000000..89d6b74501
> --- /dev/null
> +++ b/package/libuhttpd/libuhttpd.hash
> @@ -0,0 +1,3 @@
> +# Locally calculated
> +sha256 b329612e8454c335929021bb751e80f7875d06501034524f90abf830e6f68589 libuhttpd-3.1.1.tar.gz
> +sha256 99efed4bbc0b62f96f999ef23399e38234fb91651af734fd389a52b033a85b55 LICENSE
> diff --git a/package/libuhttpd/libuhttpd.mk b/package/libuhttpd/libuhttpd.mk
> new file mode 100644
> index 0000000000..f00d59748b
> --- /dev/null
> +++ b/package/libuhttpd/libuhttpd.mk
> @@ -0,0 +1,39 @@
> +################################################################################
> +#
> +# libuhttpd
> +#
> +################################################################################
> +
> +LIBUHTTPD_VERSION = 3.1.1
> +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))
Did a test with utils/test-pkg (see [1]) for libuhttpd, got some failures, e.g.:
- br-arm-cortex-m4-full [ 8/44]: FAILED
test_libuhttpd_001/br-arm-cortex-m4-full/build/libuhttpd-3.1.1/src/uhttpd.c:29:10: fatal error: dlfcn.h: No such file or directory
#include <dlfcn.h>
^~~~~~~~~
Same with:
- br-arm-full-static [11/44]: FAILED
- br-m68k-5208-full [14/44]: FAILED
Seems a
depends on !BR2_STATIC_LIBS # dlfcn.h
is missing for libuhttpd....
Regards,
Peter
[1] http://nightly.buildroot.org/manual.html#_tips_and_tricks
prev parent reply other threads:[~2020-04-04 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-03 14:15 [Buildroot] [PATCH 1/1] package/libuhttpd: new package Jianhui Zhao
2020-04-04 14:54 ` Peter Seiderer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200404165435.286382cd@gmx.net \
--to=ps.report@gmx.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.