Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/cifs-utils/
Date: Wed, 24 Feb 2016 10:08:42
Message-Id: 1456308508.46df5d6cffedd5ac18f67fd09adb92e975c99a0b.polynomial-c@gentoo
1 commit: 46df5d6cffedd5ac18f67fd09adb92e975c99a0b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 24 10:00:57 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 24 10:08:28 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46df5d6c
7
8 net-fs/cifs-utils: Bump to version 6.5
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-fs/cifs-utils/Manifest | 1 +
14 net-fs/cifs-utils/cifs-utils-6.5.ebuild | 105 ++++++++++++++++++++++++++++++++
15 2 files changed, 106 insertions(+)
16
17 diff --git a/net-fs/cifs-utils/Manifest b/net-fs/cifs-utils/Manifest
18 index fa5ff8e..4672f10 100644
19 --- a/net-fs/cifs-utils/Manifest
20 +++ b/net-fs/cifs-utils/Manifest
21 @@ -2,3 +2,4 @@ DIST cifs-utils-5.9.tar.bz2 388403 SHA256 ee0d4ae25c54f47362ef4c97cda142224360a2
22 DIST cifs-utils-6.1.tar.bz2 390958 SHA256 381f1e9caccdafdcdb0efa32a4cceb77c1a96b0b58702394e4b86dac4825f3b5 SHA512 6427b74edbf56b865dee38a610c74ac5483cdc13096082cfc1e9d225a048c9b5ee0c7afb30e625a615a0e8e9f3767e33765220e27148e2c2a29d12d4129b01fd WHIRLPOOL a800a02a0729996035a331b460cb28ae5463ddecaf205d88173dc08efd7a2bee577995ebba97b36977858c8435ac3b7ec9c7ce5d193f8b30d0602f9546fed5b1
23 DIST cifs-utils-6.3.tar.bz2 392465 SHA256 fff73b2a2547628acba05d324cf096e50f13fa8712f01bf0eb0dbabfe268375b SHA512 d1a16d56852d0b7570c795e04b6cee89a678e18401ec4a48bf734e5c941518c70d2cf82e795ce857c9aad07d9dfee68e96524e5d6e1392283cfee0a8b38e185e WHIRLPOOL e983ce227234cbc3141aac96d41a576b3bfb8a7cd0ea85191287d489b595e22e20bc9115a92b803da49931bcb7ac567cd3133b5729105ce99f6ea39c504535a8
24 DIST cifs-utils-6.4.tar.bz2 392809 SHA256 38fc63926af435dae4ebcf4406275580a692d9fb9ee3e32170317cf2ba68e6e3 SHA512 05860ceed1e83b4f4da689d2fc1c1b48fddc0ca53ba52fc6cf26a277d6a884f5780060725c5df1401a665ac35ec5a170262ee62f61095e4a8d76348888182614 WHIRLPOOL 335262eb329860318750fcd081dc2c082f36c75a32e5e596a45b51e73b08be7ee66133c2e4e2bc3089631d3909018abd9c2f36f79d82cd9ea7f6fe2530900f72
25 +DIST cifs-utils-6.5.tar.bz2 402158 SHA256 e2776578b8267c6dc0862897f5e10f87f10f8337fca9ca6a9118f5eb30cf49f7 SHA512 c5eea97d2be455ad676a3ff693641512d5c1d81d75eb1d7d08e4274b6844a1353b6791aa3ced4d8d656ed4a09b3c17ae80f289a90a3d429a8a94210e15f3e90e WHIRLPOOL 880b3c5762e791317140213fea008759b9d2599ddefb08319877ba6a5ced517fd6e0246050975ad01b74110b20f2233bb6cb505ecf3b2e05dca014ae378eaba5
26
27 diff --git a/net-fs/cifs-utils/cifs-utils-6.5.ebuild b/net-fs/cifs-utils/cifs-utils-6.5.ebuild
28 new file mode 100644
29 index 0000000..02edf08
30 --- /dev/null
31 +++ b/net-fs/cifs-utils/cifs-utils-6.5.ebuild
32 @@ -0,0 +1,105 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +inherit eutils linux-info multilib
40 +
41 +DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
42 +HOMEPAGE="http://wiki.samba.org/index.php/LinuxCIFS_utils"
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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux"
48 +IUSE="+acl +ads +caps +caps-ng creds"
49 +
50 +DEPEND="!net-fs/mount-cifs
51 + !<net-fs/samba-3.6_rc1
52 + ads? (
53 + sys-apps/keyutils
54 + sys-libs/talloc
55 + virtual/krb5
56 + )
57 + caps? ( !caps-ng? ( sys-libs/libcap ) )
58 + caps? ( caps-ng? ( sys-libs/libcap-ng ) )
59 + creds? ( sys-apps/keyutils )"
60 +PDEPEND="${DEPEND}
61 + acl? ( || (
62 + =net-fs/samba-3.6*[winbind]
63 + >=net-fs/samba-4.0.0_alpha1
64 + ) )
65 +"
66 +
67 +REQUIRED_USE="acl? ( ads )"
68 +
69 +DOCS="doc/linux-cifs-client-guide.odt"
70 +
71 +pkg_setup() {
72 + linux-info_pkg_setup
73 +
74 + if ! linux_config_exists || ! linux_chkconfig_present CIFS; then
75 + ewarn "You must enable CIFS support in your kernel config, "
76 + ewarn "to be able to mount samba shares. You can find it at"
77 + ewarn
78 + ewarn " File systems"
79 + ewarn " Network File Systems"
80 + ewarn " CIFS support"
81 + ewarn
82 + ewarn "and recompile your kernel ..."
83 + fi
84 +}
85 +
86 +src_configure() {
87 + ROOTSBINDIR="${EPREFIX}"/sbin \
88 + econf \
89 + $(use_enable acl cifsacl cifsidmap) \
90 + $(use_enable ads cifsupcall) \
91 + $(use caps && use_with !caps-ng libcap || echo --without-libcap) \
92 + $(use caps && use_with caps-ng libcap-ng || echo --without-libcap-ng) \
93 + $(use_enable creds cifscreds)
94 +}
95 +
96 +src_install() {
97 + default
98 +
99 + # remove empty directories
100 + find "${ED}" -type d -print0 | xargs --null rmdir \
101 + --ignore-fail-on-non-empty &>/dev/null
102 +
103 + if use acl ; then
104 + dodir /etc/cifs-utils
105 + dosym /usr/$(get_libdir)/cifs-utils/idmapwb.so \
106 + /etc/cifs-utils/idmap-plugin
107 + dodir /etc/request-key.d
108 + echo 'create cifs.idmap * * /usr/sbin/cifs.idmap %k' \
109 + > "${ED}/etc/request-key.d/cifs.idmap.conf"
110 + fi
111 +
112 + if use ads ; then
113 + dodir /etc/request-key.d
114 + echo 'create dns_resolver * * /usr/sbin/cifs.upcall %k' \
115 + > "${ED}/etc/request-key.d/cifs.upcall.conf"
116 + fi
117 +}
118 +
119 +pkg_postinst() {
120 + # Inform about set-user-ID bit of mount.cifs
121 + ewarn "setuid use flag was dropped due to multiple security implications"
122 + ewarn "such as CVE-2009-2948, CVE-2011-3585 and CVE-2012-1586"
123 + ewarn "You are free to set setuid flags by yourself"
124 +
125 + # Inform about upcall usage
126 + if use acl ; then
127 + einfo "The cifs.idmap utility has been enabled by creating the"
128 + einfo "configuration file /etc/request-key.d/cifs.idmap.conf"
129 + einfo "This enables you to get and set CIFS acls."
130 + fi
131 +
132 + if use ads ; then
133 + einfo "The cifs.upcall utility has been enabled by creating the"
134 + einfo "configuration file /etc/request-key.d/cifs.upcall.conf"
135 + einfo "This enables you to mount DFS shares."
136 + fi
137 +}