CN_SZTL 93b29ba7dd
treewide: update Copyright info
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-06 17:57:14 +08:00

50 lines
1.2 KiB
Makefile

#
# Copyright (C) 2021 Lean <coolsnowwolf@gmail.com>
#
# Copyright (C) 2021 ImmortalWrt
# <https://project-openwrt.eu.org>
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=default-settings
PKG_VERSION:=1.1
PKG_RELEASE:=56
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/default-settings
SECTION:=luci
CATEGORY:=LuCI
TITLE:=LuCI support for Default Settings
PKGARCH:=all
DEPENDS:=+luci-lib-base +@LUCI_LANG_en +@LUCI_LANG_zh_Hans
endef
define Package/default-settings/description
Language Support Packages.
endef
define Build/Compile
true
endef
define Package/default-settings/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/openwrt_banner $(1)/etc/openwrt_banner
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/zzz-default-settings $(1)/etc/uci-defaults/99-default-settings
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./i18n/default.zh_Hans.po $(1)/usr/lib/lua/luci/i18n/default.zh-cn.lmo
po2lmo ./i18n/more.zh_Hans.po $(1)/usr/lib/lua/luci/i18n/more.zh-cn.lmo
endef
$(eval $(call BuildPackage,default-settings))