[package] dnsmasq: bump package revision
[openwrt.git] / package / 6in4 / Makefile
1 #
2 # Copyright (C) 2010-2011 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:=10
12 PKG_RELEASE:=1
13
14 PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_netifd
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/6in4
19   SECTION:=ipv6
20   CATEGORY:=IPv6
21   DEPENDS:=+ip +kmod-ipv6 +kmod-sit
22   TITLE:=IPv6-in-IPv4 configuration support
23   MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
24   PKGARCH:=all
25 endef
26
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.
31 endef
32
33 define Build/Compile
34 endef
35
36 define Build/Configure
37 endef
38
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
45   endef
46 else
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
52   endef
53 endif
54
55 $(eval $(call BuildPackage,6in4))