vendorise upstream opkg app

This is for experimenting with building a LuCI app.
I hope we can take this as a base and extend it to our needs.
The source is
https://github.com/openwrt/luci/raw/openwrt-22.03/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
This commit is contained in:
Tobias Mueller 2023-10-13 12:48:20 +02:00
parent cb4d73731f
commit 75b1291e00
3 changed files with 1293 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{
"admin/system/opkg2": {
"title": "Software",
"order": 30,
"action": {
"type": "view",
"path": "opkg2"
},
"depends": {
"acl": [ "luci-app-opkg2" ]
}
}
}

View File

@ -0,0 +1,29 @@
{
"luci-app-opkg2": {
"description": "Grant access to opkg management",
"read": {
"cgi-io": [ "exec" ],
"file": {
"/usr/libexec/opkg-list installed": [ "exec" ],
"/usr/libexec/opkg-list available": [ "exec" ],
"/usr/libexec/opkg-call list-installed": [ "exec" ],
"/usr/libexec/opkg-call list-available": [ "exec" ],
"/etc/opkg.conf": [ "read" ],
"/etc/opkg/*.conf": [ "read" ]
},
"ubus": {
"luci": [ "getMountPoints" ]
}
},
"write": {
"file": {
"/usr/libexec/opkg-call install *": [ "exec" ],
"/usr/libexec/opkg-call remove *": [ "exec" ],
"/usr/libexec/opkg-call update *": [ "exec" ],
"/etc/opkg.conf": [ "write" ],
"/etc/opkg/*.conf": [ "write" ],
"/tmp/upload.ipk": [ "write" ]
}
}
}
}

File diff suppressed because it is too large Load Diff