From 26eb5090dc5262c345eedfe12babe86db587b7cc Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Tue, 14 Dec 2021 00:29:08 -0800 Subject: net-fs/ksmbd-tools: fix openrc initd Thanks-to: Bogdan Bug: https://bugs.gentoo.org/828515 Signed-off-by: Georgy Yakovlev --- net-fs/ksmbd-tools/files/initd | 2 +- .../ksmbd-tools-3.4.3_pre20212111-r2.ebuild | 63 ---------------------- .../ksmbd-tools-3.4.3_pre20212111-r3.ebuild | 63 ++++++++++++++++++++++ 3 files changed, 64 insertions(+), 64 deletions(-) delete mode 100644 net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r2.ebuild create mode 100644 net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r3.ebuild (limited to 'net-fs/ksmbd-tools') diff --git a/net-fs/ksmbd-tools/files/initd b/net-fs/ksmbd-tools/files/initd index c60577a17499..f65770ed44c6 100644 --- a/net-fs/ksmbd-tools/files/initd +++ b/net-fs/ksmbd-tools/files/initd @@ -23,7 +23,7 @@ start_pre() { stop() { ebegin "Stopping ${RC_SVCNAME}" - "${command_control} -s" + "${command_control}" -s eend $? } diff --git a/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r2.ebuild b/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r2.ebuild deleted file mode 100644 index 2f29eedec6ea..000000000000 --- a/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r2.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -EGIT_COMMIT="7232230911c02f81cb50b38f47ccf7100dd066f9" -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/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -# no keywords for now, for testing. -#KEYWORDS="~amd64" - -DEPEND=" - dev-libs/glib:2 - dev-libs/libnl:3 -" - -RDEPEND="${DEPEND}" -BDEPEND="virtual/pkgconfig" - -S="${WORKDIR}/${PN}-${EGIT_COMMIT}" - -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" - # 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 recide in /sbin, not /usr/sbin - econf --prefix="${EPREFIX}/" --enable-krb5=no -} - -src_install() { - default - - local DOCS=( README README.md Documentation/configuration.txt smb.conf.example ) - einstalldocs - - insinto /etc/ksmbd - doins smb.conf.example - - newinitd "${FILESDIR}/initd" ksmbd - newconfd "${FILESDIR}/confd" ksmbd - - dosym ksmbd.addshare /sbin/smbshareadd - dosym ksmbd.adduser /sbin/smbuseradd - - systemd_dounit ksmbd.service -} diff --git a/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r3.ebuild b/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r3.ebuild new file mode 100644 index 000000000000..2f29eedec6ea --- /dev/null +++ b/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r3.ebuild @@ -0,0 +1,63 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EGIT_COMMIT="7232230911c02f81cb50b38f47ccf7100dd066f9" +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/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +# no keywords for now, for testing. +#KEYWORDS="~amd64" + +DEPEND=" + dev-libs/glib:2 + dev-libs/libnl:3 +" + +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +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" + # 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 recide in /sbin, not /usr/sbin + econf --prefix="${EPREFIX}/" --enable-krb5=no +} + +src_install() { + default + + local DOCS=( README README.md Documentation/configuration.txt smb.conf.example ) + einstalldocs + + insinto /etc/ksmbd + doins smb.conf.example + + newinitd "${FILESDIR}/initd" ksmbd + newconfd "${FILESDIR}/confd" ksmbd + + dosym ksmbd.addshare /sbin/smbshareadd + dosym ksmbd.adduser /sbin/smbuseradd + + systemd_dounit ksmbd.service +} -- cgit v1.2.3-65-gdbad