You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=smbd
  3. PKG_VERSION:=3.0.2
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/cifsd-team/$(PKG_NAME)/archive/$(PKG_VERSION)/
  7. PKG_HASH:=13e256fed6992fddec5027d0866bc1eb4ff8da1e5f6a41b3296007f5cceb1a0a
  8. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  9. PKG_LICENSE:=GPL-2.0-or-later
  10. PKG_LICENSE_FILES:=COPYING
  11. include $(INCLUDE_DIR)/kernel.mk
  12. include $(INCLUDE_DIR)/package.mk
  13. define KernelPackage/fs-smbd
  14. SUBMENU:=Filesystems
  15. TITLE:=SMB kernel server support
  16. URL:=https://github.com/cifsd-team/smbd
  17. FILES:=$(PKG_BUILD_DIR)/smbd.ko
  18. DEPENDS:= \
  19. +kmod-nls-base \
  20. +kmod-nls-utf8 \
  21. +kmod-crypto-md4 \
  22. +kmod-crypto-md5 \
  23. +kmod-crypto-hmac \
  24. +kmod-crypto-arc4 \
  25. +kmod-crypto-ecb \
  26. +kmod-crypto-des \
  27. +kmod-crypto-sha256 \
  28. +kmod-crypto-cmac \
  29. +kmod-crypto-sha512 \
  30. +kmod-crypto-aead \
  31. +kmod-crypto-ccm \
  32. +kmod-crypto-gcm
  33. endef
  34. define KernelPackage/fs-smbd/description
  35. Smbd is an In-kernel SMB2/3 fileserver.
  36. It's an implementation of the SMB protocol in kernel space for sharing files and IPC services over network.
  37. endef
  38. define Build/Compile
  39. $(KERNEL_MAKE) SUBDIRS="$(PKG_BUILD_DIR)" \
  40. EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
  41. CONFIG_SMB_SERVER=m \
  42. modules
  43. endef
  44. $(eval $(call KernelPackage,fs-smbd))