prometheus-node-exporter-lua: add dawn exporter
[feed/packages.git] / kernel / ksmbd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ksmbd
4 PKG_VERSION:=3.1.6
5 PKG_RELEASE:=1
6
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
10
11 PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
12 PKG_LICENSE:=GPL-2.0-or-later
13 PKG_LICENSE_FILES:=COPYING
14
15 include $(INCLUDE_DIR)/kernel.mk
16 include $(INCLUDE_DIR)/package.mk
17
18 TAR_OPTIONS+= --strip-components 1
19 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
20
21 define KernelPackage/fs-ksmbd
22 SUBMENU:=Filesystems
23 TITLE:=SMB kernel server support
24 URL:=https://github.com/cifsd-team/cifsd
25 FILES:=$(PKG_BUILD_DIR)/ksmbd.ko
26 DEPENDS:= \
27 +kmod-nls-base \
28 +kmod-nls-utf8 \
29 +kmod-crypto-md4 \
30 +kmod-crypto-md5 \
31 +kmod-crypto-hmac \
32 +kmod-crypto-arc4 \
33 +kmod-crypto-ecb \
34 +kmod-crypto-des \
35 +kmod-crypto-sha256 \
36 +kmod-crypto-cmac \
37 +kmod-crypto-sha512 \
38 +kmod-crypto-aead \
39 +kmod-crypto-ccm \
40 +kmod-crypto-gcm
41 endef
42
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.
46 endef
47
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
52 help
53 This enables deprecated insecure protocols dialects: SMB1/CIFS and SMB2.0.
54 default y
55 endef
56
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
60 endif
61
62 define Build/Compile
63 $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
64 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
65 $(PKG_EXTRA_KCONFIG) \
66 CONFIG_SMB_SERVER=m \
67 modules
68 endef
69
70 $(eval $(call KernelPackage,fs-ksmbd))