summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-12-13 20:50:23 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-12-13 20:53:01 -0800
commitc19591b2b9b189cb2726573d6ca2349d9145a17a (patch)
tree4670b18035b8cc8c38782d8b846f5ec59db9c7c8
parenttoolchain-funcs.eclass: add detection for loongarch (diff)
downloadgentoo-c19591b2b9b189cb2726573d6ca2349d9145a17a.tar.gz
gentoo-c19591b2b9b189cb2726573d6ca2349d9145a17a.tar.bz2
gentoo-c19591b2b9b189cb2726573d6ca2349d9145a17a.zip
net-fs/ksmbd-tools: revbump, install to / (not /usr)
also add compat symlinks smbduseradd, smbdshareadd Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
-rw-r--r--net-fs/ksmbd-tools/files/initd4
-rw-r--r--net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r2.ebuild (renamed from net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r1.ebuild)6
2 files changed, 7 insertions, 3 deletions
diff --git a/net-fs/ksmbd-tools/files/initd b/net-fs/ksmbd-tools/files/initd
index 1492c15444e9..c60577a17499 100644
--- a/net-fs/ksmbd-tools/files/initd
+++ b/net-fs/ksmbd-tools/files/initd
@@ -11,8 +11,8 @@ depend() {
description="ksmbd userspace daemon"
-command="/usr/sbin/ksmbd.mountd"
-command_control="/usr/sbin/ksmbd.control"
+command="/sbin/ksmbd.mountd"
+command_control="/sbin/ksmbd.control"
command_args="-s"
required_files="${KSMBD_CONF}"
diff --git a/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r1.ebuild b/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r2.ebuild
index f2b872530486..2f29eedec6ea 100644
--- a/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r1.ebuild
+++ b/net-fs/ksmbd-tools/ksmbd-tools-3.4.3_pre20212111-r2.ebuild
@@ -40,7 +40,8 @@ src_prepare() {
src_configure() {
# TODO: add kerberos support, explicitly disable for now
- econf --enable-krb5=no
+ # tools are expected to recide in /sbin, not /usr/sbin
+ econf --prefix="${EPREFIX}/" --enable-krb5=no
}
src_install() {
@@ -55,5 +56,8 @@ src_install() {
newinitd "${FILESDIR}/initd" ksmbd
newconfd "${FILESDIR}/confd" ksmbd
+ dosym ksmbd.addshare /sbin/smbshareadd
+ dosym ksmbd.adduser /sbin/smbuseradd
+
systemd_dounit ksmbd.service
}