2013-10-02 12:18:42 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2014-02-24 04:06:34 +00:00
|
|
|
PKG_NAME:=gluon-node-info
|
2013-10-02 12:18:42 +00:00
|
|
|
PKG_VERSION:=1
|
2014-01-04 08:19:13 +00:00
|
|
|
PKG_RELEASE:=1
|
2013-10-02 12:18:42 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
2016-02-02 05:38:03 +00:00
|
|
|
PKG_BUILD_DEPENDS := respondd
|
2013-10-02 12:18:42 +00:00
|
|
|
|
2015-01-10 23:07:00 +00:00
|
|
|
include $(GLUONDIR)/include/package.mk
|
2013-10-02 12:18:42 +00:00
|
|
|
|
2016-07-10 18:08:44 +00:00
|
|
|
|
2014-02-24 04:06:34 +00:00
|
|
|
define Package/gluon-node-info
|
2013-10-02 12:18:42 +00:00
|
|
|
SECTION:=gluon
|
|
|
|
CATEGORY:=Gluon
|
2014-02-24 04:06:34 +00:00
|
|
|
TITLE:=Add /etc/config/gluon-node-info to uci
|
2016-02-02 05:38:03 +00:00
|
|
|
DEPENDS:=+gluon-core +libgluonutil
|
2013-10-02 12:18:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
2016-02-02 05:38:03 +00:00
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
2013-10-02 12:18:42 +00:00
|
|
|
endef
|
|
|
|
|
2014-02-24 04:06:34 +00:00
|
|
|
define Package/gluon-node-info/install
|
2013-10-02 12:18:42 +00:00
|
|
|
$(CP) ./files/* $(1)/
|
2016-02-02 05:38:03 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/node-info.so
|
2013-10-02 12:18:42 +00:00
|
|
|
endef
|
|
|
|
|
2015-01-10 23:07:00 +00:00
|
|
|
define Package/gluon-node-info/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
$(call GluonCheckSite,check_site.lua)
|
|
|
|
endef
|
|
|
|
|
2014-02-24 04:06:34 +00:00
|
|
|
$(eval $(call BuildPackage,gluon-node-info))
|