]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Merge branch 'master' of git://git.ipfire.org/ipfire-2.x
authorManiacikarus <maniacikarus@ipfire.org>
Thu, 9 Oct 2008 16:08:50 +0000 (18:08 +0200)
committerManiacikarus <maniacikarus@ipfire.org>
Thu, 9 Oct 2008 16:08:50 +0000 (18:08 +0200)
config/etc/fstab
config/rootfiles/packages/7zip [new file with mode: 0644]
config/rootfiles/updater/filelists/files
config/rootfiles/updater/update.sh
html/cgi-bin/media.cgi
lfs/7zip [new file with mode: 0644]
make.sh
src/scripts/hddshutdown
src/scripts/makegraphs

index 2b8682d00f29b8731ad8cdc0c479dcfdd8656e64..867a991ae836c96b5b8fe14b406f47c2d56764de 100644 (file)
@@ -8,7 +8,7 @@ DEVICE4 /var    FSTYPE  defaults        1       1
 proc   /proc   proc    defaults        0       0
 sysfs  /sys    sysfs   defaults        0       0
 devpts /dev/pts        devpts   gid=4,mode=620  0     0
-none   /tmp            tmpfs   defaults        0       0
+#none  /tmp            tmpfs   defaults        0       0
 none   /var/log/rrd    tmpfs   defaults,size=64M       0       0
 none   /var/lock       tmpfs   defaults,size=16M       0       0
 none   /var/run        tmpfs   defaults,size=16M       0       0
diff --git a/config/rootfiles/packages/7zip b/config/rootfiles/packages/7zip
new file mode 100644 (file)
index 0000000..ff0eea8
--- /dev/null
@@ -0,0 +1,63 @@
+usr/local/bin/7z
+usr/local/lib/p7zip
+#usr/local/lib/p7zip/7z
+#usr/local/lib/p7zip/7z.so
+#usr/local/lib/p7zip/Codecs
+#usr/local/lib/p7zip/Codecs/Rar29.so
+#usr/local/man/man1/7z.1
+#usr/local/man/man1/7za.1
+#usr/local/man/man1/7zr.1
+#usr/local/share/doc/p7zip
+#usr/local/share/doc/p7zip/ChangeLog
+#usr/local/share/doc/p7zip/DOCS
+#usr/local/share/doc/p7zip/DOCS/7zC.txt
+#usr/local/share/doc/p7zip/DOCS/7zFormat.txt
+#usr/local/share/doc/p7zip/DOCS/License.txt
+#usr/local/share/doc/p7zip/DOCS/MANUAL
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/add.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/bench.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/delete.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/extract.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/extract_full.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/index.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/list.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/style.css
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/test.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/commands/update.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/exit_codes.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/index.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/style.css
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/ar_exclude.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/ar_include.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/ar_no.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/charset.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/exclude.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/include.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/index.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/list_tech.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/method.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/output_dir.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/overwrite.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/password.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/recurse.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/sfx.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/ssc.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/stdin.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/stdout.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/stop_switch.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/style.css
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/type.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/update.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/volume.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/working_dir.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/switches/yes.htm
+#usr/local/share/doc/p7zip/DOCS/MANUAL/syntax.htm
+#usr/local/share/doc/p7zip/DOCS/Methods.txt
+#usr/local/share/doc/p7zip/DOCS/copying.txt
+#usr/local/share/doc/p7zip/DOCS/history.txt
+#usr/local/share/doc/p7zip/DOCS/lzma.txt
+#usr/local/share/doc/p7zip/DOCS/readme.txt
+#usr/local/share/doc/p7zip/DOCS/unRarLicense.txt
+#usr/local/share/doc/p7zip/README
index 2d9f65a4fe1a868e0d47d071e27797f741987086..4ef61a03855a6b2aeb06b6a121fd751b4515a3a2 100644 (file)
@@ -23,6 +23,7 @@ etc/udev/rules.d/55-scsi-cdrom.rules
 etc/linuxigd/gatedesc.xml
 usr/local/bin/getiptstate
 usr/local/bin/makegraphs
+usr/local/bin/hddshutdown
 usr/local/bin/squidctrl
 usr/local/bin/setddns.pl
 srv/web/ipfire/cgi-bin/backup.cgi
index 3b2bbe59620ccd252a5d8deb528b2fee38a14342..678a6e87770818e7b4eb46761bf285aab585e5d7 100755 (executable)
@@ -161,7 +161,7 @@ grub-install --no-floppy ${ROOT::`expr length $ROOT`-1}
 # Update fstab
 #
 grep -v "tmpfs" /etc/fstab > /tmp/fstab.tmp
