From nobody Tue Jan 9 22:11:29 2024 X-Original-To: dev-commits-ports-all@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 4T8lWk2Mmjz56ZgM; Tue, 9 Jan 2024 22:11:30 +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 4T8lWj6cwhz4DtG; Tue, 9 Jan 2024 22:11:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704838289; 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=m6pkBruM8oLz654THvTtCE6CJ6RXoY2fvHylpvRYQhQ=; b=oYexcAxEzIa7QtogC9nW8TGNKZsHofzf6VcFfh267WclSi1pmPQ4M0bgCBSekWb8DVe3iU CLobJjPgFm8uH0Iv8Tv6pTRYzmDATSkPuTWG/qtIEhjQ5ifnvLt7OMfb6ZYxXmwVuD81Rd iTrslhO96ZTUxy+wl/vwGuJekodXmh9v1ek4wk25ZMqM/gALqX4zrTEHzrP18ayCUPZrD8 UQ6MkJDwmsszU6xA2upfqbdSLbkaB0JJw6amGSucWoL8Km6mMHpgVVHx2K1+qPVyTL8iAN TSIZIhCnHdnGaAVofIpsKWlGXYyL8kl/qeiDrLo2aGL4sJrFrgepeAiR+gOK7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704838289; 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=m6pkBruM8oLz654THvTtCE6CJ6RXoY2fvHylpvRYQhQ=; b=CUFNIhw2suAjPYH3P9WX/M76K99fcCZyzLsBrgSnh8zkZfheTkpxY4Iddk5NEIK1OYvRqq aiTO/++wJn1pDwZEHLwczDCERJDsoKR7+ufQvrvrCYDspoMzS8Uud+79CMunPLZnOQ4F8n tMioVDRt9Ct6fDpFHY092+oq0e6YyzX5e6hjnL6BCN6+g5Tgtyn/Jg9HaVMQSC1Zddn8dS ESKIqLVd353TGz9Ojd7wQu70fF83JdSyUIKRhbY/9Pc0hqDjPVhhHwGCesKSURo5q60kXc FBsaDLeTMqkmLdZsNUuRPVZ7jdMRcyLBE5e9NcZGYe3cj0UxeR9ylic8EX6jVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704838289; a=rsa-sha256; cv=none; b=WElKdTPg5v5eGGp20F7p0FjOdlaEQNnauzkxvHGagVuFwJxttL+3x6RIvQcj8TTey7WvVU 0zUTU6G8f87oU1bX0IKhaeJGkVpqa9Osu5+CjNdKrHKdPHXjwWXQEPH8SITsun/n82Jewd iyuVEalKGjggJvxTwgcw9rWu7uYjcfOA7CDzaeZ1OCZSHiYzt5nk1/AryMVpeB8EKKIhdg IcnHb4ObUeB2AdU7TEtEzeHM3zcbYldCMhHSHvC0DyfNEWi39ln+wBXfEjci10JOi1+v9E KRqgJpVMtRr1rVKcAlc2QXzu7nh2fHKCTvcn24vAVyuDPxxlmIu2d0mGUSapcw== 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 4T8lWj5kyXz17B9; Tue, 9 Jan 2024 22:11:29 +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 409MBTfj012329; Tue, 9 Jan 2024 22:11:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 409MBTpG012326; Tue, 9 Jan 2024 22:11:29 GMT (envelope-from git) Date: Tue, 9 Jan 2024 22:11:29 GMT Message-Id: <202401092211.409MBTpG012326@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Florian Smeets Subject: git: bef3d029ced8 - main - sysutils/munin-{common,master,node}: update to 2.0.75 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: flo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bef3d029ced8886868ead2b490615b606cfb8265 Auto-Submitted: auto-generated The branch main has been updated by flo: URL: https://cgit.FreeBSD.org/ports/commit/?id=bef3d029ced8886868ead2b490615b606cfb8265 commit bef3d029ced8886868ead2b490615b606cfb8265 Author: takefu AuthorDate: 2024-01-09 21:55:36 +0000 Commit: Florian Smeets CommitDate: 2024-01-09 22:09:41 +0000 sysutils/munin-{common,master,node}: update to 2.0.75 add LICENSE_FILE fix Change distribution source sourceforge -> github Fixed version reference bug when generating man portlint(1) portclippy(1) compliant Changes: https://github.com/munin-monitoring/munin/blob/2.0.75/ChangeLog PR: 276218 --- sysutils/munin-common/Makefile | 3 +- sysutils/munin-common/distinfo | 6 ++-- sysutils/munin-common/files/patch-getversion | 13 ++++++++ .../files/patch-plugins_lib_Munin_Plugin_SNMP.pm | 38 ++++++++++++++++++++++ .../files/patch-plugins_node.d_bind9__rndc.in | 24 ++++++++++++++ sysutils/munin-common/files/patch-test-mktemp | 11 +++++++ sysutils/munin-common/munin.mk | 5 +-- sysutils/munin-master/Makefile | 5 +-- sysutils/munin-node/Makefile | 5 ++- 9 files changed, 101 insertions(+), 9 deletions(-) diff --git a/sysutils/munin-common/Makefile b/sysutils/munin-common/Makefile index 29416d90c11b..396798339354 100644 --- a/sysutils/munin-common/Makefile +++ b/sysutils/munin-common/Makefile @@ -1,13 +1,14 @@ PORTNAME= munin PORTVERSION= ${MUNIN_VERSION} CATEGORIES= sysutils perl5 -MASTER_SITES= ${MUNIN_SITES} PKGNAMESUFFIX= -common MAINTAINER= flo@FreeBSD.org COMMENT= Common components between a munin node and server WWW= https://munin-monitoring.org/ +LICENSE_FILE= ${WRKSRC}/COPYING + BUILD_DEPENDS= p5-Module-Build>=0:devel/p5-Module-Build \ p5-Net-SSLeay>=0:security/p5-Net-SSLeay RUN_DEPENDS= p5-Net-SSLeay>=0:security/p5-Net-SSLeay diff --git a/sysutils/munin-common/distinfo b/sysutils/munin-common/distinfo index 39b55e3097c1..331606eb6a81 100644 --- a/sysutils/munin-common/distinfo +++ b/sysutils/munin-common/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1679676638 -SHA256 (munin-2.0.73.tar.gz) = 027853d848206d6f1b06c230baeb2b28a47915f8b73a0aad4f18d497c840350a -SIZE (munin-2.0.73.tar.gz) = 2252776 +TIMESTAMP = 1704717976 +SHA256 (munin-monitoring-munin-2.0.75_GH0.tar.gz) = 9ea2c8d81b96a19e8f26bb9ee6b2cc35790997a53e574c2d4beaf170e5173553 +SIZE (munin-monitoring-munin-2.0.75_GH0.tar.gz) = 2258514 diff --git a/sysutils/munin-common/files/patch-getversion b/sysutils/munin-common/files/patch-getversion new file mode 100644 index 000000000000..7cc33d5dceea --- /dev/null +++ b/sysutils/munin-common/files/patch-getversion @@ -0,0 +1,13 @@ +--- getversion.orig 2023-10-25 08:03:45 UTC ++++ getversion +@@ -74,8 +74,8 @@ generate_version_string_from_dir() { + + if [ -s "RELEASE" ]; then + cat RELEASE +-elif [ "`git rev-parse --is-inside-work-tree 2>/dev/null`" = "true" ]; then +- generate_version_string ++#elif [ "`git rev-parse --is-inside-work-tree 2>/dev/null`" = "true" ]; then ++# generate_version_string + elif [ -n "`generate_version_string_from_dir`" ]; then + generate_version_string_from_dir + else diff --git a/sysutils/munin-common/files/patch-plugins_lib_Munin_Plugin_SNMP.pm b/sysutils/munin-common/files/patch-plugins_lib_Munin_Plugin_SNMP.pm new file mode 100644 index 000000000000..5fce36ffa573 --- /dev/null +++ b/sysutils/munin-common/files/patch-plugins_lib_Munin_Plugin_SNMP.pm @@ -0,0 +1,38 @@ +--- plugins/lib/Munin/Plugin/SNMP.pm.orig 2014-11-24 21:46:24 UTC ++++ plugins/lib/Munin/Plugin/SNMP.pm +@@ -104,7 +104,7 @@ well. + + =cut + +- my ($host, $port, $version, $tail); ++ my ($host, $port, $version, $tail, $domain); + + # Decode plugin/symlink name and extract meaning from it - if possible. + if ($0 =~ /^(?:.*\/)?snmp(v3)?_([^_]+)_(.*)/) { +@@ -122,8 +122,9 @@ well. + $host = $ENV{host} || $host || die "Could not find hostname"; + $version = $ENV{version} || $version || '2'; + $port = $ENV{port} || $port || 161; ++ $domain = $ENV{domain} || $domain || 'UDP/IPv4'; + +- return ($host, $port, $version, $tail); ++ return ($host, $port, $version, $tail, $domain); + } + + +@@ -205,13 +206,14 @@ Security is handled differently for vers + + =cut + +- my ($host, $port, $version, $tail) = config_session(); ++ my ($host, $port, $version, $tail, $domain) = config_session(); + + # Common options. + my @options = ( + -hostname => $host, + -port => $port, + -version => $version, ++ -domain => $domain, + ); + + # User defined options diff --git a/sysutils/munin-common/files/patch-plugins_node.d_bind9__rndc.in b/sysutils/munin-common/files/patch-plugins_node.d_bind9__rndc.in new file mode 100644 index 000000000000..559801bbcadc --- /dev/null +++ b/sysutils/munin-common/files/patch-plugins_node.d_bind9__rndc.in @@ -0,0 +1,24 @@ +--- plugins/node.d/bind9_rndc.in.orig 2018-03-25 14:01:24 UTC ++++ plugins/node.d/bind9_rndc.in +@@ -13,6 +13,7 @@ The following environment variables are + env.rndc /usr/sbin/rndc + env.rndc_options + env.querystats /var/run/named.stats ++ env.rndckeyfile /etc/namedb/rndc.key + + The user/group that runs the plugin must have read access to the stats + file. To change user or group (usually Munin plugins are run as +@@ -62,9 +63,11 @@ License not documented. + use strict; + + my $rndc = defined($ENV{rndc}) ? $ENV{rndc} : '/usr/sbin/rndc'; +-my $rndc_options = defined($ENV{rndc_options}) ? $ENV{rndc_options} : ''; ++my $rndckeyfile = $ENV{rndckeyfile} ? $ENV{rndckeyfile} : '/etc/namedb/rndc.key'; + my $querystats = $ENV{querystats} || '/var/run/named.stats'; + my %IN; ++my @IN_KEYS; ++my @args = ("$rndc","-k","$rndckeyfile","stats"); + + # attempt to create log file if it doesn't exist + if ( ! -r $querystats ) { + diff --git a/sysutils/munin-common/files/patch-test-mktemp b/sysutils/munin-common/files/patch-test-mktemp new file mode 100644 index 000000000000..66608aad9e8e --- /dev/null +++ b/sysutils/munin-common/files/patch-test-mktemp @@ -0,0 +1,11 @@ +--- test-mktemp.orig 2023-02-08 07:57:20 UTC ++++ test-mktemp +@@ -53,7 +53,7 @@ MKTEMP='mktemp -p /tmp/ $1' + testfun temp.XXXXXX + + # FreeBSD way +-MKTEMP="mktemp -t /tmp" ++MKTEMP="mktemp -t $1" + testfun temp.XXXXXX + + # Plain mktemp diff --git a/sysutils/munin-common/munin.mk b/sysutils/munin-common/munin.mk index cbab1a42a9a9..d2850e847c2f 100644 --- a/sysutils/munin-common/munin.mk +++ b/sysutils/munin-common/munin.mk @@ -1,7 +1,8 @@ LICENSE= GPLv2 -MUNIN_VERSION= 2.0.73 -MUNIN_SITES= SF/munin/stable/${MUNIN_VERSION} +MUNIN_VERSION= 2.0.75 +USE_GITHUB= yes +GH_ACCOUNT= munin-monitoring DISTINFO_FILE= ${.CURDIR}/../../sysutils/munin-common/distinfo PATCHDIR= ${.CURDIR}/../../sysutils/munin-common/files diff --git a/sysutils/munin-master/Makefile b/sysutils/munin-master/Makefile index cd6e59c28cb5..2bd23d7d22f9 100644 --- a/sysutils/munin-master/Makefile +++ b/sysutils/munin-master/Makefile @@ -1,13 +1,14 @@ PORTNAME= munin PORTVERSION= ${MUNIN_VERSION} CATEGORIES= sysutils perl5 -MASTER_SITES= ${MUNIN_SITES} PKGNAMESUFFIX= -master MAINTAINER= flo@FreeBSD.org COMMENT= Collector part of Munin WWW= https://munin-monitoring.org/ +LICENSE_FILE= ${WRKSRC}/COPYING + BUILD_DEPENDS= munin-common>=${MUNIN_VERSION}:sysutils/munin-common \ p5-CGI>=0:www/p5-CGI \ p5-DateTime-HiRes>=0:devel/p5-DateTime-HiRes \ @@ -54,7 +55,7 @@ post-install: ${INSTALL_MAN} munin.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5; \ ${INSTALL_MAN} munin-cron.8 munin-graph.8 munin-html.8 munin-limits.8 munin-update.8 ${STAGEDIR}${MAN8PREFIX}/man/man8; \ ) - (cd ${STAGEDIR}${ETCDIR}; for i in `find . -type f`; do mv $$i $$i.sample; done) + (cd ${STAGEDIR}${ETCDIR}; for i in `find . -type f`; do ${MV} $$i $$i.sample; done) ${MV} ${STAGEDIR}${WWWDIR}/.htaccess ${STAGEDIR}${WWWDIR}/.htaccess.sample ${INSTALL_DATA} ${FILESDIR}/newsyslog ${STAGEDIR}${ETCDIR}/munin-master.newsyslog ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/cron.d diff --git a/sysutils/munin-node/Makefile b/sysutils/munin-node/Makefile index 7743572eb7ae..1f85fc8fa442 100644 --- a/sysutils/munin-node/Makefile +++ b/sysutils/munin-node/Makefile @@ -1,13 +1,14 @@ PORTNAME= munin PORTVERSION= ${MUNIN_VERSION} CATEGORIES= sysutils perl5 -MASTER_SITES= ${MUNIN_SITES} PKGNAMESUFFIX= -node MAINTAINER= flo@FreeBSD.org COMMENT= Node-specific part of Munin WWW= https://munin-monitoring.org/ +LICENSE_FILE= ${WRKSRC}/COPYING + BUILD_DEPENDS= bash:shells/bash \ munin-common>=${MUNIN_VERSION}:sysutils/munin-common \ p5-DateTime-HiRes>=0:devel/p5-DateTime-HiRes \ @@ -25,6 +26,8 @@ RUN_DEPENDS= bash:shells/bash \ p5-Net-Server>=0:net/p5-Net-Server USES= cpe gmake perl5 shebangfix +USE_GITHUB= yes +GH_ACCOUNT= munin-monitoring USE_RC_SUBR= munin-asyncd munin-node SHEBANG_FILES= node/bin/munindoc node/sbin/munin-node \