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
18 include $(INCLUDE_DIR
)/package.mk
23 DEPENDS
:=+kmod-ipv6
+kmod-sit
24 TITLE
:=6rd configuration support
25 MAINTAINER
:=Stéphan Kochen
<stephan@kochen.nl
>
29 define Package
/6rd
/description
30 Provides support for
6rd tunnels in
/etc
/config
/network.
31 Refer to http
://wiki.openwrt.org
/doc
/uci
/network for
32 configuration details.
36 mkdir
-p
$(PKG_BUILD_DIR
)
37 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
40 define Build
/Configure
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
47 LDFLAGS
="$(TARGET_LDFLAGS)"
50 define Package
/6rd
/install
51 $(INSTALL_DIR
) $(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/6rdcalc
$(1)/usr
/sbin
/
53 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
54 $(INSTALL_BIN
) .
/files
/6rd.sh
$(1)/lib
/netifd
/proto
/6rd.sh
57 $(eval
$(call BuildPackage
,6rd
))