luci-app-mentohust: sort out files

This commit is contained in:
CN_SZTL 2020-04-13 02:17:45 +08:00
parent 676dfad4c2
commit ecaa114424
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
7 changed files with 9 additions and 47 deletions

View File

@ -1,53 +1,15 @@
include $(TOPDIR)/rules.mk
LUCI_TITLE:=MentoHUST 802.1X Client for LuCI
LUCI_DESCRIPTION:=This package contains LuCI configuration pages for 8021xclient.
LUCI_DEPENDS:=+mentohust
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-mentohust
PKG_VERSION=1.1.1
PKG_RELEASE:=0
PKG_VERSION:=1.1.1
PKG_RELEASE:=2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(TOPDIR)/feeds/luci/luci.mk
include $(INCLUDE_DIR)/package.mk
# call BuildPackage - OpenWrt buildroot signature
define Package/luci-app-mentohust
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=MentoHUST 802.1X Client for LuCI
PKGARCH:=all
DEPENDS:=+mentohust
endef
define Package/luci-app-mentohust/description
This package contains LuCI configuration pages for 8021xclient.
endef
define Package/luci-app-mentohust/conffiles
/etc/config/mentohust
endef
define Build/Prepare
$(foreach po,$(wildcard ${CURDIR}/files/luci/i18n/*.po), \
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/luci-app-mentohust/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/mentohust
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
$(INSTALL_DATA) $(PKG_BUILD_DIR)/mentohust.*.lmo $(1)/usr/lib/lua/luci/i18n/
$(INSTALL_CONF) ./files/root/etc/config/mentohust $(1)/etc/config/mentohust
$(INSTALL_BIN) ./files/root/etc/init.d/mentohust $(1)/etc/init.d/mentohust
$(INSTALL_DATA) ./files/luci/model/cbi/mentohust/general.lua $(1)/usr/lib/lua/luci/model/cbi/mentohust/general.lua
$(INSTALL_DATA) ./files/luci/model/cbi/mentohust/log.lua $(1)/usr/lib/lua/luci/model/cbi/mentohust/log.lua
$(INSTALL_DATA) ./files/luci/controller/mentohust.lua $(1)/usr/lib/lua/luci/controller/mentohust.lua
endef
$(eval $(call BuildPackage,luci-app-mentohust))