ba81359c60
add invariant script "001-node-system" to add section "system" if not exist; add invariant script "010-node-role" to add section "system" if not exist; add invariant script "010-node-role" to set role to default value (site.roles.default) if not exist; depends on new site.conf section
42 lines
736 B
Makefile
42 lines
736 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=gluon-node-info
|
|
PKG_VERSION:=1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
include $(GLUONDIR)/include/package.mk
|
|
|
|
define Package/gluon-node-info
|
|
SECTION:=gluon
|
|
CATEGORY:=Gluon
|
|
TITLE:=Add /etc/config/gluon-node-info to uci
|
|
DEPENDS:=+gluon-core
|
|
endef
|
|
|
|
define Package/gluon-node-info/description
|
|
This packages creates /etc/config/gluon-node-info.
|
|
endef
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/gluon-node-info/install
|
|
$(CP) ./files/* $(1)/
|
|
endef
|
|
|
|
define Package/gluon-node-info/postinst
|
|
#!/bin/sh
|
|
$(call GluonCheckSite,check_site.lua)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,gluon-node-info))
|