# # Copyright (C) 2021-2023 IOPSYS Software Solutions AB # include $(TOPDIR)/rules.mk PKG_NAME:=periodicstats PKG_VERSION:=1.5.3 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/periodicstats.git PKG_SOURCE_VERSION:=28bea5be686013af0ba8e54cf4871f10015e4b06 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MIRROR_HASH:=skip endif PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE include $(INCLUDE_DIR)/package.mk define Package/periodicstats SECTION:=utils CATEGORY:=Utilities TITLE:=Periodic Statistics Daemon DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +libbbfdm-api endef define Package/periodicstats/description Manage periodic statistics endef ifeq ($(LOCAL_DEV),1) define Build/Prepare $(CP) -rf ~/git/periodicstats/* $(PKG_BUILD_DIR)/ endef endif define Package/periodicstats/install $(CP) ./files/* $(1)/ $(INSTALL_DIR) $(1)/usr $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/periodicstatsd $(1)/usr/sbin $(INSTALL_DIR) $(1)/etc/periodicstats $(CP) $(PKG_BUILD_DIR)/bbf_plugin/libperiodicstats.so $(1)/etc/periodicstats endef $(eval $(call BuildPackage,periodicstats))