small-package/luci-app-advanced/Makefile

44 lines
980 B
Makefile
Raw Normal View History

2021-09-05 16:50:22 +08:00
# Copyright (C) 2019 sirpdboy <https://github.com/sirpdboy/luci-app-advanced/>
#
2022-02-18 20:30:51 +08:00
#
#
2021-09-05 16:50:22 +08:00
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
2022-02-18 20:30:51 +08:00
include $(INCLUDE_DIR)/package.mk
2021-09-05 16:50:22 +08:00
2022-02-18 20:30:51 +08:00
PKG_NAME:=luci-app-advanced
PKG_VERSION:=1.20
PKG_RELEASE:=20220218
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
DEPENDS:=
TITLE:=LuCI Support for advanced and filebrowser
PKGARCH:=all
endef
2021-09-05 16:50:22 +08:00
2022-02-18 20:30:51 +08:00
define Build/Compile
2021-09-05 16:50:22 +08:00
endef
2022-02-18 20:30:51 +08:00
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
$(CP) ./luasrc/* $(1)/usr/lib/lua/luci
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./root/etc/config/advanced $(1)/etc/config/
$(INSTALL_DIR) $(1)/www
cp -pR ./htdocs/* $(1)/www/
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./root/etc/uci-defaults/* $(1)/etc/uci-defaults/
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) ./root/bin/* $(1)/bin/
endef
2021-09-05 16:50:22 +08:00
2022-02-18 20:30:51 +08:00
$(eval $(call BuildPackage,$(PKG_NAME)))