aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/ipv6-support/Makefile
blob: 0d596d4d3b01ac55342d2260bf38cd11d00a36dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Copyright (C) 2010-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=ipv6-support
PKG_VERSION:=2013-01-02
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

define Package/ipv6-support
  SECTION:=ipv6
  CATEGORY:=IPv6
  DEPENDS:=+kmod-ipv6 +6relayd +odhcp6c +6distributed +ip6tables +ubus
  TITLE:=Basic IPv6-support for Customer Edge Routers
  MAINTAINER:=Steven Barth <steven@midlink.org>
  PKGARCH:=all
endef

define Package/ipv6-support/description
This package provides basic IPv6 support including Router Discovery,
DHCPv6 (client & server), prefix delegation and distribution.
endef

define Build/Compile
endef

define Build/Configure
endef

define Package/ipv6-support/conffiles
/etc/config/network6
endef

define Package/ipv6-support/install
	$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
	$(INSTALL_DATA) ./files/ipv6.hotplug $(1)/etc/hotplug.d/iface/20-ipv6
	$(INSTALL_DIR) $(1)/lib/ipv6
	$(INSTALL_DATA) ./files/support.sh $(1)/lib/ipv6/support.sh
	$(INSTALL_BIN) ./files/dhcpv6.sh $(1)/lib/ipv6/dhcpv6.sh
	$(INSTALL_BIN) ./files/firewall.sh $(1)/lib/ipv6/firewall.sh
	$(INSTALL_DIR) $(1)/etc/config
	$(INSTALL_DATA) ./files/network6.config $(1)/etc/config/network6
	$(INSTALL_DIR) $(1)/etc/uci-defaults
	$(INSTALL_BIN) ./files/ipv6-support.defaults $(1)/etc/uci-defaults/ipv6-support.defaults
endef

$(eval $(call BuildPackage,ipv6-support))