Deleted old Loadstat file, fixed logrotate warning, hwgraphs ignoring special charact...
authorManiacikarus <maniacikarus@ipfire.org>
Mon, 27 Oct 2008 21:13:53 +0000 (22:13 +0100)
committerManiacikarus <maniacikarus@ipfire.org>
Mon, 27 Oct 2008 21:13:53 +0000 (22:13 +0100)
config/cron/minutely/loadstat [deleted file]
config/etc/logrotate.conf
config/rootfiles/common/fcron
config/rootfiles/updater/filelists/files
html/cgi-bin/hardwaregraphs.cgi
make.sh

diff --git a/config/cron/minutely/loadstat b/config/cron/minutely/loadstat
deleted file mode 100644 (file)
index 9c6fdb9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/perl
-
-use RRDs;
-my $LOAD = '';
-my $CMD = "awk '{print \$1\":\"\$2\":\"\$3}' < /proc/loadavg";
-$LOAD=`$CMD`;
-chomp($LOAD);
-RRDs::update ("/var/log/rrd/load.rrd",
-       "-t", "load1:load5:load15",
-       "N:$LOAD");
-
-my $ERROR = RRDs::error;
-print "$ERROR\n" if $ERROR;
index 0f171d6448e6457493b7752c9744fef7a52a30b2..369efe9112ce93c6058b927763cb70b795d1ade5 100644 (file)
@@ -65,7 +65,7 @@ compress
     endscript
 }
 
