small-package/my-default-settings/Makefile

45 lines
894 B
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
2022-02-14 21:07:23 +08:00
define Build/Prepare
2022-02-15 09:13:58 +08:00
chmod +x ./files/bin/* ./files/sbin/* ./files/etc/profile.d/* ./files/usr/share/* >/dev/null || true
2022-02-14 21:07:23 +08:00
endef
2021-09-24 23:37:27 +08:00
define Build/Compile
endef
2021-10-08 20:29:31 +08:00
define Package/$(PKG_NAME)/install
2022-02-14 21:07:23 +08:00
$(CP) ./files/* $(1)/
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