Ticket #22923: nfsen-1.3.2.diff

File nfsen-1.3.2.diff, 2.5 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    33PortSystem      1.0
    44
    55name            nfsen
    6 version         1.3
    7 revision        2
     6version         1.3.2
    87categories      net
    98maintainers     markd
     9license         BSD
    1010description     Web based frontend to nfdump netflow collector
    1111long_description ${description}
    1212homepage        http://nfsen.sourceforge.net/
    1313platforms       darwin
    1414master_sites    sourceforge \
    1515                http://nfsen.sourceforge.net/
    16 checksums       md5 1c4f057bbb3766090b40bda3ab6b81d2
     16checksums       md5     3a823a38d6e7717e1563fbcd9d4d2de0 \
     17                sha1    29ba2962a519c931ffa285aeebcf2cccb262f692 \
     18                rmd160  f1e293fe41278aac258f9a30bbd47401e265a108
    1719
    1820depends_lib     path:bin/perl:perl5 \
    1921                port:rrdtool \
     
    118120
    119121\n"
    120122}
     123
     124livecheck.regex {(?i)<title>stable nfsen-(.*) released.*</title>}
  • files/patch-install.pl.diff

     
    1 --- install.pl.org      2007-11-21 01:12:04.000000000 -0800
    2 +++ install.pl  2008-02-09 20:52:23.000000000 -0800
     1--- install.pl.org      2009-06-10 03:34:16.000000000 -0500
     2+++ install.pl  2009-12-16 23:49:20.000000000 -0600
    33@@ -1,4 +1,4 @@
    44-#!/usr/bin/perl
    5 +#!__PREFIX__/bin/perl -I __PREFIX__/libexec/nfsen -I __DESTROOT____PREFIX__/libexec/nfsen
     5+#!__PREFIX__/bin/perl -I __PREFIX__/libexec/nfsen -I __DESTDIR____PREFIX__/libexec/nfsen
    66 #
    77 #
    88 #  Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung
     
    3333-       open CONF, ">$NfConf::HTMLDIR/conf.php" || die "Can't open conf.php for writing: $!\n";
    3434+       CopyRecursive::dircopy("html", "__DESTDIR____PREFIX__/www/nfsen");
    3535+       open CONF, ">__DESTDIR____PREFIX__/www/nfsen/conf.php" || die "Can't open conf.php for writing: $!\n";
    36         print CONF "<?\n";
     36        print CONF "<?php\n";
    3737        print CONF "/* This file was automatically created by the NfSen install.pl script */\n\n";
    3838        print CONF "\$COMMSOCKET = \"$NfConf::COMMSOCKET\";\n";
    3939@@ -362,11 +361,11 @@
     
    9292-       die "Extra nfsen.conf file in etc directory found. Remove errornous file first"
    9393-}
    9494-
     95 Log::LogInit();
     96 
    9597 my $hints = NfSen::LoadHints();
    96  if ( $$$hints{'version'} == -1 ) {
    97         # initial NfSen install or upgrade from old version without hints