Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-alfred-watchdog
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/ffho-alfred-watchdog
  8. SECTION:=ffho
  9. CATEGORY:=Workarounds
  10. TITLE:=A.L.F.R.E.D. crash watchdog
  11. DEPENDS:=+busybox
  12. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  13. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  14. endef
  15. define Package/ffho-alfred-watchdog/description
  16. Monitors whether or not the A.L.F.R.E.D. is still running on a node or
  17. not. Version 2013.x crashes from time to time and thus some nodes dis-
  18. appear from the map. It is thus suitable to monitor the state of the
  19. daemon on the node itself by periodically making requests to avoid un-
  20. necessary support-requests and manual restarts of these nodes. In a
  21. failure state, the daemon can simply be restarted by triggering its
  22. init-script.
  23. Please note that the bug is most likely gone in v2014.1 and newer and
  24. and thus the package does not need to be included in the firmware in
  25. newer firmwares.
  26. endef
  27. define Build/Prepare
  28. endef
  29. define Build/Configure
  30. endef
  31. define Build/Compile
  32. endef
  33. define Package/ffho-alfred-watchdog/install
  34. $(INSTALL_DIR) $(1)/bin/
  35. $(INSTALL_DIR) $(1)/lib/gluon/cron/
  36. $(INSTALL_BIN) ./files/bin/* $(1)/bin/
  37. $(INSTALL_DATA) ./files/lib/gluon/cron/* $(1)/lib/gluon/cron/
  38. endef
  39. $(eval $(call BuildPackage,ffho-alfred-watchdog))