From nobody Mon Aug 15 20:28:13 2022 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 4M65St23SFz4YqNv; Mon, 15 Aug 2022 20:28:14 +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 4M65St0zPPz3Tk0; Mon, 15 Aug 2022 20:28:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660595294; 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=N643Jw/FgcTuHMOM7c7q/MixcKV4C/PFK3RCt+BEEQA=; b=wfMfzKsuBuD0evHMuRBEMVrW5y1IHo6DGVk6YTDH7KCZOA21mb77c/OvAEvLwNmwTdL9Cp k7A24Ejixkzqj3WaYmzw5uTD6qUb9XzpHoxkavnQpxFUKMhUvsqtLR8PT49o2d3lkQSEzf XuaQsedAAPsOoFIINxWwbRouPUHOn0o6Ty2F+gQ314WpM+UqIA45yk/EbcYf4yQXfdq+dl o3c9sT6/PrszMiJ3bn5EyJ7lV06gSRTbGt7kYBi8dkRJd0dOLtkyK5tBFIpQrBsBRBZSQK 7gFEcrwpMkrj57lQEpRGujwEyC5MBSDuQlEU9vq7CfRANjeT0CR1s+7qnsNWFw== 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 4M65St03JpzjMM; Mon, 15 Aug 2022 20:28:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27FKSDlj069339; Mon, 15 Aug 2022 20:28:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27FKSDVw069338; Mon, 15 Aug 2022 20:28:13 GMT (envelope-from git) Date: Mon, 15 Aug 2022 20:28:13 GMT Message-Id: <202208152028.27FKSDVw069338@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: 261ad60e13b3 - main - net/msoak: New port 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: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 261ad60e13b346e4c996f0089f4d90a0b22d9550 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660595294; 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=N643Jw/FgcTuHMOM7c7q/MixcKV4C/PFK3RCt+BEEQA=; b=RVUOVDP3XHczNXnhXTIYRJ7OfYBDs5Btu/XWsRermgyE+1IhbBnRF/0oFy1DNL1VLKqeqG 3ackw/fTTFWWVJn/IFxc0Vs3vsbAMNjXRJvj8t8XbLaFJ8D/Zg4q/RR1m0PDfH/e0tGReD BmCU/e8lNFm3LNYXcHCJWJpS/IXlA0db4uiqh663KLFjHcsIH8qc/PAF1KWGVFhsKSeptl riYLParlaZIyh5bTNIQUxn47PGBXWSzqFsgCHh2m0MummbCEs7d6sD9rE+ICslCwtWPsj7 Hb4ZpobLvL+zuoB2sWVupiKAtTvSUnFpydgofaXy0KEMIRjYThMYB3zs8OYEfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660595294; a=rsa-sha256; cv=none; b=FQFQ9ozvLYRsHxelerZgYXwcBwNvyYWl3Gl2HYF0FdIq6Szfj60WNmmj4wNiXflXFusiMz chBcoktDJp8KJ7BWk1ahQdhIBRkw4jBoFdvWPkPFeEIWqM+t7qn+VuWEXgdzqebsa4Ikok 8BpTgPgdIDG0cTcc3Xrzxh7fYqwwN319Xdp32N0BvucQQ7opky4USpWT0FOj1/vo6QNr/2 bsIO5X82KhfVZdDpvP9tRm4Do3X8y+URd57wOqd5znFQ8fH2/IeV+PHamwq3RJ0+oRPyry EmH8kBXCMrH9rZf4uwGKP3UPi9nXibXTh+Zct9+2BVIkhdNgTSwaZ1xD+Epauw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=261ad60e13b346e4c996f0089f4d90a0b22d9550 commit 261ad60e13b346e4c996f0089f4d90a0b22d9550 Author: Daniel Engberg AuthorDate: 2022-08-15 20:11:21 +0000 Commit: Daniel Engberg CommitDate: 2022-08-15 20:22:45 +0000 net/msoak: New port Subscribe to different MQTT brokers and topics simultaneously, and soak up what they have to offer. WWW: https://github.com/jpmens/msoak PR: 243127 Reviewed by: Jan-Piet Mens (maintainer) --- net/Makefile | 1 + net/msoak/Makefile | 28 ++++++++++++++++++++++++++++ net/msoak/distinfo | 3 +++ net/msoak/pkg-descr | 10 ++++++++++ net/msoak/pkg-plist | 4 ++++ 5 files changed, 46 insertions(+) diff --git a/net/Makefile b/net/Makefile index b5c621caca10..576b68a2caba 100644 --- a/net/Makefile +++ b/net/Makefile @@ -474,6 +474,7 @@ SUBDIR += mrouted SUBDIR += mrtparse SUBDIR += msend + SUBDIR += msoak SUBDIR += mtr SUBDIR += mtr-nox11 SUBDIR += multicat diff --git a/net/msoak/Makefile b/net/msoak/Makefile new file mode 100644 index 000000000000..35c5d3ae5208 --- /dev/null +++ b/net/msoak/Makefile @@ -0,0 +1,28 @@ +PORTNAME= msoak +DISTVERSION= 0.8 +CATEGORIES= net + +MAINTAINER= ports@jpmens.net +COMMENT= Subscribe to different MQTT brokers and topics simultaneously + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libmosquitto.so:net/mosquitto \ + libconfig.so:devel/libconfig + +USES= localbase:ldflags lua:53+ +USE_GITHUB= yes +GH_ACCOUNT= jpmens + +CFLAGS+= -I${LUA_INCDIR} +LDFLAGS+= -llua-${LUA_VER} -lmosquitto -lconfig +MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + BINDIR=${PREFIX}/bin MANDIR=${MANPREFIX}/man + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/msoak + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example.* ${STAGEDIR}${EXAMPLESDIR} + +.include diff --git a/net/msoak/distinfo b/net/msoak/distinfo new file mode 100644 index 000000000000..040790453e0b --- /dev/null +++ b/net/msoak/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1578314385 +SHA256 (jpmens-msoak-0.8_GH0.tar.gz) = b9d7d25eb5203a7c5f2b6fa2ec19bca20ef589488562ac8901f54f3ca9056ace +SIZE (jpmens-msoak-0.8_GH0.tar.gz) = 141831 diff --git a/net/msoak/pkg-descr b/net/msoak/pkg-descr new file mode 100644 index 000000000000..2bc465f22f54 --- /dev/null +++ b/net/msoak/pkg-descr @@ -0,0 +1,10 @@ +msoak is a utility with which to simultaneously subscribe to an +arbitrary number of topics on any number of MQTT brokers and +optionally modify or normalize received payloads before printing +them out. This utility was created to back up to a central location +messages received by a handfull of brokers, instead of launching +(and having to monitor success of) a large number of mosquitto_sub(1) +programs. + + +WWW: https://github.com/jpmens/msoak diff --git a/net/msoak/pkg-plist b/net/msoak/pkg-plist new file mode 100644 index 000000000000..e3d38a129cdb --- /dev/null +++ b/net/msoak/pkg-plist @@ -0,0 +1,4 @@ +bin/msoak +man/man1/msoak.1.gz +%%EXAMPLESDIR%%/example.config +%%EXAMPLESDIR%%/example.lua