Commit Graph

93 Commits

Author SHA1 Message Date
Thilo Graf
8a58c63fa8 COPKGManager: optimize memory check before install
Origin commit data
------------------
Commit: 2ca1648070
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-30 (Tue, 30 Dec 2014)
2015-12-28 12:13:44 +01:00
Thilo Graf
cdd8aac791 COPKGManager: show message on space error
Origin commit data
------------------
Commit: 28d17802d4
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-30 (Tue, 30 Dec 2014)
2015-12-28 12:13:44 +01:00
Thilo Graf
93b412354d COPKGManager: optimize error handling
Origin commit data
------------------
Commit: 19dc7ead2d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-29 (Mon, 29 Dec 2014)
2015-12-28 12:13:42 +01:00
Thilo Graf
da2254897f COPKGManager: add more error handlers
Origin commit data
------------------
Commit: 9a4863173a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-28 (Sun, 28 Dec 2014)
2015-12-28 12:13:42 +01:00
Thilo Graf
c77b075381 COPKGManager: add function to check package size
Origin commit data
------------------
Commit: 9ae65d4ec5
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-28 (Sun, 28 Dec 2014)
2015-12-28 12:13:42 +01:00
Thilo Graf
ecb186b43c CFile: add filetypes for install and update packages
Origin commit data
------------------
Commit: 7ada20de64
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-21 (Sun, 21 Dec 2014)
2015-12-28 12:13:41 +01:00
Thilo Graf
7660a6f5ff COPKGManager: outsource methode for install any package
Required for external usage.


Origin commit data
------------------
Commit: 7520fee2ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)
2015-12-28 12:13:41 +01:00
Thilo Graf
b666ea7d49 COPKGManager: optimize handling after installation
Show a success message only if restart/reboot is required and user
should decide what to do or not.
NOTE: marker file should be generated by opkg package itself
(eg. with preinstall scripts), so it's controlled by the package maintainer!


Origin commit data
------------------
Commit: 10debbbfa0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-19 (Fri, 19 Dec 2014)
2015-12-28 12:13:41 +01:00
Thilo Graf
d1b6b04169 COPKGManager: defuse error message for duplicate cache option
Origin commit data
------------------
Commit: 7acdf65e65
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-19 (Fri, 19 Dec 2014)
2015-12-28 12:13:40 +01:00
Thilo Graf
487b64f879 COPKGManager: add possibilty to check required size before install package
Origin commit data
------------------
Commit: a6f7043ab1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-13 (Sat, 13 Dec 2014)
2015-12-28 12:13:40 +01:00
Thilo Graf
c1ff8c9d5f 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


Origin commit data
------------------
Commit: 4909844ad6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-10 (Wed, 10 Dec 2014)
2015-12-28 12:13:40 +01:00
Thilo Graf
6a28f2e66c COPKGManager: add members to get package infos and optmize update check
Origin commit data
------------------
Commit: b3afd24260
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-19 (Fri, 19 Dec 2014)
2015-12-28 12:13:39 +01:00
Thilo Graf
7eef6ed773 COPKGManager: fix selection of items on expert mode switch
Origin commit data
------------------
Commit: c3f66e6e06
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-22 (Fri, 22 May 2015)
2015-12-28 12:13:39 +01:00
Thilo Graf
420a3d27bd COPKGManager: use yellow button instead red button in footer
Red button already used for upgrades


Origin commit data
------------------
Commit: f270a623e2
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-05 (Fri, 05 Dec 2014)
2015-12-28 12:13:39 +01:00
Thilo Graf
195d6e3395 COPKGManager: add locales for local installation
Origin commit data
------------------
Commit: 6016ea718c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-29 (Sat, 29 Nov 2014)
2015-12-28 12:13:39 +01:00
Thilo Graf
5b76d4ccd7 COPKGManager: unified log output
Origin commit data
------------------
Commit: dc3b6caae6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-25 (Tue, 25 Nov 2014)
2015-12-28 12:13:38 +01:00
Thilo Graf
0b67f5bba9 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.


Origin commit data
------------------
Commit: 1606cf8a30
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-28 (Fri, 28 Nov 2014)
2015-12-28 12:13:38 +01:00
Thilo Graf
866772900a COPKGManager: add filter for ipk packages
Origin commit data
------------------
Commit: 5eff6a4fb9
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-25 (Tue, 25 Nov 2014)
2015-12-28 12:13:37 +01:00
Thilo Graf
283197fb67 COPKGManager: add variable to hold last selected source dir
Origin commit data
------------------
Commit: 7b178e71f9
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-25 (Tue, 25 Nov 2014)
2015-12-28 12:13:37 +01:00
Thilo Graf
4dde627de0 COPKGManager: add possibility to install package from single package file
Origin commit data
------------------
Commit: 3abd9c8e77
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)
2015-12-28 12:13:36 +01:00
Thilo Graf
b8c7102275 COPKGManager: use shell output to generate error messages for gui
Origin commit data
------------------
Commit: 524b91a402
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)
2015-12-28 12:13:35 +01:00
Thilo Graf
cfd23aee80 COPKGManager: add member doUpdate()
Origin commit data
------------------
Commit: eb6f972f60
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-22 (Sat, 22 Nov 2014)
2015-12-28 12:13:35 +01:00
Thilo Graf
8fa1d4fec0 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!


