mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Clamav-Update
Einige Aenderungen rueckgaengig gemacht... Bisschen Pakfire gemacht... git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@704 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -9,7 +9,7 @@ usr/bin/sigtool
|
|||||||
#usr/lib/libclamav.la
|
#usr/lib/libclamav.la
|
||||||
usr/lib/libclamav.so
|
usr/lib/libclamav.so
|
||||||
usr/lib/libclamav.so.2
|
usr/lib/libclamav.so.2
|
||||||
usr/lib/libclamav.so.2.0.6
|
usr/lib/libclamav.so.2.0.7
|
||||||
#usr/lib/pkgconfig/libclamav.pc
|
#usr/lib/pkgconfig/libclamav.pc
|
||||||
usr/sbin/clamd
|
usr/sbin/clamd
|
||||||
#usr/share/clamav
|
#usr/share/clamav
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ var/ipfire/mpfire/db
|
|||||||
var/ipfire/mpfire/db/songs.db
|
var/ipfire/mpfire/db/songs.db
|
||||||
var/ipfire/mpfire/playlist
|
var/ipfire/mpfire/playlist
|
||||||
var/ipfire/mpfire/settings
|
var/ipfire/mpfire/settings
|
||||||
usr/lib/perl5/5.8.8/MP3/Info.pm
|
usr/lib/perl5/site_perl/5.8.8/MP3/Info.pm
|
||||||
usr/lib/perl5/5.8.8/MP3/Tag.pm
|
usr/lib/perl5/site_perl/5.8.8/MP3/Tag.pm
|
||||||
usr/lib/perl5/5.8.8/MP3/Tag/File.pm
|
usr/lib/perl5/site_perl/5.8.8/MP3/Tag/File.pm
|
||||||
usr/lib/perl5/5.8.8/MP3/Tag/ID3v1.pm
|
usr/lib/perl5/site_perl/5.8.8/MP3/Tag/ID3v1.pm
|
||||||
usr/lib/perl5/5.8.8/MP3/Tag/ID3v2.pm
|
usr/lib/perl5/site_perl/5.8.8/MP3/Tag/ID3v2.pm
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
== List of softwares used to build IPFire Version: 2.0t4 ==
|
== List of softwares used to build IPFire Version: 2.0t4 ==
|
||||||
* 3c5x9setup-1.00
|
|
||||||
* Archive-Tar-1.29
|
* Archive-Tar-1.29
|
||||||
* Archive-Zip-1.16
|
* Archive-Zip-1.16
|
||||||
* BerkeleyDB-0.27
|
* BerkeleyDB-0.27
|
||||||
@@ -57,6 +56,7 @@
|
|||||||
* cdrtools-2.01
|
* cdrtools-2.01
|
||||||
* cftp-0.12
|
* cftp-0.12
|
||||||
* clamav-0.91
|
* clamav-0.91
|
||||||
|
* clamav-0.91.1
|
||||||
* coreutils-5.96
|
* coreutils-5.96
|
||||||
* cpio-2.6
|
* cpio-2.6
|
||||||
* cups-1.2.2
|
* cups-1.2.2
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
include Config
|
include Config
|
||||||
|
|
||||||
VER = 0.91
|
VER = 0.91.1
|
||||||
|
|
||||||
THISAPP = clamav-$(VER)
|
THISAPP = clamav-$(VER)
|
||||||
DL_FILE = $(THISAPP).tar.gz
|
DL_FILE = $(THISAPP).tar.gz
|
||||||
@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
|
|||||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
PROG = clamav
|
PROG = clamav
|
||||||
PAK_VER = 1
|
PAK_VER = 2
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Top-level Rules
|
# Top-level Rules
|
||||||
@@ -44,7 +44,7 @@ objects = $(DL_FILE)
|
|||||||
|
|
||||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||||
|
|
||||||
$(DL_FILE)_MD5 = 35192423e44642c86ea69dc93f59cfb1
|
$(DL_FILE)_MD5 = 60152bf1e24b3fbdf0473794199e5215
|
||||||
|
|
||||||
install : $(TARGET)
|
install : $(TARGET)
|
||||||
|
|
||||||
|
|||||||
@@ -81,9 +81,6 @@ $(TARGET) :
|
|||||||
cp $(DIR_SRC)/config/cfgroot/countries.pl $(CONFIG_ROOT)/
|
cp $(DIR_SRC)/config/cfgroot/countries.pl $(CONFIG_ROOT)/
|
||||||
cp $(DIR_SRC)/config/cfgroot/graphs.pl $(CONFIG_ROOT)/
|
cp $(DIR_SRC)/config/cfgroot/graphs.pl $(CONFIG_ROOT)/
|
||||||
cp $(DIR_SRC)/config/cfgroot/advoptions-list $(CONFIG_ROOT)/dhcp/advoptions-list
|
cp $(DIR_SRC)/config/cfgroot/advoptions-list $(CONFIG_ROOT)/dhcp/advoptions-list
|
||||||
cp $(DIR_SRC)/config/cfgroot/backup-exclude $(CONFIG_ROOT)/backup/exclude.system
|
|
||||||
cp $(DIR_SRC)/config/cfgroot/backup-include $(CONFIG_ROOT)/backup/include.system
|
|
||||||
cp $(DIR_SRC)/config/cfgroot/backup-exclude.hardware $(CONFIG_ROOT)/backup/exclude.hardware
|
|
||||||
cp $(DIR_SRC)/config/cfgroot/connscheduler-lib.pl $(CONFIG_ROOT)/connscheduler/lib.pl
|
cp $(DIR_SRC)/config/cfgroot/connscheduler-lib.pl $(CONFIG_ROOT)/connscheduler/lib.pl
|
||||||
cp $(DIR_SRC)/config/cfgroot/connscheduler.conf $(CONFIG_ROOT)/connscheduler
|
cp $(DIR_SRC)/config/cfgroot/connscheduler.conf $(CONFIG_ROOT)/connscheduler
|
||||||
cp $(DIR_SRC)/config/extrahd/* $(CONFIG_ROOT)/extrahd/bin/
|
cp $(DIR_SRC)/config/extrahd/* $(CONFIG_ROOT)/extrahd/bin/
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ int main(int argc, char *argv[]) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
safe_system("chmod 755 /var/ipfire/qos/bin/qos.sh &>/dev/null");
|
||||||
if (strcmp(argv[1], "start") == 0) {
|
if (strcmp(argv[1], "start") == 0) {
|
||||||
if ((fd = open("/var/ipfire/qos/bin/qos.sh", O_RDONLY)) != -1)
|
if ((fd = open("/var/ipfire/qos/bin/qos.sh", O_RDONLY)) != -1)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ sub fetchfile {
|
|||||||
logger("HTTP-Status-Code: $code - $log");
|
logger("HTTP-Status-Code: $code - $log");
|
||||||
|
|
||||||
if ( $code eq "500" ) {
|
if ( $code eq "500" ) {
|
||||||
message("Giving up: There was no chance to get teh file \"$getfile\" from any available server.\nThere was an error on the way. Please fix it.");
|
message("Giving up: There was no chance to get the file \"$getfile\" from any available server.\nThere was an error on the way. Please fix it.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,8 +156,12 @@ sub selectmirror {
|
|||||||
|
|
||||||
### Count the number of the servers in the list
|
### Count the number of the servers in the list
|
||||||
my $scount = 0;
|
my $scount = 0;
|
||||||
|
my @newlines;
|
||||||
foreach (@lines) {
|
foreach (@lines) {
|
||||||
$scount++;
|
if ("$_" =~ /.*;.*;.*;/ ) {
|
||||||
|
push(@newlines,$_);
|
||||||
|
$scount++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
logger("$scount servers found in list.");
|
logger("$scount servers found in list.");
|
||||||
|
|
||||||
@@ -171,7 +175,7 @@ sub selectmirror {
|
|||||||
$servers = 0;
|
$servers = 0;
|
||||||
my ($line, $proto, $path, $host);
|
my ($line, $proto, $path, $host);
|
||||||
my @templine;
|
my @templine;
|
||||||
foreach $line (@lines) {
|
foreach $line (@newlines) {
|
||||||
$servers++;
|
$servers++;
|
||||||
if ($servers eq $server) {
|
if ($servers eq $server) {
|
||||||
@templine = split(/\;/, $line);
|
@templine = split(/\;/, $line);
|
||||||
@@ -297,10 +301,6 @@ sub resolvedeps {
|
|||||||
|
|
||||||
message("");
|
message("");
|
||||||
message("## Resolving dependencies for $pak...");
|
message("## Resolving dependencies for $pak...");
|
||||||
#if (&isinstalled($pak) eq 0) {
|
|
||||||
# my @empty;
|
|
||||||
# return @empty;
|
|
||||||
#}
|
|
||||||
|
|
||||||
open(FILE, "<$Conf::dbdir/meta/meta-$pak");
|
open(FILE, "<$Conf::dbdir/meta/meta-$pak");
|
||||||
my @file = <FILE>;
|
my @file = <FILE>;
|
||||||
@@ -327,8 +327,7 @@ sub resolvedeps {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#my @tempdeps = @deps;
|
|
||||||
foreach (@tempdeps) {
|
foreach (@tempdeps) {
|
||||||
if ($_) {
|
if ($_) {
|
||||||
my @newdeps = resolvedeps("$_");
|
my @newdeps = resolvedeps("$_");
|
||||||
@@ -474,13 +473,15 @@ sub setuppak {
|
|||||||
|
|
||||||
my $return = system("cd $Conf::tmpdir && NAME=$pak ./install.sh >> $Conf::logdir/install-$pak.log 2>&1");
|
my $return = system("cd $Conf::tmpdir && NAME=$pak ./install.sh >> $Conf::logdir/install-$pak.log 2>&1");
|
||||||
$return %= 255;
|
$return %= 255;
|
||||||
|
if ($pakfiresettings{'UUID'} ne "off") {
|
||||||
|
fetchfile("cgi-bin/counter?ver=$Conf::version&uuid=$Conf::uuid&ipak=$pak&return=$return", "$Conf::mainserver");
|
||||||
|
}
|
||||||
if ($return == 0) {
|
if ($return == 0) {
|
||||||
move("$Conf::tmpdir/ROOTFILES", "$Conf::dbdir/rootfiles/$pak");
|
move("$Conf::tmpdir/ROOTFILES", "$Conf::dbdir/rootfiles/$pak");
|
||||||
cleanup("tmp");
|
cleanup("tmp");
|
||||||
copy("$Conf::dbdir/meta/meta-$pak","$Conf::dbdir/installed/");
|
copy("$Conf::dbdir/meta/meta-$pak","$Conf::dbdir/installed/");
|
||||||
message("Setup completed. Congratulations!");
|
message("Setup completed. Congratulations!");
|
||||||
message("################################################################################");
|
message("################################################################################");
|
||||||
fetchfile("cgi-bin/counter?ver=$Conf::version&uuid=$Conf::uuid&ipak=$pak&return=$return", "$Conf::mainserver");
|
|
||||||
} else {
|
} else {
|
||||||
message("Setup returned: $return. Sorry. Please search our forum to find a solution for this problem.");
|
message("Setup returned: $return. Sorry. Please search our forum to find a solution for this problem.");
|
||||||
exit $return;
|
exit $return;
|
||||||
@@ -507,11 +508,13 @@ sub upgradepak {
|
|||||||
|
|
||||||
my $return = system("cd $Conf::tmpdir && NAME=$pak ./update.sh >> $Conf::logdir/update-$pak.log 2>&1");
|
my $return = system("cd $Conf::tmpdir && NAME=$pak ./update.sh >> $Conf::logdir/update-$pak.log 2>&1");
|
||||||
$return %= 255;
|
$return %= 255;
|
||||||
|
if ($pakfiresettings{'UUID'} ne "off") {
|
||||||
|
fetchfile("cgi-bin/counter?ver=$Conf::version&uuid=$Conf::uuid&upak=$pak&return=$return", "$Conf::mainserver");
|
||||||
|
}
|
||||||
if ($return == 0) {
|
if ($return == 0) {
|
||||||
move("$Conf::tmpdir/ROOTFILES", "$Conf::dbdir/rootfiles/$pak");
|
move("$Conf::tmpdir/ROOTFILES", "$Conf::dbdir/rootfiles/$pak");
|
||||||
cleanup("tmp");
|
cleanup("tmp");
|
||||||
copy("$Conf::dbdir/meta/meta-$pak","$Conf::dbdir/installed/");
|
copy("$Conf::dbdir/meta/meta-$pak","$Conf::dbdir/installed/");
|
||||||
fetchfile("cgi-bin/counter?ver=$Conf::version&uuid=$Conf::uuid&upak=$pak&return=$return", "$Conf::mainserver");
|
|
||||||
message("Upgrade completed. Congratulations!");
|
message("Upgrade completed. Congratulations!");
|
||||||
} else {
|
} else {
|
||||||
message("Setup returned: $return. Sorry. Please search our forum to find a solution for this problem.");
|
message("Setup returned: $return. Sorry. Please search our forum to find a solution for this problem.");
|
||||||
@@ -529,6 +532,9 @@ sub removepak {
|
|||||||
|
|
||||||
my $return = system("cd $Conf::tmpdir && NAME=$pak ./uninstall.sh >> $Conf::logdir/uninstall-$pak.log 2>&1");
|
my $return = system("cd $Conf::tmpdir && NAME=$pak ./uninstall.sh >> $Conf::logdir/uninstall-$pak.log 2>&1");
|
||||||
$return %= 255;
|
$return %= 255;
|
||||||
|
if ($pakfiresettings{'UUID'} ne "off") {
|
||||||
|
fetchfile("cgi-bin/counter?ver=$Conf::version&uuid=$Conf::uuid&dpak=$pak&return=$return", "$Conf::mainserver");
|
||||||
|
}
|
||||||
if ($return == 0) {
|
if ($return == 0) {
|
||||||
open(FILE, "<$Conf::dbdir/rootfiles/$pak");
|
open(FILE, "<$Conf::dbdir/rootfiles/$pak");
|
||||||
my @file = <FILE>;
|
my @file = <FILE>;
|
||||||
@@ -541,7 +547,6 @@ sub removepak {
|
|||||||
}
|
}
|
||||||
unlink("$Conf::dbdir/rootfiles/$pak");
|
unlink("$Conf::dbdir/rootfiles/$pak");
|
||||||
cleanup("tmp");
|
cleanup("tmp");
|
||||||
fetchfile("cgi-bin/counter?ver=$Conf::version&uuid=$Conf::uuid&dpak=$pak&return=$return", "$Conf::mainserver");
|
|
||||||
message("Uninstall completed. Congratulations!");
|
message("Uninstall completed. Congratulations!");
|
||||||
} else {
|
} else {
|
||||||
message("Setup returned: $return. Sorry. Please search our forum to find a solution for this problem.");
|
message("Setup returned: $return. Sorry. Please search our forum to find a solution for this problem.");
|
||||||
|
|||||||
@@ -154,6 +154,52 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
} elsif ("$ARGV[0]" eq "remove") {
|
} elsif ("$ARGV[0]" eq "remove") {
|
||||||
|
shift;
|
||||||
|
|
||||||
|
my @paks;
|
||||||
|
my $pak;
|
||||||
|
|
||||||
|
foreach $pak (@ARGV) {
|
||||||
|
unless ("$pak" =~ "^-") {
|
||||||
|
$return = &Pakfire::isinstalled($pak);
|
||||||
|
if ($return ne 0) {
|
||||||
|
&Pakfire::message("Package $pak is not installed.");
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
|
push(@paks, $pak);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unless (@paks) {
|
||||||
|
&Pakfire::message("No packages to remove. Exiting...");
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&Pakfire::message("");
|
||||||
|
&Pakfire::message("");
|
||||||
|
&Pakfire::message("### Packages to remove:");
|
||||||
|
foreach $pak (sort @paks) {
|
||||||
|
my $size = &Pakfire::getsize("$pak");
|
||||||
|
$size = &Pakfire::beautifysize($size);
|
||||||
|
&Pakfire::message("# $pak \t\t - $size");
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($interactive) {
|
||||||
|
&Pakfire::message("Is this okay? [y/N]");
|
||||||
|
my $ret = <STDIN>;
|
||||||
|
chomp($ret);
|
||||||
|
&Pakfire::logger("Answer: $ret");
|
||||||
|
if ( $ret ne "y" ) {
|
||||||
|
&Pakfire::message("Installation aborted.");
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach $pak (@paks) {
|
||||||
|
&Pakfire::removepak("$pak");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} elsif ("$ARGV[0]" eq "update") {
|
} elsif ("$ARGV[0]" eq "update") {
|
||||||
|
|||||||
Reference in New Issue
Block a user