From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 7 22:50:04 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4FE6116A421 for ; Thu, 7 Jun 2007 22:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 31A4B13C44C for ; Thu, 7 Jun 2007 22:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l57Mo4dF023581 for ; Thu, 7 Jun 2007 22:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l57Mo4aD023578; Thu, 7 Jun 2007 22:50:04 GMT (envelope-from gnats) Resent-Date: Thu, 7 Jun 2007 22:50:04 GMT Resent-Message-Id: <200706072250.l57Mo4aD023578@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, janos.mohacsi@bsd.hu Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8CD8716A41F for ; Thu, 7 Jun 2007 22:40:20 +0000 (UTC) (envelope-from mohacsi@skye.ki.iif.hu) Received: from skye.ki.iif.hu (6net.iif.hu [193.225.13.161]) by mx1.freebsd.org (Postfix) with ESMTP id 7EB1613C480 for ; Thu, 7 Jun 2007 22:40:18 +0000 (UTC) (envelope-from mohacsi@skye.ki.iif.hu) Received: (from mohacsi@localhost) by skye.ki.iif.hu (8.14.1/8.14.1) id l57MeGw6095324; Fri, 8 Jun 2007 00:40:16 +0200 (CEST) (envelope-from mohacsi) Message-Id: <200706072240.l57MeGw6095324@skye.ki.iif.hu> Date: Fri, 8 Jun 2007 00:40:16 +0200 (CEST) From: janos.mohacsi@bsd.hu To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/113466: [NEW PORT] net-mgmt/nfsen-devel: Development version of web based frontend to nfdump X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 22:50:04 -0000 >Number: 113466 >Category: ports >Synopsis: [NEW PORT] net-mgmt/nfsen-devel: Development version of web based frontend to nfdump >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 07 22:50:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Charlie & >Release: FreeBSD 5.5-STABLE i386 >Organization: >Environment: System: FreeBSD skye.ki.iif.hu 5.5-STABLE FreeBSD 5.5-STABLE #3: Mon May 7 18:11:54 CEST >Description: NfSen is a graphical web based front end for the nfdump netflow tools. NfSen allows you to: * Display your netflow data: Flows, Packets and Bytes using RRD (Round Robin Database). * Easily navigate through the netflow data. * Process the netflow data within the specified time span. * Create history as well as continuous profiles. * Write your own plugins to process netflow data on a regular interval WWW: http://nfsen.sourceforge.net/ Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: It is using nfdump-devel as submitted in http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/112807 >Fix: --- nfsen-devel-20070312.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # nfsen-devel # nfsen-devel/files # nfsen-devel/files/patch-install.pl # nfsen-devel/files/patch-html_alerting.php # nfsen-devel/files/patch-etc_nfsen-dist.conf # nfsen-devel/files/nfsen.sh.in # nfsen-devel/files/patch-bin_testPlugin # nfsen-devel/files/patch-html_nfsen.php # nfsen-devel/pkg-plist # nfsen-devel/pkg-descr # nfsen-devel/distinfo # nfsen-devel/Makefile # echo c - nfsen-devel mkdir -p nfsen-devel > /dev/null 2>&1 echo c - nfsen-devel/files mkdir -p nfsen-devel/files > /dev/null 2>&1 echo x - nfsen-devel/files/patch-install.pl sed 's/^X//' >nfsen-devel/files/patch-install.pl << 'END-of-nfsen-devel/files/patch-install.pl' X X$FreeBSD: ports/net-mgmt/nfsen/files/patch-install.pl,v 1.3 2006/04/25 18:22:23 pav Exp $ X X--- install.pl.orig X+++ install.pl X@@ -1,4 +1,4 @@ X-#!/usr/bin/perl X+#!%%PERL%% -I %%PREFIX%%/libexec/nfsen X # X # X # Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung X@@ -81,33 +81,7 @@ X # Get Perl X sub GetPerl { X X- my $whichperl; X- my $ans; X- $whichperl = FindCommand("perl"); X- if ( defined $whichperl ) { X- print "Perl to use: [$whichperl] "; X- chomp($ans = ); X- if ( length $ans ) { X- $whichperl = $ans; X- } X- } else { X- print "No Perl found in your PATH. Please specify where to find perl [] "; X- chomp($whichperl = ); X- } X- X- while (1) { X- if ( -x $whichperl ) { X- my $err = system("$whichperl -e 'require 5.6.0;'") >> 8; X- last if $err == 0; X- print "Found errors while testing Perl\n"; X- } else { X- print "No executable: '$whichperl'\n"; X- } X- print "Perl to use: [] "; X- chomp($whichperl = ); X- } X- X- return $whichperl; X+ return "%%PERL%%"; X X } # End of GetPerl X END-of-nfsen-devel/files/patch-install.pl echo x - nfsen-devel/files/patch-html_alerting.php sed 's/^X//' >nfsen-devel/files/patch-html_alerting.php << 'END-of-nfsen-devel/files/patch-html_alerting.php' X X$FreeBSD$ X X--- html/alerting.php.orig X+++ html/alerting.php X@@ -449,6 +449,7 @@ X foreach ( $alert_condition_plugin as $plugin) { X $selected = $alert['condition'][0] == $plugin ? 'selected' : ''; X print " \n"; X+ $i++; X } X } X ?> END-of-nfsen-devel/files/patch-html_alerting.php echo x - nfsen-devel/files/patch-etc_nfsen-dist.conf sed 's/^X//' >nfsen-devel/files/patch-etc_nfsen-dist.conf << 'END-of-nfsen-devel/files/patch-etc_nfsen-dist.conf' X X$FreeBSD: ports/net-mgmt/nfsen/files/patch-etc_nfsen-dist.conf,v 1.3 2006/04/25 18:22:23 pav Exp $ X X--- etc/nfsen-dist.conf.orig X+++ etc/nfsen-dist.conf X@@ -26,7 +26,7 @@ X X # X # Required for default layout X-$BASEDIR = "/data/nfsen"; X+$BASEDIR = "%%PREFIX%%"; X X # X # Where to install the NfSen binaries X@@ -34,7 +34,7 @@ X X # X # Where to install the NfSen Perl modules X-$LIBEXECDIR="${BASEDIR}/libexec"; X+$LIBEXECDIR="${BASEDIR}/libexec/%%PORTNAME%%"; X X # X # Where to install the config files X@@ -44,7 +44,7 @@ X # NfSen html pages directory: X # All php scripts will be installed here. X # URL: Entry point for nfsen: http:///nfsen/nfsen.php X-$HTMLDIR = "/var/www/nfsen/"; X+$HTMLDIR = "%%PREFIX%%/www/%%PORTNAME%%/"; X X # X # Where to install the docs X@@ -52,20 +52,20 @@ X X # X # Var space for NfSen X-$VARDIR="${BASEDIR}/var"; X+$VARDIR="${BASEDIR}/var/%%PORTNAME%%"; X X # X # The Profiles stat directory, where all profile information X # RRD DBs and gif pictures of the profile are stored X-$PROFILESTATDIR="${BASEDIR}/profiles"; X+$PROFILESTATDIR="${VARDIR}/profiles"; X X # X # The Profiles directory, where all netflow data is stored X-$PROFILEDATADIR="${BASEDIR}/profiles"; X+$PROFILEDATADIR="${VARDIR}/profiles"; X X # X # Where go all the backend plugins X-$BACKEND_PLUGINDIR="${BASEDIR}/plugins"; X+$BACKEND_PLUGINDIR="${LIBEXECDIR}/plugins"; X X # X # Where go all the frontend plugins X@@ -73,7 +73,7 @@ X X # X # nfdump tools path X-$PREFIX = '/usr/local/bin'; X+$PREFIX = '%%PREFIX%%/bin'; X X # X # BASEDIR unrelated vars: X@@ -82,7 +82,7 @@ X # This may be a different or the same uid than your web server. X # Note: This user must be in group $WWWGROUP, otherwise nfcapd X # is not able to write data files! X-$USER = "netflow"; X+$USER = "www"; X X # user and group of the web server process X # All netflow processing will be done with this user X@@ -106,7 +106,7 @@ X X %sources = ( X 'upstream1' => { 'port' => '9995', 'col' => '#0000ff', 'type' => 'netflow' }, X- 'peer1' => { 'port' => '9996', 'col' => '#ff0000' }, X+# 'peer1' => { 'port' => '9996', 'col' => '#ff0000' }, X ); X X # END-of-nfsen-devel/files/patch-etc_nfsen-dist.conf echo x - nfsen-devel/files/nfsen.sh.in sed 's/^X//' >nfsen-devel/files/nfsen.sh.in << 'END-of-nfsen-devel/files/nfsen.sh.in' X#! /bin/sh X# X XPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin XDAEMON=%%PREFIX%%/bin/nfsen.rc XNAME=nfsen X Xtest -x $DAEMON || exit 0 X Xset -e X Xcase "$1" in X start) X echo -n "Starting $NAME" X $DAEMON start X echo "." X ;; X stop) X echo -n "Stopping $NAME " X $DAEMON stop X echo "." X ;; X restart|force-reload) X # X # If the "reload" option is implemented, move the "force-reload" X # option to the "reload" entry above. If not, "force-reload" is X # just the same as "restart". X # X echo -n "Restarting $NAME" X $DAEMON stop X sleep 1 X $DAEMON start X echo "." X ;; X *) X N=/tmp/nfsen-1.2.4.20060325/etc/rc.d/${NAME}.sh X # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 X echo "Usage: $N {start|stop|restart|force-reload}" >&2 X exit 1 X ;; Xesac X Xexit 0 X#! /bin/sh X# X XPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin XDAEMON=/usr/local/bin/nfsen.rc XNAME=nfsen X Xtest -x $DAEMON || exit 0 X Xset -e X Xcase "$1" in X start) X echo -n "Starting $NAME" X $DAEMON start X echo "." X ;; X stop) X echo -n "Stopping $NAME " X $DAEMON stop X echo "." X ;; X restart|force-reload) X # X # If the "reload" option is implemented, move the "force-reload" X # option to the "reload" entry above. If not, "force-reload" is X # just the same as "restart". X # X echo -n "Restarting $NAME" X $DAEMON stop X sleep 1 X $DAEMON start X echo "." X ;; X *) X N=/tmp/nfsen-1.2.4.20060325/etc/rc.d/${NAME}.sh X # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 X echo "Usage: $N {start|stop|restart|force-reload}" >&2 X exit 1 X ;; Xesac X Xexit 0 END-of-nfsen-devel/files/nfsen.sh.in echo x - nfsen-devel/files/patch-bin_testPlugin sed 's/^X//' >nfsen-devel/files/patch-bin_testPlugin << 'END-of-nfsen-devel/files/patch-bin_testPlugin' X X$FreeBSD$ X X--- bin/testPlugin.orig X+++ bin/testPlugin X@@ -50,6 +50,7 @@ X X use NfConf; X use NfSen; X+use NfProfile; X use Log; X X my $VERSION = '$Id: testPlugin 60 2007-01-09 12:26:47Z peter $'; X@@ -164,7 +165,10 @@ X print "Run plugin '$plugin' with profile '$profile' at '$timeslot'\n"; X my $sub = "${plugin}::run"; X no strict 'refs'; X-&$sub($profile, $timeslot); X+&$sub({ X+ profile => $profile, X+ timeslot => $timeslot, X+}); X use strict 'refs'; X print "Plugin run successfully, at least as far as I can tell ...\n" ; X END-of-nfsen-devel/files/patch-bin_testPlugin echo x - nfsen-devel/files/patch-html_nfsen.php sed 's/^X//' >nfsen-devel/files/patch-html_nfsen.php << 'END-of-nfsen-devel/files/patch-html_nfsen.php' X X$FreeBSD$ X X--- html/nfsen.php.orig X+++ html/nfsen.php X@@ -489,7 +489,8 @@ X if ( count($BookmarkVars) == count($_vars) ) { X for ( $i=0; $infsen-devel/pkg-plist << 'END-of-nfsen-devel/pkg-plist' Xbin/nfsen Xbin/nfsen.rc Xbin/nfsend Xbin/RebuildHierarchy.pl Xbin/testPlugin Xbin/nfcomm.pl X@unexec if cmp -s %D/etc/nfsen.conf %D/etc/nfsen-dist.conf; then rm -f %D/etc/nfsen.conf; fi X@exec [ -f %D/etc/nfsen.conf ] || cp %D/etc/nfsen-dist.conf %D/etc/nfsen.conf Xetc/nfsen-dist.conf Xlibexec/%%PORTNAME%%/CopyRecursive.pm Xlibexec/%%PORTNAME%%/Log.pm Xlibexec/%%PORTNAME%%/Lookup.pm Xlibexec/%%PORTNAME%%/NfAlert.pm Xlibexec/%%PORTNAME%%/NfConf.pm Xlibexec/%%PORTNAME%%/NfProfile.pm Xlibexec/%%PORTNAME%%/NfSen.pm Xlibexec/%%PORTNAME%%/NfSenRC.pm Xlibexec/%%PORTNAME%%/NfSenRRD.pm Xlibexec/%%PORTNAME%%/Nfcomm.pm Xlibexec/%%PORTNAME%%/Nfsources.pm Xlibexec/%%PORTNAME%%/Notification.pm Xlibexec/%%PORTNAME%%/RRDconvertv1.pm Xlibexec/%%PORTNAME%%/plugins/demoplugin.pm Xwww/%%PORTNAME%%/conf.php Xwww/%%PORTNAME%%/EmptyGraph.gif Xwww/%%PORTNAME%%/ErrorGraph.gif Xwww/%%PORTNAME%%/alerting.php Xwww/%%PORTNAME%%/colour_palette.html Xwww/%%PORTNAME%%/colour_palette_custom.php Xwww/%%PORTNAME%%/colour_picker.html Xwww/%%PORTNAME%%/css-admin.html Xwww/%%PORTNAME%%/css.html Xwww/%%PORTNAME%%/details.php Xwww/%%PORTNAME%%/info.php Xwww/%%PORTNAME%%/invisible.gif Xwww/%%PORTNAME%%/lookup.php Xwww/%%PORTNAME%%/navigator.php Xwww/%%PORTNAME%%/nfsen.php Xwww/%%PORTNAME%%/nfsenutil.php Xwww/%%PORTNAME%%/noscript.html Xwww/%%PORTNAME%%/overview.php Xwww/%%PORTNAME%%/pic.php Xwww/%%PORTNAME%%/process.php Xwww/%%PORTNAME%%/profileadmin.php Xwww/%%PORTNAME%%/rrdgraph.php Xwww/%%PORTNAME%%/css/alerting.css Xwww/%%PORTNAME%%/css/detail.css Xwww/%%PORTNAME%%/css/lookup.css Xwww/%%PORTNAME%%/css/nfsen.css Xwww/%%PORTNAME%%/css/profileadmin.css Xwww/%%PORTNAME%%/icons/arrow.blue.down.png Xwww/%%PORTNAME%%/icons/arrow.blue.right.png Xwww/%%PORTNAME%%/icons/arrow.yellow.down.png Xwww/%%PORTNAME%%/icons/arrow.yellow.right.png Xwww/%%PORTNAME%%/icons/close.gif Xwww/%%PORTNAME%%/icons/cursor-line.gif Xwww/%%PORTNAME%%/icons/cursor-start.gif Xwww/%%PORTNAME%%/icons/cursor-stop.gif Xwww/%%PORTNAME%%/icons/edit.png Xwww/%%PORTNAME%%/icons/help.png Xwww/%%PORTNAME%%/icons/invisible.gif Xwww/%%PORTNAME%%/icons/minus.gif Xwww/%%PORTNAME%%/icons/ok.png Xwww/%%PORTNAME%%/icons/plus.gif Xwww/%%PORTNAME%%/icons/plus.png Xwww/%%PORTNAME%%/icons/progress.png Xwww/%%PORTNAME%%/icons/save.png Xwww/%%PORTNAME%%/icons/shade.gif Xwww/%%PORTNAME%%/icons/shadeactive.gif Xwww/%%PORTNAME%%/icons/space.png Xwww/%%PORTNAME%%/icons/spyglas.png Xwww/%%PORTNAME%%/icons/trash.png Xwww/%%PORTNAME%%/js/ColorPicker2.js Xwww/%%PORTNAME%%/js/alerting.js Xwww/%%PORTNAME%%/js/detail.js Xwww/%%PORTNAME%%/js/global.js Xwww/%%PORTNAME%%/js/menu.js Xwww/%%PORTNAME%%/js/profileadmin.js Xwww/%%PORTNAME%%/plugins/demoplugin.php Xwww/%%PORTNAME%%/doc/BSD-license.html Xwww/%%PORTNAME%%/doc/Bookmark.png Xwww/%%PORTNAME%%/doc/BuildingProfile.png Xwww/%%PORTNAME%%/doc/ConfirmDelete.png Xwww/%%PORTNAME%%/doc/DefaultFilter.png Xwww/%%PORTNAME%%/doc/DeleteProfile.png Xwww/%%PORTNAME%%/doc/DisabledSources.png Xwww/%%PORTNAME%%/doc/InputEnd.png Xwww/%%PORTNAME%%/doc/Navigating.png Xwww/%%PORTNAME%%/doc/NewProfile.png Xwww/%%PORTNAME%%/doc/OutOfData.png Xwww/%%PORTNAME%%/doc/ProcessingControls.png Xwww/%%PORTNAME%%/doc/ProcessingOutput.png Xwww/%%PORTNAME%%/doc/ProfileCreated.png Xwww/%%PORTNAME%%/doc/ResetWindow.png Xwww/%%PORTNAME%%/doc/SelectLeft.png Xwww/%%PORTNAME%%/doc/SelectRight.png Xwww/%%PORTNAME%%/doc/StatSummary.png Xwww/%%PORTNAME%%/doc/TimeWindow.png Xwww/%%PORTNAME%%/doc/WinScale.png Xwww/%%PORTNAME%%/doc/bytes.png Xwww/%%PORTNAME%%/doc/cursor_control.png Xwww/%%PORTNAME%%/doc/details-graphs.png Xwww/%%PORTNAME%%/doc/details-processing.png Xwww/%%PORTNAME%%/doc/dirstruct.png Xwww/%%PORTNAME%%/doc/edit.png Xwww/%%PORTNAME%%/doc/exiisting.png Xwww/%%PORTNAME%%/doc/flows.png Xwww/%%PORTNAME%%/doc/index.html Xwww/%%PORTNAME%%/doc/linegraph.png Xwww/%%PORTNAME%%/doc/nfsen-options.png Xwww/%%PORTNAME%%/doc/overview.png Xwww/%%PORTNAME%%/doc/packets.png Xwww/%%PORTNAME%%/doc/plugins.png Xwww/%%PORTNAME%%/doc/processing-1.png Xwww/%%PORTNAME%%/doc/selectprofile.png Xwww/%%PORTNAME%%/doc/stat.png Xwww/%%PORTNAME%%/doc/views-2.png Xwww/%%PORTNAME%%/doc/views.png X@dirrm www/%%PORTNAME%%/css X@dirrm www/%%PORTNAME%%/plugins X@dirrm www/%%PORTNAME%%/icons X@dirrm www/%%PORTNAME%%/js X@dirrm www/%%PORTNAME%%/doc X@dirrm www/%%PORTNAME%% X@exec mkdir -p %D/var/%%PORTNAME%%/profiles/live/upstream1 Xvar/%%PORTNAME%%/profiles/live/upstream1.rrd Xvar/%%PORTNAME%%/profiles/live/profile.dat X@exec mkdir -p %D/var/%%PORTNAME%%/run X@exec mkdir -p %D/var/%%PORTNAME%%/filters X@dirrmtry var/%%PORTNAME%%/run X@dirrm var/%%PORTNAME%%/filters X@dirrmtry var/%%PORTNAME%%/profiles/live/upstream1 X@dirrmtry var/%%PORTNAME%%/profiles/live X@dirrmtry var/%%PORTNAME%%/profiles X@dirrmtry var/%%PORTNAME%% X@dirrm libexec/%%PORTNAME%%/plugins X@dirrm libexec/%%PORTNAME%% END-of-nfsen-devel/pkg-plist echo x - nfsen-devel/pkg-descr sed 's/^X//' >nfsen-devel/pkg-descr << 'END-of-nfsen-devel/pkg-descr' XNfSen is a graphical web based front end for the nfdump netflow tools. X XNfSen allows you to: X X * Display your netflow data: Flows, Packets and Bytes using RRD X (Round Robin Database). X * Easily navigate through the netflow data. X * Process the netflow data within the specified time span. X * Create history as well as continuous profiles. X * Write your own plugins to process netflow data on a regular interval X XWWW: http://nfsen.sourceforge.net/ END-of-nfsen-devel/pkg-descr echo x - nfsen-devel/distinfo sed 's/^X//' >nfsen-devel/distinfo << 'END-of-nfsen-devel/distinfo' XMD5 (nfsen-snapshot-20070312.tar.gz) = 2fc895f020b88f94f1edc9b1d7ccd8b4 XSHA256 (nfsen-snapshot-20070312.tar.gz) = 85aef7c40c1f1e5c4eee97137bb45d02f4c9abc812a5defd0ba7596710586dfd XSIZE (nfsen-snapshot-20070312.tar.gz) = 3478630 END-of-nfsen-devel/distinfo echo x - nfsen-devel/Makefile sed 's/^X//' >nfsen-devel/Makefile << 'END-of-nfsen-devel/Makefile' X# New ports collection makefile for: nfsen-devel X# Date created: 21 May 2007 X# Whom: janos.mohacsi@bsd.hu X# X# $FreeBSD$ X# X XPORTNAME= nfsen XPORTVERSION= 20070312 XCATEGORIES= net-mgmt XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ X http://nfsen.sourceforge.net/ XMASTER_SITE_SUBDIR= nfsen XPKGNAMESUFFIX= -devel XDISTNAME= nfsen-snapshot-${PORTVERSION} X XMAINTAINER= janos.mohacsi@bsd.hu XCOMMENT= Development version of web based frontend to nfdump X XRUN_DEPENDS= nfdump:${PORTSDIR}/net-mgmt/nfdump \ X ${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools X XCONFLICTS= nfsen-[0-9]* X XUSE_ICONV= yes XUSE_PERL5= yes XUSE_PHP= session pcre sockets XNO_BUILD= yes XPLIST_SUB+= PORTNAME=${PORTNAME} XUSE_RC_SUBR= nfsen.sh X X.include X X.if ${PERL_LEVEL} < 500600 XIGNORE= requires at least perl 5.6.0 X.endif X Xpre-everything:: X @${ECHO_MSG} "" X @${ECHO_MSG} "*****************************************************" X @${ECHO_MSG} "Before upgrading you may backup the original profile " X @${ECHO_MSG} "stat data:" X @${ECHO_MSG} "cd ${WRKSRC}/helpers" X @${ECHO_MSG} "./mk_backup.sh /path/to/your/profilestatdir /path/to/backupdir" X @${ECHO_MSG} "*****************************************************" X @${ECHO_MSG} "" X Xpost-patch: X @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' -e 's,%%PORTNAME%%,${PORTNAME},' \ X ${WRKSRC}/etc/nfsen-dist.conf X @${RM} ${WRKSRC}/etc/nfsen-dist.conf.* X @${REINPLACE_CMD} -e 's,%%PERL%%,${PERL},' -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/install.pl X Xdo-install: X @${MKDIR} ${PREFIX}/var/${PORTNAME}/profiles/live X @${MKDIR} ${PREFIX}/libexec/${PORTNAME} X ${INSTALL_DATA} ${WRKSRC}/installer-items/CopyRecursive.pm ${PREFIX}/libexec/${PORTNAME}/ X ${INSTALL_DATA} ${WRKSRC}/installer-items/RRDconvertv1.pm ${PREFIX}/libexec/${PORTNAME}/ X @ if [ -f ${PREFIX}/etc/nfsen.conf ] ; then \ X ${ECHO_MSG} "installing with existing nfsen.conf"; \ X cd ${WRKSRC} ;${PERL} ${WRKSRC}/install.pl ${PREFIX}/etc/nfsen.conf; \ X else \ X ${ECHO_MSG} "installing with sample nfsen.conf"; \ X cd ${WRKSRC} ;${PERL} ${WRKSRC}/install.pl ${WRKSRC}/etc/nfsen-dist.conf; \ X fi X @${ECHO_MSG} "Configure your ${LOCALBASE}/etc/nfsen.conf to have necessary sources "; X @${ECHO_MSG} "Then run 'nfsen reconfig' to correctly setup source, RRD, and profile files"; X X.include END-of-nfsen-devel/Makefile exit --- nfsen-devel-20070312.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: