2 # Copyright (C) 2016 Dan Luedtke <mail@danrl.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
14 PKG_LICENSE_FILES
:=COPYING
17 PKG_SOURCE_URL
:=https
://github.com
/NICMx
/Jool.git
18 PKG_SOURCE_VERSION
:=ec32f7181d6b12eadcafbe39b8bf4d7d48230232
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
)
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
).
tar.xz
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_SOURCE_SUBDIR
)
24 PKG_BUILD_DEPENDS
:=USE_UCLIBC
:argp-standalone USE_MUSL
:argp-standalone
28 include $(INCLUDE_DIR
)/kernel.mk
29 include $(INCLUDE_DIR
)/package.mk
35 $(MAKE
) -C
"$(LINUX_DIR)" \
36 KERNEL_DIR
="$(LINUX_DIR)" \
37 ARCH
="$(LINUX_KARCH)" \
38 CROSS_COMPILE
="$(TARGET_CROSS)" \
39 SUBDIRS
="$(PKG_BUILD_DIR)/mod/stateful" \
42 $(MAKE
) -C
"$(LINUX_DIR)" \
43 KERNEL_DIR
="$(LINUX_DIR)" \
44 ARCH
="$(LINUX_KARCH)" \
45 CROSS_COMPILE
="$(TARGET_CROSS)" \
46 SUBDIRS
="$(PKG_BUILD_DIR)/mod/stateless" \
49 $(call Build
/Compile
/Default
)
52 define Package
/jool
/Default
55 URL
:=https
://www.jool.mx
56 MAINTAINER
:=Dan Luedtke
<mail@danrl.com
>
59 define Package
/jool
/Default
/description
60 Jool is an Open Source SIIT and NAT64 for Linux.
64 $(call Package
/jool
/Default
)
65 TITLE
:=Jool meta-package
66 DEPENDS
:=+kmod-jool
+jool-tools
69 define Package
/jool
/description
70 $(call Package
/jool
/Default
/description
)
73 define KernelPackage
/jool
75 CATEGORY
:=Kernel modules
76 SUBMENU
:=Network Support
77 TITLE
:=Jool kernel module
84 $(PKG_BUILD_DIR
)/mod
/stateful
/jool.
$(LINUX_KMOD_SUFFIX
) \
85 $(PKG_BUILD_DIR
)/mod
/stateless
/jool_siit.
$(LINUX_KMOD_SUFFIX
)
88 define KernelPackage
/jool
/description
89 $(call Package
/jool
/Default
/description
)
91 This package provides the kernel module for Jool.
94 define Package
/jool-tools
95 $(call Package
/jool
/Default
)
96 TITLE
:=Jool userspace control programs
97 DEPENDS
:=+libnl
+ethtool
100 define Package
/jool-tools
/description
101 $(call Package
/jool
/Default
/description
)
103 This package provides the userspace control programs for Jool.
106 define Package
/jool-tools
/install
107 $(INSTALL_DIR
) $(1)/usr
/sbin
/
108 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/usr
/stateful
/jool
$(1)/usr
/sbin
/
109 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/usr
/stateless
/jool_siit
$(1)/usr
/sbin
/
112 $(eval
$(call BuildPackage
,jool
))
113 $(eval
$(call KernelPackage
,jool
))
114 $(eval
$(call BuildPackage
,jool-tools
))