From nobody Thu Feb 26 21:27:00 2026 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 4fMPfx5Jqkz6TSXg for ; Thu, 26 Feb 2026 21:27:05 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fMPfx2r0yz3Hlf for ; Thu, 26 Feb 2026 21:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772141225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y8gbsrAf7X4h6+xOiVuml1fhBsPCShMLdXzPRgIKkKg=; b=cymguRtHg7DvCbfJMc2s5Raf04G7J/qxHnldiNpY4xQovOEyya4YRzMmwxmYS5ERGbg+vl TiAvTM7K0R8SlDCk4+eVxTXZ2HUWRP5m3nSNp4Gxiay6VSDKcJv/LVQKwELyUyH6+7aXCw +JEW8dghP/BwZ9q60SnIA9yItKly3M56CvnYCS7af+5M1jKWJEJAdT1EHRpRS3hWo9/emv QSZMeO0G9C/LGbTWpEqCR0zz+vjWbs51w22HfkyBdhzmc8cLSJVlf84rpztGZ9rPztLfPJ 1OnxoKaVgZqBp3bm8ATcgEzAxGW56Y+S2V142VkJPh5ay5ovICasvEw2Muwc6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772141225; a=rsa-sha256; cv=none; b=mVe3kd9TTBqWl+fvOhdol3s9yxkkrdD0luXY9fL2rFxzeKAbLM/lQ+n7SvDoziYV6YecAv uKjPraoWbVCynQVAskSjX9fkZmiwbGILOhQimIhhDtPWoVU4J04oWgiXf5qHKTE7oM48rF mJ/jWGltORyj6Em3DxUuq7nXZ9Ns0kGgItloYuvFUGF3+L2TDAwWYFhwuQB2jlA6KUP5TN ALIwfmw4T2virdSOSrLWSsrdC82HkbEwVrGW4QGOwx07KMkvTVqchFWS+7YNxtWOxKWMqq I8haJX0K/OrMvmGBuLO4L3k6gdtr6nHzMOquRkSouh0nji12pWcxxBGeI1klvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772141225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y8gbsrAf7X4h6+xOiVuml1fhBsPCShMLdXzPRgIKkKg=; b=MCMBeXNFYwgujkwvOUiRxWv6/rCx3+n8iDiSpRbIwbtnKH5KUvgKgRTvWa0BXnj8XDtdPM vQ6DoSheHf2pTJlMm5POmylM7eGnbDDCJIbw4AQixBYOfJ+fJ7FaW7V2BbCRge3m8LUW86 Ywld6dFUkTKVdSXGkKRr7WpSihT/P975vD85USfzZp4JN9ZHFwJyUoj1bBqjQOWbuneqAc R7Iq/8uza5VsgDYs31MufNq600TcfOuVF44qizXFPlxFvEfDX+Y+nA52a7C8K0PVsOWKgY UMpg9FGHbI3WI/jCnlTL2Qwpx0NsE4AUZzdlrY10pHQu0aZ0qkDfoZbyRvc4nA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fMPfx1vVFzq3L for ; Thu, 26 Feb 2026 21:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 30446 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 26 Feb 2026 21:27:00 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Jamie Landeg-Jones From: Vladimir Druzenko Subject: git: b98dccb93510 - main - sysutils/symon: Improve port, take maintainership 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b98dccb9351011b852d603905dab1968f3af8585 Auto-Submitted: auto-generated Date: Thu, 26 Feb 2026 21:27:00 +0000 Message-Id: <69a0baa4.30446.49c4cdd5@gitrepo.freebsd.org> The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=b98dccb9351011b852d603905dab1968f3af8585 commit b98dccb9351011b852d603905dab1968f3af8585 Author: Jamie Landeg-Jones AuthorDate: 2026-02-26 20:45:53 +0000 Commit: Vladimir Druzenko CommitDate: 2026-02-26 21:26:46 +0000 sysutils/symon: Improve port, take maintainership - Convert to modern OPTIONS. - Add record to UPDATING about options. - "Samplefy" configs. - Fix warnings from portclippy. - "Unbreak" on 15+ - disable PF support (patches gratefully received!). PR: 292366 Co-authored-by: Vladimir Druzenko --- UPDATING | 7 +++ sysutils/symon/Makefile | 103 ++++++++++++++++++++++-------------- sysutils/symon/files/pkg-message.in | 14 +++-- sysutils/symon/pkg-plist | 6 +-- 4 files changed, 78 insertions(+), 52 deletions(-) diff --git a/UPDATING b/UPDATING index 0a55bd92f776..3e7c6f3bf551 100644 --- a/UPDATING +++ b/UPDATING @@ -5,6 +5,13 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20260226: + AFFECTS: users of sysutils/symon + AUTHOR: jamie@catflap.org + + The old WITHOUT_SYMON and WITHOUT_SYMUX knobs have been replaced with the + port options SYMON and SYMUX. The legacy "WITHOUT_RRD" knob has been retired. + 20260226: AFFECTS: users of java/openjdk* AUTHOR: ronald@FreeBSD.org diff --git a/sysutils/symon/Makefile b/sysutils/symon/Makefile index 257641e84068..53cc318a3671 100644 --- a/sysutils/symon/Makefile +++ b/sysutils/symon/Makefile @@ -1,70 +1,91 @@ PORTNAME= symon DISTVERSION= 2.90 +PORTREVISION= 1 CATEGORIES= sysutils -MASTER_SITES= https://wpd.home.xs4all.nl/symon/philes/ \ - LOCAL/uqs +MASTER_SITES= https://wpd.home.xs4all.nl/symon/philes/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= jamie@catflap.org COMMENT= Performance and information monitoring tool WWW= https://wpd.home.xs4all.nl/symon/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_15= requires no longer supported ioctl(DIOCGETSTATUS) - -SUB_FILES= pkg-message - USES= groff perl5 shebangfix -SHEBANG_FILES= client/getsymonitem.pl USE_PERL5= build + +SHEBANG_FILES= client/getsymonitem.pl + +MAKE_ARGS= EXADIR="etc" \ + LORDER=echo \ + MANDIR="share/man" \ + PREFIX="${STAGEDIR}${PREFIX}" \ + RRDDIR="${LOCALBASE}" \ + SYSCONFDIR="${PREFIX}/etc" \ + SUBDIR="lib ${SUBDIR} client" \ + TSORT=cat + MAKE_JOBS_UNSAFE= yes + CFLAGS+= -D_WANT_SEMUN +EXTRACT_AFTER_ARGS= --strip-components 1 \ + --no-same-owner --no-same-permissions +SUB_FILES= pkg-message + +NO_WRKSUBDIR= yes + USERS= _symon GROUPS= _symon -# Synonym for WITHOUT_SYMUX -.if defined(WITHOUT_RRD) -WITHOUT_SYMUX= yes -.endif - -.if !defined(WITHOUT_SYMUX) -LIB_DEPENDS+= librrd.so:databases/rrdtool -.endif +PORTDOCS= CHANGELOG HACKERS TODO -.if defined(WITHOUT_SYMUX) && defined(WITHOUT_SYMON) -IGNORE= you have defined both WITHOUT_SYMUX or WITHOUT_RRD *and* WITHOUT_SYMON -.endif +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT= SYMON SYMUX +OPTIONS_MULTI= MODULES +OPTIONS_MULTI_MODULES= SYMON SYMUX +OPTIONS_SUB= yes -SUBDIR= lib -.if !defined(WITHOUT_SYMON) -SUBDIR+= symon -PLIST_SUB+= SYMON="" -USE_RC_SUBR+= symon -.else -PLIST_SUB+= SYMON="@comment " -.endif -.if !defined(WITHOUT_SYMUX) -SUBDIR+= symux -PLIST_SUB+= SYMUX="" -USE_RC_SUBR+= symux -.else -PLIST_SUB+= SYMUX="@comment " -.endif -SUBDIR+= client +MODULES_DESC= Modules +SYMON_DESC= Include symon(8) system monitor. +SYMUX_DESC= Include symon stream multiplexer [symux(8)] -MAKE_ARGS+= SUBDIR="${SUBDIR}" RRDDIR="${LOCALBASE}" LORDER=echo TSORT=cat \ - SYSCONFDIR="${PREFIX}/etc" PREFIX="${STAGEDIR}/${PREFIX}" \ - MANDIR="share/man" +SYMON_VARS= SUBDIR+=symon \ + USE_RC_SUBR+=symon +SYMUX_LIB_DEPENDS= librrd.so:databases/rrdtool +SYMUX_VARS= SUBDIR+=symux \ + USE_RC_SUBR+=symux .include -post-extract: - @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC} - post-patch: # We need to teach symon about mbstat changes/removal in r253351 and r253361. @${RM} ${WRKSRC}/platform/FreeBSD/sm_mbuf.c +# We need to teach symon about pf API changes from FreeBSD 15 onwards. + +# Until someone can update sm_pf.c to use the nvlist variants, remove it +# from FreeBSD 15 installs, as it no longer works due to the removal of +# DIOCGETSTATUS. Patches welcome! +# See https://lists.freebsd.org/archives/freebsd-pf/2023-April/000345.html +# Subject: pf: remove DIOCGETRULE and DIOCGETSTATUS +# Author: Kristof Provost +# Date: 2023-08-29 15:17:24 +0000 +# Link: https://cgit.freebsd.org/src/commit/?id=8d49fd7331bc72671a14f1aac1d9cdea36672d19 +.if (${OPSYS} == FreeBSD) && ${OSVERSION} >= 1500000 + @${RM} ${WRKSRC}/platform/FreeBSD/sm_pf.c +.endif + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \ + ${STAGEDIR}${DOCSDIR} + +post-install-SYMON-on: + ${MV} ${STAGEDIR}${PREFIX}/etc/symon.conf \ + ${STAGEDIR}${PREFIX}/etc/symon.conf.sample + +post-install-SYMUX-on: + ${MV} ${STAGEDIR}${PREFIX}/etc/symux.conf \ + ${STAGEDIR}${PREFIX}/etc/symux.conf.sample .include diff --git a/sysutils/symon/files/pkg-message.in b/sysutils/symon/files/pkg-message.in index 50bf4fd584bc..c33d21e6dec1 100644 --- a/sysutils/symon/files/pkg-message.in +++ b/sysutils/symon/files/pkg-message.in @@ -1,21 +1,19 @@ [ { type: install message: <