|
@ -8,40 +8,36 @@ include $(TOPDIR)/rules.mk |
|
|
include $(INCLUDE_DIR)/kernel.mk |
|
|
include $(INCLUDE_DIR)/kernel.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=jool |
|
|
PKG_NAME:=jool |
|
|
PKG_VERSION:=3.5.7 |
|
|
|
|
|
PKG_RELEASE:=2 |
|
|
|
|
|
|
|
|
PKG_VERSION:=4.0.5 |
|
|
|
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE_URL:=https://codeload.github.com/NICMx/Jool/tar.gz/v$(PKG_VERSION)? |
|
|
|
|
|
PKG_HASH:=b8e95d1526cd2434dedbae292afd2d17f0780ac2dca2be21264712b41eb76a3d |
|
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/Jool-$(PKG_VERSION) |
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/NICMx/Jool/releases/download/v$(PKG_VERSION) |
|
|
|
|
|
PKG_HASH:=b61ae37d7a71e28530765bdfd9a62f89e7878e3ea9c15dabbcefcd144891100d |
|
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0 |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:= |
|
|
|
|
|
PKG_LICENSE:=GPL-2.0-only |
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
|
|
|
|
|
|
|
|
|
PKG_INSTALL:=1 |
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone |
|
|
|
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf |
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
|
MAKE_PATH:=usr |
|
|
|
|
|
CONFIGURE_PATH:=usr |
|
|
|
|
|
|
|
|
|
|
|
define Build/Compile |
|
|
define Build/Compile |
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
KERNEL_DIR="$(LINUX_DIR)" \
|
|
|
KERNEL_DIR="$(LINUX_DIR)" \
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/mod/stateful" \
|
|
|
|
|
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/src/mod/nat64" \
|
|
|
V="$(V)" \
|
|
|
V="$(V)" \
|
|
|
modules |
|
|
modules |
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
KERNEL_DIR="$(LINUX_DIR)" \
|
|
|
KERNEL_DIR="$(LINUX_DIR)" \
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/mod/stateless" \
|
|
|
|
|
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/src/mod/siit" \
|
|
|
V="$(V)" \
|
|
|
V="$(V)" \
|
|
|
modules |
|
|
modules |
|
|
$(call Build/Compile/Default) |
|
|
$(call Build/Compile/Default) |
|
@ -76,10 +72,11 @@ define KernelPackage/jool |
|
|
@IPV6 \
|
|
|
@IPV6 \
|
|
|
+kmod-crypto-md5 \
|
|
|
+kmod-crypto-md5 \
|
|
|
+kmod-nf-conntrack \
|
|
|
+kmod-nf-conntrack \
|
|
|
+kmod-nf-conntrack6 |
|
|
|
|
|
|
|
|
+kmod-nf-conntrack6 \
|
|
|
|
|
|
+kmod-nf-ipt |
|
|
FILES:= \
|
|
|
FILES:= \
|
|
|
$(PKG_BUILD_DIR)/mod/stateful/jool.$(LINUX_KMOD_SUFFIX) \
|
|
|
|
|
|
$(PKG_BUILD_DIR)/mod/stateless/jool_siit.$(LINUX_KMOD_SUFFIX) |
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/src/mod/nat64/jool.$(LINUX_KMOD_SUFFIX) \
|
|
|
|
|
|
$(PKG_BUILD_DIR)/src/mod/siit/jool_siit.$(LINUX_KMOD_SUFFIX) |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define KernelPackage/jool/description |
|
|
define KernelPackage/jool/description |
|
@ -91,7 +88,7 @@ endef |
|
|
define Package/jool-tools |
|
|
define Package/jool-tools |
|
|
$(call Package/jool/Default) |
|
|
$(call Package/jool/Default) |
|
|
TITLE:=Jool userspace control programs |
|
|
TITLE:=Jool userspace control programs |
|
|
DEPENDS:=+libnl +ethtool |
|
|
|
|
|
|
|
|
DEPENDS:=+libnl +libxtables +ethtool |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/jool-tools/description |
|
|
define Package/jool-tools/description |
|
@ -100,10 +97,19 @@ define Package/jool-tools/description |
|
|
This package provides the userspace control programs for Jool. |
|
|
This package provides the userspace control programs for Jool. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
|
|
--disable-shared \
|
|
|
|
|
|
--without-bash-completion-dir |
|
|
|
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
|
|
ac_cv_func_memset=yes \
|
|
|
|
|
|
ac_cv_func_strcasecmp=yes |
|
|
|
|
|
|
|
|
define Package/jool-tools/install |
|
|
define Package/jool-tools/install |
|
|
$(INSTALL_DIR) $(1)/usr/sbin/ |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/stateful/jool $(1)/usr/sbin/ |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/stateless/jool_siit $(1)/usr/sbin/ |
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/ |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jool $(1)/usr/bin/ |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/joold $(1)/usr/bin/ |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jool_siit $(1)/usr/bin/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,jool)) |
|
|
$(eval $(call BuildPackage,jool)) |
|
|