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-4.8.1.ebuild
Date: Fri, 28 Jan 2011 15:15:15
Message-Id: 20110128151505.5D6E920054@flycatcher.gentoo.org
1 vostorga 11/01/28 15:15:05
2
3 Added: metadata.xml ChangeLog cifs-utils-4.8.1.ebuild
4 Log:
5 Initial import, ebuild based on work from Ewoud Kohl van Wijngaarden <gentoo@××××××××××××××××××.nl> and Sebastiaan <s.breedveld@×××××××××.nl> bug 308655
6
7 (Portage version: 2.1.9.25/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 net-fs/cifs-utils/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <herd>samba</herd>
21 <maintainer>
22 <email>samba@g.o</email>
23 <name>Samba Team</name>
24 </maintainer>
25 <longdescription>The in-kernel CIFS filesystem relies on a set of user-space tools. That package of tools is called cifs-utils. Although not really part of Samba proper, these tools were originally part of the Samba package. For several reasons, shipping these tools as part of Samba was problematic and it was deemed better to split them off into their own package</longdescription>
26 <use>
27 <flag name="ads">Enable Active Directory support</flag>
28 <flag name="caps">libcap support</flag>
29 <flag name="caps-ng">libcap-ng support</flag>
30 <flag name="creds">cifs credentials support</flag>
31 <flag name="setuid">Seting SETUID bit for mount.cifs</flag>
32 </use>
33 </pkgmetadata>
34
35
36
37 1.1 net-fs/cifs-utils/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?rev=1.1&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/ChangeLog?rev=1.1&content-type=text/plain
41
42 Index: ChangeLog
43 ===================================================================
44 # ChangeLog for net-fs/cifs-utils
45 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
46 # $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/ChangeLog,v 1.1 2011/01/28 15:15:05 vostorga Exp $
47
48 *cifs-utils-4.8.1 (28 Jan 2011)
49
50 28 Jan 2011; Víctor Ostorga <vostorga@g.o>
51 +cifs-utils-4.8.1.ebuild, +metadata.xml:
52 Initial import, ebuild based on work from Ewoud Kohl van Wijngaarden
53 <gentoo@××××××××××××××××××.nl> and Sebastiaan <s.breedveld@×××××××××.nl>
54 bug 308655
55
56
57
58
59 1.1 net-fs/cifs-utils/cifs-utils-4.8.1.ebuild
60
61 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild?rev=1.1&view=markup
62 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild?rev=1.1&content-type=text/plain
63
64 Index: cifs-utils-4.8.1.ebuild
65 ===================================================================
66 # Copyright 1999-2011 Gentoo Foundation
67 # Distributed under the terms of the GNU General Public License v2
68 # $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild,v 1.1 2011/01/28 15:15:05 vostorga Exp $
69
70 EAPI=2
71
72 inherit eutils confutils linux-mod
73
74 DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
75 HOMEPAGE="http://www.samba.org/linux-cifs/cifs-utils/"
76 SRC_URI="ftp://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2"
77
78 LICENSE="GPL-3"
79 SLOT="0"
80 KEYWORDS="~amd64 ~x86"
81 IUSE="ads +caps caps-ng creds setuid"
82
83 DEPEND="!net-fs/mount-cifs
84 !<net-fs/samba-3.6
85 ads? ( sys-libs/talloc virtual/krb5 sys-apps/keyutils )
86 caps? ( sys-libs/libcap )
87 caps-ng? ( sys-libs/libcap-ng )"
88 RDEPEND="${DEPEND}"
89
90 cifs_check() {
91 ebegin "Checking for CIFS support"
92 linux_chkconfig_present CIFS
93 eend $?
94
95 if [[ $? -ne 0 ]] ; then
96 eerror "Please enable CIFS support in your kernel config, found at:"
97 eerror
98 eerror " File systems"
99 eerror " Network File Systems"
100 eerror " CIFS support"
101 eerror
102 eerror "and recompile your kernel ..."
103 die "CIFS support not detected!"
104 fi
105 }
106
107 pkg_setup() {
108 confutils_use_conflict caps caps-ng
109
110 if use kernel_linux; then
111 linux-mod_pkg_setup
112 cifs_check
113 fi
114 }
115
116 src_configure() {
117 econf \
118 $(use_enable ads cifsupcall) \
119 $(use_with caps libcap) \
120 $(use_enable creds cifscreds)
121 }
122
123 src_install() {
124 emake install DESTDIR="${D}" || die "emake install failed"
125 # Set set-user-ID bit of mount.cifs
126 if use setuid ; then
127 chmod u+s "${D}"/sbin/mount.cifs
128 fi
129 dodoc doc/linux-cifs-client-guide.odt
130 }
131
132 pkg_postinst() {
133 # Inform about set-user-ID bit of mount.cifs
134 if use setuid ; then
135 ewarn "Setting SETUID bit for mount.cifs."
136 ewarn "However, there may be severe security implications. Also see:"
137 ewarn "http://samba.org/samba/security/CVE-2009-2948.html"
138 fi
139
140 # Inform about upcall usage
141 if use ads ; then
142 ewarn "Using mount.cifs in combination with keyutils"
143 ewarn "in order to mount DFS shares, you need to add"
144 ewarn "the following line to /etc/request-key.conf:"
145 ewarn " create dns_resolver * * /usr/sbin/cifs.upcall %k"
146 ewarn "Otherwise, your DFS shares will not work properly."
147 fi
148 }