forked from kenzok8/small-package
-
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.
- Loading branch information
1 parent
d3a1a0d
commit d1cb981
Showing
37 changed files
with
643 additions
and
658 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
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
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
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
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
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
local fs=require "nixio.fs" | ||
local conffile="/tmp/adupdate.log" | ||
local fs = require "nixio.fs" | ||
local conffile = "/tmp/adupdate.log" | ||
|
||
f = SimpleForm("logview") | ||
f.reset = false | ||
f.submit = false | ||
t = f:field(TextValue, "conf") | ||
t.rmempty = true | ||
t.rows = 20 | ||
|
||
f=SimpleForm("logview") | ||
f.reset=false | ||
f.submit=false | ||
t=f:field(TextValue,"conf") | ||
t.rmempty=true | ||
t.rows=20 | ||
function t.cfgvalue() | ||
return fs.readfile(conffile) or "" | ||
end | ||
t.readonly="readonly" | ||
t.readonly = "readonly" | ||
|
||
return f |
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
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
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
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 |
---|---|---|
|
@@ -2,53 +2,17 @@ include $(TOPDIR)/rules.mk | |
|
||
PKG_NAME:=luci-app-godproxy | ||
PKG_VERSION:=3.8.5 | ||
PKG_RELEASE:=3-20210917 | ||
PKG_RELEASE:=3-20211105 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
PKG_MAINTAINER:=panda-mute <[email protected]> | ||
|
||
define Package/luci-app-godproxy | ||
SECTION:=luci | ||
CATEGORY:=LuCI | ||
SUBMENU:=3. Applications | ||
TITLE:=LuCI support for koolproxy | ||
DEPENDS:=+openssl-util +ipset +dnsmasq-full +@BUSYBOX_CONFIG_DIFF +iptables-mod-nat-extra +wget | ||
MAINTAINER:=panda-mute <[email protected]> | ||
endef | ||
|
||
define Build/Compile | ||
endef | ||
|
||
define Package/luci-app-godproxy/conffiles | ||
/etc/config/koolproxy | ||
/usr/share/koolproxy/data/rules/ | ||
endef | ||
|
||
define Package/luci-app-godproxy/install | ||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci | ||
cp -pR ./luasrc/* $(1)/usr/lib/lua/luci | ||
$(INSTALL_DIR) $(1)/ | ||
cp -pR ./root/* $(1)/ | ||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n | ||
po2lmo ./po/zh-cn/koolproxy.po $(1)/usr/lib/lua/luci/i18n/koolproxy.zh-cn.lmo | ||
|
||
ifeq ($(ARCH),aarch64) | ||
$(INSTALL_BIN) ./bin/aarch64 $(1)/usr/share/koolproxy/koolproxy | ||
|
||
else ifeq ($(ARCH),arm) | ||
$(INSTALL_BIN) ./bin/arm $(1)/usr/share/koolproxy/koolproxy | ||
|
||
else ifeq ($(ARCH),i386) | ||
$(INSTALL_BIN) ./bin/i386 $(1)/usr/share/koolproxy/koolproxy | ||
|
||
else ifeq ($(ARCH),mips) | ||
$(INSTALL_BIN) ./bin/mips $(1)/usr/share/koolproxy/koolproxy | ||
|
||
else ifeq ($(ARCH),mipsel) | ||
$(INSTALL_BIN) ./bin/mipsel $(1)/usr/share/koolproxy/koolproxy | ||
LUCI_TITLE:=LuCI support for koolproxy | ||
LUCI_PKGARCH:=all | ||
LUCI_DEPENDS:=@TARGET_x86_64 +openssl-util +ipset +dnsmasq-full +@BUSYBOX_CONFIG_DIFF +iptables-mod-nat-extra +wget | ||
|
||
else ($(ARCH),x86_64) | ||
$(INSTALL_BIN) ./bin/x86_64 $(1)/usr/share/koolproxy/koolproxy | ||
endif | ||
define Package/$(PKG_NAME)/conffiles | ||
/etc/config/koolproxy | ||
/usr/share/koolproxy/data/rules/ | ||
endef | ||
|
||
$(eval $(call BuildPackage,luci-app-godproxy)) | ||
# call BuildPackage - OpenWrt buildroot signature |
Oops, something went wrong.