#
PORTNAME= nfsen
PORTVERSION= 1.3.2
PORTVERSION= 1.3.5
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION} \
http://nfsen.sourceforge.net/
${WRKSRC}/etc/nfsen-dist.conf
@${RM} ${WRKSRC}/etc/nfsen-dist.conf.*
@${REINPLACE_CMD} -e 's,%%PERL%%,${PERL},' -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/install.pl
@${RM} ${WRKSRC}/libexec/NfSenRRD.pm.orig
do-install:
@${MKDIR} ${PREFIX}/var/${PORTNAME}/profiles/live
SHA256 (nfsen-1.3.2.tar.gz) = a51dc81f83ad2273201ba0ca1ee67d598b5a67dc64ea8430ab9ff60d23b259c1
SHA256 (nfsen-1.3.5.tar.gz) = b2afd700818c2f91182d2970a1759f1c0a8c2835990726f15f695514f00b1e43
SIZE (nfsen-1.3.2.tar.gz) = 6539382
SIZE (nfsen-1.3.5.tar.gz) = 221348
--- install.pl.orig 2010-09-09 09:56:05.000000000 +0400
$FreeBSD: ports/net-mgmt/nfsen/files/patch-install.pl,v 1.3 2006/04/25 18:22:23 pav Exp $
+++ install.pl 2011-08-13 16:39:01.000000000 +0400
--- install.pl.orig
+++ install.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%%PERL%% -I %%PREFIX%%/libexec/nfsen
# Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung
@@ -81,33 +81,7 @@
@@ -85,33 +85,7 @@
# Get Perl
sub GetPerl {
} # End of GetPerl
@@ -200,11 +174,8 @@
}
my @out = `$NfConf::PREFIX/nfdump -V`;
- if ( scalar @out != 2 ) {
- die "Error getting nfdump version";
- }
chomp $out[0];
- my ($major, $minor) = $out[0] =~ /Version:\s(\d)\.(\d)\s/;
+ my ($major, $minor) = $out[0] =~ /Version:\s(\d)\.(\d)[\.\s]/;
if ( defined $major && defined $minor) {
if ( $major >= 1 && $minor >= 6 ) {
print "Found $out[0]\n";
@@ -212,7 +183,9 @@
print "out[0]\n";
die "Nfdump version not compatible with current NfSen version.\n";
+ } else {
+ die "Error getting nfdump version";
+ }
my $www_gid = getgrnam($NfConf::WWWGROUP) ||
die "WWW group '$NfConf::WWWGROUP' not found on this system\n";