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
|
|
|
|
2016-02-02 05:38:03 +00:00
|
|
|
PKG_BUILD_DEPENDS := respondd
|
2013-10-02 12:18:42 +00:00
|
|
|
|
2016-10-08 22:18:45 +00:00
|
|
|
include ../gluon.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
|
|
|
|
|
2017-06-29 09:59:22 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default)
|
|
|
|
$(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
|
|
|
|
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)/
|
2017-06-29 09:59:22 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/luadest/* $(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))
|