Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/cifs-utils/
Date: Fri, 24 Jun 2022 05:26:28
Message-Id: 1656048368.c1515cb2fdfbf0ea5785afcbf17a78baf5f5b3e5.sam@gentoo
1 commit: c1515cb2fdfbf0ea5785afcbf17a78baf5f5b3e5
2 Author: Sayan Chowdhury <schowdhury <AT> microsoft <DOT> com>
3 AuthorDate: Fri Jun 17 10:07:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 05:26:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1515cb2
7
8 net-fs/cifs-utils: version bump to 6.15
9
10 Bug: https://bugs.gentoo.org/842234
11 Acked-by: David Seifert <soap <AT> gentoo.org>
12 Signed-off-by: Sayan Chowdhury <schowdhury <AT> microsoft.com>
13 Closes: https://github.com/gentoo/gentoo/pull/25937
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 net-fs/cifs-utils/Manifest | 1 +
17 net-fs/cifs-utils/cifs-utils-6.15.ebuild | 138 +++++++++++++++++++++++++++++++
18 2 files changed, 139 insertions(+)
19
20 diff --git a/net-fs/cifs-utils/Manifest b/net-fs/cifs-utils/Manifest
21 index 5b29ea38e8f0..65f68915c06c 100644
22 --- a/net-fs/cifs-utils/Manifest
23 +++ b/net-fs/cifs-utils/Manifest
24 @@ -1,2 +1,3 @@
25 DIST cifs-utils-6.13-kerberos_mount_regression_fix.patch.xz 4336 BLAKE2B de268f815ee4fbb750bf8b7d7110a69a808682c239a7c9196468ecc4d55a26eed3b63f8d8539569e16131060f57de389ef92e1063283eb2f41e65be00ed21bb1 SHA512 13d1fb8ff7c31100bfa481e647e9d3b90d61633173b3a71683246d7bb4b68c7e147d21697a17b7ad60e1ac8da2d48d6f4b51762370536a32d14da6c9a6db7e5e
26 DIST cifs-utils-6.13.tar.bz2 414584 BLAKE2B 5133ea39fc65acaf2a9791f8ac97dee681dd12f509e0abd095542ce663e7c62002b033dcf35f0a8eec214cb9940597fb568fd50d4cfe5271ca4e433afbe1a7bc SHA512 1337ac4b69f0c3e8d0241eb608207ba81dfa35f84c661649d25da78637882c4d73467b0f632be0bd120362e0b786e40eb340bffcf21c8a09629c441100fd10de
27 +DIST cifs-utils-6.15.tar.bz2 416592 BLAKE2B 8af926bf255c5b3a66bf52ccca99632aacb9ed1c83ad7db5543b32df2f3bcd4be9a9cd17b744ec115d1568d07084e2bd2d03849aa9ab97cff2862f39bcf137b8 SHA512 eedb8066563db584595a8ba7cb7a603e6b763ac2c1261430d605c327fcc5a831acd48b58ea55dd243af778dfdc827ab8c6daf4015764ff550dcffc2182773510
28
29 diff --git a/net-fs/cifs-utils/cifs-utils-6.15.ebuild b/net-fs/cifs-utils/cifs-utils-6.15.ebuild
30 new file mode 100644
31 index 000000000000..3ae6b5fd6284
32 --- /dev/null
33 +++ b/net-fs/cifs-utils/cifs-utils-6.15.ebuild
34 @@ -0,0 +1,138 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +PYTHON_COMPAT=( python3_{8..11} )
41 +
42 +inherit autotools bash-completion-r1 linux-info multilib pam python-single-r1
43 +
44 +DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
45 +HOMEPAGE="https://wiki.samba.org/index.php/LinuxCIFS_utils"
46 +SRC_URI="https://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2"
47 +
48 +LICENSE="GPL-3"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux"
51 +IUSE="+acl +ads +caps creds pam +python systemd"
52 +
53 +RDEPEND="
54 + !net-fs/mount-cifs
55 + sys-apps/keyutils:=
56 + ads? (
57 + sys-libs/talloc
58 + virtual/krb5
59 + )
60 + caps? ( sys-libs/libcap-ng )
61 + pam? ( sys-libs/pam )
62 + python? ( ${PYTHON_DEPS} )
63 +"
64 +DEPEND="${RDEPEND}"
65 +BDEPEND="dev-python/docutils"
66 +PDEPEND="
67 + acl? ( >=net-fs/samba-4.0.0_alpha1 )
68 +"
69 +
70 +REQUIRED_USE="
71 + acl? ( ads )
72 + python? ( ${PYTHON_REQUIRED_USE} )
73 +"
74 +
75 +DOCS="doc/linux-cifs-client-guide.odt"
76 +
77 +PATCHES=(
78 + "${FILESDIR}/${PN}-6.12-ln_in_destdir.patch" #766594
79 +)
80 +
81 +pkg_setup() {
82 + linux-info_pkg_setup
83 +
84 + if ! linux_config_exists || ! linux_chkconfig_present CIFS; then
85 + ewarn "You must enable CIFS support in your kernel config, "
86 + ewarn "to be able to mount samba shares. You can find it at"
87 + ewarn
88 + ewarn " File systems"
89 + ewarn " Network File Systems"
90 + ewarn " CIFS support"
91 + ewarn
92 + ewarn "and recompile your kernel ..."
93 + fi
94 +
95 + python-single-r1_pkg_setup
96 +}
97 +
98 +src_prepare() {
99 + default
100 +
101 + if has_version app-crypt/heimdal ; then
102 + # https://bugs.gentoo.org/612584
103 + eapply "${FILESDIR}/${PN}-6.7-heimdal.patch"
104 + fi
105 +
106 + eautoreconf
107 +}
108 +
109 +src_configure() {
110 + local myeconfargs=(
111 + --enable-man
112 + --enable-smbinfo
113 + $(use_enable acl cifsacl cifsidmap)
114 + $(use_enable ads cifsupcall)
115 + $(use_with caps libcap)
116 + $(use_enable creds cifscreds)
117 + $(use_enable pam)
118 + $(use_with pam pamdir $(getpam_mod_dir))
119 + $(use_enable python pythontools)
120 + # mount.cifs can get passwords from systemd
121 + $(use_enable systemd)
122 + )
123 + ROOTSBINDIR="${EPREFIX}"/sbin \
124 + econf "${myeconfargs[@]}"
125 +}
126 +
127 +src_install() {
128 + default
129 +
130 + # remove empty directories
131 + find "${ED}" -type d -empty -delete || die
132 +
133 + if use acl ; then
134 + dodir /etc/cifs-utils
135 + dosym ../../usr/$(get_libdir)/cifs-utils/idmapwb.so \
136 + /etc/cifs-utils/idmap-plugin
137 + dodir /etc/request-key.d
138 + echo 'create cifs.idmap * * /usr/sbin/cifs.idmap %k' \
139 + > "${ED}/etc/request-key.d/cifs.idmap.conf"
140 + fi
141 +
142 + if use ads ; then
143 + dodir /etc/request-key.d
144 + echo 'create dns_resolver * * /usr/sbin/cifs.upcall %k' \
145 + > "${ED}/etc/request-key.d/cifs.upcall.conf"
146 + echo 'create cifs.spnego * * /usr/sbin/cifs.upcall %k' \
147 + > "${ED}/etc/request-key.d/cifs.spnego.conf"
148 + fi
149 +
150 + dobashcomp bash-completion/smbinfo
151 + python_fix_shebang "${ED}"
152 +}
153 +
154 +pkg_postinst() {
155 + # Inform about set-user-ID bit of mount.cifs
156 + ewarn "setuid use flag was dropped due to multiple security implications"
157 + ewarn "such as CVE-2009-2948, CVE-2011-3585 and CVE-2012-1586"
158 + ewarn "You are free to set setuid flags by yourself"
159 +
160 + # Inform about upcall usage
161 + if use acl ; then
162 + einfo "The cifs.idmap utility has been enabled by creating the"
163 + einfo "configuration file /etc/request-key.d/cifs.idmap.conf"
164 + einfo "This enables you to get and set CIFS acls."
165 + fi
166 +
167 + if use ads ; then
168 + einfo "The cifs.upcall utility has been enabled by creating the"
169 + einfo "configuration file /etc/request-key.d/cifs.upcall.conf"
170 + einfo "This enables you to mount DFS shares."
171 + fi
172 +}