forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
cd79fbc
commit 68b8f80
Showing
784 changed files
with
603,224 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/version.mk | ||
|
||
PKG_NAME:=mtk-luci-plugin | ||
PKG_RELEASE:=1 | ||
PKG_BUILD_DEPENDS:=base-files | ||
PKG_FILE_DEPENDS:= | ||
PKG_LICENSE:=GPL-2.0 | ||
|
||
PKG_MAINTAINER:=Hua Shao <[email protected]> | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
HTDOCS = /www | ||
LUA_LIBRARYDIR = /usr/lib/lua | ||
LUCI_LIBRARYDIR = $(LUA_LIBRARYDIR)/luci | ||
|
||
|
||
define Package/mtk-luci-plugin | ||
SECTION:=MTK Properties | ||
CATEGORY:=MTK Properties | ||
SUBMENU:=Misc | ||
DEPENDS:=+lua | ||
TITLE:=MTK's LuCI plugins. | ||
VERSION:=$(PKG_RELEASE)-$(REVISION) | ||
endef | ||
|
||
|
||
define Package/mtk-luci-plugin/config | ||
config LUCI_APP_MTKWIFI | ||
bool "luci-app-mtkwifi" | ||
depends on PACKAGE_mtk-luci-plugin | ||
default y | ||
help | ||
"LuCI plugin to manipulate MTK WiFi drivers" | ||
|
||
config LUCI_APP_WEBCONSOLE | ||
bool "luci-app-webconsole" | ||
depends on PACKAGE_mtk-luci-plugin | ||
default n | ||
help | ||
"LuCI plugin for access shell from web" | ||
endef | ||
|
||
define Build/Compile | ||
|
||
endef | ||
|
||
define Package/common/install | ||
if [ -d $(2)/luasrc ]; then \ | ||
$(INSTALL_DIR) $(1)$(LUCI_LIBRARYDIR); \ | ||
cp -pR ./$(2)/luasrc/* $(1)$(LUCI_LIBRARYDIR)/; \ | ||
else true; fi | ||
if [ -d $(2)/htdocs ]; then \ | ||
$(INSTALL_DIR) $(1)$(HTDOCS); \ | ||
cp -pR ./$(2)/htdocs/* $(1)$(HTDOCS)/; \ | ||
else true; fi | ||
if [ -d $(2)/root ]; then \ | ||
$(INSTALL_DIR) $(1)/; \ | ||
cp -pR ./$(2)/root/* $(1)/; \ | ||
else true; fi | ||
if [ -d $(2)/src ]; then \ | ||
$(call Build/Install/Default) \ | ||
$(CP) ./$(PKG_INSTALL_DIR)/* $(1)/; \ | ||
else true; fi | ||
endef | ||
|
||
|
||
define Package/mtk-luci-plugin/install | ||
$(call Package/common/install,$(1),luci-app-mtkwifi) | ||
$(call Package/common/install,$(1),luci-app-webconsole) | ||
endef | ||
|
||
|
||
$(eval $(call BuildPackage,mtk-luci-plugin)) |
19 changes: 19 additions & 0 deletions
19
package/mtk/applications/mtk-luci-plugin/luci-app-mtkwifi/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_LICENSE:=GPLv2 | ||
PKG_MAINTAINER:=Hua Shao <[email protected]> | ||
|
||
LUCI_TITLE:=Manipulate mtk's proprietary wifi driver. | ||
LUCI_DEPENDS:= | ||
|
||
# earlier version of luci put "luci.mk" somewhere else... | ||
LUCI_MK_OLDPATH:=$(shell test -e ../luci.mk && echo "old") | ||
LUCI_MK_NEWPATH:=$(shell test -e ../../luci.mk && echo "new") | ||
ifeq ($(LUCI_MK_OLDPATH),old) | ||
include ../luci.mk | ||
endif | ||
ifeq ($(LUCI_MK_NEWPATH),new) | ||
include ../../luci.mk | ||
endif | ||
|
||
# call BuildPackage - OpenWrt buildroot signature |
Oops, something went wrong.