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
:=5589212cb35527929fd66218721ab54040c6b788
20 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
23 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+map
+kmod-nat46
29 TITLE
:=MAP-T configuration support
32 define KernelPackage
/nat46
34 TITLE
:=Stateless NAT46 translation kernel module
36 SUBMENU
:=Network Support
37 FILES
:=$(PKG_BUILD_DIR
)/nat46
/modules
/nat46.ko
38 AUTOLOAD
:=$(call AutoLoad
,33,nat46
)
41 include $(INCLUDE_DIR
)/kernel-defaults.mk
44 $(MAKE
) $(KERNEL_MAKEOPTS
) SUBDIRS
="$(PKG_BUILD_DIR)/nat46/modules" \
45 MODFLAGS
="-DMODULE -mlong-calls" \
46 EXTRA_CFLAGS
="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
50 define Package
/map-t
/install
54 $(eval
$(call KernelPackage
,nat46
))
55 $(eval
$(call BuildPackage
,map-t
))