[129021] trunk/dports/net/nfsen/Portfile

devans at macports.org devans at macports.org
Wed Dec 3 08:29:56 PST 2014


Revision: 129021
          https://trac.macports.org/changeset/129021
Author:   devans at macports.org
Date:     2014-12-03 08:29:56 -0800 (Wed, 03 Dec 2014)
Log Message:
-----------
nfsen: update to version 1.3.6, switch from perl5.12 to perl5.16, dependencies, use notes instead of post-activate ui_msg, minor white space.

Modified Paths:
--------------
    trunk/dports/net/nfsen/Portfile

Modified: trunk/dports/net/nfsen/Portfile
===================================================================
--- trunk/dports/net/nfsen/Portfile	2014-12-03 16:16:35 UTC (rev 129020)
+++ trunk/dports/net/nfsen/Portfile	2014-12-03 16:29:56 UTC (rev 129021)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                nfsen
-version             1.3
-revision            3
+version             1.3.6
 categories          net
 maintainers         nomaintainer
 license             BSD
@@ -16,16 +15,19 @@
 platforms           darwin
 master_sites        sourceforge:project/nfsen/stable/nfsen-${version}
 
-checksums           md5 1c4f057bbb3766090b40bda3ab6b81d2
+checksums           rmd160  4399b0fe1807b9aeea1c4bcff094e2c8a0235e80 \
+                    sha256  c5809505544ea2cf5bac69a9829b7d7d78649b67a772519aa8a191b1a25fd918
 
-depends_lib         port:perl5.12 \
+depends_lib         port:perl5.16 \
                     port:rrdtool \
-                    port:p5.12-mailtools \
-                    port:p5.12-sys-syslog \
+                    port:p5.16-mailtools \
+                    port:p5.16-socket6 \
+                    port:p5.16-sys-syslog \
                     port:nfdump
 
 patchfiles          patch-install.pl.diff \
                     patch-etc-nfsen-dist.conf.diff \
+                    patch-libexec-NfProfile.pm.diff \
                     patch-libexec-NfSenRC.pm.diff \
                     patch-bin-nfsend.diff \
                     patch-bin-nfsen.diff \
@@ -41,9 +43,9 @@
 post-patch {
 # Read the nfsen.conf comments for details on the use of these variables
 
-set netflowuser     "www"
-set wwwuser         "www"
-set wwwgroup        "www"
+    set netflowuser "www"
+    set wwwuser     "www"
+    set wwwgroup    "www"
 
     reinplace "s|__NETFLOWUSER__|${netflowuser}|g" \
         ${worksrcpath}/etc/nfsen-dist.conf \
@@ -58,7 +60,7 @@
         ${worksrcpath}/install.pl
     eval reinplace "s|__PREFIX__|${prefix}|g" \
         [glob ${worksrcpath}/bin/*]
-    eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|g" \
+    eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" \
         [glob ${worksrcpath}/installer-items/*.pm]
 }
 
@@ -70,7 +72,7 @@
 # Yuch!  I've asked the developers to add DESTDIR support in a future version.
 
     reinplace "s|__PREFIX__|${prefix}|g" \
-    ${worksrcpath}/etc/nfsen-dist.conf
+        ${worksrcpath}/etc/nfsen-dist.conf
 
 # Backup the .conf file
     copy ${worksrcpath}/etc/nfsen-dist.conf \
@@ -79,7 +81,7 @@
 # Set profiles-stat and profiles-data to destroot until install is done
     reinplace "s|\${VARDIR}/profiles|${destroot}${prefix}/var/nfsen/profiles|g" \
         ${worksrcpath}/etc/nfsen-dist.conf
-    system -W ${worksrcpath} "${prefix}/bin/perl5.12 ./install.pl ./etc/nfsen-dist.conf"
+    system -W ${worksrcpath} "${prefix}/bin/perl5.16 ./install.pl ./etc/nfsen-dist.conf"
 
 # Replace the original .conf file
     file rename -force ${destroot}${prefix}/etc/nfsen-dist.conf.org \
@@ -92,9 +94,9 @@
         ${destroot}${prefix}/var/nfsen/fmt
 }
 
-post-activate {
 
-ui_msg "\n **** To complete the nfsen installation ****
+notes "
+**** To complete the nfsen installation ****
 
 To complete the nfsen installation follow the steps below.  Read the documentation
 at http://nfsen.sourceforge.net for operational instructions.
@@ -118,7 +120,6 @@
 
 5) Check the nfsen web interface at http://localhost/nfsen/nfsen.php
 
-\n"
-}
+"
 
 livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141203/03c0d003/attachment.html>


More information about the macports-changes mailing list