treewide: avoid double-escaping CBI section labels
[project/luci.git] / contrib / package / freifunk-gwcheck / Makefile
1 # Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
2 # This is free software, licensed under the Apache 2.0 license.
3
4 include $(TOPDIR)/rules.mk
5
6 PKG_NAME:=freifunk-gwcheck
7 PKG_RELEASE:=4
8
9 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
10
11 include $(INCLUDE_DIR)/package.mk
12
13 define Package/freifunk-gwcheck
14 SECTION:=luci
15 CATEGORY:=LuCI
16 SUBMENU:=9. Freifunk
17 TITLE:=Freifunk gateway check script
18 DEPENDS:=firewall +ip +iptables-mod-ipopt +olsrd-mod-dyn-gw-plain
19 endef
20
21 define Package/freifunk-gwcheck/description
22 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.
23 endef
24
25 define Build/Prepare
26 mkdir -p $(PKG_BUILD_DIR)
27 endef
28
29 define Build/Configure
30 endef
31
32 define Build/Compile
33 endef
34
35 define Package/freifunk-gwcheck/install
36 $(CP) ./files/* $(1)/
37 $(CP) ./root/* $(1)/
38 endef
39
40 $(eval $(call BuildPackage,freifunk-gwcheck))