mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-11 11:38:41 +01:00
98 lines
2.3 KiB
Makefile
98 lines
2.3 KiB
Makefile
#
|
|
# Copyright (C) 2021 IOPSYS Software Solutions AB
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=wfadatad
|
|
PKG_VERSION:=2.7.0.7
|
|
|
|
LOCAL_DEV=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=384f6e5f4b8595c348319175f0d1ebdf633ce9c2
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/wfadatad.git
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MIRROR_HASH:=skip
|
|
endif
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_LICENSE:=PROPRIETARY IOPSYS
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/wfadatad
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=WiFi DataElements Agent (standalone) daemon
|
|
DEPENDS:=+libwifi +libuci +libubox +ubus +libpthread +libnl-genl \
|
|
@(!PACKAGE_map-agent) +libieee1905 +map-plugin
|
|
endef
|
|
|
|
define Package/wfadatad/description
|
|
This package implements WiFi DataElements Agent.
|
|
endef
|
|
|
|
define Package/wfadatad-collector
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=WiFi DataElements Collector Proxy
|
|
DEPENDS:=+libuci +libubox +ubus +libpthread +libnl-genl \
|
|
+libieee1905 +map-plugin
|
|
endef
|
|
|
|
define Package/wfadatad-collector/description
|
|
It implements the WiFi DataElements Collector Proxy component.
|
|
endef
|
|
|
|
|
|
define Package/wfadatad-collector/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
ifneq (,$(findstring ALPHA,$(CONFIG_VERSION_CODE)))
|
|
MAKE_FLAGS += DEBUG=1
|
|
endif
|
|
|
|
ifneq (,$(findstring BETA,$(CONFIG_VERSION_CODE)))
|
|
MAKE_FLAGS += DEBUG=1
|
|
endif
|
|
|
|
TARGET_CFLAGS += \
|
|
-I$(STAGING_DIR)/usr/include \
|
|
-I$(STAGING_DIR)/usr/include/libnl3 \
|
|
-D_GNU_SOURCE
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
rsync -r --exclude=.* ~/git/wfadatad/ $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
MAKE_PATH:=src
|
|
|
|
|
|
EXECS := \
|
|
$(if $(CONFIG_PACKAGE_wfadatad),agent/deagent) \
|
|
$(if $(CONFIG_PACKAGE_wfadatad-collector),collector/decollector)
|
|
|
|
MAKE_FLAGS += EXECS="$(EXECS)"
|
|
|
|
|
|
define Package/wfadatad/install
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) ./files/deagent.init $(1)/etc/init.d/deagent
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/agent/deagent $(1)/usr/sbin/
|
|
endef
|
|
|
|
define Package/wfadatad-collector/install
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) ./files/decollector.init $(1)/etc/init.d/decollector
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/collector/decollector $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,wfadatad))
|
|
$(eval $(call BuildPackage,wfadatad-collector))
|