package/network: add PKGARCH:=all to non-binary packages
[openwrt/openwrt.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_VERSION:=1
12 PKG_RELEASE:=3
13 PKG_LICENSE:=GPL-2.0
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/vti/Default
18 SECTION:=net
19 CATEGORY:=Network
20 MAINTAINER:=Andre Valentin <avalentin@marcant.net>
21 PKGARCH:=all
22 endef
23
24 define Package/vti
25 $(call Package/vti/Default)
26 TITLE:=Virtual IPsec Tunnel Interface config support
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 Package/vtiv4
34 $(call Package/vti/Default)
35 TITLE:=Virtual IPsec Tunnel Interface (IPv4) config support
36 DEPENDS:=@(PACKAGE_vti) +kmod-ip-vti
37 endef
38
39 define Package/vtiv4/description
40 Virtual IPsec Tunnel Interface config support (IPv4) in /etc/config/network.
41 endef
42
43 define Package/vtiv6
44 $(call Package/vti/Default)
45 TITLE:=Virtual IPsec Tunnel Interface (IPv6) config support
46 DEPENDS:=@(PACKAGE_vti) @IPV6 +kmod-ip6-vti
47 endef
48
49 define Package/vtiv6/description
50 Virtual IPsec Tunnel Interface config support (IPv6) in /etc/config/network.
51 endef
52
53 define Build/Compile
54 endef
55
56 define Build/Configure
57 endef
58
59 define Package/vti/install
60 $(INSTALL_DIR) $(1)/lib/netifd/proto
61 $(INSTALL_BIN) ./files/vti.sh $(1)/lib/netifd/proto/vti.sh
62 endef
63
64 define Package/vtiv4/install
65 :
66 endef
67
68 define Package/vtiv6/install
69 :
70 endef
71
72 $(eval $(call BuildPackage,vti))
73 $(eval $(call BuildPackage,vtiv4))
74 $(eval $(call BuildPackage,vtiv6))