2 # Copyright (C) 2014 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
9 include $(INCLUDE_DIR
)/kernel.mk
13 PKG_RELEASE
:=$(PKG_SOURCE_VERSION
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_URL
:=https
://github.com
/ayourtch
/nat46.git
19 PKG_SOURCE_VERSION
:=758a02e6f9e4c43553e0fc37d83c286c77febe94
20 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
22 include $(INCLUDE_DIR
)/package.mk
27 DEPENDS
:=+map
+kmod-nat46
28 TITLE
:=MAP-T configuration support
31 define KernelPackage
/nat46
33 TITLE
:=Stateless NAT46 translation kernel module
35 SUBMENU
:=Network Support
36 FILES
:=$(PKG_BUILD_DIR
)/nat46
/modules
/nat46.ko
37 AUTOLOAD
:=$(call AutoLoad
,33,nat46
)
40 include $(INCLUDE_DIR
)/kernel-defaults.mk
43 $(MAKE
) $(KERNEL_MAKEOPTS
) SUBDIRS
="$(PKG_BUILD_DIR)/nat46/modules" \
44 MODFLAGS
="-DMODULE -mlong-calls" \
48 define Package
/map-t
/install
52 $(eval
$(call KernelPackage
,nat46
))
53 $(eval
$(call BuildPackage
,map-t
))