Gentoo Archives: gentoo-commits

From: "Victor Ostorga (vostorga)" <vostorga@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/cifs-utils: metadata.xml ChangeLog cifs-utils-5.1.ebuild
Date: Mon, 26 Sep 2011 17:32:58
Message-Id: 20110926173243.92EFF20036@flycatcher.gentoo.org
1 vostorga 11/09/26 17:32:43
2
3 Modified: metadata.xml ChangeLog
4 Added: cifs-utils-5.1.ebuild
5 Log:
6 Moving to EAPI 4, adding upcall use flag, which enable cifsidmap, forcing user to choice either caps or caps-ng support
7
8 (Portage version: 2.1.10.11/cvs/Linux i686)
9
10 Revision Changes Path
11 1.2 net-fs/cifs-utils/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 28 Jan 2011 15:15:05 -0000 1.1
24 +++ metadata.xml 26 Sep 2011 17:32:43 -0000 1.2
25 @@ -13,5 +13,6 @@
26 <flag name="caps-ng">libcap-ng support</flag>
27 <flag name="creds">cifs credentials support</flag>
28 <flag name="setuid">Seting SETUID bit for mount.cifs</flag>
29 + <flag name="upcall">Create cifs.idmap binary; idmap support</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.15 net-fs/cifs-utils/ChangeLog
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?rev=1.15&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?rev=1.15&content-type=text/plain
39 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?r1=1.14&r2=1.15
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/ChangeLog,v
44 retrieving revision 1.14
45 retrieving revision 1.15
46 diff -u -r1.14 -r1.15
47 --- ChangeLog 9 Aug 2011 13:42:37 -0000 1.14
48 +++ ChangeLog 26 Sep 2011 17:32:43 -0000 1.15
49 @@ -1,6 +1,12 @@
50 # ChangeLog for net-fs/cifs-utils
51 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/ChangeLog,v 1.14 2011/08/09 13:42:37 xarthisius Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/ChangeLog,v 1.15 2011/09/26 17:32:43 vostorga Exp $
54 +
55 +*cifs-utils-5.1 (26 Sep 2011)
56 +
57 + 26 Sep 2011; VĂ­ctor Ostorga <vostorga@g.o> +cifs-utils-5.1.ebuild:
58 + Moving to EAPI 4, adding upcall use flag, which enable cifsidmap, forcing
59 + user to choice either caps or caps-ng support
60
61 09 Aug 2011; Kacper Kowalik <xarthisius@g.o> cifs-utils-5.0.ebuild:
62 Marked ~ppc64 wrt #358401
63
64
65
66 1.1 net-fs/cifs-utils/cifs-utils-5.1.ebuild
67
68 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/cifs-utils-5.1.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/cifs-utils-5.1.ebuild?rev=1.1&content-type=text/plain
70
71 Index: cifs-utils-5.1.ebuild
72 ===================================================================
73 # Copyright 1999-2011 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/cifs-utils-5.1.ebuild,v 1.1 2011/09/26 17:32:43 vostorga Exp $
76
77 EAPI=4
78
79 inherit eutils confutils linux-info
80
81 DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
82 HOMEPAGE="http://www.samba.org/linux-cifs/cifs-utils/"
83 SRC_URI="ftp://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2"
84
85 LICENSE="GPL-3"
86 SLOT="0"
87 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
88 IUSE="ads +caps caps-ng creds setuid upcall"
89
90 DEPEND="!net-fs/mount-cifs
91 !<net-fs/samba-3.6_rc1
92 ads? ( sys-libs/talloc virtual/krb5 sys-apps/keyutils )
93 caps? ( sys-libs/libcap )
94 caps-ng? ( sys-libs/libcap-ng )
95 creds? ( sys-apps/keyutils )
96 upcall? ( sys-apps/keyutils sys-libs/talloc virtual/krb5 )"
97 RDEPEND="${DEPEND}"
98
99 REQUIRED_USE="^^ ( caps caps-ng )"
100
101 pkg_setup() {
102 confutils_use_conflict caps caps-ng
103 if ! linux_config_exists || ! linux_chkconfig_present CIFS; then
104 ewarn "You must enable CIFS support in your kernel config, "
105 ewarn "to be able to mount samba shares. You can find it at"
106 ewarn
107 ewarn " File systems"
108 ewarn " Network File Systems"
109 ewarn " CIFS support"
110 ewarn
111 ewarn "and recompile your kernel ..."
112 fi
113 }
114
115 src_configure() {
116 econf \
117 $(use_enable ads cifsupcall) \
118 $(use_with caps libcap) \
119 $(use_with caps-ng libcap-ng) \
120 $(use_enable creds cifscreds) \
121 $(use_enable upcall cifsupcall)
122 }
123
124 src_install() {
125 emake install DESTDIR="${D}" || die "emake install failed"
126 # Set set-user-ID bit of mount.cifs
127 if use setuid ; then
128 chmod u+s "${D}"/sbin/mount.cifs
129 fi
130 dodoc doc/linux-cifs-client-guide.odt
131 }
132
133 pkg_postinst() {
134 # Inform about set-user-ID bit of mount.cifs
135 if use setuid ; then
136 ewarn "Setting SETUID bit for mount.cifs."
137 ewarn "However, there may be severe security implications. Also see:"
138 ewarn "http://samba.org/samba/security/CVE-2009-2948.html"
139 fi
140
141 # Inform about upcall usage
142 if use ads ; then
143 ewarn "Using mount.cifs in combination with keyutils"
144 ewarn "in order to mount DFS shares, you need to add"
145 ewarn "the following line to /etc/request-key.conf:"
146 ewarn " create dns_resolver * * /usr/sbin/cifs.upcall %k"
147 ewarn "Otherwise, your DFS shares will not work properly."
148 fi
149 }