From nobody Wed Aug 09 11:30:34 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RLSXq19xgz4ppv8; Wed, 9 Aug 2023 11:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLSXq0frYz3Tfp; Wed, 9 Aug 2023 11:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691580635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gu9DyU46wfLjiVuA9HIUekwLdxy5TYPSneToW+Y5NFU=; b=rafKKejX/MWwcQIgnUwgk1s55iRmaqDAjscHucBMGqNk3EATy2Y9jGNrg+clWZ5QVMCzxr ttzItFkRUuinQ5WeyhN1+oHCyFaX1F3dS9+vkIQoq1cox8SXjnpZIFAveHIibzXrLNLwvi cyv14ja0gR5lGPhXcUvGznb8v9C8Jb+r8m/BXDWUcNVGcSoO+kazUHc3+78rQlQUHgbQJ4 9yJlwR+6mZiSYfMfdNYu3AOIUYzgrBvvPgxn4Sj1ibbOf2XsMoF/fbB1UEJ7CJ8FxAWCm+ PV7QawhwMbCe/x1RtLNYbQN5JdP922/66e2m2OOQFZUDM4ZQU7Ch8kzaFVtWDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691580635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gu9DyU46wfLjiVuA9HIUekwLdxy5TYPSneToW+Y5NFU=; b=oh5wONpRzRIWHq2svB8WW6TzsHroTOYzpEarXeaZNLV4Rm0pESP8daErG/4DlYURJt/IG1 t9tXuEcsKDa1bowTSmb8FVV690MK1743KTF7SVFSdK+Kgx9w8HECXmENZ3nlVEz/8Tk1Ss v0SdeEy/HcrUTZLDUXv3FFF32tPtp2URLPKMC2r3UNYqUEss/JQ4r9gFonEhkIZra4BoV9 GVxDwow41i9hdeN/qNLdX+UaIdKcNt09nKk5waVQ4X9eWx4KhnyDloSTggeLLZOwKjlAEj H4Uar/HqQAxuELkyNJiWBYmEWEImmm7NmstSTOpfwpX/SGAnYA2V3hU2n3sq1g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691580635; a=rsa-sha256; cv=none; b=yR6Yu1HSIowqQAlxUWrmHqy6ZJ32Pmh7HoUPMtoYtYeHc3PxG74IfNiqBy+LSt3mpxEoyy ZPskSfAd4mwX+BkbyWkE8T45zl24JcYziLxQnnJJeWXybGeiS2iwO27Y3evs64PNTbHZ2/ AT/B3+UqoYgIP0fZnNW0l59hZF/Mm57aWeS3h3hXGAHs0/LVPzwGt6EKYHAQOImsWbBR8w e9sjutamx0qPVU44B88ME7JFuUUOPvEkZOyjJMmxkvMcSIP6gGLHnE16dJlYpSaCttrJBp QUvKKd01psGNkowSCAsVSqgma85UmIkdzgQMBNo/0tjsh4MfWHxvKZmAiexPKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RLSXp6qRMz1CWR; Wed, 9 Aug 2023 11:30:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 379BUYHB031545; Wed, 9 Aug 2023 11:30:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 379BUYNg031542; Wed, 9 Aug 2023 11:30:34 GMT (envelope-from git) Date: Wed, 9 Aug 2023 11:30:34 GMT Message-Id: <202308091130.379BUYNg031542@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 7ad6ea4dd46d - main - mfmod_openmetrics: new port had been added (+) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7ad6ea4dd46d3e3ed04f0652923e6c98d6ffef76 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=7ad6ea4dd46d3e3ed04f0652923e6c98d6ffef76 commit 7ad6ea4dd46d3e3ed04f0652923e6c98d6ffef76 Author: Alexey Dokuchaev AuthorDate: 2023-08-09 11:30:18 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-08-09 11:30:18 +0000 mfmod_openmetrics: new port had been added (+) Loadable module for mailfromd which adds OpenMetrics support to the mail filtering language (MFL). Requested by: maintainer --- mail/Makefile | 1 + mail/mfmod_openmetrics/Makefile | 36 ++++++++++++++++++++++ mail/mfmod_openmetrics/distinfo | 3 ++ .../files/patch-mfmod__openmetrics.c | 20 ++++++++++++ mail/mfmod_openmetrics/pkg-descr | 2 ++ 5 files changed, 62 insertions(+) diff --git a/mail/Makefile b/mail/Makefile index 4abacbef5e1a..152720912a44 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -227,6 +227,7 @@ SUBDIR += mew SUBDIR += mew-devel SUBDIR += mfmod_ldap + SUBDIR += mfmod_openmetrics SUBDIR += mfmod_pcre SUBDIR += milter-bogom SUBDIR += milter-callback diff --git a/mail/mfmod_openmetrics/Makefile b/mail/mfmod_openmetrics/Makefile new file mode 100644 index 000000000000..ae904fd1e41a --- /dev/null +++ b/mail/mfmod_openmetrics/Makefile @@ -0,0 +1,36 @@ +PORTNAME= mfmod_openmetrics +PORTVERSION= 1.2 +CATEGORIES= mail +MASTER_SITES= http://download.gnu.org.ua/pub/release/${PORTNAME}/ \ + http://download.gnu.org.ua/pub/alpha/${PORTNAME}/ + +MAINTAINER= zeus@gnu.org.ua +COMMENT= OpenMetrics support loadable module for mailfromd +WWW= https://puszcza.gnu.org.ua/projects/mfmod_openmetrics/ + +LICENSE= GPLv3+ + +BUILD_DEPENDS= ${LOCALBASE}/include/mailfromd/mfmod.h:mail/mailfromd +LIB_DEPENDS= libgdbm.so:databases/gdbm \ + libmicrohttpd.so:www/libmicrohttpd + +USES= libtool localbase +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip +TEST_TARGET= check + +INFO= ${PORTNAME} +PLIST_FILES= lib/mailfromd/mfmod_openmetrics.so \ + share/mailfromd/openmetrics.mfl +PORTDOCS= NEWS README + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e '/sed -n/s,p},p;},' ${WRKSRC}/configure + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/mail/mfmod_openmetrics/distinfo b/mail/mfmod_openmetrics/distinfo new file mode 100644 index 000000000000..114a3de5dcc2 --- /dev/null +++ b/mail/mfmod_openmetrics/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1687803559 +SHA256 (mfmod_openmetrics-1.2.tar.gz) = fb77badaf0a667577a170562706e14558e6bf4529955052d1fe837c7ca83c55f +SIZE (mfmod_openmetrics-1.2.tar.gz) = 508393 diff --git a/mail/mfmod_openmetrics/files/patch-mfmod__openmetrics.c b/mail/mfmod_openmetrics/files/patch-mfmod__openmetrics.c new file mode 100644 index 000000000000..753e9a6eb357 --- /dev/null +++ b/mail/mfmod_openmetrics/files/patch-mfmod__openmetrics.c @@ -0,0 +1,20 @@ +--- mfmod_openmetrics.c.orig 2023-02-10 08:24:56 UTC ++++ mfmod_openmetrics.c +@@ -992,7 +992,7 @@ openmetrics_set(long count, MFMOD_PARAM *p, MFMOD_PARA + /* + * Server + */ +-static int ++static enum MHD_Result + reassemble_get_args(void *cls, enum MHD_ValueKind kind, + const char *key, const char *value) + { +@@ -1373,7 +1373,7 @@ http_response(struct MHD_Connection *conn, + return ret; + } + +-static int ++static enum MHD_Result + openmetrics_httpd_handler(void *cls, + struct MHD_Connection *conn, + const char *url, const char *method, diff --git a/mail/mfmod_openmetrics/pkg-descr b/mail/mfmod_openmetrics/pkg-descr new file mode 100644 index 000000000000..424a8781bd77 --- /dev/null +++ b/mail/mfmod_openmetrics/pkg-descr @@ -0,0 +1,2 @@ +This package is a loadable module for mailfromd which adds OpenMetrics +support to the mail filtering language (MFL).