Files
wlan-ap/feeds/ucentral/ucentral-schema/Makefile
John Crispin 856ac16e86 ucentral-schema: update to latest HEAD
cc0bf95 fix un-tagged swconfig upstream ports

Signed-off-by: John Crispin <john@phrozen.org>
2024-04-12 15:17:38 +02:00

52 lines
1.6 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=ucentral-schema
PKG_RELEASE:=1
PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-schema.git
PKG_MIRROR_HASH:=5afb439480d12d3e8e5158f056850b034096cf36a91574dbeecd4a98a8830e83
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2022-05-29
PKG_SOURCE_VERSION:=cc0bf95db178248a5e0d3adbc3bcfde1001c4802
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
PKG_LICENSE:=BSD-3-Clause
include $(INCLUDE_DIR)/package.mk
define Package/ucentral-schema
SECTION:=ucentral
CATEGORY:=uCentral
TITLE:=OpenWrt uCentral schema
DEPENDS+= +ucode-mod-nl80211 +ucode-mod-rtnl +ucode-mod-log
endef
define Package/ucentral-recovery
SECTION:=ucentral
CATEGORY:=uCentral
TITLE:=OpenWrt uCentral recovery tooling
endef
define Build/Compile
endef
define Package/ucentral-schema/install
$(INSTALL_DIR) $(1)/usr/share/ucentral $(1)/etc/ucentral/
$(CP) $(PKG_BUILD_DIR)/schema.json $(1)/etc/ucentral/
$(CP) $(PKG_BUILD_DIR)/schemareader.uc $(1)/usr/share/ucentral
$(CP) $(PKG_BUILD_DIR)/renderer/* $(1)/usr/share/ucentral
$(CP) $(PKG_BUILD_DIR)/command/*.uc $(1)/usr/share/ucentral
$(CP) $(PKG_BUILD_DIR)/system/*.uc $(1)/usr/share/ucentral
$(CP) ./files/* $(1)
endef
define Package/ucentral-recovery/install
$(INSTALL_DIR) $(1)/usr/share/ucentral $(1)/etc/uci-defaults/
$(CP) $(PKG_BUILD_DIR)/command/*.uc $(1)/usr/share/ucentral
$(CP) $(PKG_BUILD_DIR)/system/{capabilities,crashlog}.uc $(1)/usr/share/ucentral
$(CP) ./files/etc/uci-defaults/99-ucentral-hostname $(1)/etc/uci-defaults/
endef
$(eval $(call BuildPackage,ucentral-recovery))
$(eval $(call BuildPackage,ucentral-schema))