Age | Commit message (Collapse) | Author |
|
Ref: https://github.com/openwrt/luci/issues/3183#issuecomment-1652824925
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
GNU Make version 4.2 chokes on `#` characters embedded in variable
substitutions, leading to the following error:
../../luci.mk:114: *** unterminated call to function 'if': missing ')'. Stop.
Avoid this problem by replacing variable substitutions with Git branch
format arguments.
Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1289935106
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Make packages having a non-empty luasrc/ directory automatically depend
on the LuCI Lua runtime package.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Add special handling for ucode/ package subdirs, analogeous to luasrc/.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
The index cache files have been split into separate, dynamically named
Lua and JSON files a while ago, so adjust the remove command in the
postinstall script accordingly.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Fix misspelled comment
- Fix wrong variable in Lua SrcDiet condition
- Fix wrong indentation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
In case `git branch --remote` yields no result, fall back to `git branch`
without `--remote` since it is possible that the local branch has not
been pushed yet.
Also simplify extraction of the branch name by not passing `--verbose`
and utilizing variable substitutions instead of sed expressions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Detect the presence of directories using Make $(wildcard ...) and emit
plain install commands depending on the outcome instead of relying on
shell conditionals which impose syntax constraints on code outside of
the scope of the LuCI repo.
Fixes: #5936
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Since english is the implementation language of LuCI, it makes no sense to
ship translation packages for it.
Ref: #5860
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Only create translation packages for languages mentioned in luci.mk
Fixes: #5886
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Introduce three new default enabled variables `LUCI_MINIFY_JS`,
`LUCI_MINIFY_LUA` and `LUCI_MINIFY_CSS` that allow LuCI component
Makefiles to opt out of JavaScript, Lua and CSS compression respectively.
To e.g. inhibit CSSTidy postprocessing in a theme, the corresponding
Makefile can set `LUCI_MINIFY_CSS:=0` prior to including `luci.mk`.
Fixes: #5755
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Define Dansk/Danish language in luci.mk.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Do not run the uci-defaults scripts of a package in the package-postinst, but leave this
for the default_postinst() of the OpenWrt base-files package.
Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
|
|
When including luci.mk in external repos it's sometimes usefull to not use
the default LuCI-submenu hierarchy.
This change defines the LUCI_SUBMENU_FORCED variable which completely overrides
the default submenu of the LuCI config-section. When LUCI_SUBMENU_FORCED is not
defined, the default submenu derrived from LUCI_TYPE or "Application" fallback
is used.
Defining LUCI_SUBMENU_FORCED in the package Makefile will just use this value.
Setting it to "none" will not define a submenu at all.
Together with LUCI_SECTION and LUCI_CATEGORY menu items can now created at any
place in the menu structure.
Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
|
|
Add PKG_PROVIDES macro to be passed down to buildpackage defines as PROVIDES variable.
Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
|
|
Add the LUCI_URL and LUCI_MAINTAINER variables to pass them to the buildpackage
defines. Give them some sane defaults and allow overwritting by the individual
package.
Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
|
|
When the Dutch translation was added there was no name for the language
added, this created such a Kconfig entry:
config LUCI_LANG_nl
tristate " (nl)"
This entry created the following warning message when doing make
oldconfig in OpenWrt:
tmp/.config-package.in:24525:warning: leading whitespace ignored
This is fixed here by adding a name to the language.
Fixes: 1e301ca2dfe2 ("Translated using Weblate (Dutch)")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
The luci.mk file has grown over the years and became more complex. This
change reorders some sections to make it more easy to read and understand
on the first view.
* move all constants into a common block
* put all standard package definitons together
* put the specific sections for the "luci-base" behind the common things
* have the defines for the translations at the very end
Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
|
|
Signed-off-by: Paul Spooren <mail@aparcar.org>
|
|
There is some translation effort ongoing in weblate,
so add also Finnish to the list of supported languages.
Katsotaan riittääkö innostuneita kääntäjiä...
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
This includes `bn_BD` and `bn` via an alias.
Weblate currently does not support `bn_IN` (Indian Bangla), so I think
the alias is reasonable.
Signed-off-by: Paul Spooren <mail@aparcar.org>
|
|
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #3911
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
subdirectories"
This reverts commit e6f77d5d72c0e13ed3eb370419abab52c4920a32.
Commit contained unrelated changes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #3911
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #3911
Fixes: 59fe4086f ("build: luci.mk: drop support for non-Git SCMs")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Also pass correct variable to builds to ensure that version.lua and cache
buster strings are properly interpolated.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
zh_Hans: 简体中文 (Chinese Simplified)
zh_Hant: 繁體中文 (Chinese Traditional)
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
|
|
- Derive the version of packages from the last change of the sources
- Derive the version of i18n packages from the last change of the po dir
Fixes: #2257
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Send a SIGHUP to rpcd after installing LuCI packages to reload ACL rules.
Also remove redundant code while we're at it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
If a postinst script is defined in the package Makefile, it will
not be included because it will be replaced by the default postinst
script. To solve the problem, we now check, if we have a postinst script.
And if so, it will be installed instead of the default postinst script.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Reported-by: Wellington Uemura
* update message header
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Fixes: #3477
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
luci.mk: move indexcache delete into postinst
|
|
luci-base: use luasrcdiet from separate package
|
|
Signed-off-by: Paul Spooren <mail@aparcar.org>
|
|
Almost every uci-defaults script for ucitrack execute after the uci
commands the following line '/tmp/luci-indexcache'.
So that we don't always write the same thing, we now do this in
postinst.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
luasrcdiet is being moved to the packages feed as a separate package.
Adjust luci feed accordingly.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
Signed-off-by: Paul Spooren <mail@aparcar.org>
|
|
Signed-off-by: Simmar Kalsi <simmarkalsi@gmail.com>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Stage required libraries as well
- Remove not existing make target
- Override library search path
Fixes: b5d5e5bf1 ("luci-base: update luasrcdiet")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
luci-base: update luasrcdiet
|
|
Tested and works with no problem.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
|
|