Skip to content
Snippets Groups Projects
Verified Commit cd151c81 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

lists/luci: handle all luci-i18n-* packages centrally

These packages are same as language packages for Foris

There is one speciality and that is that some of Luci's packages have
English localization package as well so we have to add "en" to
languages.

There is full list of all Luci applications there are in repository. We
should update this in future or modify the updater functionality so it
would be possible to check for existence of package in repository.
parent a8a2c36e
Branches
Tags
2 merge requests!123Turris OS 5.0 (HBK),!117Feature/l10n condition
local function luci_app(...)
for _, app in pairs({...}) do
Install("luci-app-" .. app, { priority = 40 })
if for_l10n then
Install("luci-i18n-" .. app .. "-en", { optional = true })
for_l10n("luci-i18n-" .. app .. "-")
end
end
end
local function luci_proto(...)
for _, proto in pairs({...}) do
Install("luci-proto-" .. proto, { priority = 40 })
end
end
include(utils.m4)dnl
include(luci-utils.m4)dnl
_FEATURE_GUARD_
local luci_apps = {
"acme",
"adblock",
"advanced-reboot",
"ahcp",
"aria2",
"attendedsysupgrade",
"banip",
"bcp38",
"bird1-ipv4",
"bird1-ipv6",
"bmx6",
"bmx7",
"cjdns",
"clamav",
"commands",
"cshark",
"dcwapd",
"ddns",
"diag-core",
"dnscrypt-proxy",
"dump1090",
"dynapoint",
"e2guardian",
"firewall",
"fwknopd",
"hd-idle",
"hnet",
"https-dns-proxy",
"ipfixprobe",
"ksmbd",
"lxc",
"minidlna",
"mjpg-streamer",
"mosquitto",
"mwan3",
"nextdns",
"nft-qos",
"nlbwmon",
"noddos",
"ntpc",
"nut",
"ocserv",
"olsr",
"olsr-services",
"olsr-viz",
"openvpn",
"opkg",
"p910nd",
"pagekitec",
"polipo",
"privoxy",
"qos",
"radicale",
"radicale2",
"rainbow",
"rosy-file-server",
"rp-pppoe-server",
"samba",
"samba4",
"shadowsocks-libev",
"shairplay",
"siitwizard",
"simple-adblock",
"snmpd",
"splash",
"sqm",
"squid",
"statistics",
"tinyproxy",
"transmission",
"travelmate",
"ttyd",
"udpxy",
"uhttpd",
"unbound",
"upnp",
"vnstat",
"vpn-policy-routing",
"vpnbypass",
"watchcat",
"wifischedule",
"wireguard",
"wol",
}
-- Conditional install requests for language packages
if for_l10n and features.request_condition then
for _, lang in pairs({"en", unpack(l10n or {})}) do
for _, name in pairs(luci_apps) do
Install("luci-i18n-" .. name .. "-" .. lang, {
priority = 40,
optional = true,
condition = "luci-app-" .. name
})
end
end
end
Install("luci", "luci-base", "luci-lighttpd", { priority = 40 })
if for_l10n then
Install("luci-i18n-base-en", { optional = true })
for_l10n("luci-i18n-base-")
end
luci_app("commands")
luci_proto("ipv6", "ppp")
Install("luci-app-commands", { priority = 40 })
Install("luci-proto-ipv6", "luci-proto-ppp", { priority = 40 })
_END_FEATURE_GUARD_
include(utils.m4)dnl
include(luci-utils.m4)dnl
_FEATURE_GUARD_
-- 3G
......@@ -11,6 +10,6 @@ Install("usb-modeswitch", { priority = 40 })
forInstall(kmod,nf-nathelper-extra,usb-net-rndis,usb-net-qmi-wwan,usb-serial-option,usb-serial-qualcomm)
-- Luci
luci_proto("3g")
Install("luci-proto-3g", { priority = 40 })
_END_FEATURE_GUARD_
include(utils.m4)dnl
include(luci-utils.m4)dnl
_FEATURE_GUARD_
luci_app("ahcp", "adblock", "bcp38", "firewall", "minidlna", "mjpg-streamer", "sqm", "statistics", "tinyproxy", "transmission", "upnp")
local apps = {
"ahcp",
"adblock",
"bcp38",
"firewall",
"minidlna",
"mjpg-streamer",
"sqm",
"statistics",
"tinyproxy",
"transmission",
"upnp"
}
local proto = {
"openconnect",
"relay",
"vpnc"
}
for _, app in pairs(apps) do
Install("luci-app-" .. app, { priority = 40 })
end
if board == "omnia" or board == "turris1x" then
luci_app('rainbow')
Install('luci-app-rainbow', { priority = 40 })
end
for _, proto in pairs(proto) do
Install("luci-proto-" .. proto, { priority = 40 })
end
luci_proto("openconnect", "relay", "vpnc")
_END_FEATURE_GUARD_
include(utils.m4)dnl
include(luci-utils.m4)dnl
_FEATURE_GUARD_
Install("lxc", { priority = 40 })
forInstall(lxc,attach,auto,console,copy,create,destroy,freeze,info,ls,monitor,monitord,snapshot,start,stop,unfreeze)
luci_app("lxc")
Install("luci-app-lxc", { priority = 40 })
Install("kmod-veth", { priority = 40 })
Install("gnupg", "gnupg-utils", "getopt", "tar", "wget", { priority = 40 })
......
include(utils.m4)dnl
include(luci-utils.m4)dnl
_FEATURE_GUARD_
-- Kernel --
......@@ -38,7 +37,7 @@ Install("wget", "rsync", "rsyncd", { priority = 40 })
forInstall(samba4,client,server,admin,utils)
-- Luci
luci_app("hd-idle","minidlna", "samba4")
Install("luci-app-hd-idle","luci-app-minidlna", "luci-app-samba4", { priority = 40 })
-- Encryption --
Install("cryptsetup", "kmod-cryptodev", "kmod-crypto-user", { priority = 40 })
......
include(utils.m4)dnl
include(luci-utils.m4)dnl
_FEATURE_GUARD_
-- Kernel
Install("kmod-usb-printer", { priority = 40 })
-- Luci
luci_app("p910nd")
Install("luci-app-p910nd", { priority = 40 })
_END_FEATURE_GUARD_
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment