Группа :: Сети/WWW
Пакет: lightsquid
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: lightsquid-cgi.patch
diff -uNr lightsquid.orig/bigfiles.cgi lightsquid/bigfiles.cgi
--- lightsquid.orig/bigfiles.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/bigfiles.cgi 2006-12-04 12:58:18 +1200
@@ -16,8 +16,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;
diff -uNr lightsquid.orig/check-setup.pl lightsquid/check-setup.pl
--- lightsquid.orig/check-setup.pl 2006-08-02 22:16:18 +1300
+++ lightsquid/check-setup.pl 2006-12-04 13:01:50 +1200
@@ -5,8 +5,8 @@
die "perl module File::Basename not found, please install !\n" if (!eval { require File::Basename });
use File::Basename;push (@INC,(fileparse($0))[1]);
-die "can't access to lightsquid.cfg !!!\n" if (!eval { require "lightsquid.cfg" });
-die "can't access to common.pl !!!\n" if (!eval { require "common.pl" });
+die "can't access to lightsquid.cfg !!!\n" if (!eval { require "/etc/lightsquid/lightsquid.cfg" });
+die "can't access to common.pl !!!\n" if (!eval { require "/usr/share/lightsquid/common.pl" });
die "no: CGI.PM found, please install\n" if (!eval { require CGI });
diff -uNr lightsquid.orig/day_detail.cgi lightsquid/day_detail.cgi
--- lightsquid.orig/day_detail.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/day_detail.cgi 2006-12-04 13:07:05 +1200
@@ -15,8 +15,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;
diff -uNr lightsquid.orig/fixreport.pl lightsquid/fixreport.pl
--- lightsquid.orig/fixreport.pl 2006-12-04 09:48:45 +1200
+++ lightsquid/fixreport.pl 2006-12-04 13:07:52 +1200
@@ -1,7 +1,7 @@
#/bin/perl
$|=1;
-require "lightsquid.cfg";
+require "/etc/lightsquid/lightsquid.cfg";
sub FixDay($) {
my $path=shift;
diff -uNr lightsquid.orig/get.cgi lightsquid/get.cgi
--- lightsquid.orig/get.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/get.cgi 2006-12-04 13:09:12 +1200
@@ -14,8 +14,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;
diff -uNr lightsquid.orig/graph.cgi lightsquid/graph.cgi
--- lightsquid.orig/graph.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/graph.cgi 2006-12-04 13:12:04 +1200
@@ -16,8 +16,8 @@
use CGI;
use CGI::Carp qw (fatalsToBrowser);
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co = new CGI;
@@ -329,4 +329,4 @@
2006-06-28 ADD : &tpl= support
2006-09-05 ADD : warning and recomended max value
2006-09-13 ADD : error to browser
-2006-11-23 ADD : FIX recomendation warning
\ В конце файла нет новой строки
+2006-11-23 ADD : FIX recomendation warning
diff -uNr lightsquid.orig/group_detail.cgi lightsquid/group_detail.cgi
--- lightsquid.orig/group_detail.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/group_detail.cgi 2006-12-04 13:13:42 +1200
@@ -16,8 +16,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$NotInGroupID="00";
$NotInGroupName="##MSG_NOT_IN_GROUP##";
diff -uNr lightsquid.orig/index.cgi lightsquid/index.cgi
--- lightsquid.orig/index.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/index.cgi 2006-12-04 13:14:56 +1200
@@ -14,8 +14,8 @@
use File::Basename;
push (@INC,(fileparse($0))[1]);
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
use CGI;
use CGI::Carp qw (fatalsToBrowser);
diff -uNr lightsquid.orig/lightparser.pl lightsquid/lightparser.pl
--- lightsquid.orig/lightparser.pl 2006-12-04 09:48:45 +1200
+++ lightsquid/lightparser.pl 2006-12-04 13:39:23 +1200
@@ -32,11 +32,11 @@
push (@INC,(fileparse($0))[1]);
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
#include ip2name function
-require "ip2name/ip2name.$ip2name";
+require "/usr/share/lightsquid/ip2name/ip2name.$ip2name";
$SIG{INT} = \&LOCKREMOVER; # traps keyboard interrupt
my $lockfilepath ="$lockpath/lockfile";
diff -uNr lightsquid.orig/month_detail.cgi lightsquid/month_detail.cgi
--- lightsquid.orig/month_detail.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/month_detail.cgi 2006-12-04 13:40:23 +1200
@@ -17,8 +17,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;
diff -uNr lightsquid.orig/topsites.cgi lightsquid/topsites.cgi
--- lightsquid.orig/topsites.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/topsites.cgi 2006-12-04 13:45:03 +1200
@@ -15,8 +15,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;
diff -uNr lightsquid.orig/user_detail.cgi lightsquid/user_detail.cgi
--- lightsquid.orig/user_detail.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/user_detail.cgi 2006-12-04 13:46:40 +1200
@@ -15,8 +15,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;
@@ -145,4 +145,4 @@
2006-06-28 ADD : die -> MyDie
2006-06-28 ADD : &tpl= support
2006-09-13 ADD : add &user= in bigfiles URL
-2006-11-20 ADD : /g for ##SITEURL_B## & ##SITEURL_L##, my need in some cases
\ В конце файла нет новой строки
+2006-11-20 ADD : /g for ##SITEURL_B## & ##SITEURL_L##, my need in some cases
diff -uNr lightsquid.orig/user_month.cgi lightsquid/user_month.cgi
--- lightsquid.orig/user_month.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/user_month.cgi 2006-12-04 13:49:48 +1200
@@ -13,8 +13,8 @@
push( @INC, ( fileparse($0) )[1] );
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co = new CGI;
diff -uNr lightsquid.orig/user_time.cgi lightsquid/user_time.cgi
--- lightsquid.orig/user_time.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/user_time.cgi 2006-12-04 13:51:23 +1200
@@ -15,8 +15,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;
diff -uNr lightsquid.orig/whousesite.cgi lightsquid/whousesite.cgi
--- lightsquid.orig/whousesite.cgi 2006-12-04 09:48:45 +1200
+++ lightsquid/whousesite.cgi 2006-12-04 13:52:52 +1200
@@ -15,8 +15,8 @@
push (@INC,(fileparse($0))[1]);
use CGI;
-require "lightsquid.cfg";
-require "common.pl";
+require "/etc/lightsquid/lightsquid.cfg";
+require "/usr/share/lightsquid/common.pl";
$co=new CGI;