--- 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 @@ -18,7 +18,7 @@ # # Required for default layout -$BASEDIR = "/data/nfsen"; +$BASEDIR = "%%PREFIX%%"; # # Where to install the NfSen binaries @@ -26,7 +26,7 @@ # # Where to install the NfSen Perl modules -$LIBEXECDIR="${BASEDIR}/libexec"; +$LIBEXECDIR="${BASEDIR}/libexec/%%PORTNAME%%"; # # Where to install the config files @@ -36,7 +36,7 @@ # NfSen html pages directory: # All php scripts will be installed here. # URL: Entry point for nfsen: http:///nfsen/nfsen.php -$HTMLDIR = "/var/www/nfsen/"; +$HTMLDIR = "%%PREFIX%%/www/%%PORTNAME%%"; # # Where to install the docs @@ -44,7 +44,7 @@ # # Var space for NfSen -$VARDIR="${BASEDIR}/var"; +$VARDIR="${BASEDIR}/var/%%PORTNAME%%"; # # directory for all pid files @@ -53,15 +53,15 @@ # # The Profiles stat directory, where all profile information # RRD DBs and png pictures of the profile are stored -$PROFILESTATDIR="${BASEDIR}/profiles-stat"; +$PROFILESTATDIR="${VARDIR}/profiles-stat"; # # The Profiles directory, where all netflow data is stored -$PROFILEDATADIR="${BASEDIR}/profiles-data"; +$PROFILEDATADIR="${VARDIR}/profiles-data"; # # Where go all the backend plugins -$BACKEND_PLUGINDIR="${BASEDIR}/plugins"; +$BACKEND_PLUGINDIR="${LIBEXECDIR}/plugins"; # # Where go all the frontend plugins @@ -69,7 +69,7 @@ # # nfdump tools path -$PREFIX = '/usr/local/bin'; +$PREFIX = '%%PREFIX%%/bin'; # # nfsend communication socket @@ -81,7 +81,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! -$USER = "netflow"; +$USER = "www"; # user and group of the web server process # All netflow processing will be done with this user