Makefile 1.5 KB

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