Antoine Jacoutot
eeee076cca
Simplify the update check.
2013-09-04 15:00:05 +02:00
Antoine Jacoutot
e30c78e50e
Fix run in non dry-run mode.
...
Add squeleton for the -K option.
2013-09-04 14:53:56 +02:00
Antoine Jacoutot
46ab61d738
Bump.
2013-09-04 14:39:43 +02:00
Antoine Jacoutot
81d5d62ff7
Remove the auto-update feature, one less knob!
...
The rational is that if the openup URL ever gets compromised, then we are restarting a script which we do not control anymore... and that can lead to obvious catastrophic failures...
Now openup will *always* check if there is an update and if one is available, it will output the command needed to update (but will not run it itself) then exit.
2013-09-04 14:37:37 +02:00
Antoine Jacoutot
fd116b23dd
Use the value of TMPDIR if it is defined.
2013-09-04 09:50:47 +02:00
Antoine Jacoutot
a1cc6fb405
Protect variables.
2013-09-04 09:25:06 +02:00
Antoine Jacoutot
41ee3307f5
Remove TODO and bump VERSION.
2013-09-03 11:47:27 +02:00
Antoine Jacoutot
f68e518450
Implement binpatch support in cron (-c) mode.
...
This finishes the initial implementation of openup...
2013-09-03 11:46:28 +02:00
Antoine Jacoutot
9d4f46f0a8
Remove Ksh'isms. There is no need for it, so use regular Bourne
...
Shell constructs.
2013-09-03 08:51:30 +02:00
Antoine Jacoutot
996e0b21ea
_RUN2 -> noselfupdate
...
No functionnal change but makes it clearer.
2013-09-02 11:57:44 +02:00
Antoine Jacoutot
8b9507da18
Automatically check for openup update in cron mode.
...
That means we can add a cronjob for openup and forget about it until:
* new vulnerability applies to us
* current release becomes unsupported
2013-09-02 10:41:22 +02:00
Antoine Jacoutot
1433ebcc1c
Make openup -c mutually exclusive with other options.
2013-09-02 09:41:04 +02:00
Antoine Jacoutot
9365aec703
Make the vuxml url configurable in case people are mirroring us.
2013-08-27 16:16:33 +02:00
Antoine Jacoutot
513f943d35
Extend comment.
2013-08-27 15:52:57 +02:00
Antoine Jacoutot
c54a833668
Tweaks.
2013-08-27 15:50:23 +02:00
Antoine Jacoutot
d6c9801637
This deserves a version bump.
2013-08-27 15:44:38 +02:00
Antoine Jacoutot
6dd1490caa
Finish vuxml implementation for pkg.
...
Next step will be binpatches, but it is now time to extensively test this:
'openup -c'
I tried to make the code as simple as possible so that everyone does
not wonder how we parse the xml.
2013-08-27 15:42:03 +02:00
Antoine Jacoutot
7dc9cf031e
Simplify and fix regex/parsing to cope with multi-packages.
2013-08-27 15:29:48 +02:00
Antoine Jacoutot
180f052be3
Better regex to match merging packages.
2013-08-27 13:39:38 +02:00
Antoine Jacoutot
b1ccd4ec66
More TODO. No VERSION bump since it's not finished yet.
2013-08-27 13:03:22 +02:00
Antoine Jacoutot
9efbb1531a
Remove support for firmwares -- it's pretty useless.
...
Rework usage and add -c (check/cron option).
Initial implementation of the vuxml parsing - still WIP but seems to work ok (just wear glasses if you want to read the corresponding function)... regex foo!
2013-08-27 13:01:01 +02:00
Antoine Jacoutot
6e63ce4179
Add an outdated_pkg() function -- not used nor finished yet.
2013-08-26 11:40:50 +02:00
Antoine Jacoutot
4e40824649
Minor tweaks.
2013-08-26 11:20:33 +02:00
Antoine Jacoutot
b64e67315a
Bump VERSION.
2013-08-20 11:23:59 +02:00
Antoine Jacoutot
6c8c11bfb3
Sanitize variables name.
...
Make this tool standalone and not rely on externaly set PKG_PATH
or installpath.
2013-08-20 11:22:11 +02:00
Antoine Jacoutot
b27db2f296
Rename some functions.
2013-08-14 10:38:03 +02:00
Antoine Jacoutot
94ed4cae6c
Extend usage and doc.
2013-08-14 10:36:28 +02:00
Antoine Jacoutot
806910046d
Better regex.
2013-08-13 15:34:25 +02:00
Antoine Jacoutot
6f43e19082
Fix typo.
...
Output the complete steps taken to update the script when running
in dry run mode.
2013-08-13 14:35:12 +02:00
Antoine Jacoutot
f1c7ac9576
Abort immediately if binpatch from an older release is installed.
2013-08-13 14:15:45 +02:00
Antoine Jacoutot
20d2d91f3a
check for pkg.conf installpath and/or PKG_PATH
2013-08-13 14:02:53 +02:00
Antoine Jacoutot
331b94ef66
Clearer output.
2013-08-13 09:39:02 +02:00
Antoine Jacoutot
2e23fd1ea2
Missing space.
2013-08-13 09:31:21 +02:00
Antoine Jacoutot
76b294376e
More TODO.
2013-08-12 14:56:53 +02:00
Antoine Jacoutot
451145168b
Fix error outputs.
2013-08-12 14:55:27 +02:00
Antoine Jacoutot
25cd4cb703
Add TODO.
2013-08-09 11:50:54 +02:00
Antoine Jacoutot
4a37e8366f
Add a failsafe, people are stupid.
2013-08-09 11:49:11 +02:00
Antoine Jacoutot
0b64f2e86f
Finalize auto-update.
...
Bump version.
2013-08-09 11:44:30 +02:00
Antoine Jacoutot
66c83d3b34
Add printf(1) functions.
2013-08-09 11:26:55 +02:00
Antoine Jacoutot
954e05ae4f
Put all binpatches on one line.
2013-08-09 11:23:08 +02:00
Antoine Jacoutot
3266260048
Explicitely notify that we are running in dry run mode.
2013-08-09 11:17:04 +02:00
Antoine Jacoutot
01dde390fc
Use SSL fingerprint to check the certificate.
...
Move generic rm(1) call in trap.
Run a wildcard rm(1) at the end of the script.
Cope with multiple certificates in one PEM file.
2013-08-09 10:37:43 +02:00
Antoine Jacoutot
c02d1d5463
Run $_CMD under eval, so that redirection is properly handled.
2013-08-09 09:31:58 +02:00
Antoine Jacoutot
59f4095432
More output.
2013-08-08 11:17:00 +02:00
Antoine Jacoutot
47bd274ab7
Always display the command we are about to run.
...
Implement trap.
2013-08-08 11:11:18 +02:00
Antoine Jacoutot
7f59ecbcef
Fix runtime option parsing.
2013-08-08 10:54:59 +02:00
Antoine Jacoutot
824106a288
Move some stuffs around: we want all sanity checks to run first before creating any temp files or anything.
...
Simplify some stuffs and rename a temp file.
2013-08-07 17:18:55 +02:00
Antoine Jacoutot
2ee5d0e3d8
Move variable assignment at the top.
2013-08-06 10:44:40 +02:00
Antoine Jacoutot
19af198490
Factorize TMPDIR.
2013-08-06 10:43:06 +02:00
Antoine Jacoutot
038da756dd
Redo the way we do dry runs to output the command that would have been run.
...
Simplify some stuffs while here.
Bump version.
2013-08-06 10:27:57 +02:00