Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
  2. # This is free software, licensed under the Apache 2.0 license.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=freifunk-gwcheck
  5. PKG_RELEASE:=4
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include $(INCLUDE_DIR)/package.mk
  8. define Package/freifunk-gwcheck
  9. SECTION:=luci
  10. CATEGORY:=LuCI
  11. SUBMENU:=9. Freifunk
  12. TITLE:=Freifunk gateway check script
  13. DEPENDS:=firewall +ip +iptables-mod-ipopt +olsrd-mod-dyn-gw-plain
  14. endef
  15. define Package/freifunk-gwcheck/description
  16. This script periodically checks if internet is available via your own gateway. If it detects that it is broken, then the defaultroute is removed from the main table and temporarilly placed in table gw-check until your internet works again. Config file is /etc/config/freifunk-gwcheck.
  17. endef
  18. define Build/Prepare
  19. mkdir -p $(PKG_BUILD_DIR)
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. endef
  25. define Package/freifunk-gwcheck/install
  26. $(CP) ./files/* $(1)/
  27. $(CP) ./root/* $(1)/
  28. endef
  29. $(eval $(call BuildPackage,freifunk-gwcheck))