Skip to content
Snippets Groups Projects
Makefile 934 B
Newer Older
PKG_NAME:=ffnw-nodewatcher
Bjoern Franke's avatar
Bjoern Franke committed
PKG_VERSION:=30
PKG_RELEASE:=1
Bjoern Franke's avatar
Bjoern Franke committed
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
define Package/ffnw-nodewatcher
Bjoern Franke's avatar
Bjoern Franke committed
  SECTION:=daemon
  CATEGORY:=Freifunk Nordwest
Bjoern Franke's avatar
Bjoern Franke committed
  TITLE:=Provides status data for netmon 
endef

define Package/ffnw-nodewatcher/description
Bjoern Franke's avatar
Bjoern Franke committed
	Provides status data for netmon
endef

define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
endef

define Build/Configure
Bjoern Franke's avatar
Bjoern Franke committed
define Build/Compile
define Package/ffnw-nodewatcher/install
Bjoern Franke's avatar
Bjoern Franke committed
	$(INSTALL_DIR) $(1)/lib/gluon/cron/
	$(INSTALL_DATA) files/lib/gluon/cron/nodewatcher $(1)/lib/gluon/cron/nodewatcher
	$(INSTALL_DIR) $(1)/lib/ffnw/nodewatcher/
	$(INSTALL_BIN) files/lib/ffnw/nodewatcher/nodewatcher.sh $(1)/lib/ffnw/nodewatcher/
Bjoern Franke's avatar
Bjoern Franke committed
	$(INSTALL_DIR) $(1)/etc/config/
	$(INSTALL_CONF) files/nodewatcher.config $(1)/etc/config/nodewatcher
$(eval $(call BuildPackage,ffnw-nodewatcher))