728f3b4795a8003646056b36cc294f6698bce75f
[feed/routing.git] / nat46 / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=nat46
12 PKG_VERSION:=1
13 PKG_RELEASE:=$(PKG_SOURCE_VERSION)
14
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
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_VERSION:=758a02e6f9e4c43553e0fc37d83c286c77febe94
20 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
21 PKG_LICENSE:=GPL-2.0
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/map-t
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+map +kmod-nat46
29 TITLE:=MAP-T configuration support
30 endef
31
32 define KernelPackage/nat46
33 DEPENDS:=+kmod-ipv6
34 TITLE:=Stateless NAT46 translation kernel module
35 SECTION:=kernel
36 SUBMENU:=Network Support
37 FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko
38 AUTOLOAD:=$(call AutoLoad,33,nat46)
39 endef
40
41 include $(INCLUDE_DIR)/kernel-defaults.mk
42
43 define Build/Compile
44 $(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)/nat46/modules" \
45 MODFLAGS="-DMODULE -mlong-calls" \
46 modules
47 endef
48
49 define Package/map-t/install
50 true
51 endef
52
53 $(eval $(call KernelPackage,nat46))
54 $(eval $(call BuildPackage,map-t))