source: trunk/package/6in4/Makefile @ 31730

Last change on this file since 31730 was 31730, checked in by nbd, 5 years ago

enable netifd by default and add its config variable to PKG_CONFIG_DEPENDS in a few relevant places

File size: 1.3 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=6in4
11PKG_VERSION:=10
12PKG_RELEASE:=1
13
14PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_netifd
15
16include $(INCLUDE_DIR)/package.mk
17
18define 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
25endef
26
27define Package/6in4/description
28Provides support for 6in4 tunnels in /etc/config/network.
29Refer to http://wiki.openwrt.org/doc/uci/network for
30configuration details.
31endef
32
33define Build/Compile
34endef
35
36define Build/Configure
37endef
38
39ifneq ($(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
46else
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
53endif
54
55$(eval $(call BuildPackage,6in4))
Note: See TracBrowser for help on using the repository browser.