Commit Graph

128 Commits

Author SHA1 Message Date
Thilo Graf
dc3b6caae6 COPKGManager: unified log output 2015-12-28 12:13:38 +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
5eff6a4fb9 COPKGManager: add filter for ipk packages 2015-12-28 12:13:37 +01:00
Thilo Graf
7b178e71f9 COPKGManager: add variable to hold last selected source dir 2015-12-28 12:13:37 +01:00
Thilo Graf
3abd9c8e77 COPKGManager: add possibility to install package from single package file 2015-12-28 12:13:36 +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
6a06d5cdc1 COPKGManager: use fclose instead pclose
my_popen returns a stream pointed to a file descriptor

NOTE: documentation for some bent functions in helpers.cpp would be nice!
2015-12-28 12:13:34 +01:00
Thilo Graf
a8376a5f8a COPKGManager: use my_popen instead popen
popen causes some errors after flash update check
2015-12-28 12:13:34 +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
77002eb839 COPKGManager: allow update and usage of multiple package sources
This allows to use more than one package adress via config file.
Example configuration in /etc/opkg/opkg.conf:
...
src packages http://www.yourserver.org/pkgs/packages
src local 192.168.1.2/pkgs/local
...

After Update, all packeges will be listed in the manager list and can
be installed, updated ...
2015-12-28 12:13:34 +01:00
Thilo Graf
1e8d19aeef COPKGManager: use general options for cache, temp dir and logging
cache dir option not required assigned in config file.

Note: existing option "cache" in opkg config file must be removed now, otherwise
it could hail error log messages and gui package listing could be garbled!
Not nice now, but it's one step for an unified configure handling.
2015-12-28 12:13:33 +01:00
Thilo Graf
c4e5a9f95c COPKGManager: use and apply namespace std 2015-12-28 12:13:33 +01:00
Thilo Graf
86e35add16 COPKGManager: use ACKNOWLEDGE_MSG to show info message 2015-12-28 12:13:28 +01:00
Thilo Graf
c70c234394 COPKGManager: add member showError to show handled error message on screen 2015-12-28 12:13:24 +01:00
Thilo Graf
35345e2c7e COPKGManager: use plausible message title
Here we have errors, so we should use plausible titles for message box
2015-12-28 12:13:23 +01:00
Thilo Graf
2d3b3006d0 COPKGManager: craete directory /tmp/.opkg on opkg manager init
This directory can be useful for usage in opkg config as cache directory

option cache /tmp/.opkg
2015-12-28 12:13:23 +01:00
svenhoefer
59e168fc30 - opkg_manager: use correct brief hints 2015-05-19 12:29:17 +02:00
Thilo Graf
a58f1621b4 Merge branch 'cst-next.pre' into cst-next 2015-04-30 09:20:43 +02:00
svenhoefer
9041bff59c - remove w_max()-calls to define menu-width, because ...
w-max() returns a pixel-value, but menus need a percentage-value.
2015-04-24 09:11:04 +02: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
Stefan Seyfried
42c2323135 opkg_manager: use my_system to avoid filedescriptor leaks 2015-02-09 13:47:32 +01:00
Stefan Seyfried
f75ed81dd1 opkg_manager: remove the dependency on opkg-key
opkg-key does not work at all in standard installs (without gpg)
and is not needed for package management.
Slightly change the definition of opkg commands to not initialize
with find_executable function at startup which seems bogus.
2015-02-09 13:47:32 +01:00
Jacek Jendrzej
2b5e7b5ba3 use empty to check string 2015-01-09 17:15:11 +01:00
Thilo Graf
aa46ba6156 COPKGManager: simplify intro items 2014-05-22 21:36:03 +02:00
Thilo Graf
a323173aed COPKGManager: use of appropriate width
Most entries are larger then 40% and in case of failed package update,
window is too small. Displayerrors in footer bar are possible.
2014-05-16 09:08:05 +02:00
Thilo Graf
53e734e7c3 COPKGManager: remove unused variable 2014-05-16 08:45:41 +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