9c5c13f1691f837db2d0ffe6a868fe4b24cff330
[openwrt/staging/chunkeey.git] / package / network / config / gre / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gre
11 PKG_VERSION:=1
12 PKG_RELEASE:=3
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/gre/Default
17 SECTION:=net
18 CATEGORY:=Network
19 MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
20 endef
21
22 define Package/gre
23 $(call Package/gre/Default)
24 TITLE:=Generic Routing Encapsulation config support
25 endef
26
27 define Package/gre/description
28 Generic Routing Encapsulation config support (IPv4 and IPv6) in /etc/config/network.
29 endef
30
31 define Package/grev4
32 $(call Package/gre/Default)
33 TITLE:=Generic Routing Encapsulation (IPv4) config support
34 DEPENDS:=@(PACKAGE_gre) +kmod-gre
35 endef
36
37 define Package/grev4/description
38 Generic Routing Encapsulation config support (IPv4) in /etc/config/network.
39 endef
40
41 define Package/grev6
42 $(call Package/gre/Default)
43 TITLE:=Generic Routing Encapsulation (IPv6) config support
44 DEPENDS:=@(PACKAGE_gre) +kmod-ipv6 +kmod-ip6-gre
45 endef
46
47 define Package/grev6/description
48 Generic Routing Encapsulation config support (IPv6) in /etc/config/network.
49 endef
50
51 define Build/Compile
52 endef
53
54 define Build/Configure
55 endef
56
57 define Package/gre/install
58 $(INSTALL_DIR) $(1)/lib/netifd/proto
59 $(INSTALL_BIN) ./files/gre.sh $(1)/lib/netifd/proto/gre.sh
60 endef
61
62 $(eval $(call BuildPackage,gre))
63 $(eval $(call BuildPackage,grev4))
64 $(eval $(call BuildPackage,grev6))