git: 2a680d55e5c7 - main - devel/poser: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Jun 2023 18:24:34 UTC
The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a680d55e5c78cc555c5a701fe39992e475257e7 commit 2a680d55e5c78cc555c5a701fe39992e475257e7 Author: Felix Palmen <zirias@FreeBSD.org> AuthorDate: 2023-05-26 10:42:02 +0000 Commit: Felix Palmen <zirias@FreeBSD.org> CommitDate: 2023-06-02 18:23:52 +0000 devel/poser: Add new port poser is a C framework for POSIX services. It is required for the new version of security/tlsc. Approved by: tcberner (mentor, implicit) --- devel/Makefile | 1 + devel/poser/Makefile | 36 ++++++++++++++++++++++++++++++++++++ devel/poser/distinfo | 3 +++ devel/poser/pkg-descr | 5 +++++ devel/poser/pkg-plist | 21 +++++++++++++++++++++ 5 files changed, 66 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c36bba2cf0ee..4e3362ad0aed 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4122,6 +4122,7 @@ SUBDIR += poco SUBDIR += poetry SUBDIR += popt + SUBDIR += poser SUBDIR += poxml SUBDIR += ppl SUBDIR += pprof diff --git a/devel/poser/Makefile b/devel/poser/Makefile new file mode 100644 index 000000000000..4beb95e04eee --- /dev/null +++ b/devel/poser/Makefile @@ -0,0 +1,36 @@ +PORTNAME= poser +DISTVERSION= 1.0.1 +CATEGORIES= devel +MASTER_SITES= https://github.com/Zirias/%SUBDIR%/ +MASTER_SITE_SUBDIR= ${PORTNAME}/releases/download/v${DISTVERSION} + +MAINTAINER= zirias@FreeBSD.org +COMMENT= C framework for POsix SERvices +WWW= https://zirias.github.io/poser/ + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= compiler:c11 gmake tar:xz + +USE_LDCONFIG= yes +MAKE_ARGS= pkgconfigdir=${PREFIX}/libdata/pkgconfig V=1 +ALL_TARGET= strip +PORTDOCS= * + +OPTIONS_DEFINE= DOCS DOXYGEN TLS +OPTIONS_DEFAULT= TLS +DOXYGEN_BUILD_DEPENDS= doxygen>0:devel/doxygen +DOXYGEN_ALL_TARGET= docs +TLS_USES= ssl +TLS_MAKE_ARGS_OFF= WITH_TLS=0 + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}/${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}/${DOCSDIR} + +post-install-DOXYGEN-on: + ${MKDIR} ${STAGEDIR}/${DOCSDIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}/${DOCSDIR}) + +.include <bsd.port.mk> diff --git a/devel/poser/distinfo b/devel/poser/distinfo new file mode 100644 index 000000000000..eddfad83df5d --- /dev/null +++ b/devel/poser/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1685646085 +SHA256 (poser-1.0.1.tar.xz) = e09ac70cab3f74a8068ce594e395339e79d952d16c6086528dfcebc030fd9c69 +SIZE (poser-1.0.1.tar.xz) = 72272 diff --git a/devel/poser/pkg-descr b/devel/poser/pkg-descr new file mode 100644 index 000000000000..cc44d1b00397 --- /dev/null +++ b/devel/poser/pkg-descr @@ -0,0 +1,5 @@ +This is a lightweight framework to easily implement a typical (networking) +service in C, using an event-driven API. + +It only uses standard POSIX APIs, therefore it is not suitable for services +that must scale to thousands of concurrent clients. diff --git a/devel/poser/pkg-plist b/devel/poser/pkg-plist new file mode 100644 index 000000000000..bd1a11eed824 --- /dev/null +++ b/devel/poser/pkg-plist @@ -0,0 +1,21 @@ +include/poser/core.h +include/poser/core/client.h +include/poser/core/connection.h +include/poser/core/daemon.h +include/poser/core/event.h +include/poser/core/hashtable.h +include/poser/core/list.h +include/poser/core/log.h +include/poser/core/proto.h +include/poser/core/queue.h +include/poser/core/runopts.h +include/poser/core/server.h +include/poser/core/service.h +include/poser/core/stringbuilder.h +include/poser/core/threadpool.h +include/poser/core/util.h +include/poser/decl.h +lib/libposercore.so +lib/libposercore.so.1 +lib/libposercore.so.1.0.1 +libdata/pkgconfig/posercore.pc