Diff ksmbd-tools-3.4.4 with a ksmbd-tools-3.4.6-r1

/usr/portage/net-fs/ksmbd-tools/ksmbd-tools-3.4.6-r1.ebuild 2023-10-09 14:52:34.428368475 +0300
1
# Copyright 2022 Gentoo Authors
1
# Copyright 2022-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
37 37

  
38 38
src_configure() {
39 39
	# TODO: add kerberos support, explicitly disable for now
40
	# tools are expected to recide in /sbin, not /usr/sbin
41
	econf --prefix="${EPREFIX}/" --enable-krb5=no
40
	# tools are expected to reside in /sbin, not /usr/sbin
41
	econf \
42
		--prefix="${EPREFIX:-}" \
43
		--enable-krb5=no \
44
		--with-rundir="${EPREFIX}/run" \
45
		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
42 46
}
43 47

  
44 48
src_install() {
45 49
	default
46 50

  
47
	local DOCS=( README README.md Documentation/configuration.txt smb.conf.example )
51
	local DOCS=( README.md ksmbd.conf.example )
48 52
	einstalldocs
49 53

  
50 54
	insinto /etc/ksmbd
51
	doins smb.conf.example
55
	doins ksmbd.conf.example
52 56

  
53
	newinitd "${FILESDIR}/initd" ksmbd
54
	newconfd "${FILESDIR}/confd" ksmbd
57
	newinitd "${FILESDIR}/ksmbd.initd" ksmbd
58
	newconfd "${FILESDIR}/ksmbd.confd" ksmbd
55 59

  
56 60
	dosym ksmbd.addshare /sbin/smbshareadd
57 61
	dosym ksmbd.adduser /sbin/smbuseradd
62
}
58 63

  
59
	systemd_dounit ksmbd.service
64
pkg_postinst() {
65
		local ver
66
		for ver in ${REPLACING_VERSIONS}; do
67
			if ver_test ${ver} -lt 3.4.6; then
68
				ewarn "Upgrade from version <${CATEGORY}/${PN}-3.4.6 detected"
69
				ewarn "${PN} config file moved to ${EPREFIX}/etc/ksmbd/ksmbd.conf"
70
				ewarn "Please migrate from old ${EPREFIX}/etc/ksmbd/smb.conf"
71
			fi
72
		done
73
		unset ver
60 74
}
Thank you!