1 include $(TOPDIR
)/rules.mk
5 PKG_RELEASE
:=$(AUTORELEASE
)
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
:=https
://codeload.github.com
/cifsd-team
/cifsd
/tar.gz
/$(PKG_VERSION
)?
9 PKG_HASH
:=a910c55d9e6924775e00504eddd00b49788603af29d0772cb9fb6722c189f628
11 PKG_LICENSE
:=GPL-2.0
-or-later
12 PKG_LICENSE_FILES
:=COPYING
14 include $(INCLUDE_DIR
)/kernel.mk
15 include $(INCLUDE_DIR
)/package.mk
17 TAR_OPTIONS
+= --strip-components
1
18 TAR_CMD
=$(HOST_TAR
) -C
$(1) $(TAR_OPTIONS
)
20 define KernelPackage
/fs-ksmbd
22 TITLE
:=SMB kernel server support
23 URL
:=https
://github.com
/cifsd-team
/cifsd
24 FILES
:=$(PKG_BUILD_DIR
)/ksmbd.ko
43 # The last two DEPENDS are hacks in order to get CONFIG_ASN1 and CONFIG_OID_REGISTRY
44 # which it seems can't be selected independently. Some bug in either base or upstream.
46 define KernelPackage
/fs-ksmbd
/description
47 Ksmbd is an In-kernel SMBv
(1)2/3 fileserver.
48 It
's an implementation of the SMB protocol in kernel space for sharing files and IPC services over network.
51 define KernelPackage/fs-ksmbd/config
52 config KSMBD_SMB_INSECURE_SERVER
53 bool "Support for insecure SMB1/CIFS and SMB2.0 protocols"
54 depends on PACKAGE_kmod-fs-ksmbd
56 This enables deprecated insecure protocols dialects: SMB1/CIFS and SMB2.0.
60 ifeq ($(CONFIG_KSMBD_SMB_INSECURE_SERVER),y)
61 PKG_EXTRA_KCONFIG:=CONFIG_SMB_INSECURE_SERVER=y
62 EXTRA_CFLAGS += -DCONFIG_SMB_INSECURE_SERVER=1
66 $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
67 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
68 $(PKG_EXTRA_KCONFIG) \
73 $(eval $(call KernelPackage,fs-ksmbd))