├── LICENSE ├── Makefile ├── README.md └── file └── core_version /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 frainzy1477 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=clash 4 | PKG_VERSION:=0.16.3 5 | PKG_MAINTAINER:=frainzy1477 6 | 7 | ifeq ($(ARCH),mipsel) 8 | PKG_ARCH:=mipsle 9 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-softfloat-v$(PKG_VERSION).gz 10 | endif 11 | ifeq ($(ARCH),mips) 12 | PKG_ARCH:=mips 13 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-softfloat-v$(PKG_VERSION).gz 14 | endif 15 | ifeq ($(ARCH),x86_64) 16 | PKG_ARCH:=amd64 17 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-v$(PKG_VERSION).gz 18 | endif 19 | ifeq ($(ARCH),arm) 20 | PKG_ARCH:=armv7 21 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-v$(PKG_VERSION).gz 22 | endif 23 | ifeq ($(ARCH),aarch64) 24 | PKG_ARCH:=armv8 25 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-v$(PKG_VERSION).gz 26 | endif 27 | 28 | 29 | PKG_SOURCE_URL:=https://github.com/frainzy1477/clash_dev/releases/download/v$(PKG_VERSION)/ 30 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 31 | PKG_HASH:=skip 32 | 33 | include $(INCLUDE_DIR)/package.mk 34 | 35 | define Package/$(PKG_NAME) 36 | SECTION:=luci 37 | CATEGORY:=LuCI 38 | SUBMENU:=2. Clash 39 | TITLE:=clash is a cross-platform proxy software 40 | DEPENDS:= 41 | URL:=https://github.com/frainzy1477/clash_dev 42 | endef 43 | 44 | define Package/$(PKG_NAME)/description 45 | clash is a cross-platform proxy software 46 | endef 47 | 48 | define Build/Prepare 49 | gzip -dc "$(DL_DIR)/$(PKG_SOURCE)" > $(PKG_BUILD_DIR)/clash-linux-$(PKG_ARCH) 50 | endef 51 | 52 | define Build/Compile 53 | endef 54 | 55 | define Package/$(PKG_NAME)/install 56 | $(INSTALL_DIR) $(1)/etc/clash 57 | $(INSTALL_DIR) $(1)/usr/share/clash 58 | 59 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/clash-linux-$(PKG_ARCH) $(1)/etc/clash/clash 60 | $(INSTALL_BIN) ./file/core_version $(1)/usr/share/clash/ 61 | endef 62 | 63 | 64 | $(eval $(call BuildPackage,$(PKG_NAME))) 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
8 | A rule based custom proxy for Openwrt based on Clash. 9 |
10 |
11 |
12 |
13 |
14 |
15 |