include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-godproxy PKG_VERSION:=3.8.5 PKG_RELEASE:=3-20211105 include $(INCLUDE_DIR)/package.mk 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 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 else ($(ARCH),x86_64) $(INSTALL_BIN) ./bin/x86_64 $(1)/usr/share/koolproxy/koolproxy endif endef $(eval $(call BuildPackage,luci-app-godproxy))