small-package/my-default-settings/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

2021-09-24 23:37:27 +08:00
#
# Copyright (C) 2010-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
2021-10-08 20:29:31 +08:00
PKG_NAME:=my-default-settings
2021-09-24 23:37:27 +08:00
PKG_VERSION:=1
PKG_RELEASE:=10
include $(INCLUDE_DIR)/package.mk
2021-10-08 20:29:31 +08:00
define Package/$(PKG_NAME)
2021-09-24 23:37:27 +08:00
SECTION:=luci
CATEGORY:=LuCI
TITLE:=Default Settings
MAINTAINER:=Kiddin'
PKGARCH:=all
2021-10-08 20:29:31 +08:00
DEPENDS:=+luci-base +bash
2021-09-24 23:37:27 +08:00
endef
2021-10-08 20:29:31 +08:00
define Package/$(PKG_NAME)/conffiles
2021-09-24 23:37:27 +08:00
/etc/config/base_config
endef
define Build/Compile
endef
2021-10-08 20:29:31 +08:00
define Package/$(PKG_NAME)/install
2021-09-24 23:37:27 +08:00
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_DATA) ./files/uci.defaults $(1)/etc/uci-defaults/95-default-settings
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/base_config.conf $(1)/etc/config/base_config
$(INSTALL_DIR) $(1)/etc/profile.d
$(INSTALL_BIN) ./files/sysinfo.sh $(1)/etc/profile.d/sysinfo.sh
2021-10-10 09:07:33 +08:00
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) ./files/shutdown $(1)/sbin/shutdown
2021-09-24 23:37:27 +08:00
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh_Hans/default.po $(1)/usr/lib/lua/luci/i18n/default.zh-cn.lmo
endef
2021-10-08 20:29:31 +08:00
$(eval $(call BuildPackage,$(PKG_NAME)))
2022-02-12 15:40:06 +08:00