Commit Graph

24 Commits

Author SHA1 Message Date
Thilo Graf
bea8f5e980 COPKGManager: don't init if no opkg support available
This avoids creating of any basic configuration files or directories on
non opkg supported firmware releases.
2015-12-29 16:55:08 +01:00
Thilo Graf
9345f792a7 COPKGManager: use config file for bad package detection
To detect bad packages, it must be existing a matching pattern list file.
Path is defined in OPKG_BAD_PATTERN_LIST_FILE.
This gives the option to filter some bad entries in the package listing menue.
NOTE: a sample file you should find here as : "/var/tuxbox/config/bad_package_pattern.list.sample".
If required, remove the ".sample" extension and change the entries for your requirements
2015-12-28 12:13:51 +01:00
Thilo Graf
e1e8cb0142 CShellWindow/COPKGManager: rework shell shell mode handling
Modes were handled with bool values inside manager and this is not really
enough. Now we use the real parameters for more flexibility.
2015-12-28 12:13:50 +01:00
Thilo Graf
79f66537f0 COPKGManager: remove useless err_msg var, replaced by tmp_str 2015-12-28 12:13:49 +01:00
Thilo Graf
9a6aae8f49 COPKGManager: use parameters for errror message and additional text as option 2015-12-28 12:13:49 +01:00
Thilo Graf
acdc74950a COPKGManager: use empty string as default parameter for full info 2015-12-28 12:13:48 +01:00
Thilo Graf
ed5bbdc540 CShellWindow/COPKGManager: handle some error from shell output
TODO: add missing handlers
2015-12-28 12:13:48 +01:00
Thilo Graf
ce3c4d3b04 COPKGManager: add functions isInstalled() and isUpgradable() 2015-12-28 12:13:46 +01:00
Thilo Graf
0f1a6e7588 COPKGManager: add optional parameter force_configure to installPackage() 2015-12-28 12:13:46 +01:00
Thilo Graf
aad5db705f COPKGManager: add possibility to manage source feeds for packages
Feeds are saved in opkg config file.

NOTE:Existing config file will be overwrite, so must be reconfigured
via gui.
Source names are strictly numbered src 0...10 (maximmal 10 at the moment)

FIXME: input mask in keyboardinput class is too small for some adresses, large
address names are cutted and makes entries useless
2015-12-28 12:13:45 +01:00
Thilo Graf
14d21fdeec COPKGManager: use installPackage() for install from package list too
installPackage() has also a new parameter for options,
in this case is --force-reinstall in use.
2015-12-28 12:13:45 +01:00
Thilo Graf
55a027efbf COPKGManager: add methodes to get infos and status of packages 2015-12-28 12:13:45 +01:00
Thilo Graf
9ae65d4ec5 COPKGManager: add function to check package size 2015-12-28 12:13:42 +01:00
Thilo Graf
7520fee2ef COPKGManager: outsource methode for install any package
Required for external usage.
2015-12-28 12:13:41 +01:00
Thilo Graf
4909844ad6 COPKGManager: add member to handle line of shell lines
prepared for use as callback in shell window class, currently
it is not possible to get line output from shellwindow object, this
should help soon

also added ne locales
2015-12-28 12:13:40 +01:00
Thilo Graf
b3afd24260 COPKGManager: add members to get package infos and optmize update check 2015-12-28 12:13:39 +01:00
Thilo Graf
1606cf8a30 COPKGManager: remember for last selected update directory
Use g_settings to handle local package directory.
Extra settings handler via gui for this directory is not intended. Default update directory
is the same like in flash settings.
2015-12-28 12:13:38 +01:00
Thilo Graf
7b178e71f9 COPKGManager: add variable to hold last selected source dir 2015-12-28 12:13:37 +01:00
Thilo Graf
524b91a402 COPKGManager: use shell output to generate error messages for gui 2015-12-28 12:13:35 +01:00
Thilo Graf
eb6f972f60 COPKGManager: add member doUpdate() 2015-12-28 12:13:35 +01:00
Thilo Graf
6942173bf7 COPKGManager: add function to get status for new package updates 2015-12-28 12:13:34 +01:00
Thilo Graf
c70c234394 COPKGManager: add member showError to show handled error message on screen 2015-12-28 12:13:24 +01:00
Stefan Seyfried
5750ca23ae opkg_manager: add a list of packages to hide
Advanced build system can come up with an impressive list of
(sub-)packages, most of them not really interesting for installation
through the GUI. Add a filter with simple patterns to suppress the
display of those packages.
TODO: this should be made configurable via a run-time config file.

Signed-off-by: Markus Volk <f_l_k@gmx.net>
2015-03-30 11:21:37 +02:00
Thilo Graf
758f3535c8 OPKG-Manager: add opkg manager feature
Signed-off-by: Markus Volk <f_l_k@gmx.net>
Signed-off-by: Thilo Graf <dbt@novatux.de>

Opkg is a lightweight package management system based on Ipkg.

For usage with Neutrino, installed opkg programms opkg-cl and opkg-key
are required and can be find in service update menu,
otherwise this feature is not available.

With this feature it is possible to select packages for install and remove
via gui-menu.

See also:
OPKG-Website
- http://bitbucket.org/opkg/opkg for more details.

Tuxbox:
- http://wiki.tuxbox.org/Neutrino-MP Entwicklungsumgebung#OPKG-Pakete
- http://wiki.tuxbox.org.Neutrino-HD Entwicklungsumgebung:OPKG-SystemInstall

Buildsystems with opkg support:
- http://gitorious.org/neutrino-hd/buildsystem-cs
- http://sourceforge.net/p/bstuff/bs4cs/
- Yocto

OPKG-Manager Neutrino:
- picked from http://gitorious.org/neutrino-mp/martiis-neutrino-mp include shellwindow feature by martii
- update License text
- add missing icon
- use macros to get opkg binaries
- use matching buttons in footer, menu button is already reserved to left menu
2014-04-15 11:59:12 +02:00