forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from coolsnowwolf/master
20200520 特别版更新
- Loading branch information
Showing
25 changed files
with
311 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ksmbd | ||
PKG_VERSION:=3.1.6 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://github.com/cifsd-team/cifsd/archive/$(PKG_VERSION)/ | ||
PKG_HASH:=09c1eb39d9dcc9baf6bc9c5a2b91bcea377352bfc507ebdd10a370fffa7c31b4 | ||
|
||
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com> | ||
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-nls-base \ | ||
+kmod-nls-utf8 \ | ||
+kmod-crypto-md4 \ | ||
+kmod-crypto-md5 \ | ||
+kmod-crypto-hmac \ | ||
+kmod-crypto-arc4 \ | ||
+kmod-crypto-ecb \ | ||
+kmod-crypto-des \ | ||
+kmod-crypto-sha256 \ | ||
+kmod-crypto-cmac \ | ||
+kmod-crypto-sha512 \ | ||
+kmod-crypto-aead \ | ||
+kmod-crypto-ccm \ | ||
+kmod-crypto-gcm | ||
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)) |
10 changes: 10 additions & 0 deletions
10
package/lean/ksmbd-tools/ksmbd/patches/01-keep_kmod_metadata.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/glob.h 2019-12-08 | ||
+++ b/glob.h 2019-12-08 | ||
@@ -7,6 +7,8 @@ | ||
#ifndef __KSMBD_GLOB_H | ||
#define __KSMBD_GLOB_H | ||
|
||
+#undef CONFIG_MODULE_STRIPPED | ||
+ | ||
#include <linux/ctype.h> | ||
#include <linux/version.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.