Commit Graph

69 Commits

Author SHA1 Message Date
Michael Tremer
152378c674 pakfire: Add version suffix when in a certain tree
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-15 11:09:02 +00:00
Michael Tremer
e6f4991be2 pakfire: Automatically compose $version
The tree in which pakfire is looking for packages and Core Updates
has been hardcoded into /opt/pakfire/etc/pakfire.conf.

This patch adds a new function which reads the system release
from /etc/system-release.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-15 11:07:55 +00:00
Arne Fitzenreiter
c846ed1616 pakfire: use HTTPS if no protocol is specified
also use HTTPS on fallback to mainserver if no mirror was left

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-01-02 16:17:54 +00:00
Alexander Koch
8c072c5c43 Pakfire: Add Core-Version to "status"
Add the IPFire-Core-Version to the status message.

Signed-off-by: Alexander Koch <ipfire@starkstromkonsument.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-05-10 04:25:45 +01:00
Alexander Koch
090af02e07 Pakfire: Add new command line argument "status"
This enables Pakfire to return a Status-Summary for the Current Core-Update-Level, time since last updates, the availability of a core-/packet-update and if a reboot is required to complete an update. This can be used by monitoring agents (e.g. zabbix_agentd) to monitor the update status of the IPFire device.

Signed-off-by: Alexander Koch <ipfire@starkstromkonsument.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-05-07 23:51:20 +01:00
Michael Tremer
06d55142e5 pakfire: Remove any reference to counter.py
The concept has been retired a very log time ago
and the web service only responds with 200 what ever
it is being sent.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-08-27 07:29:19 +01:00
Michael Tremer
e32591e7bf pakfire: Remove mirror health check
This is not really necessary because pakfire will automatically
failover to the next mirror anyways and that a mirror responds
to an ICMP echo request doesn't necessarily mean that it can
deliver the requested file.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-08-27 07:23:03 +01:00
Michael Tremer
3e29608f82 pakfire: Validate signatures when multiple are available
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-04-02 15:45:48 +01:00
Michael Tremer
4b072d640e pakfire: Use upstream proxy for HTTPS, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-03-28 16:55:18 +01:00
Peter Müller
66a0f3646a use protocol defined in server-list.db for mirror communication
For each mirror server, a protocol can be specified in the
server-list.db database. However, it was not used for the
actual URL query to a mirror before.

This might be useful for deploy HTTPS pinning for Pakfire.
If a mirror is known to support HTTPS, all queries to it
will be made with this protocol.

This saves some overhead if HTTPS is enforced on a mirror
via 301 redirects. To enable this, the server-list.db
needs to be adjusted.

The second version of this patch only handles protocols
HTTP and HTTPS, since we do not expect anything else here
at the moment.

Partially fixes #11661.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-03-28 16:42:21 +01:00
Michael Tremer
35b892b0dd pakfire: Drop old key import mechanism
This was error-prone and allowed to potentially inject another
key.

Fixes: #11539
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-03-16 14:37:21 +00:00
Michael Tremer
396ff12342 pakfire: Properly check if we have our key with our fingerprint
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-12-12 19:40:01 +00:00
Michael Tremer
73b2988ae4 pakfire: Drop importing CACert's PGP key
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-12-12 19:28:16 +00:00
Matthias Fischer
db9f57143f pakfire - 'functions.pl': fixed typo
Just read this typo in a forum posting. Couldn't resist...

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-12-05 17:03:36 +00:00
Peter Müller
bb6481a820 validate GPG keys by fingerprint
Validate GPG keys by fingerprint and not by 8-bit key-ID.

This makes exploiting bug #11539 harder, but not impossible
and does not affect existing installations.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-11-13 22:41:21 +00:00
Michael Tremer
621dcd8609 pakfire: Fix dependency resolver
The old algorithm could potentially lock itself in an endless
recursion when there were packages with circular dependencies.

This version does not do this and is also faster.

Reported-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-04-07 12:04:02 +01:00
Arne Fitzenreiter
4e17785fc1 pakfire: remove wrong version of installed addons
in the installed addon list pakfire has showed
the latest version of the addon not the installed.

Fixes: #10875

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2015-11-11 14:54:21 +01:00
Michael Tremer
031becc0e2 pakfire: Resolve dependencies for upgraded packages
When updating more than one package, only new dependencies
for the first one are resolved. The rest was ignored.

This patch fixes that.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-07-09 21:01:10 +02:00
Lars Schuhmacher
b29a624081 pakfire: Add information about probable causes when pakfire cannot connect
Add information about probable causes when pakfire cannot connect. This
includes port 11371 TCP and incorrect date/time settings.