Origin commit data
------------------
Commit: 6a06d5cdc1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-23 (Sun, 23 Nov 2014)
2015-12-28 12:13:34 +01:00
Thilo Graf
7f5d29ba36 COPKGManager: use my_popen instead popen
popen causes some errors after flash update check


Origin commit data
------------------
Commit: a8376a5f8a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-13 (Thu, 13 Nov 2014)
2015-12-28 12:13:34 +01:00
Thilo Graf
b2f72fe6a4 COPKGManager: add function to get status for new package updates
Origin commit data
------------------
Commit: 6942173bf7
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-13 (Thu, 13 Nov 2014)
2015-12-28 12:13:34 +01:00
Thilo Graf
a9c1e0d1c7 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 ...


Origin commit data
------------------
Commit: 77002eb839
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-11 (Tue, 11 Nov 2014)
2015-12-28 12:13:34 +01:00
Thilo Graf
0cc37add2e 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.


Origin commit data
------------------
Commit: 1e8d19aeef
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-09 (Sun, 09 Nov 2014)
2015-12-28 12:13:33 +01:00
Thilo Graf
c703cab313 COPKGManager: use and apply namespace std
Origin commit data
------------------
Commit: c4e5a9f95c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-10 (Mon, 10 Nov 2014)
2015-12-28 12:13:33 +01:00
Thilo Graf
c0a6b6125b COPKGManager: use ACKNOWLEDGE_MSG to show info message
Origin commit data
------------------
Commit: 86e35add16
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-05 (Sun, 05 Oct 2014)
2015-12-28 12:13:28 +01:00
Thilo Graf
38ee28b519 COPKGManager: add member showError to show handled error message on screen
Origin commit data
------------------
Commit: c70c234394
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-04 (Sat, 04 Oct 2014)
2015-12-28 12:13:24 +01:00
Thilo Graf
2a3afb2f98 COPKGManager: use plausible message title
Here we have errors, so we should use plausible titles for message box


Origin commit data
------------------
Commit: 35345e2c7e
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-04 (Sat, 04 Oct 2014)
2015-12-28 12:13:23 +01:00
Thilo Graf
97c5b2e891 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


Origin commit data
------------------
Commit: 2d3b3006d0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-21 (Sun, 21 Sep 2014)
2015-12-28 12:13:23 +01:00
vanhofen
7004c13342 opkg_manager: use correct brief hints
Origin commit data
------------------
Commit: 59e168fc30
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-19 (Tue, 19 May 2015)

Origin message was:
------------------
- opkg_manager: use correct brief hints
2015-05-19 12:29:17 +02:00
Thilo Graf
61656865d0 Merge branch 'cst-next.pre' into cst-next
Origin commit data
------------------
Commit: a58f1621b4
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-30 (Thu, 30 Apr 2015)
2015-04-30 09:20:43 +02:00
vanhofen
92960161a9 remove w_max()-calls to define menu-width, because ...
w-max() returns a pixel-value, but menus need a percentage-value.


Origin commit data
------------------
Commit: 9041bff59c
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-04-24 (Fri, 24 Apr 2015)

Origin message was:
------------------
- 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
9cb53b2344 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>


Origin commit data
------------------
Commit: 5750ca23ae
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
2015-03-30 11:21:37 +02:00
Stefan Seyfried
31dcc9ddf4 opkg_manager: use my_system to avoid filedescriptor leaks
Origin commit data
------------------
Commit: 42c2323135
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
2015-02-09 13:47:32 +01:00
Stefan Seyfried
d6541c9673 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.


Origin commit data
------------------
Commit: f75ed81dd1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
2015-02-09 13:47:32 +01:00
Jacek Jendrzej
6ff2c1b6bd use empty to check string
Origin commit data
------------------
Commit: 2b5e7b5ba3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-01-09 (Fri, 09 Jan 2015)
2015-01-09 17:15:11 +01:00
Thilo Graf
8607003efe COPKGManager: simplify intro items
Origin commit data
------------------
Commit: aa46ba6156
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-22 (Thu, 22 May 2014)
2014-05-22 21:36:03 +02:00
Thilo Graf
05af26fe66 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.


Origin commit data
------------------
Commit: a323173aed
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)
2014-05-16 09:08:05 +02:00
Thilo Graf
5451c5dce0 COPKGManager: remove unused variable
Origin commit data
------------------
Commit: 53e734e7c3
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)
2014-05-16 08:45:41 +02:00
Thilo Graf
2e64a88b0a 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


Origin commit data
------------------
Commit: 758f3535c8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-13 (Sun, 13 Apr 2014)
2014-04-15 11:59:12 +02:00