pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ulfius: Import ulfius-2.7.10 as wip/ulfius



Module Name:	pkgsrc-wip
Committed By:	Olivier Girondel <olivier%biniou.info@localhost>
Pushed By:	oliv3
Date:		Sat Jun 4 18:42:45 2022 +0200
Changeset:	010bf203f87c4a9779fa087cf93e02bc3e79ed45

Modified Files:
	Makefile
Added Files:
	ulfius/DESCR
	ulfius/Makefile
	ulfius/PLIST
	ulfius/buildlink3.mk
	ulfius/distinfo
	ulfius/patches/patch-src_ulfius.c

Log Message:
ulfius: Import ulfius-2.7.10 as wip/ulfius

HTTP Framework for REST Applications in C.

Used to facilitate creation of web applications in C programs
with a small memory footprint, as in embedded systems applications.
You can create webservices in HTTP or HTTPS mode, stream data,
or implement server websockets.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=010bf203f87c4a9779fa087cf93e02bc3e79ed45

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                          |  1 +
 ulfius/DESCR                      |  9 +++++
 ulfius/Makefile                   | 24 ++++++++++++
 ulfius/PLIST                      | 80 +++++++++++++++++++++++++++++++++++++++
 ulfius/buildlink3.mk              | 19 ++++++++++
 ulfius/distinfo                   |  6 +++
 ulfius/patches/patch-src_ulfius.c | 15 ++++++++
 7 files changed, 154 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index b1a981d796..e278d35cad 100644
--- a/Makefile
+++ b/Makefile
@@ -5806,6 +5806,7 @@ SUBDIR+=	ufc
 SUBDIR+=	uffizi
 SUBDIR+=	uget
 SUBDIR+=	uhd-git
+SUBDIR+=	ulfius
 SUBDIR+=	umix
 SUBDIR+=	umurmur
 SUBDIR+=	unagi
