11include $(TOPDIR ) /rules.mk
22
33PKG_NAME: =luci-app-clash
4- PKG_VERSION: =v1.7.5.5
4+ PKG_VERSION: =v1.7.5.6
55PKG_MAINTAINER: =frainzy1477
66
77include $(INCLUDE_DIR ) /package.mk
88
99define Package/$(PKG_NAME)
1010 SECTION:=luci
1111 CATEGORY:=LuCI
12- SUBMENU:=2. Clash
12+ SUBMENU:=2. Clash For OpenWRT
1313 TITLE:=LuCI app for clash
1414 DEPENDS:=+luci-base +wget +iptables +coreutils-base64 +coreutils +coreutils-nohup +bash +ipset +libustream-openssl +curl +jsonfilter +ca-certificates +iptables-mod-tproxy +kmod-tun
1515 PKGARCH:=all
@@ -39,12 +39,12 @@ define Package/$(PKG_NAME)/prerm
3939# check if we are on real system
4040if [ -z "$${IPKG_INSTROOT}" ]; then
4141 echo "Removing rc.d symlink for clash"
42- /etc/init.d/clash disable
43- /etc/init.d/clash stop
42+ /etc/init.d/clash disable
43+ /etc/init.d/clash stop
4444 echo "Removing firewall rule for clash"
45- uci -q batch <<-EOF >/dev/null
46- delete firewall.clash
47- commit firewall
45+ uci -q batch <<-EOF >/dev/null
46+ delete firewall.clash
47+ commit firewall
4848EOF
4949fi
5050
5353
5454define Package/$(PKG_NAME)/preinst
5555# !/bin/sh
56-
56+ /etc/init.d/clash disable 2>/dev/null
5757if [ -z "$${IPKG_INSTROOT}" ]; then
5858 rm -rf /tmp/dnsmasq.d/custom_list.conf 2>/dev/null
5959 rm -rf /tmp/dnsmasq.clash 2>/dev/null
@@ -70,6 +70,7 @@ if [ -z "$${IPKG_INSTROOT}" ]; then
7070 mv /usr/share/clash/rule.yaml /usr/share/clashbackup/rule.bak 2>/dev/null
7171fi
7272
73+
7374exit 0
7475endef
7576
@@ -85,6 +86,7 @@ if [ -z "$${IPKG_INSTROOT}" ]; then
8586 mv /usr/share/clashbackup/rule.bak /usr/share/clash/rule.yaml 2>/dev/null
8687 /etc/init.d/clash disable 2>/dev/null
8788fi
89+ /etc/init.d/clash disable 2>/dev/null
8890
8991exit 0
9092endef
@@ -147,10 +149,10 @@ define Package/$(PKG_NAME)/install
147149 $(INSTALL_BIN ) ./root/usr/share/clash/clash.txt $(1 ) /usr/share/clash
148150
149151 $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/index.html $(1 ) /etc/clash/dashboard
150- $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/main.3f7e8457ba9e97b6d7c9 .css $(1 ) /etc/clash/dashboard
152+ $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/main.658aa6a6e3feec8f168b .css $(1 ) /etc/clash/dashboard
151153 $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/img/ffac0fa1d89f15922b4594863b8b32e9.png $(1 ) /etc/clash/dashboard/img
152- $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/js/1.bundle.3f7e8457ba9e97b6d7c9 .min.js $(1 ) /etc/clash/dashboard/js
153- $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/js/bundle.3f7e8457ba9e97b6d7c9 .min.js $(1 ) /etc/clash/dashboard/js
154+ $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/js/1.bundle.658aa6a6e3feec8f168b .min.js $(1 ) /etc/clash/dashboard/js
155+ $(INSTALL_BIN ) ./root/usr/share/clash/dashboard/js/bundle.658aa6a6e3feec8f168b .min.js $(1 ) /etc/clash/dashboard/js
154156 $(INSTALL_BIN ) ./root/usr/share/clash/yacd/* $(1 ) /usr/share/clash/yacd
155157
156158 $(INSTALL_DATA ) ./luasrc/clash.lua $(1 ) /usr/lib/lua/luci
0 commit comments