From nobody Wed Nov 22 08:46:28 2023 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 4SZvx119Xcz518sN; Wed, 22 Nov 2023 08:46:29 +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 4SZvx10f5xz3MjB; Wed, 22 Nov 2023 08:46:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700642789; 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=mdzbdsqHEW3ZS59YTnjVZmhPdWj1w1P+nBJU84q3sMY=; b=YjjsiDGAh1sb8zza02B0eLmYhIrJIGaB3dElot86nUwoN6DNypn6l+5tEzb4vVR3eFBmAB b/7YjOnEI/0koQSpgepc4QGHzYByLlYCZCY3p+QsTbcfmJ64qVmuhxghcDjQjN7G51EhJY KwHLjtlrPVOK1MLz7Cf0coRMZ7jL4jFO9m+l+0SbT0MIk8ZOLiX8hcbsctQEpMCm/yZMnV 6YV6cJsS0eyLjVF02Fn/QnTLx41V0g9+I+VJVPvu9E/O4ILigGxYf6GoZq4HNDu9T5L4mo Y2SPlgwBW+K8i8YAWwSDQi5sGXveLHZSPrnEwBzv8/X61brnxZ0YqzyNJcNI7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700642789; 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=mdzbdsqHEW3ZS59YTnjVZmhPdWj1w1P+nBJU84q3sMY=; b=C4r/eD6i6bCLFMperfRihxygANrC3KY0tphj8U+R0q4YgabHs9Y4PLFW/EAWw7BWx/jHgy Q77o5JQbdVJe/v5ZGQY2lxjJ2BhpK+qlYKO4mtwehIJ2g4IYJ4Lz1zvkyp0LPaexrBjPeo uam2lZ5bbiSCVlDmyIMBBUN5cL5y9BSWdJyp3564Lcdq2tQEOqmIBWbzsXhgmcHlc9/PWN tmwi8xg+I7UeMZMCnMDyxj/h93tZSPYckwsZejokBH8sOUKOi8vEuySmFlX0VNxK8NlHKe 3OLibXWPS3nEfcYoR9nLbQMiiUFmQylBoMP5bivpuW1iIxhJSroEfvo8+wSzYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700642789; a=rsa-sha256; cv=none; b=P7f5/qmHHac6QhraENeuJiDtFBgaEZYe1dN0k5ZXw0ckzkPUF38MGfg0w3e/xECwpxMN0g cQzc41dCtnO/sWt5PCJnLo/cXBHcfZj43Jujpvw7/nW8SoVvD2nblG6HiYX2EF6HtuvUnH p4kP28dSIrGPW/W9UvVtTfRR7g258WOde4jgt02ivpuk5UkyQRbqNqd22jq622pSdjAYKZ EAh5XLaxq9zNVQTZc3lDjUjNYl9bBc5jdZhGM314MAGNaXikagQnn8Y4u+E0KI2lG14JJE r2zp4asTEZJK0SsgKF2911U0ha39lvG1qM4EY20JX8FbiB9B487OWLeshbnwtQ== 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 4SZvx06WhJz1BTN; Wed, 22 Nov 2023 08:46:28 +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 3AM8kSY9067717; Wed, 22 Nov 2023 08:46:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AM8kSKB067714; Wed, 22 Nov 2023 08:46:28 GMT (envelope-from git) Date: Wed, 22 Nov 2023 08:46:28 GMT Message-Id: <202311220846.3AM8kSKB067714@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 0223f14e38ca - main - net-mgmt/nfsen: Update to 1.3.11 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: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0223f14e38ca8a9477cdc1e0a9b6af29dd642f52 Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=0223f14e38ca8a9477cdc1e0a9b6af29dd642f52 commit 0223f14e38ca8a9477cdc1e0a9b6af29dd642f52 Author: Fernando ApesteguĂ­a AuthorDate: 2023-11-20 08:10:43 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2023-11-22 08:46:17 +0000 net-mgmt/nfsen: Update to 1.3.11 While here, don't generate backup files after replacing. Otherwise poudriere complains about wrong shebangs in the .bak files. PR: 274776 Reported by: chadf@triularity.org --- net-mgmt/nfsen/Makefile | 31 ++++++++++++++------------ net-mgmt/nfsen/distinfo | 6 ++--- net-mgmt/nfsen/files/patch-etc_nfsen-dist.conf | 12 +++++----- net-mgmt/nfsen/files/patch-libexec_NfSenRRD.pm | 11 --------- net-mgmt/nfsen/files/pkg-message.in | 17 ++++++++++++++ 5 files changed, 43 insertions(+), 34 deletions(-) diff --git a/net-mgmt/nfsen/Makefile b/net-mgmt/nfsen/Makefile index de60562711e9..2d39f0881a7d 100644 --- a/net-mgmt/nfsen/Makefile +++ b/net-mgmt/nfsen/Makefile @@ -1,13 +1,11 @@ PORTNAME= nfsen -PORTVERSION= 1.3.8 -PORTREVISION= 1 +PORTVERSION= 1.3.11 +DISTVERSIONPREFIX=v. CATEGORIES= net-mgmt -MASTER_SITES= SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION} \ - http://nfsen.sourceforge.net/ MAINTAINER= ports@FreeBSD.org COMMENT= Web based frontend to nfdump netflow collector -WWW= https://nfsen.sourceforge.net/ +WWW= https://github.com/phaag/nfsen LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/BSD-license.txt @@ -15,9 +13,13 @@ LICENSE_FILE= ${WRKSRC}/BSD-license.txt RUN_DEPENDS= rrdtool>=0:databases/rrdtool \ p5-Mail-Tools>=0:mail/p5-Mail-Tools \ p5-Socket6>=0:net/p5-Socket6 \ - nfdump>=0:net-mgmt/nfdump + nfdump>=1.7:net-mgmt/nfdump USES= cpe iconv shebangfix perl5 php + +USE_GITHUB= yes +GH_ACCOUNT= phaag + CPE_VENDOR= nfsen CPE_PRODUCT= nfsen USE_PHP= session sockets @@ -28,10 +30,7 @@ PLIST_SUB+= PORTNAME=${PORTNAME} PLIST_SUB+= NFSENOWN=${NFSENOWN} USE_RC_SUBR= nfsen perl_OLD_CMD= %%PERL%% -SHEBANG_FILES= bin/testPlugin bin/RebuildHierarchy.pl bin/nfsen bin/nfsend libexec/NfSenRRD.pm \ - libexec/NfAlert.pm libexec/NfProfile.pm libexec/Notification.pm libexec/NfSen.pm \ - libexec/NfConf.pm libexec/Lookup.pm libexec/AbuseWhois.pm libexec/NfSenRC.pm \ - libexec/Nfsources.pm +SHEBANG_FILES= bin/testPlugin bin/RebuildHierarchy.pl bin/nfsen bin/nfsend REINPLACE_ARGS= -i '' REINPLACE_LIST= bin/testPlugin bin/RebuildHierarchy.pl bin/nfsen bin/nfsend etc/nfsen-dist.conf libexec/NfConf.pm SUB_LIST+= "CONFDIR=${PREFIX}/etc" @@ -42,16 +41,20 @@ SUB_LIST+= "WWWDIR=${WWWDIR}" SUB_LIST+= "PORTNAME=${PORTNAME}" SUB_LIST+= "NFSENOWN=${NFSENOWN}" +SUB_FILES= pkg-message + +PKGMESSAGE= ${WRKDIR}/pkg-message + post-patch: .for nfsenfile in ${REINPLACE_LIST} - @${REINPLACE_CMD} ${_SUB_LIST_TEMP} ${WRKSRC}/${nfsenfile} + @${REINPLACE_CMD} -i '' ${_SUB_LIST_TEMP} ${WRKSRC}/${nfsenfile} .endfor .for perlfile in ${SHEBANG_FILES} - @${REINPLACE_CMD} "s|perl -w$$|perl|" ${WRKSRC}/${perlfile} + @${REINPLACE_CMD} -i '' "s|perl -w$$|perl|" ${WRKSRC}/${perlfile} .endfor ${CP} ${FILESDIR}/conf.php ${WRKSRC} - @${REINPLACE_CMD} ${_SUB_LIST_TEMP} ${WRKSRC}/conf.php - @${REINPLACE_CMD} "s|/usr/bin/perl|${perl_CMD}|" ${WRKSRC}/libexec/Nfcomm.pm + @${REINPLACE_CMD} -i '' ${_SUB_LIST_TEMP} ${WRKSRC}/conf.php + @${REINPLACE_CMD} -i '' "s|/usr/bin/perl|${perl_CMD}|" ${WRKSRC}/libexec/Nfcomm.pm FIND_EXPR= ! -name \._* -prune diff --git a/net-mgmt/nfsen/distinfo b/net-mgmt/nfsen/distinfo index 404259d27f01..8c32637ba7c4 100644 --- a/net-mgmt/nfsen/distinfo +++ b/net-mgmt/nfsen/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1485556082 -SHA256 (nfsen-1.3.8.tar.gz) = a7612e430357e683af81dbc07335b770b4ada115a6a88591e086ff5b6ed593a9 -SIZE (nfsen-1.3.8.tar.gz) = 221769 +TIMESTAMP = 1697496763 +SHA256 (phaag-nfsen-v.1.3.11_GH0.tar.gz) = a842531f4023913870d0fccf2d375bc335d7ecac9b2eeb7c2aff689a5c1ae962 +SIZE (phaag-nfsen-v.1.3.11_GH0.tar.gz) = 217135 diff --git a/net-mgmt/nfsen/files/patch-etc_nfsen-dist.conf b/net-mgmt/nfsen/files/patch-etc_nfsen-dist.conf index 6163b7da97bd..4749bca1e984 100644 --- a/net-mgmt/nfsen/files/patch-etc_nfsen-dist.conf +++ b/net-mgmt/nfsen/files/patch-etc_nfsen-dist.conf @@ -1,5 +1,5 @@ ---- etc/nfsen-dist.conf.ori 2008-05-29 13:33:01.000000000 -0700 -+++ etc/nfsen-dist.conf 2008-05-29 13:56:53.000000000 -0700 +--- etc/nfsen-dist.conf.orig 2023-10-06 08:13:20.000000000 -0700 ++++ etc/nfsen-dist.conf 2023-10-16 15:55:15.937534000 -0700 @@ -18,7 +18,7 @@ # @@ -34,9 +34,9 @@ -$VARDIR="${BASEDIR}/var"; +$VARDIR="${BASEDIR}/var/%%PORTNAME%%"; - # # directory for all pid files -@@ -53,15 +53,15 @@ + # $PIDDIR="$VARDIR/run"; +@@ -60,15 +60,15 @@ # # The Profiles stat directory, where all profile information # RRD DBs and png pictures of the profile are stored @@ -55,7 +55,7 @@ # # Where go all the frontend plugins -@@ -69,7 +69,7 @@ +@@ -76,7 +76,7 @@ # # nfdump tools path @@ -64,7 +64,7 @@ # # nfsend communication socket -@@ -81,7 +81,7 @@ +@@ -88,7 +88,7 @@ # This may be a different or the same uid than your web server. # Note: This user must be in group $WWWGROUP, otherwise nfcapd # is not able to write data files! diff --git a/net-mgmt/nfsen/files/patch-libexec_NfSenRRD.pm b/net-mgmt/nfsen/files/patch-libexec_NfSenRRD.pm deleted file mode 100644 index b3f9ae85dd89..000000000000 --- a/net-mgmt/nfsen/files/patch-libexec_NfSenRRD.pm +++ /dev/null @@ -1,11 +0,0 @@ ---- libexec/NfSenRRD.pm.orig 2017-01-27 22:36:32 UTC -+++ libexec/NfSenRRD.pm -@@ -73,7 +73,7 @@ sub GetRRDoffset { - if ( $rrd_version < 1.1 ) { # it's RRD 1.0.x - $RRDoffset = 77; - } -- if ( $rrd_version >= 1.2 && $rrd_version < 1.6 ) { -+ if ( $rrd_version >= 1.2 ) { - $RRDoffset = 67; - } - diff --git a/net-mgmt/nfsen/files/pkg-message.in b/net-mgmt/nfsen/files/pkg-message.in new file mode 100644 index 000000000000..babfceb0cabf --- /dev/null +++ b/net-mgmt/nfsen/files/pkg-message.in @@ -0,0 +1,17 @@ +[ +{ type: install + message: <