diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-17 07:14:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-17 07:14:19 +0000 |
commit | 66520d3148e31806a52cf7df5b8d91d5cd431670 (patch) | |
tree | 15d0c80d9ee1b1e2a454a9930a03e3d3b7c6cc61 /net-fs | |
parent | 0e82736d0df44565875b055019ded1be0ac5c319 (diff) |
gentoo auto-resync : 17:01:2023 - 07:14:19
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/Manifest.gz | bin | 3519 -> 3527 bytes | |||
-rw-r--r-- | net-fs/ksmbd-tools/Manifest | 4 | ||||
-rw-r--r-- | net-fs/ksmbd-tools/files/ksmbd.confd | 5 | ||||
-rw-r--r-- | net-fs/ksmbd-tools/files/ksmbd.initd | 32 | ||||
-rw-r--r-- | net-fs/ksmbd-tools/ksmbd-tools-3.4.6.ebuild | 74 |
5 files changed, 115 insertions, 0 deletions
diff --git a/net-fs/Manifest.gz b/net-fs/Manifest.gz Binary files differindex cbd684262b5e..4e152dd786d1 100644 --- a/net-fs/Manifest.gz +++ b/net-fs/Manifest.gz diff --git a/net-fs/ksmbd-tools/Manifest b/net-fs/ksmbd-tools/Manifest index 44e796afc7f6..1b9d03e61286 100644 --- a/net-fs/ksmbd-tools/Manifest +++ b/net-fs/ksmbd-tools/Manifest @@ -1,5 +1,9 @@ AUX confd 163 BLAKE2B ea3a2a65e014d0d96bfb0789cd6756b44eeced76a0d295699d6e615ae0f9faca7d90d24d1834e63d0d3f0cd99eef35b43ff9f96182abbdf2a1b5d2bb15b6bdfc SHA512 52449136ba0c8b974602b235e7ed772050098b6b2535853e08fb4185bff808766c83667a551725bc2bf24c3922df3954d0a54382217c75d232107673d0dcacb3 AUX initd 552 BLAKE2B 2357df024a9fd9b1334a41a6849fd3fd69f49676c3c4a9cf240a6181cb56c230b59afeadce2b37d84250d2e608e5e8109d8747f91449725ea517879d2e644683 SHA512 ae54b9cafee967fa3a5e313412725b91569c923e10b663bb7032cdc3401209e424d9e333e321ff1a8cb793aa545133e03978d8b5a4c8532836a861421ace7089 +AUX ksmbd.confd 167 BLAKE2B cd4c5457b9ed897ca77f2825e82cd12e3d536dd0d1c6deff6e19873a15059ff2be817e2cd4fde7f433ae8e8de61087335486cd84c78ce86936b6d18fb2d073be SHA512 748eab45d7a13279a928b1c5702b65a8a09dcaaf6635724e72b47d579aad692fe333df7906c08d9d465d2db9b1c369676ddd077c26248d1dadb40a62656644c3 +AUX ksmbd.initd 554 BLAKE2B 27d1333fc792e35e0834af5a69aa76a3823b6e47176a52758b5fb0a09c7c6e75c58f2a031f92fcb3d0d175a187172403e3e384aeb82f39274e16beda91a93d5a SHA512 a4a6f01222deeaf1242173370b9a47c2c3f235e55b0e1040aa9e5a118359eabeb5b020c73c9cacb24a2bf9ab53e09984946365d1cfb482579c8246e2a980de61 DIST ksmbd-tools-3.4.4.tar.gz 75481 BLAKE2B 84c215b0ccad01956185d42b858eb0de6a3407fc32c59628964ab38a2946fe5123fc73cc06cb04e8864199751f26e509ae5f6ebf6f5e7eb5f1fb8f21a4452a48 SHA512 b7be00e38eb126a0d5b8b3d9dde7c997b4012b29604d899a5f2fe3a77a3c30ac5d4bf00b7fc88d57150fd574af38bd2823c736d272a2cd596d40ccbe14a15320 +DIST ksmbd-tools-3.4.6.tar.gz 86976 BLAKE2B 2f18d41a5ef84d1d5293cab2dc51147649d723117f31b4a0360ff314d98544624c6c0280b11ec2df260514981995bdbac598347063fb6576447c511e88134c4e SHA512 396423a43ccb02fafb721717a36ea1efdc8449414cf9f7737cf44bafd991cde0a5d31689b5f43f96924357df058c1b5fbf90369b9aec2b293ae1a7b68c256d27 EBUILD ksmbd-tools-3.4.4.ebuild 1420 BLAKE2B 4ded069126e3ea307c7b81c7952d70f4157b4b851fde4ee2aee8700b16b2c03548d226075fb091dda4452fd291030409e537be05d0d040d5a59d97ffabcf3439 SHA512 8625d4f2457aee52fa4ddbfaf08905fa0c40baa66130197631ff2e355300defcc7250606166def82191cabb9c1ff116875432a0ea08cbaed7d64440e0811f184 +EBUILD ksmbd-tools-3.4.6.ebuild 1816 BLAKE2B c90439f39e06615efa5465100686912a3a1bcacc9db699d4d330cc70bfdf77fe1e676ba6a4a21330f8d2d4f6380bcb61dc312e16ef872aee2d28c623ea88747a SHA512 7a82f6e28a6228c92d52c80f0cf9facb42d27d77fad44320b28b40b0babc07a8b282de451e9d24d9842cbf5d9961c2e6322ea3b382f173340ce0adc0fb0c5d71 MISC metadata.xml 735 BLAKE2B 14c21e5d73828d4678ab80dfe5adbdc3e279d49de7661693d591689038d930fb62272338a86e848273fc5ca56870d3117b34b150e7a8580d2740233ff27ecd3d SHA512 27293810ca5cc23858c98e1e482c5a45008a3614140f33598d969fc7460c0ad0e9d31ac22e2ccb694113474e8caa46a78059b066be00890a27cc600e51b171af diff --git a/net-fs/ksmbd-tools/files/ksmbd.confd b/net-fs/ksmbd-tools/files/ksmbd.confd new file mode 100644 index 000000000000..cfe0fde01819 --- /dev/null +++ b/net-fs/ksmbd-tools/files/ksmbd.confd @@ -0,0 +1,5 @@ +# /etc/conf.d/ksmbd: config file for /etc/init.d/ksmbd +# + +# Full path to config file. /etc/ksmbd/ksmbd.conf is default if not set. +#KSMBD_CONF="/etc/ksmbd/ksmbd.conf" diff --git a/net-fs/ksmbd-tools/files/ksmbd.initd b/net-fs/ksmbd-tools/files/ksmbd.initd new file mode 100644 index 000000000000..744125c642dd --- /dev/null +++ b/net-fs/ksmbd-tools/files/ksmbd.initd @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +KSMBD_CONF="${KSMBD_CONF:-/etc/ksmbd/ksmbd.conf}" + +depend() { + need localmount + use net +} + +description="ksmbd userspace daemon" + +command="/sbin/ksmbd.mountd" +command_control="/sbin/ksmbd.control" +command_args="-s" + +required_files="${KSMBD_CONF}" + +start_pre() { + /sbin/modprobe ksmbd || return 1 +} + +stop() { + ebegin "Stopping ${RC_SVCNAME}" + "${command_control}" -s + eend $? +} + +stop_post() { + /sbin/modprobe -r -q ksmbd || return 0 +} diff --git a/net-fs/ksmbd-tools/ksmbd-tools-3.4.6.ebuild b/net-fs/ksmbd-tools/ksmbd-tools-3.4.6.ebuild new file mode 100644 index 000000000000..3cc23c1bbc48 --- /dev/null +++ b/net-fs/ksmbd-tools/ksmbd-tools-3.4.6.ebuild @@ -0,0 +1,74 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools linux-info systemd + +DESCRIPTION="cifsd/ksmbd kernel server userspace utilities" +HOMEPAGE="https://github.com/cifsd-team/ksmbd-tools" +SRC_URI="https://github.com/cifsd-team/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" + +DEPEND=" + dev-libs/glib:2 + dev-libs/libnl:3 +" + +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +pkg_setup() { + # we don't want to die() here to be able to build binpkgs + kernel_is -lt 5 15 && eerror "kernel >= 5.15 required for ${PN}" + CONFIG_CHECK="~SMB_SERVER" + ERROR_SMB_SERVER="CONFIG_SMB_SERVER is not set: ksmbd is not enabled in kernel, ${PN} will not work" + # use krb5 && CONFIG_CHECK+=" ~SMB_SERVER_KERBEROS5" + linux-info_pkg_setup +} + +src_prepare() { + eautoreconf + default +} + +src_configure() { + # TODO: add kerberos support, explicitly disable for now + # tools are expected to reside in /sbin, not /usr/sbin + econf \ + --prefix="${EPREFIX:-}" \ + --enable-krb5=no \ + --with-rundir="${EPREFIX}/run" \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" +} + +src_install() { + default + + local DOCS=( README.md ksmbd.conf.example ) + einstalldocs + + insinto /etc/ksmbd + doins ksmbd.conf.example + + newinitd "${FILESDIR}/ksmbd.initd" ksmbd + newconfd "${FILESDIR}/ksmbd.confd" ksmbd + + dosym ksmbd.addshare /sbin/smbshareadd + dosym ksmbd.adduser /sbin/smbuseradd +} + +pkg_postinst() { + local ver + for ver in ${REPLACING_VERSIONS}; do + if ver_test ${ver} -lt 3.4.6; then + ewarn "Upgrade from version <${CATEGORY}/${PN}-3.4.6 detected" + ewarn "${PN} config file moved to ${EPREFIX}/etc/ksmbd/ksmbd.conf" + ewarn "Please migrate from old ${EPREFIX}/etc/ksmbd/smb.conf" + fi + done + unset ver +} |