summaryrefslogtreecommitdiffhomepage
path: root/luci.mk
AgeCommit message (Collapse)Author
2022-07-22luci.mk: disable english translation packagesJo-Philipp Wich
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>
2022-07-22luci.mk: ignore language directories not explicitly mentionedJo-Philipp Wich
Only create translation packages for languages mentioned in luci.mk Fixes: #5886 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-06build: introduce official way to opt out of source minificationJo-Philipp Wich
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>
2021-11-07translation: add Danish to luci.mkHannu Nyman
Define Dansk/Danish language in luci.mk. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-06-04luci.mk: don't run uci-defaults scripts ourselfSven Roederer
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>
2021-06-02luci.mk: make SUBMENU package define customizable and optionalSven Roederer
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>
2021-06-02luci.mk: add PKG_PROVIDES make-macro to set package/provides optionSven Roederer
Add PKG_PROVIDES macro to be passed down to buildpackage defines as PROVIDES variable. Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2021-06-02luci.mk: add URL and MAINTAINER fields to package-definitionsSven Roederer
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>
2020-10-25build: luci.mk: Fix warning in Kconfig for Dutch languageHauke Mehrtens
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>
2020-07-20build: luci.mk: allow overriding menu category and section valuesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-07-19luci.mk: reorder to have common-things in a blockSven Roederer
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>
2020-05-21translation: add Arabic to luci.mkPaul Spooren
Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-05-15i18n: add Finnish to supported languagesHannu Nyman
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>
2020-04-29translation: add Bengali to luci.mkPaul Spooren
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>
2020-04-15build: luci.mk: fix compatibility with older Git versionsJo-Philipp Wich
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14build: luci.mk: gracefully handle missing or unversioned po subdirectoriesJo-Philipp Wich
Fixes: #3911 Fixes: 9d8e99f9b build: gracefully handle non-Git source trees Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14Revert "build: luci.mk: gracefully handle missing or unversioned po ↵Jo-Philipp Wich
subdirectories" This reverts commit e6f77d5d72c0e13ed3eb370419abab52c4920a32. Commit contained unrelated changes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14build: luci.mk: gracefully handle missing or unversioned po subdirectoriesJo-Philipp Wich
Fixes: #3911 Fixes: 9d8e99f9b build: gracefully handle non-Git source trees Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14build: gracefully handle non-Git source treesJo-Philipp Wich
Fixes: #3911 Fixes: 59fe4086f ("build: luci.mk: drop support for non-Git SCMs") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11build: luci.mk: honour PKG_VERSION if setJo-Philipp Wich
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>
2020-04-11luci.mk: correct titles of zh_Hans and zh_HantDENG Qingfang
zh_Hans: 简体中文 (Chinese Simplified) zh_Hant: 繁體中文 (Chinese Traditional) Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
2020-04-09build: luci.mk: rework package version handlingJo-Philipp Wich
- 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>
2020-04-09build: luci.mk: drop support for non-Git SCMsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-03build: reload rpcd in package postinstallJo-Philipp Wich
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>
2020-02-27luci.mk: Only install a default post-install script if there is none definedFlorian Eckert
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>
2020-02-27luci.mk: correcting a misspell for Brazilian PortugueseWellington Uemura
Reported-by: Wellington Uemura * update message header Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-02-14luci.mk: move /tmp/luci-modulecache remove to package postinst scriptFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-02-14luci.mk: move /tmp/luci-indexcache remove to package postinst scriptFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-01-29treewide: switch to bcp47 language codesJo-Philipp Wich
Fixes: #3477 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-29Merge pull request #3400 from TDT-AG/pr/20191210-luci-mkFlorian Eckert
luci.mk: move indexcache delete into postinst
2019-12-25Merge pull request #3352 from NeoRaider/move-luasrcdietJo-Philipp Wich
luci-base: use luasrcdiet from separate package
2019-12-11translation: add Marāṭhī to luci.mkPaul Spooren
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-12-10luci.mk: move indexcache delete into postinstFlorian Eckert
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>
2019-11-23luci-base: use luasrcdiet from separate packageMatthias Schiffer
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>
2019-10-30translation: Add Bulgarian to luci.mkPaul Spooren
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-05-29Added privoxy Hindi translationsGyrotron
Signed-off-by: Simmar Kalsi <simmarkalsi@gmail.com>
2018-12-12build: add build option to minify *.css filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22build: add build option to minify *.js filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-28luci-base: fix luasrcdietJo-Philipp Wich
- 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>
2018-06-27Merge pull request #1915 from Ansuel/upgradeJo-Philipp Wich
luci-base: update luasrcdiet
2018-06-27luci-base: update luasrcdietAnsuel Smith
Tested and works with no problem. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-17luci.mk: Correcting native name Ukrainian language.Yurii
2018-01-01luci.mk: allow specifying EXTRA_DEPENDSJo-Philipp Wich
Support a new varable LUCI_EXTRA_DEPENDS which can be used to pass OpenWrt EXTRA_DEPENDS to buildroot. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-11luci.mk: sort languages in lexical orderFlorian Eckert
sorting language in .config by lexical order Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-05-08luci.mk: Update language name for Chineseamitabha
Rectification of non-standard name for language Chinese. Signed-off-by: Angus Ding angus.ding@gmail.com
2017-04-23luci.mk: fix length of abbreviated hash in versionHannu Nyman
Fix the length of the abbreviated commit hash used in the LuCI version string used in the package names. Use the old standard of seven characters in hash. New git versions vary the length of the abbreviated commit hash based on the number of objects in repo. That may lead into different hash lengths with e.g. having full/shallow git history, having all/single branch or having different git versions in different build hosts. Different hash lengths in package name may lead to sneaky opkg install errors, as opkg apparently preserves info for removed packages and may prefer that. Example: $ opkg install http://downloads...luci-app-statistics_git-17.073.42825-b47a21f-1_all.ipk Downloading http://downloads...luci-app-statistics_git-17.073.42825-b47a21f-1_all.ipk Installing luci-app-statistics (git-17.073.42825-b47a21fbb-1) to root... Collected errors: * opkg_download_pkg: Package luci-app-statistics is not available from any configured src. The error above is ultimately in opkg, but mitigate the problem by fixing the hash length when building LuCI. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-20luci.mk: only use remote branch detectionJo-Philipp Wich
LEDE's scripts/feeds script creates local branches named after the checked out commit hash, confusing local branch detection. Solely use remote branch detection to avoid misidentifying such cases. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-02-20luci.mk: fix branch detection in detached HEAD stateJo-Philipp Wich
When LuCI is checked out via pinned feeds configuration, its source tree will end up in detached head state, requiring some more magic to figure out the proper branch. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-12-20Adds Korean translation.Weongyo Jeong
Adds Korean language supported for Luci of OpenWRT. Most of msgs which shown at UI are translated but still not completed for non-popular features. Signed-off-by: Weongyo Jeong <weongyo@gmail.com>
2016-11-01luci.mk: add simple cache busterJo-Philipp Wich
Append a ?v=version string to any media or resource URL that has a .js or .css extension. Also substitute placeholders in the form <%# xxxPKG_VERSION %> where xxx is replaced verbatim and PKG_VERSION with the actual version, e.g. <%# ?x=PKG_VERSION %> will result in "?x=git-16.237.30043-f885853". Signed-off-by: Jo-Philipp Wich <jo@mein.io>