oweals/luci.git
9 years agoluci-lib-ip: accept 2nd netmask argument in new(), IPv4() and IPv6()
Jo-Philipp Wich [Mon, 26 Jan 2015 09:47:39 +0000 (10:47 +0100)]
luci-lib-ip: accept 2nd netmask argument in new(), IPv4() and IPv6()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: fix segfault in link() on systems with ip6gre support
Jo-Philipp Wich [Sun, 25 Jan 2015 20:39:17 +0000 (21:39 +0100)]
luci-lib-ip: fix segfault in link() on systems with ip6gre support

If an ip6gre interface is queried, the resulting link local address string
of 47 byte overflowed the buffer of 32 bytes used to hold the translated
address.

Increase the address string buffer to 48 byte and check the address length
prior to writing it into the buffer to avoid future problems with longs
link local addresses.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-privoxy: fix path to luci.mk after move
Jo-Philipp Wich [Sun, 25 Jan 2015 17:30:07 +0000 (18:30 +0100)]
luci-app-privoxy: fix path to luci.mk after move

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #308 from chris5560/master
Jo-Philipp Wich [Sun, 25 Jan 2015 11:36:50 +0000 (12:36 +0100)]
Merge pull request #308 from chris5560/master

luci-app-privoxy: move from openwrt/packages to openwrt/luci

9 years agoluci-mod-admin-full: use sysupgrade -T to test images
Jo-Philipp Wich [Sat, 24 Jan 2015 13:26:51 +0000 (14:26 +0100)]
luci-mod-admin-full: use sysupgrade -T to test images

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: fix netlink receiving in link()
Jo-Philipp Wich [Sat, 24 Jan 2015 13:25:53 +0000 (14:25 +0100)]
luci-lib-ip: fix netlink receiving in link()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-privoxy: move from openwrt/packages to openwrt/luci 308/head
Christian Schoenebeck [Sat, 24 Jan 2015 09:38:54 +0000 (10:38 +0100)]
luci-app-privoxy: move from openwrt/packages to openwrt/luci

