Revision b279eb9a
Added by Hamish Coleman over 15 years ago
- ID b279eb9a1f349e01df121d7e6419cc1ce8790fc5
Makefile | ||
---|---|---|
|
||
install: install_treeview
|
||
install mrtg.cgi $(DESTDIR)$(WWW)/
|
||
install indexmrtg.cgi $(DESTDIR)$(WWW)/
|
||
|
||
test: install_treeview
|
||
install mrtg.cgi $(DESTDIR)$(WWW)/mrtg1.cgi
|
indexmrtg.cgi | ||
---|---|---|
# Generate a machine readable index from mrtg.cfg inputs
|
||
#
|
||
|
||
our $VERSION=0.5;
|
||
our $VERSION=0.6;
|
||
|
||
use strict;
|
||
use warnings;
|
||
... | ... | |
$refresh = $interval if $refresh <= $guardband;
|
||
my $expires = gmtime (time + $interval * 2 + $guardband);
|
||
|
||
$db->{global}{creator}{name} = "indexmrtg";
|
||
$db->{global}{creator}{version} = "$VERSION";
|
||
|
||
$db->{global}{graph}{expires} = "$expires GMT";
|
||
$db->{global}{graph}{refresh} = $refresh;
|
||
$db->{global}{sequence} = @{$db->{hide}{sequence}};
|
Also available in: Unified diff
Identify ourselves in the metadata and add to installation target