pack/xunyou/Makefile
2023-08-06 02:23:24 +08:00

58 lines
1.2 KiB
Makefile

#
# Copyright (C) 2015-2016 OpenWrt.org
# Copyright (C) 2020 jjm2473@gmail.com
#
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=xunyou
PKG_VERSION:=2.0.2.4
PKG_RELEASE:=7
PKG_SOURCE:=$(PKG_NAME)_v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://partnerdownload.xunyou.com/routerplugin/koolshare/
PKG_HASH:=skip
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_v$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
SUBMENU:=Web Servers/Proxies
TITLE:=xunyou
DEPENDS:=+coreutils-nohup
endef
define Package/$(PKG_NAME)/description
xunyou
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/xunyou
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1) $(1)/etc/config $(1)/etc/init.d $(1)/etc/uci-defaults
$(CP) $(PKG_BUILD_DIR)/common/. $(1)/
$(CP) $(PKG_BUILD_DIR)/$(ARCH)/. $(1)/
$(INSTALL_CONF) ./files/xunyou.config $(1)/etc/config/xunyou
$(INSTALL_BIN) ./files/xunyou.init $(1)/etc/init.d/xunyou
$(INSTALL_BIN) ./files/xunyou.uci-default $(1)/etc/uci-defaults/xunyou
endef
$(eval $(call BuildPackage,xunyou))