git: 192ce850e01c - main - www/ulfius: Web Framework to build REST APIs in C

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Wed, 29 Dec 2021 01:24:28 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=192ce850e01cae90f38bc7fcabf34791d4ac93e4

commit 192ce850e01cae90f38bc7fcabf34791d4ac93e4
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2021-12-28 23:10:46 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2021-12-29 01:23:01 +0000

    www/ulfius: Web Framework to build REST APIs in C
    
    Added because it is a dependency of www/glewlwyd - see upcoming commit
---
 www/Makefile         |  1 +
 www/ulfius/Makefile  | 31 +++++++++++++++++++++++++++++++
 www/ulfius/distinfo  |  3 +++
 www/ulfius/pkg-descr | 12 ++++++++++++
 www/ulfius/pkg-plist |  7 +++++++
 5 files changed, 54 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 958cf94f423c..c8570aa8374e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2291,6 +2291,7 @@
     SUBDIR += typo3-9
     SUBDIR += uchiwa
     SUBDIR += ufdbguard
+    SUBDIR += ulfius
     SUBDIR += unit
     SUBDIR += unit-java
     SUBDIR += unit-perl
diff --git a/www/ulfius/Makefile b/www/ulfius/Makefile
new file mode 100644
index 000000000000..c3d24fc37802
--- /dev/null
+++ b/www/ulfius/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	ulfius
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.7.3
+CATEGORIES=	www
+
+MAINTAINER=	dvl@FreeBSD.org
+COMMENT=	Web Framework to build REST APIs, Webservices in C
+
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	babelouest
+
+BUILD_DEPENDS+=	libmicrohttpd>0:www/libmicrohttpd
+BUILD_DEPENDS+=	yder>0:devel/yder
+
+LIB_DEPENDS+=	libgnutls.so:security/gnutls
+LIB_DEPENDS+=	libjansson.so:devel/jansson
+LIB_DEPENDS+=	libcurl.so:ftp/curl
+BUILD_DEPENDS+=	orcania>0:devel/orcania
+
+RUN_DEPENDS+=	jansson>0:devel/jansson
+RUN_DEPENDS+=	gnutls>0:security/gnutls
+RUN_DEPENDS+=	libmicrohttpd>0:www/libmicrohttpd
+
+CMAKE_ARGS=	-DWITH_JOURNALD=off
+
+.include <bsd.port.mk>
diff --git a/www/ulfius/distinfo b/www/ulfius/distinfo
new file mode 100644
index 000000000000..f421c37896e4
--- /dev/null
+++ b/www/ulfius/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1627935585
+SHA256 (babelouest-ulfius-v2.7.3_GH0.tar.gz) = a20f575b3e81924c4ddb72c4ccdced134b5756a86b017f4a38b51608610628c5
+SIZE (babelouest-ulfius-v2.7.3_GH0.tar.gz) = 252679
diff --git a/www/ulfius/pkg-descr b/www/ulfius/pkg-descr
new file mode 100644
index 000000000000..798900d7b298
--- /dev/null
+++ b/www/ulfius/pkg-descr
@@ -0,0 +1,12 @@
+HTTP Framework for REST Applications in C.
+
+Based on GNU Libmicrohttpd for the backend web server, Jansson for the json
+manipulation library, and Libcurl for the http/smtp client API.
+
+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.
+
+WWW: https://github.com/babelouest/ulfius
diff --git a/www/ulfius/pkg-plist b/www/ulfius/pkg-plist
new file mode 100644
index 000000000000..8934f22cae8e
--- /dev/null
+++ b/www/ulfius/pkg-plist
@@ -0,0 +1,7 @@
+bin/uwsc
+include/ulfius-cfg.h
+include/ulfius.h
+lib/libulfius.so
+lib/libulfius.so.2.7
+lib/libulfius.so.2.7.3
+libdata/pkgconfig/libulfius.pc