[34150] trunk/dports/net/nfsen
markd at macports.org
markd at macports.org
Fri Feb 15 15:04:14 PST 2008
Revision: 34150
http://trac.macosforge.org/projects/macports/changeset/34150
Author: markd at macports.org
Date: 2008-02-15 15:04:13 -0800 (Fri, 15 Feb 2008)
Log Message:
-----------
Mods to allow easy port customization.
Modified Paths:
--------------
trunk/dports/net/nfsen/Portfile
trunk/dports/net/nfsen/files/patch-etc-nfsen-dist.conf.diff
Modified: trunk/dports/net/nfsen/Portfile
===================================================================
--- trunk/dports/net/nfsen/Portfile 2008-02-15 22:51:27 UTC (rev 34149)
+++ trunk/dports/net/nfsen/Portfile 2008-02-15 23:04:13 UTC (rev 34150)
@@ -4,6 +4,7 @@
name nfsen
version 1.3
+revision 2
categories net
maintainers markd
description Web based frontend to nfdump netflow collector
@@ -35,18 +36,26 @@
startupitem.executable ${prefix}/bin/nfsen
post-patch {
+# Read the nfsen.conf comments for details on the use of these variables
set netflowuser "www"
+set wwwuser "www"
+set wwwgroup "www"
+ reinplace "s|__NETFLOWUSER__|${netflowuser}|g" \
+ ${worksrcpath}/etc/nfsen-dist.conf \
+ ${worksrcpath}/libexec/NfSenRC.pm
+ reinplace "s|__WWWUSER__|${wwwuser}|g" \
+ ${worksrcpath}/etc/nfsen-dist.conf
+ reinplace "s|__WWWGROUP__|${wwwgroup}|g" \
+ ${worksrcpath}/etc/nfsen-dist.conf
+
reinplace "s|__PREFIX__|${prefix}|g" \
${worksrcpath}/install.pl
- reinplace "s|__DESTDIR__|${destroot}|g" \
+ reinplace "s|__DESTDIR__|${destroot}|g" \
${worksrcpath}/install.pl
eval reinplace "s|__PREFIX__|${prefix}|g" \
[glob ${worksrcpath}/bin/*]
- reinplace "s|__NETFLOWUSER__|${netflowuser}|g" \
- ${worksrcpath}/etc/nfsen-dist.conf \
- ${worksrcpath}/libexec/NfSenRC.pm
eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
[glob ${worksrcpath}/installer-items/*.pm]
}
@@ -105,7 +114,7 @@
4) Start nfsen with the startup script after verifying configuration
sudo launchctl load -w /Library/LaunchDaemons/org.macports.nfsen.plist
-7) Check the nfsen web interface at http://localhost/nfsen/nfsen.php
+5) Check the nfsen web interface at http://localhost/nfsen/nfsen.php
\n"
}
Modified: trunk/dports/net/nfsen/files/patch-etc-nfsen-dist.conf.diff
===================================================================
--- trunk/dports/net/nfsen/files/patch-etc-nfsen-dist.conf.diff 2008-02-15 22:51:27 UTC (rev 34149)
+++ trunk/dports/net/nfsen/files/patch-etc-nfsen-dist.conf.diff 2008-02-15 23:04:13 UTC (rev 34150)
@@ -1,5 +1,5 @@
--- etc/nfsen-dist.conf.org 2007-11-20 04:27:39.000000000 -0800
-+++ etc/nfsen-dist.conf 2008-02-07 22:07:02.000000000 -0800
++++ etc/nfsen-dist.conf 2008-02-12 14:50:04.000000000 -0800
@@ -18,7 +18,7 @@
#
@@ -64,7 +64,7 @@
#
# nfsend communication socket
-@@ -81,7 +81,7 @@
+@@ -81,12 +81,12 @@
# 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!
@@ -73,6 +73,13 @@
# user and group of the web server process
# All netflow processing will be done with this user
+-$WWWUSER = "www";
+-$WWWGROUP = "www";
++$WWWUSER = "__WWWUSER__";
++$WWWGROUP = "__WWWGROUP__";
+
+ # Receive buffer size for nfcapd - see man page nfcapd(1)
+ $BUFFLEN = 200000;
@@ -136,7 +136,7 @@
%sources = (
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080215/66d1227e/attachment-0001.html
More information about the macports-changes
mailing list