* move from openwrt/packages to openwrt/luci
* adaption to new LuCI subdirectory structure
* fix error handling
* modified version handling
* fixed translations

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci-base: optimize luci.tools.webadmin.iface_get_network()
Jo-Philipp Wich [Fri, 23 Jan 2015 14:26:33 +0000 (15:26 +0100)]
luci-base: optimize luci.tools.webadmin.iface_get_network()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: add link() method to get basic iface info
Jo-Philipp Wich [Fri, 23 Jan 2015 12:00:51 +0000 (13:00 +0100)]
luci-lib-ip: add link() method to get basic iface info

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: always return table for dump, even if empty
Jo-Philipp Wich [Thu, 22 Jan 2015 22:58:42 +0000 (23:58 +0100)]
luci-lib-ip: always return table for dump, even if empty

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: remove unused functions from luci.sys.net
Jo-Philipp Wich [Thu, 22 Jan 2015 22:55:11 +0000 (23:55 +0100)]
luci-base: remove unused functions from luci.sys.net

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: support filtering neighbors by mac or dest addr
Jo-Philipp Wich [Thu, 22 Jan 2015 22:43:56 +0000 (23:43 +0100)]
luci-lib-ip: support filtering neighbors by mac or dest addr

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-splash: convert ip4mac() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 21:07:50 +0000 (22:07 +0100)]
luci-app-splash: convert ip4mac() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-splash: convert luci.sys.net.arptable() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 20:52:04 +0000 (21:52 +0100)]
luci-app-splash: convert luci.sys.net.arptable() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-mini: convert luci.sys.net.arptable() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 17:50:00 +0000 (18:50 +0100)]
luci-mod-admin-mini: convert luci.sys.net.arptable() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: convert luci.sys.net.arptable() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 17:45:28 +0000 (18:45 +0100)]
luci-mod-admin-full: convert luci.sys.net.arptable() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: rewrite luci.tools.webadmin and remove unused functions
Jo-Philipp Wich [Thu, 22 Jan 2015 17:25:49 +0000 (18:25 +0100)]
luci-base: rewrite luci.tools.webadmin and remove unused functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-olsr: rewrite mac address resolving
Jo-Philipp Wich [Thu, 22 Jan 2015 16:52:44 +0000 (17:52 +0100)]
luci-app-olsr: rewrite mac address resolving

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-freifunk: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 15:44:01 +0000 (16:44 +0100)]
luci-mod-freifunk: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-coovachilli: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 15:36:18 +0000 (16:36 +0100)]
luci-app-coovachilli: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-siitwizard: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 15:29:35 +0000 (16:29 +0100)]
luci-app-siitwizard: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 14:53:16 +0000 (15:53 +0100)]
luci-mod-admin-full: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: fix routes() for non-callback invocations
Jo-Philipp Wich [Thu, 22 Jan 2015 14:25:41 +0000 (15:25 +0100)]
luci-lib-ip: fix routes() for non-callback invocations

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-olsr: use luci.ip.routes() to find default gw
Jo-Philipp Wich [Thu, 22 Jan 2015 14:12:56 +0000 (15:12 +0100)]
luci-app-olsr: use luci.ip.routes() to find default gw

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: depend on luci-lib-ip and remove ip.lua
Jo-Philipp Wich [Thu, 22 Jan 2015 14:08:09 +0000 (15:08 +0100)]
luci-base: depend on luci-lib-ip and remove ip.lua

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-nixio: always assume Linux target (#307)
Jo-Philipp Wich [Thu, 22 Jan 2015 14:01:39 +0000 (15:01 +0100)]
luci-lib-nixio: always assume Linux target (#307)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agolibs: add luci-lib-ip
Jo-Philipp Wich [Thu, 22 Jan 2015 13:59:13 +0000 (14:59 +0100)]
libs: add luci-lib-ip

Add new luci.ip library which is an api compatible C reimplementation
of ip.lua. It also supports dumping the system routing table and neighbour
entry database via netlink.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: use serialize_json() in luci.http
Jo-Philipp Wich [Sun, 18 Jan 2015 18:01:04 +0000 (19:01 +0100)]
luci-base: use serialize_json() in luci.http

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: add luci.util.serialize_json()
Jo-Philipp Wich [Sun, 18 Jan 2015 18:00:38 +0000 (19:00 +0100)]
luci-base: add luci.util.serialize_json()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #306 from Preffer/master
Jo-Philipp Wich [Thu, 22 Jan 2015 11:06:05 +0000 (12:06 +0100)]
Merge pull request #306 from Preffer/master

libs/luci-lib-httpclient: fix not straightforward behavior of httpclient

9 years agoadd params support in options 306/head
Yuzo [Thu, 22 Jan 2015 05:12:48 +0000 (13:12 +0800)]
add params support in options

9 years agosend Cookie in a single header line, follow browser behavior
Yuzo [Thu, 22 Jan 2015 04:50:58 +0000 (12:50 +0800)]
send Cookie in a single header line, follow browser behavior

9 years agoadd sock::readall() to ensure the response body is complete
Yuzo [Thu, 22 Jan 2015 03:34:00 +0000 (11:34 +0800)]
add sock::readall() to ensure the response body is complete

9 years agoMerge pull request #299 from nmav/ocserv-match
Jo-Philipp Wich [Mon, 19 Jan 2015 17:39:10 +0000 (18:39 +0100)]
Merge pull request #299 from nmav/ocserv-match

luci-app-ocserv: modified match to apply to newer versions of occtl

9 years agoMerge pull request #301 from nmav/ocserv4
Jo-Philipp Wich [Mon, 19 Jan 2015 17:38:51 +0000 (18:38 +0100)]
Merge pull request #301 from nmav/ocserv4

luci-app-ocserv: express PKID in a way that is acceptable by openconnect

9 years agoMerge pull request #297 from chris5560/master
Jo-Philipp Wich [Mon, 19 Jan 2015 17:37:41 +0000 (18:37 +0100)]
Merge pull request #297 from chris5560/master

luci-app-ddns: Update to version 2.1.1-0

9 years agoluci-app-ocserv: express PKID in a way that is acceptable by openconnect 301/head
Nikos Mavrogiannopoulos [Mon, 19 Jan 2015 17:24:48 +0000 (18:24 +0100)]
luci-app-ocserv: express PKID in a way that is acceptable by openconnect

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoocserv: modified match to apply to newer versions of occtl 299/head
Nikos Mavrogiannopoulos [Sun, 18 Jan 2015 21:46:01 +0000 (22:46 +0100)]
ocserv: modified match to apply to newer versions of occtl

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoluci-app-ddns: Update to version 2.1.1-0 297/head
Christian Schoenebeck [Sun, 18 Jan 2015 18:22:54 +0000 (19:22 +0100)]
luci-app-ddns: Update to version 2.1.1-0

- adaption Makefile to changed luci.mk
- description in Makefile for correct version handling
- modified handling to detect and display installed version
- new functions ipkg_ver_installed() and ipkg_ver_compare
- correct wrong spellings
- modified language template and German translation

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci.mk: expose option to override PKGARCH (#295)
Jo-Philipp Wich [Sun, 18 Jan 2015 16:27:13 +0000 (17:27 +0100)]
luci.mk: expose option to override PKGARCH (#295)

Also mark packages without src/ as arch independant by default.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agothemes: fix load number formatting
Jo-Philipp Wich [Sat, 17 Jan 2015 14:17:42 +0000 (15:17 +0100)]
themes: fix load number formatting

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-theme-openwrt: fix version display
Jo-Philipp Wich [Fri, 16 Jan 2015 23:40:31 +0000 (00:40 +0100)]
luci-theme-openwrt: fix version display

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoUpdate my email addresses in the license headers
Jo-Philipp Wich [Fri, 16 Jan 2015 22:46:42 +0000 (23:46 +0100)]
Update my email addresses in the license headers

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoGlobally reduce copyright headers
Jo-Philipp Wich [Fri, 16 Jan 2015 22:38:38 +0000 (23:38 +0100)]
Globally reduce copyright headers

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: remove luci.init
Jo-Philipp Wich [Fri, 16 Jan 2015 20:39:46 +0000 (21:39 +0100)]
luci-base: remove luci.init

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: directly require luci.version and fetch uname with library call
Jo-Philipp Wich [Fri, 16 Jan 2015 20:39:26 +0000 (21:39 +0100)]
luci-mod-admin-full: directly require luci.version and fetch uname with library call

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: use local sys module table in luci.dispatcher
Jo-Philipp Wich [Fri, 16 Jan 2015 20:34:30 +0000 (21:34 +0100)]
luci-base: use local sys module table in luci.dispatcher

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agothemes: require luci.version directly
Jo-Philipp Wich [Fri, 16 Jan 2015 20:33:34 +0000 (21:33 +0100)]
themes: require luci.version directly

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-olsr: add workaround for finding default gw with policy routing
Jo-Philipp Wich [Fri, 16 Jan 2015 20:10:32 +0000 (21:10 +0100)]
luci-app-olsr: add workaround for finding default gw with policy routing

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #294 from luizluca/luci-proto-3g_add-dialnumber
Jo-Philipp Wich [Fri, 16 Jan 2015 19:51:02 +0000 (20:51 +0100)]
Merge pull request #294 from luizluca/luci-proto-3g_add-dialnumber

luci-proto-3g: add dialnumber option

9 years agoluci-proto-3g: add dialnumber option 294/head
Luiz Angelo Daros de Luca [Fri, 16 Jan 2015 17:37:13 +0000 (15:37 -0200)]
luci-proto-3g: add dialnumber option

UCI network already permit dialnumber option for 3g interfaces.
This adds dialnumber to luci protocol 3g. Also it introduces a
new translation string "Dial number", added to template and updated
on each language (all empty but pt-br).

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
9 years agoprotocols: fix keepalive settings for pppd based protocols
Jo-Philipp Wich [Thu, 15 Jan 2015 21:55:37 +0000 (22:55 +0100)]
protocols: fix keepalive settings for pppd based protocols

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: display routers localtime again
Jo-Philipp Wich [Thu, 15 Jan 2015 16:41:26 +0000 (17:41 +0100)]
luci-mod-admin-full: display routers localtime again

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: fix missing nixio.fs require
Jo-Philipp Wich [Thu, 15 Jan 2015 15:34:48 +0000 (16:34 +0100)]
luci-mod-admin-full: fix missing nixio.fs require

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: remove old fastindex support code, use cached module tables
Jo-Philipp Wich [Thu, 15 Jan 2015 15:32:03 +0000 (16:32 +0100)]
luci-base: remove old fastindex support code, use cached module tables

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-nixio: drop "bit" compatibility class
Jo-Philipp Wich [Thu, 15 Jan 2015 15:05:31 +0000 (16:05 +0100)]
luci-lib-nixio: drop "bit" compatibility class

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-siitwizard: explicitely require bit library
Jo-Philipp Wich [Thu, 15 Jan 2015 15:04:54 +0000 (16:04 +0100)]
luci-app-siitwizard: explicitely require bit library

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: remove unconditional "bit" preloading
Jo-Philipp Wich [Thu, 15 Jan 2015 15:02:54 +0000 (16:02 +0100)]
luci-base: remove unconditional "bit" preloading

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: remove useless "bit" requires
Jo-Philipp Wich [Thu, 15 Jan 2015 15:02:21 +0000 (16:02 +0100)]
luci-mod-admin-full: remove useless "bit" requires

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: drop luci.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:40:33 +0000 (15:40 +0100)]
luci-base: drop luci.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-failsafe: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:40:05 +0000 (15:40 +0100)]
luci-mod-failsafe: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:37:46 +0000 (15:37 +0100)]
luci-mod-admin-full: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-freifunk: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:11:57 +0000 (15:11 +0100)]
luci-mod-freifunk: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-theme-freifunk-generic: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:09:02 +0000 (15:09 +0100)]
luci-theme-freifunk-generic: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-multiwan: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:06:03 +0000 (15:06 +0100)]
luci-app-multiwan: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-splash: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:05:06 +0000 (15:05 +0100)]
luci-app-splash: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-olsr-services: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:04:04 +0000 (15:04 +0100)]
luci-app-olsr-services: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-freifunk-widgets: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 14:03:18 +0000 (15:03 +0100)]
luci-app-freifunk-widgets: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-olsr: switch to nixio.fs
Jo-Philipp Wich [Thu, 15 Jan 2015 13:55:46 +0000 (14:55 +0100)]
luci-app-olsr: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-base: drop luci.sys.sysinfo() and luci.sys.loadavg()
Jo-Philipp Wich [Thu, 15 Jan 2015 13:26:36 +0000 (14:26 +0100)]
luci-mod-base: drop luci.sys.sysinfo() and luci.sys.loadavg()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agothemes: eliminate uses of luci.sys.loadavg()
Jo-Philipp Wich [Thu, 15 Jan 2015 13:26:27 +0000 (14:26 +0100)]
themes: eliminate uses of luci.sys.loadavg()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-freifunk: eliminate uses of luci.sys.sysinfo()
Jo-Philipp Wich [Thu, 15 Jan 2015 13:11:35 +0000 (14:11 +0100)]
luci-mod-freifunk: eliminate uses of luci.sys.sysinfo()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-mini: remove uses of luci.sys.sysinfo()
Jo-Philipp Wich [Thu, 15 Jan 2015 12:44:38 +0000 (13:44 +0100)]
luci-mod-admin-mini: remove uses of luci.sys.sysinfo()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: eliminate the use of luci.sys.sysinfo()
Jo-Philipp Wich [Thu, 15 Jan 2015 12:35:10 +0000 (13:35 +0100)]
luci-mod-admin-full: eliminate the use of luci.sys.sysinfo()

