Makefile 960 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=nat46
  4. PKG_MIRROR_HASH:=aeff95aa278ec1e197b59700284c0210f32b92c1fb757e5c3088bd00b3b403d4
  5. PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
  6. PKG_SOURCE_DATE:=2022-09-19
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_VERSION:=4c5beee236841724219598fabb1edc93d4f08ce5
  9. PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
  10. PKG_LICENSE:=GPL-2.0
  11. include $(INCLUDE_DIR)/package.mk
  12. define KernelPackage/nat46
  13. DEPENDS:=@IPV6 +kmod-nf-conntrack6
  14. TITLE:=Stateless NAT46 translation kernel module
  15. SECTION:=kernel
  16. SUBMENU:=Network Support
  17. FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko
  18. AUTOLOAD:=$(call AutoLoad,33,nat46)
  19. endef
  20. include $(INCLUDE_DIR)/kernel-defaults.mk
  21. define Build/Compile
  22. $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)/nat46/modules" \
  23. MODFLAGS="-DMODULE -mlong-calls" \
  24. EXTRA_CFLAGS="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
  25. modules
  26. endef
  27. $(eval $(call KernelPackage,nat46))