1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
:=https
://github.com
/cifsd-team
/cifsd
/archive
/$(PKG_VERSION
)/
9 PKG_HASH
:=09c1eb39d9dcc9baf6bc9c5a2b91bcea377352bfc507ebdd10a370fffa7c31b4
11 PKG_MAINTAINER
:=Andy Walsh
<andy.walsh44
+github@gmail.com
>
12 PKG_LICENSE
:=GPL-2.0
-or-later
13 PKG_LICENSE_FILES
:=COPYING
15 include $(INCLUDE_DIR
)/kernel.mk
16 include $(INCLUDE_DIR
)/package.mk
18 TAR_OPTIONS
+= --strip-components
1
19 TAR_CMD
=$(HOST_TAR
) -C
$(1) $(TAR_OPTIONS
)
21 define KernelPackage
/fs-ksmbd
23 TITLE
:=SMB kernel server support
24 URL
:=https
://github.com
/cifsd-team
/cifsd
25 FILES
:=$(PKG_BUILD_DIR
)/ksmbd.ko
43 define KernelPackage
/fs-ksmbd
/description
44 Ksmbd is an In-kernel SMBv
(1)2/3 fileserver.
45 It
's an implementation of the SMB protocol in kernel space for sharing files and IPC services over network.
48 define KernelPackage/fs-ksmbd/config
49 config KSMBD_SMB_INSECURE_SERVER
50 bool "Support for insecure SMB1/CIFS and SMB2.0 protocols"
51 depends on PACKAGE_kmod-fs-ksmbd
53 This enables deprecated insecure protocols dialects: SMB1/CIFS and SMB2.0.
57 ifeq ($(CONFIG_KSMBD_SMB_INSECURE_SERVER),y)
58 PKG_EXTRA_KCONFIG:=CONFIG_SMB_INSECURE_SERVER=y
59 EXTRA_CFLAGS += -DCONFIG_SMB_INSECURE_SERVER=1
63 $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
64 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
65 $(PKG_EXTRA_KCONFIG) \
70 $(eval $(call KernelPackage,fs-ksmbd))