forked from freifunk-franken/firmware
Adrian Schmutzler
91808ad710
So far, nodewatcher version has to be specified twice, once in the Makefile and again in the nodewatcher script. With this patch, a version file is created during build than can be read in nodewatcher script, so version only has to be specified once anymore. The file name mimics the version files already present for OpenWrt and our firmware. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
43 lines
926 B
Makefile
43 lines
926 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=fff-nodewatcher
|
|
PKG_RELEASE:=59
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
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 Build/Prepare
|
|
echo "all: " > $(PKG_BUILD_DIR)/Makefile
|
|
endef
|
|
|
|
define Build/Configure
|
|
# nothing
|
|
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)))
|