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