1 |
polynomial-c 13/02/25 12:07:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cifs-utils-5.9-r1.ebuild |
5 |
Removed: cifs-utils-5.9.ebuild |
6 |
Log: |
7 |
Mounting with credentials file fixed (bug #459040) |
8 |
|
9 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.50 net-fs/cifs-utils/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?rev=1.50&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?rev=1.50&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?r1=1.49&r2=1.50 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/ChangeLog,v |
21 |
retrieving revision 1.49 |
22 |
retrieving revision 1.50 |
23 |
diff -u -r1.49 -r1.50 |
24 |
--- ChangeLog 22 Feb 2013 15:08:37 -0000 1.49 |
25 |
+++ ChangeLog 25 Feb 2013 12:07:15 -0000 1.50 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for net-fs/cifs-utils |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/ChangeLog,v 1.49 2013/02/22 15:08:37 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/ChangeLog,v 1.50 2013/02/25 12:07:15 polynomial-c Exp $ |
31 |
+ |
32 |
+*cifs-utils-5.9-r1 (25 Feb 2013) |
33 |
+ |
34 |
+ 25 Feb 2013; Lars Wendler <polynomial-c@g.o> -cifs-utils-5.9.ebuild, |
35 |
+ +cifs-utils-5.9-r1.ebuild, |
36 |
+ +files/cifs-utils-5.9-set-parsed_info-got_user-when-a-cred-file.patch: |
37 |
+ Mounting with credentials file fixed. Thanks to Michael Buchfink for |
38 |
+ reporting this in bug #459040. |
39 |
|
40 |
*cifs-utils-5.9 (22 Feb 2013) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-fs/cifs-utils/cifs-utils-5.9-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/cifs-utils-5.9-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/cifs-utils-5.9-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: cifs-utils-5.9-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2013 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/cifs-utils-5.9-r1.ebuild,v 1.1 2013/02/25 12:07:15 polynomial-c Exp $ |
55 |
|
56 |
EAPI=4 |
57 |
|
58 |
inherit eutils confutils linux-info |
59 |
|
60 |
DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems" |
61 |
HOMEPAGE="http://wiki.samba.org/index.php/LinuxCIFS_utils" |
62 |
SRC_URI="ftp://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-3" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux" |
67 |
IUSE="ads +caps caps-ng creds upcall" |
68 |
|
69 |
DEPEND="!net-fs/mount-cifs |
70 |
!<net-fs/samba-3.6_rc1 |
71 |
ads? ( sys-libs/talloc virtual/krb5 sys-apps/keyutils ) |
72 |
caps? ( sys-libs/libcap ) |
73 |
caps-ng? ( sys-libs/libcap-ng ) |
74 |
creds? ( sys-apps/keyutils ) |
75 |
upcall? ( sys-apps/keyutils sys-libs/talloc virtual/krb5 )" |
76 |
RDEPEND="${DEPEND}" |
77 |
|
78 |
REQUIRED_USE="^^ ( caps caps-ng )" |
79 |
|
80 |
DOCS="doc/linux-cifs-client-guide.odt" |
81 |
|
82 |
pkg_setup() { |
83 |
linux-info_pkg_setup |
84 |
|
85 |
confutils_use_conflict caps caps-ng |
86 |
if ! linux_config_exists || ! linux_chkconfig_present CIFS; then |
87 |
ewarn "You must enable CIFS support in your kernel config, " |
88 |
ewarn "to be able to mount samba shares. You can find it at" |
89 |
ewarn |
90 |
ewarn " File systems" |
91 |
ewarn " Network File Systems" |
92 |
ewarn " CIFS support" |
93 |
ewarn |
94 |
ewarn "and recompile your kernel ..." |
95 |
fi |
96 |
} |
97 |
|
98 |
src_prepare() { |
99 |
# bug #459040 |
100 |
epatch "${FILESDIR}"/${P}-set-parsed_info-got_user-when-a-cred-file.patch |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
ROOTSBINDIR="${EPREFIX}"/sbin \ |
105 |
econf \ |
106 |
$(use_enable ads cifsupcall) \ |
107 |
$(use_with caps libcap) \ |
108 |
$(use_with caps-ng libcap-ng) \ |
109 |
$(use_enable creds cifscreds) \ |
110 |
$(use_enable upcall cifsupcall) \ |
111 |
--with-libcap-ng=$(use caps-ng && echo 'yes' || echo 'no') \ |
112 |
--disable-cifsidmap \ |
113 |
--disable-cifsacl |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
default |
118 |
|
119 |
# remove empty directories |
120 |
find "${ED}" -type d -print0 | xargs --null rmdir \ |
121 |
--ignore-fail-on-non-empty &>/dev/null |
122 |
} |
123 |
|
124 |
pkg_postinst() { |
125 |
# Inform about set-user-ID bit of mount.cifs |
126 |
ewarn "setuid use flag was dropped due to multiple security implications" |
127 |
ewarn "such as CVE-2009-2948, CVE-2011-3585 and CVE-2012-1586" |
128 |
ewarn "You are free to set setuid flags by yourself" |
129 |
|
130 |
# Inform about upcall usage |
131 |
if use ads ; then |
132 |
ewarn "Using mount.cifs in combination with keyutils" |
133 |
ewarn "in order to mount DFS shares, you need to add" |
134 |
ewarn "the following line to /etc/request-key.conf:" |
135 |
ewarn " create dns_resolver * * /usr/sbin/cifs.upcall %k" |
136 |
ewarn "Otherwise, your DFS shares will not work properly." |
137 |
fi |
138 |
} |