2 # Copyright (C) 2010-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_netifd
16 include $(INCLUDE_DIR)/package.mk
21 DEPENDS:=+ip +kmod-ipv6 +kmod-sit
22 TITLE:=IPv6-in-IPv4 configuration support
23 MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
27 define Package/6in4/description
28 Provides support for 6in4 tunnels in /etc/config/network.
29 Refer to http://wiki.openwrt.org/doc/uci/network for
30 configuration details.
36 define Build/Configure
39 ifneq ($(CONFIG_PACKAGE_netifd),)
40 define Package/6in4/install
41 $(INSTALL_DIR) $(1)/lib/netifd/proto
42 $(INSTALL_BIN) ./files/6in4.sh $(1)/lib/netifd/proto/6in4.sh
43 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
44 $(INSTALL_DATA) ./files/6in4.hotplug $(1)/etc/hotplug.d/iface/90-6in4
47 define Package/6in4/install
48 $(INSTALL_DIR) $(1)/lib/network
49 $(INSTALL_DATA) ./files.old/6in4.sh $(1)/lib/network/6in4.sh
50 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
51 $(INSTALL_DATA) ./files.old/6in4.hotplug $(1)/etc/hotplug.d/iface/90-6in4
55 $(eval $(call BuildPackage,6in4))