2019-01-27 12:06:40 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nat46
|
|
|
|
|
2021-05-24 10:59:29 +00:00
|
|
|
PKG_MIRROR_HASH:=3b424241de42b96d47217decf6f9071153cd0c11651f1ee006700836c6660fe8
|
2019-01-27 12:06:40 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
|
2021-05-24 10:59:29 +00:00
|
|
|
PKG_SOURCE_DATE:=2021-05-17
|
2019-01-27 12:06:40 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2021-05-24 10:59:29 +00:00
|
|
|
PKG_SOURCE_VERSION:=0d5860d63a8037e001e293091ebf6219cc2f9255
|
2019-01-27 12:06:40 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/nat46
|
|
|
|
DEPENDS:=@IPV6
|
|
|
|
TITLE:=Stateless NAT46 translation kernel module
|
|
|
|
SECTION:=kernel
|
|
|
|
SUBMENU:=Network Support
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,33,nat46)
|
|
|
|
endef
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/kernel-defaults.mk
|
|
|
|
|
|
|
|
define Build/Compile
|
2020-01-20 14:42:00 +00:00
|
|
|
$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)/nat46/modules" \
|
2019-01-27 12:06:40 +00:00
|
|
|
MODFLAGS="-DMODULE -mlong-calls" \
|
|
|
|
EXTRA_CFLAGS="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
|
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,nat46))
|