mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2023-02-25 23:36:14
This commit is contained in:
parent
596291c8d6
commit
ee9b7c106c
@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-dnsmasq-ipset
|
||||
PKG_VERSION:=0.1.4
|
||||
PKG_VERSION:=0.2.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_LICENSE:=GPLv3
|
||||
@ -52,12 +52,12 @@ endef
|
||||
|
||||
|
||||
define Package/luci-app-dnsmasq-ipset/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
|
||||
$(INSTALL_DATA) ./files/luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/
|
||||
$(INSTALL_DIR) $(1)/www/luci-static/resources/view
|
||||
$(INSTALL_DATA) ./files/htdocs/luci-static/resources/view/*.js $(1)/www/luci-static/resources/view/
|
||||
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
|
||||
$(INSTALL_DATA) ./files/root/usr/share/rpcd/acl.d/*.json $(1)/usr/share/rpcd/acl.d/
|
||||
$(INSTALL_DIR) $(1)/usr/share/luci/menu.d
|
||||
$(INSTALL_DATA) ./files/root/usr/share/luci/menu.d/*.json $(1)/usr/share/luci/menu.d/
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_DATA) ./files/root/etc/config/dnsmasq-ipset $(1)/etc/config/dnsmasq-ipset
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
|
@ -1,12 +0,0 @@
|
||||
|
||||
-- Auther Qier LU <lvqier@gmail.com>
|
||||
|
||||
module("luci.controller.dnsmasq-ipset", package.seeall)
|
||||
|
||||
function index()
|
||||
if not nixio.fs.access("/etc/config/dnsmasq-ipset") then
|
||||
return
|
||||
end
|
||||
|
||||
entry({"admin", "services", "dnsmasq-ipset"}, view("dnsmasq-ipset"), _("DNSmasq IP-Set"), 60).dependent = true
|
||||
end
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"admin/services/dnsmasq-ipset": {
|
||||
"title": "DNSmasq IP-Set",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "dnsmasq-ipset"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-dnsmasq-ipset" ]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user