2015-09-01 18:08:13 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gluon-status-page-api
|
|
|
|
PKG_VERSION:=1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
2016-02-02 05:38:03 +00:00
|
|
|
PKG_BUILD_DEPENDS := respondd
|
2015-09-01 18:08:13 +00:00
|
|
|
|
2016-10-08 22:18:45 +00:00
|
|
|
include ../gluon.mk
|
2016-07-10 18:08:44 +00:00
|
|
|
|
2015-09-01 18:08:13 +00:00
|
|
|
|
|
|
|
define Package/gluon-status-page-api
|
|
|
|
SECTION:=gluon
|
|
|
|
CATEGORY:=Gluon
|
|
|
|
TITLE:=API for gluon-status-page
|
2017-02-11 16:25:06 +00:00
|
|
|
DEPENDS:=+gluon-core +uhttpd +sse-multiplex +gluon-neighbour-info +gluon-respondd +libiwinfo +libjson-c +libnl-tiny +libubus-lua
|
2015-09-01 18:08:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
2015-09-01 20:49:26 +00:00
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
2015-09-01 18:08:13 +00:00
|
|
|
endef
|
|
|
|
|
2016-07-10 18:08:44 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default)
|
|
|
|
$(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
|
|
|
|
endef
|
|
|
|
|
2015-09-01 18:08:13 +00:00
|
|
|
define Package/gluon-status-page-api/install
|
2015-12-13 13:46:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/gluon/status-page/providers
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/neighbours-batadv $(1)/lib/gluon/status-page/providers/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/
|
2016-02-02 05:38:03 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/status-page-api.so
|
|
|
|
|
2015-09-01 18:08:13 +00:00
|
|
|
$(CP) ./files/* $(1)/
|
2016-07-10 18:08:44 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
|
2015-09-01 18:08:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gluon-status-page-api))
|