Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Add cifsd, a new alternative SMB server.
@ 2020-10-16 16:18 CMB
  2020-10-16 17:39 ` Anachron
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: CMB @ 2020-10-16 16:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

There is a new pull request by CMB against master on the void-packages repository

https://github.com/CMB/void-packages cifsd
https://github.com/void-linux/void-packages/pull/25659

Add cifsd, a new alternative SMB server.
None

A patch file from https://github.com/void-linux/void-packages/pull/25659.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cifsd-25659.patch --]
[-- Type: text/x-diff, Size: 3620 bytes --]

From 802c36bceea89e4cab7e3b5d5ba0ef49927fe6bc Mon Sep 17 00:00:00 2001
From: Christopher Brannon <chris@the-brannons.com>
Date: Fri, 16 Oct 2020 01:16:34 -0700
Subject: [PATCH 1/2] New package: cifsd-dkms-3.2.5

---
 srcpkgs/cifsd-dkms/files/dkms.conf |  6 ++++++
 srcpkgs/cifsd-dkms/template        | 24 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 srcpkgs/cifsd-dkms/files/dkms.conf
 create mode 100644 srcpkgs/cifsd-dkms/template

diff --git a/srcpkgs/cifsd-dkms/files/dkms.conf b/srcpkgs/cifsd-dkms/files/dkms.conf
new file mode 100644
index 00000000000..d299b7a605f
--- /dev/null
+++ b/srcpkgs/cifsd-dkms/files/dkms.conf
@@ -0,0 +1,6 @@
+PACKAGE_VERSION=@VERSION@
+PACKAGE_NAME="cifsd"
+AUTOINSTALL="yes"
+MAKE[0]="'make' @MAKEJOBS@ KDIR=/lib/modules/${kernelver}/build"
+BUILT_MODULE_NAME[0]="ksmbd"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/fs/cifsd"
diff --git a/srcpkgs/cifsd-dkms/template b/srcpkgs/cifsd-dkms/template
new file mode 100644
index 00000000000..daef8c5f782
--- /dev/null
+++ b/srcpkgs/cifsd-dkms/template
@@ -0,0 +1,24 @@
+# Template file for 'cifsd-dkms'
+pkgname=cifsd-dkms
+_pkgname="${pkgname/-dkms}"
+version=3.2.5
+revision=1
+wrksrc="${_pkgname}-${version}"
+short_desc="Opensource In-kernel CIFS/SMB3 server"
+maintainer="Christopher Brannon <chris@the-brannons.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/cifsd-team/cifsd"
+distfiles="https://github.com/cifsd-team/${_pkgname}/archive/${version}.tar.gz"
+checksum=b93a068f6dc2b2040c8cebcb67f6d8c3a1c5c7c5032269a48579ccba996e6be7
+
+dkms_modules="cifsd ${version}"
+depends="dkms"
+
+do_install() {
+	vmkdir "usr/src/${_pkgname}-${version}"
+	cp -r * "$DESTDIR/usr/src/${_pkgname}-${version}"
+	vcopy "${FILESDIR}/dkms.conf" "usr/src/${_pkgname}-${version}"
+	vsed -e "s;@MAKEJOBS@;${makejobs};" \
+		-e "s;@VERSION@;${version}-${revision};" \
+		-i "${DESTDIR}/usr/src/${_pkgname}-${version}/dkms.conf"
+}

From 515e3fc2345084b9a65ca0440228162b7366c395 Mon Sep 17 00:00:00 2001
From: Christopher Brannon <chris@the-brannons.com>
Date: Fri, 16 Oct 2020 01:39:44 -0700
Subject: [PATCH 2/2] New package: ksmbd-tools-3.2.5

---
 srcpkgs/ksmbd-tools/files/ksmbd/run |  2 ++
 srcpkgs/ksmbd-tools/template        | 26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100755 srcpkgs/ksmbd-tools/files/ksmbd/run
 create mode 100644 srcpkgs/ksmbd-tools/template

diff --git a/srcpkgs/ksmbd-tools/files/ksmbd/run b/srcpkgs/ksmbd-tools/files/ksmbd/run
new file mode 100755
index 00000000000..949bbb25e4f
--- /dev/null
+++ b/srcpkgs/ksmbd-tools/files/ksmbd/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ksmbd.mountd --nodetach
diff --git a/srcpkgs/ksmbd-tools/template b/srcpkgs/ksmbd-tools/template
new file mode 100644
index 00000000000..d2f7319b239
--- /dev/null
+++ b/srcpkgs/ksmbd-tools/template
@@ -0,0 +1,26 @@
+# Template file for 'ksmbd-tools'
+pkgname=ksmbd-tools
+version=3.2.5
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="glib-devel libnl3-devel"
+depends="cifsd-dkms>=${version}_1"
+short_desc="User-space tools for cifsd"
+maintainer="Christopher Brannon <chris@the-brannons.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/cifsd-team/ksmbd-tools"
+distfiles="https://github.com/cifsd-team/${pkgname}/archive/${version}.tar.gz"
+checksum=b9948f12a317863b128008de2d12169825171d3b9fceca06caa4f1d15a795bb9
+
+pre_configure() {
+	./autogen.sh
+}
+
+do_install() {
+	for i in AUTHORS Documentation/configuration.txt PFIF.txt README ; do
+		vdoc "$i"
+	done
+	vsconf smb.conf.example
+	vsv ksmbd
+}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
@ 2020-10-16 17:39 ` Anachron
  2020-10-16 18:21 ` CMB
  2020-10-16 20:06 ` Anachron
  2 siblings, 0 replies; 4+ messages in thread
From: Anachron @ 2020-10-16 17:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-710291024

Comment:
This looks promising, is this tested with v3 shares from a windows host?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
  2020-10-16 17:39 ` Anachron
@ 2020-10-16 18:21 ` CMB
  2020-10-16 20:06 ` Anachron
  2 siblings, 0 replies; 4+ messages in thread
From: CMB @ 2020-10-16 18:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

New comment by CMB on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-710369311

Comment:
> This looks promising, is this tested with v3 shares from a windows host?

It's only the server side (I.E., an smbd replacement).  I've connected
to it with Linux boxes and an iPhone.  The Linux clients used the
in-kernel CIFS client.  Everything worked out of the box.  I have no
Windows clients with which to test.

I went looking for this because I wanted to be able to mount shares with
my iPhone.  You can do that with Samba 3's smbd, though you have to edit
the config file and set "max protocol = SMB2".  Otherwise it just fails
cryptically, with no indication of why.  Also with Samba 3 I had to
force mounting with SMB1 (passing -o vers=1.0 to mount), on at least one
of my Linux clients.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
  2020-10-16 17:39 ` Anachron
  2020-10-16 18:21 ` CMB
@ 2020-10-16 20:06 ` Anachron
  2 siblings, 0 replies; 4+ messages in thread
From: Anachron @ 2020-10-16 20:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-710535482

Comment:
Ok thanks for the info, I'll see if I can get it working and test it between win and void.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-16 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
2020-10-16 17:39 ` Anachron
2020-10-16 18:21 ` CMB
2020-10-16 20:06 ` Anachron

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ http://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git