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
3 3 PortSystem 1.0 4 4 5 5 name nfsen 6 version 1.3 7 revision 2 6 version 1.3.2 8 7 categories net 9 8 maintainers markd 9 license BSD 10 10 description Web based frontend to nfdump netflow collector 11 11 long_description ${description} 12 12 homepage http://nfsen.sourceforge.net/ 13 13 platforms darwin 14 14 master_sites sourceforge \ 15 15 http://nfsen.sourceforge.net/ 16 checksums md5 1c4f057bbb3766090b40bda3ab6b81d2 16 checksums md5 3a823a38d6e7717e1563fbcd9d4d2de0 \ 17 sha1 29ba2962a519c931ffa285aeebcf2cccb262f692 \ 18 rmd160 f1e293fe41278aac258f9a30bbd47401e265a108 17 19 18 20 depends_lib path:bin/perl:perl5 \ 19 21 port:rrdtool \ … … 118 120 119 121 \n" 120 122 } 123 124 livecheck.regex {(?i)<title>stable nfsen-(.*) released.*</title>} -
files/patch-install.pl.diff
1 --- install.pl.org 200 7-11-21 01:12:04.000000000 -08002 +++ install.pl 200 8-02-09 20:52:23.000000000 -08001 --- install.pl.org 2009-06-10 03:34:16.000000000 -0500 2 +++ install.pl 2009-12-16 23:49:20.000000000 -0600 3 3 @@ -1,4 +1,4 @@ 4 4 -#!/usr/bin/perl 5 +#!__PREFIX__/bin/perl -I __PREFIX__/libexec/nfsen -I __DEST ROOT____PREFIX__/libexec/nfsen5 +#!__PREFIX__/bin/perl -I __PREFIX__/libexec/nfsen -I __DESTDIR____PREFIX__/libexec/nfsen 6 6 # 7 7 # 8 8 # Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung … … 33 33 - open CONF, ">$NfConf::HTMLDIR/conf.php" || die "Can't open conf.php for writing: $!\n"; 34 34 + CopyRecursive::dircopy("html", "__DESTDIR____PREFIX__/www/nfsen"); 35 35 + 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"; 37 37 print CONF "/* This file was automatically created by the NfSen install.pl script */\n\n"; 38 38 print CONF "\$COMMSOCKET = \"$NfConf::COMMSOCKET\";\n"; 39 39 @@ -362,11 +361,11 @@ … … 92 92 - die "Extra nfsen.conf file in etc directory found. Remove errornous file first" 93 93 -} 94 94 - 95 Log::LogInit(); 96 95 97 my $hints = NfSen::LoadHints(); 96 if ( $$$hints{'version'} == -1 ) {97 # initial NfSen install or upgrade from old version without hints