-/var/log/messages /var/log/boot.log /var/log/dhcpcd.log {
+/var/log/messages /var/log/bootlog /var/log/dhcpcd.log {
     create 664 root syslogd
     sharedscripts
     ifempty
index 13804884e7966eb61128d3b8ef021c5ed8aec429..2d74f99010be78f68aa846355066e4e88536be33 100644 (file)
@@ -5,7 +5,6 @@ etc/fcron.daily
 etc/fcron.deny
 etc/fcron.hourly
 etc/fcron.minutely
-#etc/fcron.minutely/loadstat
 etc/fcron.monthly
 etc/fcron.weekly
 usr/bin/fcronsighup
index 72c98bb4555a98a4d13b980da71c4be86b5e3b13..d92d12cf6990677c64ab63d1a2cd379510a87a43 100644 (file)
@@ -1,4 +1,5 @@
 opt/pakfire/db/core/mine
+etc/logrotate.conf
 etc/rc.d/init.d/mISDN
 etc/modprobe.d/blacklist
 usr/bin/bc
@@ -26,24 +27,6 @@ usr/local/bin/makegraphs
 usr/local/bin/hddshutdown
 usr/local/bin/squidctrl
 usr/local/bin/setddns.pl
-srv/web/ipfire/cgi-bin/backup.cgi
-srv/web/ipfire/cgi-bin/webaccess.cgi
-srv/web/ipfire/cgi-bin/ovpnmain.cgi
-srv/web/ipfire/cgi-bin/credits.cgi
-srv/web/ipfire/cgi-bin/speed.cgi
-srv/web/ipfire/cgi-bin/traffic.cgi
-srv/web/ipfire/cgi-bin/hardwaregraphs.cgi
-srv/web/ipfire/cgi-bin/connections.cgi
-srv/web/ipfire/cgi-bin/pppsetup.cgi
-srv/web/ipfire/cgi-bin/netexternal.cgi
-srv/web/ipfire/cgi-bin/netinternal.cgi
-srv/web/ipfire/cgi-bin/netother.cgi
-srv/web/ipfire/cgi-bin/system.cgi
-srv/web/ipfire/cgi-bin/services.cgi
-srv/web/ipfire/cgi-bin/media.cgi
-srv/web/ipfire/cgi-bin/memory.cgi
-srv/web/ipfire/cgi-bin/ids.cgi
-srv/web/ipfire/cgi-bin/ddns.cgi
 var/ipfire/backup/bin/backup.pl
 var/ipfire/sensors/
 var/ipfire/menu.d/20-status.menu
@@ -52,7 +35,6 @@ var/ipfire/firebuild
 var/ipfire/qos/bin/makeqosscripts.pl
 var/ipfire/proxy/advanced/useragents
 srv/web/ipfire/html/images/updbooster/
-srv/web/ipfire/cgi-bin/updatexlrator.cgi
 var/ipfire/updatexlrator/bin/
 usr/sbin/updxlrator
 var/ipfire/langs
index f1774afa02a079c2d04e269fed81c8d6b79398e9..781f30175bdd34b468f374773b20b9d3e6b59c98 100644 (file)
@@ -83,8 +83,12 @@ if ( $querry[0] =~ "hwtemp"){
                        chomp($_);
                                $_ =~ /\/(.*)sensors-(.*)\/(.*)\.rrd/;
                                my $label = $2.$3;$label=~ s/-//g;
-                               if ( $sensorsettings{'LINE-'.$label} ne "on" ){$sensorsettings{'LINE-'.$label} = 'off';}
-                               elsif ( $sensorsettings{'LINE-'.$label} eq "on" ){$sensorsettings{'LINE-'.$label} = 'checked';}
+                               if ( $sensorsettings{'LINE-'.$label} ne "on" ){
+                                       $sensorsettings{'LINE-'.$label} = 'off';
+                               } elsif ($sensorsettings{'LINE-'.$label} eq "on" ){
+                                       $sensorsettings{'LINE-'.$label} = 'checked';
+                               }
+                               $sensorsettings{'LABEL-'.$label} =~ s/\W//g;
                }
                &General::writehash("${General::swroot}/sensors/settings", \%sensorsettings);
        }
@@ -102,31 +106,31 @@ if ( $querry[0] =~ "hwtemp"){
        }
 
        if ( `ls $mainsettings{'RRDLOG'}/collectd/localhost/thermal-thermal_zone*` ) {
-           &Header::openbox('100%', 'center', "ACPI Thermal-Zone Temp $Lang::tr{'graph'}");
-           &Graphs::makegraphbox("hardwaregraphs.cgi","thermaltemp","day");
-           &Header::closebox();
+               &Header::openbox('100%', 'center', "ACPI Thermal-Zone Temp $Lang::tr{'graph'}");
+               &Graphs::makegraphbox("hardwaregraphs.cgi","thermaltemp","day");
+               &Header::closebox();
        }
 
        if ( `ls $mainsettings{'RRDLOG'}/collectd/localhost/sensors-*/temperature-*` ) {
-           &Header::openbox('100%', 'center', "hwtemp $Lang::tr{'graph'}");
-           &Graphs::makegraphbox("hardwaregraphs.cgi","hwtemp","day");
-           &Header::closebox();
+               &Header::openbox('100%', 'center', "hwtemp $Lang::tr{'graph'}");
+               &Graphs::makegraphbox("hardwaregraphs.cgi","hwtemp","day");
+               Header::closebox();
        }
 
        if ( `ls $mainsettings{'RRDLOG'}/collectd/localhost/sensors-*/fanspeed-*` ) {
-           &Header::openbox('100%', 'center', "hwfan $Lang::tr{'graph'}");
-           &Graphs::makegraphbox("hardwaregraphs.cgi","hwfan","day");
-           &Header::closebox();
+               &Header::openbox('100%', 'center', "hwfan $Lang::tr{'graph'}");
+               &Graphs::makegraphbox("hardwaregraphs.cgi","hwfan","day");
+               &Header::closebox();
        }
 
        if ( `ls $mainsettings{'RRDLOG'}/collectd/localhost/sensors-*/voltage-*` ) {
-           &Header::openbox('100%', 'center', "hwvolt $Lang::tr{'graph'}");
-           &Graphs::makegraphbox("hardwaregraphs.cgi","hwvolt","day","375");
-           &Header::closebox();
+               &Header::openbox('100%', 'center', "hwvolt $Lang::tr{'graph'}");
+               &Graphs::makegraphbox("hardwaregraphs.cgi","hwvolt","day","375");
+               &Header::closebox();
        }
 
        if ( `ls $mainsettings{'RRDLOG'}/collectd/localhost/sensors-*` ) {
-           sensorsbox();
+               sensorsbox();
        }
        &Header::closebigbox();
        &Header::closepage();
diff --git a/make.sh b/make.sh
index 4cc666c6175552e0b6c350f0d8f9940afb22b65f..ed3fa8aba2f80ef25d9395bcf12bd39c195297c0 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -177,7 +177,9 @@ prepareenv() {
     # Setup environment
     set +h
     LC_ALL=POSIX
-    MAKETUNING="-j6"
+    if [ -z $MAKETUNING ]; then
+       MAKETUNING="-j6"
+    fi
     export LFS LC_ALL CFLAGS CXXFLAGS MAKETUNING
     unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
 
@@ -350,7 +352,7 @@ buildipfire() {
   ipfiremake gdbm
   ipfiremake gmp
   ipfiremake pam
-  ipfiremake openssl                   PADLOCK=1
+  ipfiremake openssl
   ipfiremake curl
   ipfiremake python
   ipfiremake libnet