include $(TOPDIR)/rules.mk PKG_NAME:=ksmbd PKG_VERSION:=3.4.0 PKG_RELEASE:=$(AUTORELEASE) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/cifsd-team/cifsd/tar.gz/$(PKG_VERSION)? PKG_HASH:=36fe6b8fb641c302909e65de58f0e7cff4fa641c6ad6979597fd4319d6acf775 PKG_MAINTAINER:=Andy Walsh PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE_FILES:=COPYING include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/package.mk TAR_OPTIONS+= --strip-components 1 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS) define KernelPackage/fs-ksmbd SUBMENU:=Filesystems TITLE:=SMB kernel server support URL:=https://github.com/cifsd-team/cifsd FILES:=$(PKG_BUILD_DIR)/ksmbd.ko DEPENDS:= \ +kmod-asn1-decoder \ +kmod-nls-base \ +kmod-nls-utf8 \ +kmod-crypto-md4 \ +kmod-crypto-sha256 \ +kmod-crypto-cmac \ +kmod-crypto-sha512 \ +kmod-crypto-aead \ +kmod-crypto-ccm \ +kmod-crypto-gcm \ +kmod-fs-nfs-common-rpcsec \ +kmod-lib-crc32c endef define KernelPackage/fs-ksmbd/description Ksmbd is an In-kernel SMBv(1)2/3 fileserver. It's an implementation of the SMB protocol in kernel space for sharing files and IPC services over network. endef define KernelPackage/fs-ksmbd/config config KSMBD_SMB_INSECURE_SERVER bool "Support for insecure SMB1/CIFS and SMB2.0 protocols" depends on PACKAGE_kmod-fs-ksmbd help This enables deprecated insecure protocols dialects: SMB1/CIFS and SMB2.0. default y endef ifeq ($(CONFIG_KSMBD_SMB_INSECURE_SERVER),y) PKG_EXTRA_KCONFIG:=CONFIG_SMB_INSECURE_SERVER=y EXTRA_CFLAGS += -DCONFIG_SMB_INSECURE_SERVER=1 endif define Build/Compile $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \ EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \ $(PKG_EXTRA_KCONFIG) \ CONFIG_SMB_SERVER=m \ modules endef $(eval $(call KernelPackage,fs-ksmbd))