Signed-off-by: Lars Schuhmacher <larsen007@web.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-06-02 23:47:46 +02:00
Arne Fitzenreiter
1af34aa810 pakfire: skip corrupt "meta-" file.
This was created by a bug in dep resolve at upgrade.
2015-05-16 13:00:12 +02:00
Michael Tremer
9f1f68f17a pakfire: fix dep resolve at upgrade. 2015-05-16 12:57:28 +02:00
Michael Tremer
63efc01c84 pakfire: Prevent an infinite loop with empty server list. 2013-12-28 17:06:38 +01:00
Arne Fitzenreiter
ccbe39e94a Change pgp keyserver to pgp.ipfire.org so we can change it in the dns. 2011-02-07 19:56:39 +01:00
Christian Schmidt
4a97978091 Fixed pakfire error message - this fixes bug #0000688 2010-07-14 01:08:39 +02:00
Michael Tremer
91bc781441 pakfire: Change pingtest to use icmp again. 2010-03-03 10:47:33 +01:00
Arne Fitzenreiter
ff9545f862 Pakfire: Update also the meta db at package list update.
This prevent using old dependencies at package update.
2009-11-02 16:18:10 +01:00
Jan Paul Tuecking
462a5e8678 Fixed core-update notification on index.cgi, it should not display any thing else then core-updates. 2009-10-11 18:13:33 +02:00
Jan Paul Tuecking
4638fd9259 Fixed function.sh - no notification if there are no updates. 2009-10-11 18:07:46 +02:00
Jan Paul Tuecking
2b38ab5c3a Added a notification to index.cgi when core-updates are available. 2009-09-14 17:59:50 +02:00
Arne Fitzenreiter
984e272326 Fix missing "}" in pakfire functions.pl. 2009-10-07 18:24:06 +02:00
Christian Schmidt
d59b02f177 Added option to disable ping check for mirrors. 2009-09-25 17:44:08 +02:00
Arne Fitzennreiter
5e932bd569 Fix pakfire reinstall removed packs if an updated version was released 2008-10-27 22:48:28 +01:00
Maniacikarus
3f01107b12 Fixed pakfire installing upgrades twice 2008-09-13 22:01:20 +02:00
Arne Fitzenreiter
e4e4b3f975 Add a increasing delay after a pingtest failure 2008-08-25 21:33:12 +02:00
Christian Schmidt
d1d1cb4226 Fixed Pakfire updating coredb when using webif without beeing able to
check gpg -> massively logging errors to syslog
2008-05-02 15:33:32 +02:00
Christian Schmidt
28593a79c2 Changed the behaviour of the pakfire cgi
Tried to handle some known pakfire problems (time errors and zero metas)
2008-04-19 14:49:00 +02:00
Christian Schmidt
c506cad0de Changed pakfire logging facility to syslog and added to core12 2008-04-18 15:07:45 +02:00
maniacikarus
518f894b4a Fixed a pakfire bug preventing the fire to go from core 9 to 10
Corrected wromg smdb to smbd entry in collectd.conf


git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1268 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2008-03-14 10:03:50 +00:00
ms
c6cada8c3f Made the install/update/uninstall scripts looking equal.
The deletion of the files in done in the shellscripts to be more flexible.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1022 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-28 16:59:00 +00:00
ms
3d3b68c58f Ein paar Schoenheitsfehler korrigiert.
Kernel Update...
Das Pakfire Timeout hoeher gesetzt.
CenterIm-Paket erstellt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@951 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-07 19:12:03 +00:00
maniacikarus
f6504eb327 Ein weiteres Webradion hinzugefügt
Backup include angepasst
Pakfire timeout auf 20 gesetzt
Fix im Networking Skript für any


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@949 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-06 10:10:24 +00:00
ms
4c7fa778d4 Pakfire an den neuen Server angepasst.
Die Pakete wurden nicht richtig gebaut, da die speiziellen Scripts nicht beruecksichtigt wurden.
Fix in der mpfire makefile.
syslogdctrl sollte nun die Direktiven besser ersetzen.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@906 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-09-22 10:48:09 +00:00
ms
4e4b54c591 Pakfire aktualisiert jetzt die Pakete nichtmehr in der Schleife.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@893 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-09-15 21:27:36 +00:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
ms
377560fbff Pakfire laedt die Listen jetzt besser und hat eine veraenderte Oberflaeche bekommen.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@852 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 10:14:06 +00:00
ms
8a8a50ad09 Update Nummer 2
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@846 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-27 19:31:19 +00:00
ms
a4c9c66090 OpenSwan gefixt.
Tippfehler im Pakfire-lib.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@761 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-13 20:58:51 +00:00
ms
ca385da667 mtools enfernt.
Keyserver des Pakfire geaendert.
ISDN aus dem Setup-Menue ausgebaut.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@758 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-11 13:15:05 +00:00
ms
2aa6d448d1 Pakfire holt nun Systemupdates.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@751 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-09 16:04:04 +00:00
ms
e3670217a2 Pakfire Update.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@733 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-05 17:15:33 +00:00