Commit Graph

38 Commits

Author SHA1 Message Date
Peter Müller
362c5537af Ensure /var/ipfire/updatexlrator/updxlrator-lib.pl is not writable by "nobody"
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-11-18 13:33:45 +00:00
Michael Tremer
524dae818f update accelerator: Do not attempt to cache IPFire updates any more
We do not deliver anything via HTTP or FTP any more and therefore
nothing can be cached any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-11-08 16:46:11 +00:00
Michael Tremer
01a3c346dd update accelerator: Cache .msp files for Adobe
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-11-08 16:45:30 +00:00
Justin Luth
e04f86b449 Fix bug 11567 updxlrator: don't prematurely release lock file
With Microsoft's new style of downloading updates,
where portions of a patch are requested multiple times per second,
it has become extremely common for downloads to reach > 100%.
Due to an early unlinking of the "lock" file, there is a big window of
opportunity (between the unlink and wget actually saving some data)
for multiple download/wget threads to start, adding to the same file.
So not only is bandwidth wasted by duplicate downloads running
simultaneously, but the resulting file is corrupt anyway.

The problem is noticed more often by low bandwidth users
(who need the benefits of updxlrator the most)
because then wget's latency is even longer, creating
a very wide window of opportunity.

Ultimately, this needs something like "flock", where the
file is set and tested in one operation. But for now,
settle with the current test / create lock solution, and
just stop unnecessarily releasing the lock.

Since the file already exists as a lock when wget starts,
wget now must ALWAYS run with --continue, which
works fine on a zero-sized file.

Signed-off-by: Justin Luth  <jluth@mail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-07 19:49:53 +00:00
Justin Luth
e331e22bda updxlrator: show hostaddr in debuglog
There is nowhere in the debuglog any indication of
which client is requesting the file that updxlrator
is providing (or caching). Especially for those
huge Windows 10 downloads, it is valuable to
see which client is requesting them, especially
when the same client requests the same download
multiple times a second.

This only impacts users who turn on debugging.

Signed-off-by: Justin Luth  <jluth@mail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-07 19:49:47 +00:00
Justin Luth
329631dee9 Fix bug 11558 updxlrator: use mirror mode for SHA1, filenames
Most Microsoft updates now contain an SHA1 hash in the filename.
Since these files are uniquely identifiable, use mirror mode
(which creates a hash of just the filename instead of the entire URL)
to cache them. (But first check the URL cache to see if it
has been downloaded as a URL already.)

This is a HUGELY needed fix. Windows 10 updates are 5+ GB
per month, and we lose several days of bandwidth downloading
duplicates from different mirrors. Sometimes a single client
will request the same patch from multiple mirrors. That's bad.
This patch will save a ton of bandwidth, and lots of disk space.

The patch limits the SHA1 test to microsoft only, but it
could be easily expanded to other vendors if there is a need.

Signed-off-by: Justin Luth  <jluth@mail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-07 19:47:03 +00:00
Justin Luth
39c0b5b3bc Fix bug 10504: match download's sourceurl mangling in, updxlrator
Updatexlrator stores its files in a hash of the URL.

The download utility mangles the URL for [+/~], but
the updxlrator only does it for [/]. Thus, download
stores the result as one hash, and updxlrator looks for it
with a different hash. The result is that the file is
re-downloaded every time by both the client, and updxlrator.

This is fixed by making updxlrator mangle the url in the
same way as the downloader. apt-get install g++ would
be a good test for this.

Signed-off-by: Justin Luth  <jluth@mail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-07 19:27:47 +00:00
Alf Høgemark
f00699e8bb Change case of the unit "bit" from "Bit" to "bit" in web UI
The correct case for "kilobit" is "kilobit", not "kiloBit".
And the same applies for Mbit, Gbit etc.
Reference is https://en.wikipedia.org/wiki/Kilobit

This commit changes the texts used in the web UI, so
that it correctly displays as "bit", "kbit", "Mbit" etc.

This fixes bugzilla item 10918.

Signed-off-by: Alf Høgemark <alf@i100.no>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-07-20 16:46:23 +01:00
Michael Tremer
9663c20e2d update accelerator: Adapt to new squid helper protocol. 2014-06-02 01:43:32 +02:00
Alf Høgemark
1235b1f144 updxlrator: Add support for tar.xz files 2014-02-15 15:03:58 +01:00
Alf Høgemark
77fa792f93 updxlrator: Add support for ArchLinux pkg.tar.xz files
Add support for caching package files for ArchLinux in updxlrator, by
adding pkg.tar.xz to the regular expression for Linux vendor.
2014-02-15 15:03:37 +01:00
Michael Tremer
8999627f8a Merge remote-tracking branch 'jiweigert/updxlrtr_sources' into core68 2013-03-08 16:37:08 +01:00
Joern-Ingo Weigert
219c963e3b Add support for Mozilla (Firefox) Updates in updxlrator
This patch add a new source-url in /usr/sbin/updxlratorto support
Mozilla (Firefox) Updates

