| 1 | # |
| 2 | # Copyright (C) 2010 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:=6in4 |
| 11 | PKG_VERSION:=9 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | include $(INCLUDE_DIR)/package.mk |
| 15 | |
| 16 | define Package/6in4 |
| 17 | SECTION:=ipv6 |
| 18 | CATEGORY:=IPv6 |
| 19 | DEPENDS:=+ip +kmod-ipv6 +kmod-sit |
| 20 | TITLE:=IPv6-in-IPv4 configuration support |
| 21 | PKGARCH:=all |
| 22 | endef |
| 23 | |
| 24 | define Package/6in4/description |
| 25 | Provides support for 6in4 tunnels in /etc/config/network. |
| 26 | Refer to http://wiki.openwrt.org/doc/uci/network for |
| 27 | configuration details. |
| 28 | endef |
| 29 | |
| 30 | define Build/Compile |
| 31 | endef |
| 32 | |
| 33 | define Build/Configure |
| 34 | endef |
| 35 | |
| 36 | define Package/6in4/install |
| 37 | $(INSTALL_DIR) $(1)/lib/network |
| 38 | $(INSTALL_DATA) ./files/6in4.sh $(1)/lib/network/6in4.sh |
| 39 | $(INSTALL_DIR) $(1)/etc/hotplug.d/iface |
| 40 | $(INSTALL_DATA) ./files/6in4.hotplug $(1)/etc/hotplug.d/iface/90-6in4 |
| 41 | endef |
| 42 | |
| 43 | $(eval $(call BuildPackage,6in4)) |
| 44 | |