vti: squash vtiv4 and vtiv6 packages into vti
[openwrt/staging/jow.git] / package / network / config / vti / 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:=vti
11 PKG_RELEASE:=5
12 PKG_LICENSE:=GPL-2.0
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/vti/Default
17 endef
18
19 define Package/vti
20 SECTION:=net
21 CATEGORY:=Network
22 MAINTAINER:=Andre Valentin <avalentin@marcant.net>
23 TITLE:=Virtual IPsec Tunnel Interface config support
24 DEPENDS:=+kmod-ip-vti +IPV6:kmod-ip6-vti
25 PROVIDES:=vtiv4 vtiv6
26 PKGARCH:=all
27 endef
28
29 define Package/vti/description
30 Virtual IPsec Tunnel Interface config support (IPv4 and IPv6) in /etc/config/network.
31 endef
32
33 define Build/Compile
34 endef
35
36 define Build/Configure
37 endef
38
39 define Package/vti/install
40 $(INSTALL_DIR) $(1)/lib/netifd/proto
41 $(INSTALL_BIN) ./files/vti.sh $(1)/lib/netifd/proto/vti.sh
42 endef
43
44 $(eval $(call BuildPackage,vti))