nat46: import for routing, add myself as maintainer
[openwrt/openwrt.git] / package / kernel / nat46 / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/kernel.mk
3
4 PKG_NAME:=nat46
5
6 PKG_MIRROR_HASH:=18b36fcb30c6c56e39c20f3363f806f909d08bb21041ac5c930c9216b6d3e2aa
7 PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
8 PKG_SOURCE_DATE:=2017-05-12
9 PKG_SOURCE_PROTO:=git
10 PKG_SOURCE_VERSION:=683fbd2b765506332a1af141545652bf58f03166
11
12 PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
13 PKG_LICENSE:=GPL-2.0
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/nat46
18 DEPENDS:=@IPV6
19 TITLE:=Stateless NAT46 translation kernel module
20 SECTION:=kernel
21 SUBMENU:=Network Support
22 FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko
23 AUTOLOAD:=$(call AutoLoad,33,nat46)
24 endef
25
26 include $(INCLUDE_DIR)/kernel-defaults.mk
27
28 define Build/Compile
29 $(KERNEL_MAKE) SUBDIRS="$(PKG_BUILD_DIR)/nat46/modules" \
30 MODFLAGS="-DMODULE -mlong-calls" \
31 EXTRA_CFLAGS="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
32 modules
33 endef
34
35 $(eval $(call KernelPackage,nat46))