luci-app-speederv2: sort out files

This commit is contained in:
CN_SZTL 2020-04-13 00:37:03 +08:00
parent 84f4d16072
commit 4ff9d13ab3
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -7,6 +7,10 @@
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI Support for speederv2-tunnel
LUCI_DEPENDS:=+speederv2-tunnel
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-speederv2
PKG_VERSION:=1.1.0
PKG_RELEASE:=3
@ -15,54 +19,6 @@ PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Hao Dong <halbertdong@gmail.com>
include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/luci/luci.mk
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=LuCI Support for speederv2-tunnel
PKGARCH:=all
DEPENDS:=+speederv2-tunnel
endef
define Package/$(PKG_NAME)/description
LuCI Support for speederv2-tunnel.
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
( . /etc/uci-defaults/luci-speederv2 ) && rm -f /etc/uci-defaults/luci-speederv2
fi
exit 0
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/speederv2
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/speederv2
$(INSTALL_DATA) ./luasrc/model/cbi/speederv2/*.lua $(1)/usr/lib/lua/luci/model/cbi/speederv2/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/speederv2
$(INSTALL_DATA) ./luasrc/view/speederv2/*.htm $(1)/usr/lib/lua/luci/view/speederv2/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./root/etc/config/speederv2 $(1)/etc/config/speederv2
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./root/etc/init.d/speederv2 $(1)/etc/init.d/speederv2
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./root/etc/uci-defaults/luci-speederv2 $(1)/etc/uci-defaults/luci-speederv2
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/speederv2.po $(1)/usr/lib/lua/luci/i18n/speederv2.zh-cn.lmo
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
# call BuildPackage - OpenWrt buildroot signature