ports/mail/ovs/files/patch-ovs.cgi
Rodrigo Osorio f599399548 mail/ovs: update to 1.06
Changelog: https://github.com/xbeaudouin/openvisp/blob/master/stats/trunk/CHANGES

Update WWW and UPSTREAM since both websites disapear,
we now point to the original author github repo, when
latest version of the code source was archived 12 years
ago.

Also perform some reformat of the port to make porlint,
portclippy and portfmt happy.
2024-11-02 22:44:16 +01:00

25 lines
1 KiB
Perl

--- ovs.cgi.orig Mon Sep 3 18:19:22 2007 UTC
+++ ovs.cgi
dd Fri Sep 7 20:28:39 2007
@@ -25,9 +25,9 @@
my $points_per_sample = 3;
my $ypoints = 160;
my $ypoints_err = 260;
-my $rrd = 'ovs.rrd'; # path to where the RRD database is
-my $rrd_virus = 'ovs_virus.rrd'; # path to where the Virus RRD database is
-my $rrd_pop = 'ovs_pop.rrd'; # path to where the Virus RRD database is
+my $rrd = '%%DATADIR%%/ovs.rrd'; # path to where the RRD database is
+my $rrd_virus = '%%DATADIR%%/ovs_virus.rrd'; # path to where the Virus RRD database is
+my $rrd_pop = '%%DATADIR%%/ovs_pop.rrd'; # path to where the Virus RRD database is
my $tmp_dir = '/tmp/ovs'; # temporary directory where to store the images
my @graphs = (
@@ -310,7 +310,7 @@
<title>Mail statistics for $host</title>
<meta http-equiv="Refresh" content="300" />
<meta http-equiv="Pragma" content="no-cache" />
-<link rel="stylesheet" href="ovs.css" type="text/css" />
+<link rel="stylesheet" href="/ovs/ovs.css" type="text/css" />
</head>
<body>
HEADER