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
14 include $(INCLUDE_DIR
)/package.mk
19 DEPENDS
:=+kmod-ipv6
+kmod-sit
20 TITLE
:=6rd configuration support
21 MAINTAINER
:=Stéphan Kochen
<stephan@kochen.nl
>
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.
32 mkdir
-p
$(PKG_BUILD_DIR
)
33 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
36 define Build
/Configure
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
43 LDFLAGS
="$(TARGET_LDFLAGS)"
46 define Package
/6rd
/install
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/6rdcalc
$(1)/usr
/sbin
/
49 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
50 $(INSTALL_BIN
) .
/files
/6rd.sh
$(1)/lib
/netifd
/proto
/6rd.sh
53 $(eval
$(call BuildPackage
,6rd
))