-echo "none     /tmp            tmpfs   defaults        0       0" >> /tmp/fstab.tmp
+echo "#none    /tmp            tmpfs   defaults        0       0" >> /tmp/fstab.tmp
 echo "none     /var/log/rrd    tmpfs   defaults,size=64M       0       0" >> /tmp/fstab.tmp
 echo "none     /var/lock       tmpfs   defaults,size=16M       0       0" >> /tmp/fstab.tmp
 echo "none     /var/run        tmpfs   defaults,size=16M       0       0" >> /tmp/fstab.tmp
index 490ffcad94d98406dbfeb3a048d0a8cb72dc1b4d..4fe472a029f5c0002c57ec7eb5313b90dfe082b7 100644 (file)
@@ -195,8 +195,8 @@ sub diskbox {
        my $disk = $_[0];
        chomp $disk;
        my @status;
-       if (-e "/tmp/hddstatus"){
-               open(DATEI, "</tmp/hddstatus") || die "Datei nicht gefunden";
+       if (-e "/var/run/hddstatus"){
+               open(DATEI, "</var/run/hddstatus") || die "Datei nicht gefunden";
                my  @diskstate = <DATEI>;
                close(DATEI);
 
@@ -205,7 +205,7 @@ sub diskbox {
                }
 
                if ( $status[1]=~/standby/){
-                       my $ftime = localtime((stat("/tmp/hddshutdown-$disk"))[9]);
+                       my $ftime = localtime((stat("/var/run/hddshutdown-$disk"))[9]);
                        print"<B>Disk $disk status:<font color=#FF0000>".$status[1]."</font></B> (since $ftime)";
                }else{
                        print"<B>Disk $disk status:<font color=#00FF00>".$status[1]."</font></B>";
diff --git a/lfs/7zip b/lfs/7zip
new file mode 100644 (file)
index 0000000..358db93
--- /dev/null
+++ b/lfs/7zip
@@ -0,0 +1,83 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 4.58
+
+THISAPP    = p7zip_$(VER)
+DL_FILE    = $(THISAPP).tar.bz2
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = 7zip
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 315b184102c17c4956f53218d973222d
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && make 7z $(MAKETUNING)
+       cd $(DIR_APP) && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 31a1e13c0cea5254fc61405c04d4c4877dfe8628..9c42c6d36adc05bf3ae975d8f5b20e542b62756f 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -24,7 +24,7 @@
 
 NAME="IPFire"                                                                          # Software name
 SNAME="ipfire"                                                                 # Short name
-VERSION="2.3-beta4"
+VERSION="2.3-test"
 GIT_BRANCH=master:master                                                                               # Version number
 SLOGAN="www.ipfire.org"                                        # Software slogan
 CONFIG_ROOT=/var/ipfire                                        # Configuration rootdir
@@ -349,6 +349,7 @@ buildipfire() {
   ipfiremake v4l-dvb                   KVER=2.6.25.17
   ipfiremake madwifi                   KVER=2.6.25.17
   ipfiremake alsa              KMOD=1  KVER=2.6.25.17
+#  ipfiremake openswan         KMOD=1  KVER=2.6.25.17
   ipfiremake linux
   ipfiremake atl2
   ipfiremake r8168
@@ -596,6 +597,7 @@ buildipfire() {
   ipfiremake apcupsd
   ipfiremake iperf
   ipfiremake netcat
+  ipfiremake 7zip
   echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild
   cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild
   echo >> $BASEDIR/build/var/ipfire/firebuild
index 056adf37545d03ded376d95a7b601c028c06ee0d..28994998bd812016ad1dfffb7c080c088a9bc29b 100644 (file)
@@ -20,7 +20,7 @@ if ($debug){print "### Searching for available Disks ###\n";}
 foreach (@devices){
     chomp $_;
     my @array = split(/\//,$_);
-    $diskstats = `cat /tmp/hddstats-$array[$#array]`;
+    $diskstats = `cat /var/run/hddstats-$array[$#array]`;
     chomp $diskstats;
     $newdiskstats = `iostat -d -t $_ | tail -2 | head -1 | awk '{ print \$5","\$6}'`;
     chomp $newdiskstats;
@@ -28,14 +28,14 @@ foreach (@devices){
     chomp $status;
 
     if ($debug){print "Device ".$_." IDE Power status:".$status."\n";}
-    if (-e "/tmp/hddshutdown-$array[$#array]" && $status !~/standby/)
+    if (-e "/var/run/hddshutdown-$array[$#array]" && $status !~/standby/)
     {
        if ($debug){print "Remove wrong standby marking\n";}
-       if ( -e "/tmp/hddshutdown-$array[$#array]" ) { system("unlink /tmp/hddshutdown-$array[$#array]"); } 
+       if ( -e "/var/run/hddshutdown-$array[$#array]" ) { system("unlink /var/run/hddshutdown-$array[$#array]"); } 
     }
 
     if ($debug){print "Device ".$_." has ".$newdiskstats." write and read Requests, was ".$diskstats." at last run.\n";}
-    if ($diskstats eq $newdiskstats && (! -e "/tmp/hddshutdown-$array[$#array]") )
+    if ($diskstats eq $newdiskstats && (! -e "/var/run/hddshutdown-$array[$#array]") )
     {
        if ($debug){print "Setting Device ".$_." to standby ... ";}
        $status = `hdparm -y /dev/$_ 2>&1`;
@@ -43,7 +43,7 @@ foreach (@devices){
        if ($status !~/Invalid/) 
        {  
            if ($debug){print "OK\n";}
-           system("touch /tmp/hddshutdown-$array[$#array]");
+           system("touch /var/run/hddshutdown-$array[$#array]");
        }
        else
        {
@@ -53,9 +53,9 @@ foreach (@devices){
     if ($diskstats ne $newdiskstats)
     {
        if ($debug){print "Device ".$_." is active.\n";}
-       if ( -e "/tmp/hddshutdown-$array[$#array]" ) { system("unlink /tmp/hddshutdown-$array[$#array]"); }
+       if ( -e "/var/run/hddshutdown-$array[$#array]" ) { system("unlink /var/run/hddshutdown-$array[$#array]"); }
     }
-    system("echo $newdiskstats > /tmp/hddstats-$array[$#array]");
+    system("echo $newdiskstats > /var/run/hddstats-$array[$#array]");
 }
 
 # end
index 9542c8f485638aff2f7bb732a0d166fd1658be13..817920ab734c0a416fd466afb892962a2fe1c422 100644 (file)
@@ -60,7 +60,7 @@ sub updatehdddata{
                print "Error in RRD::create for hddshutdown-".$array[$#array].": $ERROR\n" if $ERROR;
        }
 
-       if (-e "/tmp/hddshutdown-".$array[$#array]) {$standby = 1;}
+       if (-e "/var/run/hddshutdown-".$array[$#array]) {$standby = 1;}
        else {$standby = 0;}
 
        RRDs::update ("$mainsettings{'RRDLOG'}/hddshutdown-".$array[$#array].".rrd", "-t", "standby", "N:$standby");
@@ -83,9 +83,9 @@ sub updatehdddata{
        if (!$standby){
                $temp = 0;
                my $smart_output = '';
-               system("$path_smartctl -iHA -d ata /dev/$disk > /tmp/smartctl_out_hddtemp-$disk");
-               if ( -e "/tmp/smartctl_out_hddtemp-".$array[$#array] ){
-                       my $hdd_output = `cat /tmp/smartctl_out_hddtemp-$array[$#array] | grep Temperature_`;
+               system("$path_smartctl -iHA -d ata /dev/$disk > /var/run/smartctl_out_hddtemp-$disk");
+               if ( -e "/var/run/smartctl_out_hddtemp-".$array[$#array] ){
+                       my $hdd_output = `cat /var/run/smartctl_out_hddtemp-$array[$#array] | grep Temperature_`;
                        my @t = split(/\s+/,$hdd_output);
                        $temp = $t[9];
                }else{$temp = 0;}
@@ -103,7 +103,7 @@ sub updatehdddata{
 system ('/usr/bin/vnstat -u');
 
 my @disks = `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`;
-system("unlink /tmp/hddstatus && touch /tmp/hddstatus");
+system("unlink /var/run/hddstatus && touch /var/run/hddstatus");
 foreach (@disks){
        my $disk = $_;
        chomp $disk;
@@ -114,7 +114,7 @@ foreach (@disks){
        my $newdiskstats = "";
        my @array = split(/\//,$disk);
 
-       $diskstats = `cat /tmp/hddstats-$array[$#array]`;
+       $diskstats = `cat /var/run/hddstats-$array[$#array]`;
        chomp $diskstats;
        my $newdiskstats = `/usr/bin/iostat -d -t $disk | tail -2 | head -1 | awk '{ print \$5","\$6}'`;
        chomp $newdiskstats;
@@ -122,13 +122,13 @@ foreach (@disks){
        chomp $status;
 
        if ($status !~/standby/ || $diskstats ne $newdiskstats){
-               if (-e "/tmp/hddshutdown-".$array[$#array]){system("unlink /tmp/hddshutdown-".$array[$#array]);}
+               if (-e "/var/run/hddshutdown-".$array[$#array]){system("unlink /var/run/hddshutdown-".$array[$#array]);}
        }
 
-       if (-e "/tmp/hddshutdown-".$array[$#array]){$status = " standby\n";}
+       if (-e "/var/run/hddshutdown-".$array[$#array]){$status = " standby\n";}
        else{$status = " active\n";}
 
-       open(DATEI, ">>/tmp/hddstatus") || die "Datei nicht gefunden";
+       open(DATEI, ">>/var/run/hddstatus") || die "Datei nicht gefunden";
        print DATEI $disk."-".$status;
        close(DATEI);