Commit Graph

126 Commits

Author SHA1 Message Date
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
5e5c2e5413 Import new Pakfire Signing Key
We will swap the key that we use to sign Pakfire packages
since the current one is considered outdated cryptography.

Fixes: #11539

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-03-16 14:26:07 +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
Jonatan Schlag
e6fd1f2d38 Fix in pakfire functions.sh
The if statement in line 89 and 99 are useless with the -e
conditional expression because it returns true if the path ist a
regular file or a directory.
So "/etc/init.d/ " returns true and "/etc/init.d/avahi" return also true,
but the statement should return only true if we have a regular file.
So -f if the right conditional expression, and we only try to execute
the init script if the path "/etc/init.d/${1}" points to a regular file.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-06-16 09:33:26 +01:00
Arne Fitzenreiter
33513817fa set version to IPFire 2.19 core100
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-03-20 09:36:33 +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
Michael Tremer
5555c4b887 pakfire: Fix installing dependencies when updating packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-07-09 20:53:33 +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
2dd319f5b5 close core71. 2013-07-16 08:35:28 +02:00
Arne Fitzenreiter
fe3a05da3a pakfire: compression detection needs an extension. 2012-10-26 15:36:48 +02:00
Arne Fitzenreiter
03207e65b1 pakfire: enable compression autodetection inside the packages. 2012-10-26 09:56:31 +02:00
Arne Fitzenreiter
ace40c90ec pakfire: add function to extract backup includes.
this is needed to fix some addons with missing includes at the next
update. (eg. nagios).
2012-07-07 19:37:56 +02:00
Michael Tremer
7b321c2cbe Merge remote branch 'origin/next' into arm-port
Conflicts:
	config/rootfiles/common/i586/gcc
	lfs/binutils
	lfs/cleanup-toolchain
	lfs/coreutils
	lfs/gcc
	lfs/glibc
	lfs/groff
	src/pakfire/pakfire.conf
	src/patches/gcc-4.1.2-specs-1.patch
2011-09-18 02:58:34 +02:00
Michael Tremer
1e40ba2a0d pakfire: Automatically write version number to pakfire.conf. 2011-09-17 14:55:33 +02:00
Arne Fitzenreiter
b0dcbdeae4 core53: next is core53 now.
set version in backupiso and pakfire to 2.11.
2011-09-11 16:06:52 +02: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
Arne Fitzenreiter
8cd7fc6b02 Set 2.9 as pakfire tree. 2010-12-06 00:28:05 +01:00
Christian Schmidt
4a97978091 Fixed pakfire error message - this fixes bug #0000688 2010-07-14 01:08:39 +02:00
Arne Fitzenreiter
879ad7fb60 Set pakfire to 2.7 trunk. 2010-05-15 21:04:40 +02:00
Arne Fitzenreiter
521a8b45e2 Fix permission change of existing directories at core updates. 2010-03-30 07:53:18 +02:00
Michael Tremer
4a0ce88c9b pakfire: Change pingtest to use icmp again. 2010-03-14 11:34:37 +01:00
Christian Schmidt
c0faa0efaf Fixed all those tar --preserve errors present. 2010-02-20 12:41:57 +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
Christian Schmidt
3a3c02eee7 Fixed pakfire sorting paks 2009-08-15 13:51:17 +02:00
Christian Schmidt
519f8431c0 Fixed bug, pakfire isntalls dependencies twice -> needs testing. 2009-08-14 13:38:44 +02:00
maniacikarus
373e13c20b This one should fix the pakfire problems, first install deps and then the pak 2009-06-09 22:23:05 +02:00
Arne Fitzenreiter
aba23e91dc Set Version to 2.5beta1 2009-04-22 19:17:22 +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
343262e683 BugFix: pakfire try to remove the files of the new pakage at update 2008-09-04 00:07:38 +02:00
Arne Fitzenreiter
e4e4b3f975 Add a increasing delay after a pingtest failure 2008-08-25 21:33:12 +02:00
Christian Schmidt
6b9f1b8884 New Version will be 2.3
Upgraded collectd
Tried to fix a bug when using usb cdrom for install
2008-06-14 11:54:51 +02:00
Michael Tremer
4ce3790866 Imported the beginning of the rowie-spezial and possible 2.2 release. 2008-05-17 23:58:21 +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