From 6be9913a7eeead7cdac804afc127791ba4b0e69e Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 1 Jan 2022 14:57:37 +0100 Subject: [PATCH] package/ksmbd-tools: new package ksmbd kernel server userspace utilities. https://github.com/cifsd-team/ksmbd-tools Signed-off-by: Fabrice Fontaine Reviewed-by: Joachim Wiberg Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- DEVELOPERS | 1 + package/Config.in | 1 + package/ksmbd-tools/Config.in | 15 +++++++++++++++ package/ksmbd-tools/ksmbd-tools.hash | 3 +++ package/ksmbd-tools/ksmbd-tools.mk | 20 ++++++++++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 package/ksmbd-tools/Config.in create mode 100644 package/ksmbd-tools/ksmbd-tools.hash create mode 100644 package/ksmbd-tools/ksmbd-tools.mk diff --git a/DEVELOPERS b/DEVELOPERS index 21e4f2a84c..37c792816a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -870,6 +870,7 @@ F: package/hiredis/ F: package/i2pd/ F: package/igd2-for-linux/ F: package/json-c/ +F: package/ksmbd-tools/ F: package/lcms2/ F: package/lftp/ F: package/libcap-ng/ diff --git a/package/Config.in b/package/Config.in index d3d0717535..7148639735 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2231,6 +2231,7 @@ endif source "package/keepalived/Config.in" source "package/kismet/Config.in" source "package/knock/Config.in" + source "package/ksmbd-tools/Config.in" source "package/leafnode2/Config.in" source "package/lft/Config.in" source "package/lftp/Config.in" diff --git a/package/ksmbd-tools/Config.in b/package/ksmbd-tools/Config.in new file mode 100644 index 0000000000..ce1850e016 --- /dev/null +++ b/package/ksmbd-tools/Config.in @@ -0,0 +1,15 @@ +config BR2_PACKAGE_KSMBD_TOOLS + bool "ksmbd-tools" + depends on BR2_USE_MMU # fork() + depends on BR2_USE_WCHAR # libglib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2, libnl + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBNL + help + ksmbd kernel server userspace utilities. + + https://github.com/cifsd-team/ksmbd-tools + +comment "ksmbd-tools needs a toolchain w/ wchar, threads" + depends on BR2_USE_MMU + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/ksmbd-tools/ksmbd-tools.hash b/package/ksmbd-tools/ksmbd-tools.hash new file mode 100644 index 0000000000..ad507bfdb2 --- /dev/null +++ b/package/ksmbd-tools/ksmbd-tools.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 bd7218ebfeaa0d6a73c0a4beb9ea506228cd5695c1f8d3f9a9064e2346d52f0a ksmbd-tools-3.4.3.tar.gz +sha256 576540abf5e95029ad4ad90e32071385a5e95b2c30708c706116f3eb87b9a3de COPYING diff --git a/package/ksmbd-tools/ksmbd-tools.mk b/package/ksmbd-tools/ksmbd-tools.mk new file mode 100644 index 0000000000..b3ffc3e768 --- /dev/null +++ b/package/ksmbd-tools/ksmbd-tools.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# ksmbd-tools +# +################################################################################ + +KSMBD_TOOLS_VERSION = 3.4.3 +KSMBD_TOOLS_SITE = https://github.com/cifsd-team/ksmbd-tools/releases/download/$(KSMBD_TOOLS_VERSION) +KSMBD_TOOLS_LICENSE = GPL-2.0+ +KSMBD_TOOLS_LICENSE_FILES = COPYING +KSMBD_TOOLS_DEPENDENCIES = host-pkgconf libglib2 libnl + +ifeq ($(BR2_PACKAGE_LIBKRB5),y) +KSMBD_TOOLS_CONF_OPTS += --enable-krb5 +KSMBD_TOOLS_DEPENDENCIES += libkrb5 +else +KSMBD_TOOLS_CONF_OPTS += --disable-krb5 +endif + +$(eval $(autotools-package))