3ab8198ef312de394ac9bbae78ed54818c1b9ef2
[openwrt/openwrt.git] / package / network / ipv6 / 6rd / Makefile
1 #
2 # Copyright (C) 2010-2012 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:=6rd
11 PKG_RELEASE:=13
12 PKG_LICENSE:=GPL-2.0
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/6rd
17 SECTION:=net
18 CATEGORY:=Network
19 DEPENDS:=@IPV6 +kmod-sit
20 TITLE:=6rd configuration support
21 MAINTAINER:=Steven Barth <cyrus@openwrt.org>
22 PKGARCH:=all
23 endef
24
25 define Package/6rd/description
26 Provides support for 6rd tunnels in /etc/config/network.
27 Refer to http://wiki.openwrt.org/doc/uci/network for
28 configuration details.
29 endef
30
31 define Build/Configure
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 CC="$(TARGET_CC)" \
37 CFLAGS="$(TARGET_CFLAGS) -Wall" \
38 LDFLAGS="$(TARGET_LDFLAGS)"
39 endef
40
41 define Package/6rd/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/6rdcalc $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/lib/netifd/proto
45 $(INSTALL_BIN) ./files/6rd.sh $(1)/lib/netifd/proto/6rd.sh
46 endef
47
48 $(eval $(call BuildPackage,6rd))