diff --git a/ulfius/DESCR b/ulfius/DESCR
new file mode 100644
index 0000000000..ced5187ce5
--- /dev/null
+++ b/ulfius/DESCR
@@ -0,0 +1,9 @@
+HTTP Framework for REST Applications in C.
+
+Used to facilitate creation of web applications in C programs
+with a small memory footprint, as in embedded systems applications.
+You can create webservices in HTTP or HTTPS mode, stream data,
+or implement server websockets.
+
+Library documentation is available at
+https://babelouest.github.io/ulfius/.
diff --git a/ulfius/Makefile b/ulfius/Makefile
new file mode 100644
index 0000000000..00e53e49e7
--- /dev/null
+++ b/ulfius/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	ulfius-2.7.10
+CATEGORIES=	www
+MASTER_SITES=	${MASTER_SITE_GITHUB:=babelouest/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	olivier%biniou.info@localhost
+HOMEPAGE=	https://github.com/babelouest/ulfius/
+COMMENT=	HTTP Framework for REST Applications in C
+LICENSE=	gnu-lgpl-v2.1
+
+USE_CMAKE=	yes
+USE_TOOLS+=	pkg-config
+
+PKGCONFIG_OVERRIDE+=	libulfius.pc.in
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../wip/yder/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../www/libmicrohttpd/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ulfius/PLIST b/ulfius/PLIST
new file mode 100644
index 0000000000..f717ea11c9
--- /dev/null
+++ b/ulfius/PLIST
@@ -0,0 +1,80 @@
+@comment $NetBSD$
+bin/uwsc
+include/ulfius-cfg.h
+include/ulfius.h
+lib/libulfius.so
+lib/libulfius.so.2.7
+lib/libulfius.so.${PKGVERSION}
+lib/pkgconfig/libulfius.pc
+man/man1/uwsc.1
+share/doc/ulfius/API.md
+share/doc/ulfius/INSTALL.md
+share/doc/ulfius/README.md
+share/doc/ulfius/example_callbacks/http_compression/README.md
+share/doc/ulfius/example_callbacks/http_compression/http_compression_callback.c
+share/doc/ulfius/example_callbacks/http_compression/http_compression_callback.h
+share/doc/ulfius/example_callbacks/iddawc_jwt_profile/README.md
+share/doc/ulfius/example_callbacks/iddawc_jwt_profile/iddawc_resource.c
+share/doc/ulfius/example_callbacks/iddawc_jwt_profile/iddawc_resource.h
+share/doc/ulfius/example_callbacks/jwt_profile/README.md
+share/doc/ulfius/example_callbacks/jwt_profile/oidc_resource.c
+share/doc/ulfius/example_callbacks/jwt_profile/oidc_resource.h
+share/doc/ulfius/example_callbacks/oauth2_bearer/README.md
+share/doc/ulfius/example_callbacks/oauth2_bearer/glewlwyd_resource.c
+share/doc/ulfius/example_callbacks/oauth2_bearer/glewlwyd_resource.h
+share/doc/ulfius/example_callbacks/static_compressed_inmemory_website/README.md
+share/doc/ulfius/example_callbacks/static_compressed_inmemory_website/static_compressed_inmemory_website_callback.c
+share/doc/ulfius/example_callbacks/static_compressed_inmemory_website/static_compressed_inmemory_website_callback.h
+share/doc/ulfius/example_callbacks/static_file/README.md
+share/doc/ulfius/example_callbacks/static_file/static_file_callback.c
+share/doc/ulfius/example_callbacks/static_file/static_file_callback.h
+share/doc/ulfius/example_programs/CMakeLists.txt
+share/doc/ulfius/example_programs/Makefile
+share/doc/ulfius/example_programs/README.md
+share/doc/ulfius/example_programs/auth_example/Makefile
+share/doc/ulfius/example_programs/auth_example/README.md
+share/doc/ulfius/example_programs/auth_example/auth_client.c
+share/doc/ulfius/example_programs/auth_example/auth_server.c
+share/doc/ulfius/example_programs/cmake-modules/CMakeUninstall.cmake.in
+share/doc/ulfius/example_programs/cmake-modules/FindUlfius.cmake
+share/doc/ulfius/example_programs/cmake-modules/FindYder.cmake
+share/doc/ulfius/example_programs/include/u_example.h
+share/doc/ulfius/example_programs/injection_example/Makefile
+share/doc/ulfius/example_programs/injection_example/README.md
+share/doc/ulfius/example_programs/injection_example/injection_example.c
+share/doc/ulfius/example_programs/multiple_callbacks_example/Makefile
+share/doc/ulfius/example_programs/multiple_callbacks_example/README.md
+share/doc/ulfius/example_programs/multiple_callbacks_example/multiple_callbacks_example.c
+share/doc/ulfius/example_programs/proxy_example/Makefile
+share/doc/ulfius/example_programs/proxy_example/README.md
+share/doc/ulfius/example_programs/proxy_example/proxy.c
+share/doc/ulfius/example_programs/request_example/Makefile
+share/doc/ulfius/example_programs/request_example/README.md
+share/doc/ulfius/example_programs/request_example/client.c
+share/doc/ulfius/example_programs/request_example/mail.c
+share/doc/ulfius/example_programs/request_example/server.c
+share/doc/ulfius/example_programs/sheep_counter/Makefile
+share/doc/ulfius/example_programs/sheep_counter/README.md
+share/doc/ulfius/example_programs/sheep_counter/sheep_counter.c
+share/doc/ulfius/example_programs/sheep_counter/static/README.md
+share/doc/ulfius/example_programs/sheep_counter/static/form.html
+share/doc/ulfius/example_programs/sheep_counter/static/index.html
+share/doc/ulfius/example_programs/sheep_counter/static/sheep.png
+share/doc/ulfius/example_programs/sheep_counter/static/styles.css
+share/doc/ulfius/example_programs/sheep_counter/static/upload.html
+share/doc/ulfius/example_programs/simple_example/Makefile
+share/doc/ulfius/example_programs/simple_example/README.md
+share/doc/ulfius/example_programs/simple_example/simple_example.c
+share/doc/ulfius/example_programs/stream_example/Makefile
+share/doc/ulfius/example_programs/stream_example/README.md
+share/doc/ulfius/example_programs/stream_example/stream_client.c
+share/doc/ulfius/example_programs/stream_example/stream_example.c
+share/doc/ulfius/example_programs/test_u_map/Makefile
+share/doc/ulfius/example_programs/test_u_map/README.md
+share/doc/ulfius/example_programs/test_u_map/test_u_map.c
+share/doc/ulfius/example_programs/websocket_example/Makefile
+share/doc/ulfius/example_programs/websocket_example/README.md
+share/doc/ulfius/example_programs/websocket_example/static/index.html
+share/doc/ulfius/example_programs/websocket_example/static/styles.css
+share/doc/ulfius/example_programs/websocket_example/websocket_client.c
+share/doc/ulfius/example_programs/websocket_example/websocket_server.c
diff --git a/ulfius/buildlink3.mk b/ulfius/buildlink3.mk
new file mode 100644
index 0000000000..4a979f4a23
--- /dev/null
+++ b/ulfius/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	ulfius
+
+.if !defined(ULFIUS_BUILDLINK3_MK)
+ULFIUS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ulfius+=	ulfius>=2.7.10
+BUILDLINK_PKGSRCDIR.ulfius?=	../../wip/ulfius
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../wip/yder/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../www/libmicrohttpd/buildlink3.mk"
+.endif	# ULFIUS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-ulfius
diff --git a/ulfius/distinfo b/ulfius/distinfo
new file mode 100644
index 0000000000..7141d972e4
--- /dev/null
+++ b/ulfius/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (ulfius-2.7.10.tar.gz) = 05bcf80d918920b80b85c267b514925dad05a0d06985a858443d1b3dd7067c35
+SHA512 (ulfius-2.7.10.tar.gz) = 7ecbaa6cf4329b12c45a9c8d50c7781327a03de2c9226db371b27b7bcba20738e99b2af26fb845fed74b61a9b6867f984dcee70d1addbf3fe40941537be572e1
+Size (ulfius-2.7.10.tar.gz) = 419473 bytes
+SHA1 (patch-src_ulfius.c) = afc7abaf8a0a8ce7cd601abf5681e4f9c0c68a37
diff --git a/ulfius/patches/patch-src_ulfius.c b/ulfius/patches/patch-src_ulfius.c
new file mode 100644
index 0000000000..6f1e977d9c
--- /dev/null
+++ b/ulfius/patches/patch-src_ulfius.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Reported to upstream.
+
+--- src/ulfius.c.orig	2022-05-28 16:10:35.000000000 +0000
++++ src/ulfius.c
+@@ -1860,7 +1860,7 @@ char * ulfius_url_encode(const char * st
+       pbuf = buf;
+       while (* pstr) {
+         // "$-_.+!*'(),"
+-        if (isalnum(* pstr) || * pstr == '$' || * pstr == '-' || * pstr == '_' ||
++        if (isalnum((int)* pstr) || * pstr == '$' || * pstr == '-' || * pstr == '_' ||
+             * pstr == '.' || * pstr == '!' || * pstr == '*' ||
+             * pstr == '\'' || * pstr == '(' || * pstr == ')' || * pstr == ',')
+           * pbuf++ = * pstr;


Home | Main Index | Thread Index | Old Index