2 # Copyright (C) 2016-2017 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
10 PKG_VERSION
:=2017.03.09
14 PKG_LICENSE_FILES
:=COPYING
17 PKG_SOURCE_URL
:=https
://github.com
/NICMx
/Jool.git
18 PKG_SOURCE_VERSION
:=997a81bb5f5e9d82aa122fd37b7c890e44a245dd
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
)
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
).
tar.xz
21 PKG_MIRROR_HASH
:=a2c41119be251d4d962234fc78d7122568a5e62484969cc4e80229a0c7422fd4
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_SOURCE_SUBDIR
)
25 PKG_BUILD_DEPENDS
:=USE_UCLIBC
:argp-standalone USE_MUSL
:argp-standalone
29 include $(INCLUDE_DIR
)/kernel.mk
30 include $(INCLUDE_DIR
)/package.mk
36 $(MAKE
) -C
"$(LINUX_DIR)" \
37 KERNEL_DIR
="$(LINUX_DIR)" \
38 ARCH
="$(LINUX_KARCH)" \
39 CROSS_COMPILE
="$(TARGET_CROSS)" \
40 SUBDIRS
="$(PKG_BUILD_DIR)/mod/stateful" \
43 $(MAKE
) -C
"$(LINUX_DIR)" \
44 KERNEL_DIR
="$(LINUX_DIR)" \
45 ARCH
="$(LINUX_KARCH)" \
46 CROSS_COMPILE
="$(TARGET_CROSS)" \
47 SUBDIRS
="$(PKG_BUILD_DIR)/mod/stateless" \
50 $(call Build
/Compile
/Default
)
53 define Package
/jool
/Default
56 URL
:=https
://www.jool.mx
57 MAINTAINER
:=Dan Luedtke
<mail@danrl.com
>
60 define Package
/jool
/Default
/description
61 Jool is an Open Source SIIT and NAT64 for Linux.
65 $(call Package
/jool
/Default
)
66 TITLE
:=Jool meta-package
67 DEPENDS
:=+kmod-jool
+jool-tools
70 define Package
/jool
/description
71 $(call Package
/jool
/Default
/description
)
74 define KernelPackage
/jool
76 CATEGORY
:=Kernel modules
77 SUBMENU
:=Network Support
78 TITLE
:=Jool kernel module
85 $(PKG_BUILD_DIR
)/mod
/stateful
/jool.
$(LINUX_KMOD_SUFFIX
) \
86 $(PKG_BUILD_DIR
)/mod
/stateless
/jool_siit.
$(LINUX_KMOD_SUFFIX
)
89 define KernelPackage
/jool
/description
90 $(call Package
/jool
/Default
/description
)
92 This package provides the kernel module for Jool.
95 define Package
/jool-tools
96 $(call Package
/jool
/Default
)
97 TITLE
:=Jool userspace control programs
98 DEPENDS
:=+libnl
+ethtool
101 define Package
/jool-tools
/description
102 $(call Package
/jool
/Default
/description
)
104 This package provides the userspace control programs for Jool.
107 define Package
/jool-tools
/install
108 $(INSTALL_DIR
) $(1)/usr
/sbin
/
109 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/usr
/stateful
/jool
$(1)/usr
/sbin
/
110 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/usr
/stateless
/jool_siit
$(1)/usr
/sbin
/
113 $(eval
$(call BuildPackage
,jool
))
114 $(eval
$(call KernelPackage
,jool
))
115 $(eval
$(call BuildPackage
,jool-tools
))