It hooks on either partial(.mar) (v18.0.1->v18.0.2) or complete(.mar)
updates (v18.0->v19.0) and all *.exe Downloads from *.mozilla.net
2013-03-06 11:58:48 +01:00
Joern-Ingo Weigert
7b59d8389d New source-url for McAfee Scanner support for updxlrator
This patch add a new source-url to support McAfee Scanner Updates
in Update Accelerator /usr/sbin/updxlrator
2013-03-06 11:08:51 +01:00
Joern-Ingo Weigert
5150d3730a New extension/host for Avast 7.x/8.x Scanner versions
This patch fix the source url for Avast and add a new host (ion)
and a new extension (vpx) to support Avast 7.x/8.x Scanner updates.
2013-03-06 10:55:04 +01:00
Joern-Ingo Weigert
bc68985360 updateaxelerator: Add extension for Windows 8 updates.
New extension for Windows 8 update files (msu).

Fixes #10326.
2013-03-03 13:34:06 +01:00
Joern-Ingo Weigert
4f6b044f7f updateaxelerator: Adding line to hint where to add new sources.
Fixes #10253.
2013-03-03 13:28:17 +01:00
Michael Tremer
a19f33961c update accelerator: Don't change owner of ALL files in cache.
When a file has been downloaded, all files in the update accelerator
cache directory have been chowned which causes huge IO load.
It is only required to set permissions that members of the group
can delete the files (purge function on the web user interface).

Changing the owner is completely unnecessary as only the squid
user needs write access and the web server is able to deliver
any file in the update cache anyways.
2013-01-26 19:31:58 +01:00
Stefan Schantl
68e2d326ed updxlerator: Disable call of chmod on downloader.
Disable the call of chmod after downloading a file. This is not woking because of different
owner's and only flushes the log files.

Fixes #10088.
2012-12-19 20:47:07 +01:00
Christian Schmidt
8dbba0e460 Fixed Avira Update Caching and improved Gentoo Caching. 2011-01-19 18:43:16 +01:00
maniacikarus
f17e1488a1 Disabled cryptsetup
2nd try to fix updx bug
2009-05-15 18:07:28 +02:00
maniacikarus
2b5b6b9e75 Tried to fix updx cache permissions 2009-05-08 11:48:20 +02:00
maniacikarus
4f4092e3dc Updated updxlrator to latest stable 2009-02-09 18:09:07 +01:00
Daniel Glanzmann
e92a5d3339 Fixed warning in updxlrator
Since we are not running squid as root a chown to nodoby
will result in a warning
2008-12-19 19:56:18 +01:00
Maniacikarus
da137f2159 These bloody f*** little things 2008-09-14 13:41:29 +02:00
Maniacikarus
c69191276c Finaly the Updbooster should work now 2008-09-14 13:22:55 +02:00
Maniacikarus
646750c501 fixed Updbooster 2008-09-14 12:57:55 +02:00
Maniacikarus
0a63839688 Upgrade updbooster to xlrator 2.0 added to core 2008-09-03 20:17:23 +02:00
Arne Fitzenreiter
4ae86474bd Add AVG Updates to Updxlrator 2008-05-02 23:44:55 +02:00
maniacikarus
381f2e7111 Moved updbooster cache files to a larger partition
Added changes to the first core update to avoid full root partitions


git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1113 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-12-02 10:15:52 +00:00
maniacikarus
98ab7f505a Fixed Backup CGI
Removed Kaspersky from Update Booster


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1006 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-27 12:51:42 +00:00
ms
94774b8a0d Kernel Update auf 2.6.16.55.
Den Kaspersky n bisschen gefixxt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@967 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-14 09:57:11 +00:00
maniacikarus
d6d6d59825 UpdateBooster Versuch fuer Kaspersky
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@956 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-08 18:31:08 +00:00
maniacikarus
2dfb38e6a9 Erster Versuch fuer Update Booster und Apple
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@850 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-28 11:03:30 +00:00
ms
186e3d2cf8 DHCP und Squid-Initscripts optimiert fuer ein schnelleres starten und stoppen.
Which und lsof zur ISO hinzugefuegt.
Update-XLrator cacht unsere Pakfire-Pakete und rpm/deb-Pakete.
Pakfire weitergebaut.
UPnP aus dem Menue genommen.
Samba-Symlinks korrigiert.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@657 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-07-01 21:41:27 +00:00
maniacikarus
69dcc42551 commit und geh weg
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@648 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-27 17:31:30 +00:00
ms
5b2a12ff8a Am Pakfire weitergearbeitet.
CGI erweitert und mit neuen Funktionen versehen.
Paketformat grundlegend geaendert.
UpdateBooster gefixt.
Avira+Avast als Updatequelle eingefuegt.
VPN-Watch ins log.dat.
DHCP-Server startet nach der Installation.
Einen String im Installer verschoenert :D


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@639 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-19 18:40:52 +00:00
ms
46c01c0912 Updatexlrator (not tested yet)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@421 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-02-15 21:26:14 +00:00