contrib/package: complete rework of dependencies, should cure menuconfig issues
[project/luci.git] / contrib / package / freifunk-policyrouting / 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-policyrouting
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
10
11 include $(INCLUDE_DIR)/package.mk
12
13 define Package/freifunk-policyrouting
14   SECTION:=luci
15   CATEGORY:=LuCI
16   SUBMENU:=9. Freifunk
17   TITLE:=Freifunk policy routing addon
18   DEPENDS:=+firewall +ip
19 endef
20
21 define Package/freifunk-policyrouting/description
22   Allows you to send your own traffic via your own default gateway while sending traffic received from the mesh to a gateway in the mesh.
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-policyrouting/install
36         $(CP) ./files/* $(1)/
37 endef
38
39 $(eval $(call BuildPackage,freifunk-policyrouting))