firmware/src/packages/fff/fff-nodewatcher/Makefile
Adrian Schmutzler cdf444651f fff-nodewatcher: specify config file as config file
This package is the owner of the config file, so add it to the
Makefile. This will have vanilla OpenWrt copy it during upgrade.

Since we disable this mechanism, it will not change anything for
our standard firmware. But it will improve the situation if this
package is used in vanilla OpenWrt.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
2021-02-27 16:12:02 +01:00

37 lines
841 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=fff-nodewatcher
PKG_RELEASE:=61
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=base
CATEGORY:=Freifunk
TITLE:=Freifunk-Franken Nodewatcher
URL:=http://www.freifunk-franken.de
DEPENDS:=+fff-alfred +micrond +fff-config +fff-random +ip +ip-bridge
endef
define Package/$(PKG_NAME)/description
This is the Nodewatcher for the Freifunk Franken Firmware
It is used to send node status information to
monitoring.freifunk-franken.de and
netmon.freifunk-franken.de
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/nodewatcher
endef
define Build/Compile
# nothing
endef
define Package/$(PKG_NAME)/install
$(CP) ./files/* $(1)/
printf "$(if $(PKG_VERSION),$(PKG_VERSION).)$(PKG_RELEASE)" >> $(1)/etc/nodewatcher_version
endef
$(eval $(call BuildPackage,$(PKG_NAME)))