nodogsplash: code cleanup, add option gatewayinterface, allow uci and manual configra...
[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:=2
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:=5589212cb35527929fd66218721ab54040c6b788
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 EXTRA_CFLAGS="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
47 modules
48 endef
49
50 define Package/map-t/install
51 true
52 endef
53
54 $(eval $(call KernelPackage,nat46))
55 $(eval $(call BuildPackage,map-t))