Package: boinc / 7.14.2+dfsg-3

stripchart_debian.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Author: Steffen Moeller <moeller@debian.org>
Description: Adjusting paths.
Disclaimer: This is mostly dead code in upstream.
--- a/stripchart/stripchart.cnf
+++ b/stripchart/stripchart.cnf
@@ -4,7 +4,7 @@
 $majorversion = 2; $minorversion = 1;
 
 # Directory where gnuplot is
-$gnuplot = "/usr/local/bin"
+$gnuplot = "/usr/bin"
  
 # Temporary files
 $suffix = rand(10000);
@@ -38,7 +38,7 @@
 $tzdiff = timegm($sec,$min,$hour,$mday,$mon,$year) - timelocal($sec,$min,$hour,$mday,$mon,$year);
 
 # Where is the stripchart executable located?
-$stripchartexe = "./stripchart"
+$stripchartexe = "/usr/lib/cgi-bin/stripchart"
  
 # What is the default number of stripcharts?
 $defaultnumcharts = 1;
@@ -48,11 +48,11 @@
 
 # Where is the list of datafiles for stripchart.cgi?
 # Note: there is a sample copy in the samples directory: 
-$datafilelist = "datafiles";
+$datafilelist = "/usr/share/stripchart/datafiles";
  
-# Where is the list of user-definied cgi queries?
+# Where is the list of user-defined cgi queries?
 # Note: this file gets created by the cgi - must put it somewhere that the cgi user can write to 
-$queryfilelist = "querylist";
+$queryfilelist = "/tmp/querylist";
 
 # What time is it right now?
 $rightnow = time;
--- a/stripchart/stripchart
+++ b/stripchart/stripchart
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
 
 # The contents of this file are subject to the Mozilla Public License
 # Version 1.0 (the "License"); you may not use this file except in
@@ -47,7 +47,7 @@
 ################
 
 # Where is the .cnf file?
-$cnfpath = "./stripchart.cnf";
+$cnfpath = "/etc/stripchart.cnf";
 
 # Read it in:
 open (CNFFILE,$cnfpath) or die "cannot open configuration file: $cnfpath\nmake sure this variable is set properly";
--- a/stripchart/stripchart.cgi
+++ b/stripchart/stripchart.cgi
@@ -1,4 +1,4 @@
-#! /usr/bin/env perl
+#!/usr/bin/perl
 
 # The contents of this file are subject to the Mozilla Public License
 # Version 1.0 (the "License"); you may not use this file except in
@@ -44,7 +44,7 @@
 ################
  
 # Where is the .cnf file? 
-$cnfpath = "./stripchart.cnf";
+$cnfpath = "/etc/stripchart.cnf";
 
 # Read it in: 
 open (CNFFILE,$cnfpath) or die "cannot open configuration file: $cnfpath\nmake sure this variable is set properly";