Fetch the required information via ubus instead of relying on the
to-be-removed luci.sys.sysinfo() and luci.sys.loadavg() functions.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-px5g: disable MIPS16
Jo-Philipp Wich [Thu, 15 Jan 2015 10:12:11 +0000 (11:12 +0100)]
luci-lib-px5g: disable MIPS16

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: switch luci.model.network to common ubus api
Jo-Philipp Wich [Thu, 15 Jan 2015 10:10:02 +0000 (11:10 +0100)]
luci-base: switch luci.model.network to common ubus api

Replaces the ubus calls in luci.model.network with the common api
from luci.util.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: switch to ubus sessions
Jo-Philipp Wich [Thu, 15 Jan 2015 09:55:53 +0000 (10:55 +0100)]
luci-base: switch to ubus sessions

Remove luci.sauth session storage implementation and offload the session
management to the rpcd ubus backend. Also depend on rpcd due to this.

9 years agoluci-base: add luci.util.ubus()
Jo-Philipp Wich [Thu, 15 Jan 2015 09:52:53 +0000 (10:52 +0100)]
luci-base: add luci.util.ubus()

Add luci.util.ubus() convenience wrapper which establishes a connection on
the first call.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agobuild: add po2lmo to .gitignore (#292)
Jo-Philipp Wich [Thu, 15 Jan 2015 08:48:47 +0000 (09:48 +0100)]
build: add po2lmo to .gitignore (#292)

9 years agoMerge pull request #290 from chris5560/master
Jo-Philipp Wich [Sun, 11 Jan 2015 16:42:02 +0000 (17:42 +0100)]
Merge pull request #290 from chris5560/master

luci.mk: cosmetic change for translation description

9 years agoluci-app-ushare: mark as broken since ushare is in oldpackages
Jo-Philipp Wich [Sun, 11 Jan 2015 16:39:46 +0000 (17:39 +0100)]
luci-app-ushare: mark as broken since ushare is in oldpackages

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci.mk: cosmetic change for translation description 290/head
Christian Schoenebeck [Sun, 11 Jan 2015 16:10:32 +0000 (17:10 +0100)]
luci.mk: cosmetic change for translation description

Sample:
old: "Deutsch (German)"
new: "Translation for luci-app-ddns - Deutsch (German)"

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci-mod-admin-full: fix luci-bwc compilation
Jo-Philipp Wich [Sun, 11 Jan 2015 15:22:12 +0000 (16:22 +0100)]
luci-mod-admin-full: fix luci-bwc compilation

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #289 from chris5560/master
Jo-Philipp Wich [Sat, 10 Jan 2015 23:27:14 +0000 (00:27 +0100)]
Merge pull request #289 from chris5560/master

luci-app-ddns: adaption to new luci structure and cleanup

9 years agoluci-app-ddns: adaption to new luci structure and cleanup 289/head
Christian Schoenebeck [Sat, 10 Jan 2015 23:14:59 +0000 (00:14 +0100)]
luci-app-ddns: adaption to new luci structure and cleanup

- adaption to LuCI's new directory structure on github
- adaption to LuCI's new Makefile optional settings
- remove CHANGELOG from github
- directory structure cleanup
not all patches of 2.1.0-3 and before were applied to new directory
structure

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agobuild: rework language dependencies
Jo-Philipp Wich [Sat, 10 Jan 2015 22:36:26 +0000 (23:36 +0100)]
build: rework language dependencies

Rework the language package dependencies to avoid introducing unnecessary
depends. The luci-i18n-$app-$lang packages now depend on luci-$app.

 * When a language is selected as <*> then the language packs for each
   enabled LuCI module are built into the image
 * When a language is selected as <m> then the language packs for each
   enabled LuCI module are built as package
 * When CONFIG_ALL is set (e.g. release builds, snapshots) then all
   language packs are built

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #288 from chris5560/master
Jo-Philipp Wich [Sat, 10 Jan 2015 21:39:41 +0000 (22:39 +0100)]
Merge pull request #288 from chris5560/master

Modified dependencies

9 years agoModified dependencies 288/head
Christian Schoenebeck [Sat, 10 Jan 2015 21:33:43 +0000 (22:33 +0100)]
Modified dependencies

Module luci-base
- libubus-lua not needed

Module luci-mod-admin
- libubus-lua needed

Collection luci
- luci-lib-nixio not needed, already in luci-base

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci-base: handle missing translations in template engine
Jo-Philipp Wich [Sat, 10 Jan 2015 20:19:54 +0000 (21:19 +0100)]
luci-base: handle missing translations in template engine

Previously the template engine did not interpolate translation macros if no
translation catalogue could be loaded due to a missing i18n directory.

Change the offending code to return the original string in any error case.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: add depends on libubus-lua and luci-lib-nixio as well
Jo-Philipp Wich [Sat, 10 Jan 2015 18:58:06 +0000 (19:58 +0100)]
luci-base: add depends on libubus-lua and luci-lib-nixio as well

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: depend on libuci-lua
Jo-Philipp Wich [Sat, 10 Jan 2015 18:54:05 +0000 (19:54 +0100)]
luci-base: depend on libuci-lua

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agobuild: fix language dependency handling
Jo-Philipp Wich [Sat, 10 Jan 2015 13:20:18 +0000 (14:20 +0100)]
build: fix language dependency handling

Turn language selection into a tristate, this allows building language
packages without having them included in the image.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: fix dependency on lua (#284)
Jo-Philipp Wich [Sat, 10 Jan 2015 12:40:31 +0000 (13:40 +0100)]
luci-base: fix dependency on lua (#284)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: depend on Lua (#283)
Jo-Philipp Wich [Fri, 9 Jan 2015 15:35:23 +0000 (16:35 +0100)]
luci-base: depend on Lua (#283)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-ahcp: remove empty src directory
Jo-Philipp Wich [Fri, 9 Jan 2015 12:23:34 +0000 (13:23 +0100)]
luci-app-ahcp: remove empty src directory

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-px5g: add missing src Makefile and fix depends
Jo-Philipp Wich [Fri, 9 Jan 2015 12:19:28 +0000 (13:19 +0100)]
luci-lib-px5g: add missing src Makefile and fix depends

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-luaneightbl: add src Makefile and fix dependencies (#282)
Jo-Philipp Wich [Fri, 9 Jan 2015 12:04:01 +0000 (13:04 +0100)]
luci-lib-luaneightbl: add src Makefile and fix dependencies (#282)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: fix build dep spec in previous commit (#281)
Jo-Philipp Wich [Thu, 8 Jan 2015 21:23:38 +0000 (22:23 +0100)]
luci-mod-admin-full: fix build dep spec in previous commit (#281)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: add build dependency on libiwinfo
Jo-Philipp Wich [Thu, 8 Jan 2015 21:17:36 +0000 (22:17 +0100)]
luci-mod-admin-full: add build dependency on libiwinfo

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agobuild: remove remainders of old build system
Jo-Philipp Wich [Thu, 8 Jan 2015 15:52:51 +0000 (16:52 +0100)]
build: remove remainders of old build system

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>