Update ksmbd-dkms

This commit is contained in:
Andrey Rodionov 2022-01-27 09:50:08 +03:00
parent 64e55ae382
commit 5638fbf7d9
4 changed files with 58 additions and 0 deletions

20
ksmbd-dkms/.SRCINFO Normal file
View file

@ -0,0 +1,20 @@
pkgbase = ksmbd-dkms
pkgdesc = In-kernel SMB server, with the primary goal of improved I/O performance.
pkgver = 3.4.4
pkgrel = 1
url = https://github.com/cifsd-team/ksmbd
arch = x86_64
arch = i686
arch = aarch64
arch = armv7h
arch = armv6h
license = GPL2
depends = dkms
provides = KSMBD-MODULE
options = !strip
source = ksmbd-3.4.4.tar.gz::https://github.com/cifsd-team/ksmbd/archive/3.4.4.tar.gz
source = dkms.conf
sha256sums = 694960bd0c01de8c4dba0087515343875e6b29bc11bb6b663b8499c66fe0f842
sha256sums = 1d844a3ced7c4b2227a71df1fcb48ffcb64c083a257715dd4afc193cf3f26240
pkgname = ksmbd-dkms

5
ksmbd-dkms/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*
!.gitignore
!.SRCINFO
!PKGBUILD
!dkms.conf

27
ksmbd-dkms/PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
# Maintainer: Leonidas P. <jpegxguy at outlook dot com>
_pkgname=ksmbd
pkgname=ksmbd-dkms
pkgver=3.4.4
pkgrel=1
pkgdesc="In-kernel SMB server, with the primary goal of improved I/O performance."
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
url="https://github.com/cifsd-team/ksmbd"
license=('GPL2')
depends=('dkms')
provides=('KSMBD-MODULE')
options=('!strip')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
"dkms.conf")
sha256sums=("694960bd0c01de8c4dba0087515343875e6b29bc11bb6b663b8499c66fe0f842"
"1d844a3ced7c4b2227a71df1fcb48ffcb64c083a257715dd4afc193cf3f26240")
prepare() {
sed -e "s/@VERSION@/${pkgver}/" -i "${srcdir}/dkms.conf"
}
package() {
mkdir -p "${pkgdir}/usr/src"
cp -r "${_pkgname}-${pkgver}" "${pkgdir}/usr/src/"
install -Dm644 "${srcdir}/dkms.conf" "${pkgdir}/usr/src/${_pkgname}-${pkgver}/"
}

6
ksmbd-dkms/dkms.conf Normal file
View file

@ -0,0 +1,6 @@
PACKAGE_NAME="ksmbd"
PACKAGE_VERSION="@VERSION@"
MAKE="'make' KDIR=$kernel_source_dir"
BUILT_MODULE_NAME="ksmbd"
DEST_MODULE_LOCATION="/kernel/fs/ksmbd"
AUTOINSTALL="yes"