04d607eb9e4dfbeee05d9f3102133e1e3c46cbef
2 # Copyright (C) 2010-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 include $(INCLUDE_DIR
)/package.mk
20 DEPENDS
:=@IPV6
+kmod-sit
21 TITLE
:=6rd configuration support
22 MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
26 define Package
/6rd
/description
27 Provides support for
6rd tunnels in
/etc
/config
/network.
28 Refer to http
://wiki.openwrt.org
/doc
/uci
/network for
29 configuration details.
33 mkdir
-p
$(PKG_BUILD_DIR
)
34 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
37 define Build
/Configure
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
44 LDFLAGS
="$(TARGET_LDFLAGS)"
47 define Package
/6rd
/install
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/6rdcalc
$(1)/usr
/sbin
/
50 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
51 $(INSTALL_BIN
) .
/files
/6rd.sh
$(1)/lib
/netifd
/proto
/6rd.sh
54 $(eval
$(call BuildPackage
,6rd
))