Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/samba: metadata.xml ChangeLog samba-3.2.13-r2.ebuild
Date: Sat, 27 Jun 2009 07:27:27
Message-Id: E1MKSJk-0001OZ-Sf@stork.gentoo.org
1 patrick 09/06/27 07:27:20
2
3 Modified: metadata.xml ChangeLog
4 Added: samba-3.2.13-r2.ebuild
5 Log:
6 Adding cifsupcall support.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.8 net-fs/samba/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?rev=1.8&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?rev=1.8&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?r1=1.7&r2=1.8
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/metadata.xml,v
19 retrieving revision 1.7
20 retrieving revision 1.8
21 diff -u -r1.7 -r1.8
22 --- metadata.xml 26 Jun 2009 20:25:35 -0000 1.7
23 +++ metadata.xml 27 Jun 2009 07:27:20 -0000 1.8
24 @@ -19,6 +19,6 @@
25 <flag name="winbind">Enables support for the winbind auth daemon</flag>
26 <flag name="client">Enables the client part</flag>
27 <flag name="server">Enables the server part</flag>
28 -
29 + <flag name="cifsupcall">Enables userspace upcall helper</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.362 net-fs/samba/ChangeLog
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.362&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.362&content-type=text/plain
39 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?r1=1.361&r2=1.362
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v
44 retrieving revision 1.361
45 retrieving revision 1.362
46 diff -u -r1.361 -r1.362
47 --- ChangeLog 26 Jun 2009 20:25:35 -0000 1.361
48 +++ ChangeLog 27 Jun 2009 07:27:20 -0000 1.362
49 @@ -1,6 +1,12 @@
50 # ChangeLog for net-fs/samba
51 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.361 2009/06/26 20:25:35 patrick Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.362 2009/06/27 07:27:20 patrick Exp $
54 +
55 +*samba-3.2.13-r2 (27 Jun 2009)
56 +
57 + 27 Jun 2009; Patrick Lauer <patrick@g.o> +samba-3.2.13-r2.ebuild,
58 + metadata.xml:
59 + Adding cifsupcall support.
60
61 *samba-3.3.6 (26 Jun 2009)
62
63
64
65
66 1.1 net-fs/samba/samba-3.2.13-r2.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-3.2.13-r2.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-3.2.13-r2.ebuild?rev=1.1&content-type=text/plain
70
71 Index: samba-3.2.13-r2.ebuild
72 ===================================================================
73 # Copyright 1999-2009 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.2.13-r2.ebuild,v 1.1 2009/06/27 07:27:20 patrick Exp $
76
77 inherit eutils pam multilib versionator confutils
78
79 MY_P=${PN}-${PV/_/}
80
81 DESCRIPTION="A suite of SMB and CIFS client/server programs for UNIX"
82 HOMEPAGE="http://www.samba.org/"
83 SRC_URI="mirror://samba/${MY_P}.tar.gz"
84 LICENSE="GPL-3"
85 SLOT="0"
86 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
87 IUSE_LINGUAS="linguas_ja linguas_pl"
88 IUSE="${IUSE_LINGUAS} acl ads async automount caps cifsupcall cups doc examples ipv6 kernel_linux ldap fam
89 pam quotas readline selinux swat syslog winbind"
90
91 RDEPEND="dev-libs/popt
92 dev-libs/iniparser
93 virtual/libiconv
94 acl? ( virtual/acl )
95 cifsupcall? ( sys-apps/keyutils )
96 cups? ( net-print/cups )
97 ipv6? ( sys-apps/xinetd )
98 ads? ( virtual/krb5 sys-fs/e2fsprogs )
99 ldap? ( net-nds/openldap )
100 pam? ( virtual/pam )
101 readline? ( sys-libs/readline )
102 selinux? ( sec-policy/selinux-samba )
103 swat? ( sys-apps/xinetd )
104 syslog? ( virtual/logger )
105 fam? ( virtual/fam )
106 caps? ( sys-libs/libcap )"
107 DEPEND="${RDEPEND}"
108
109 S="${WORKDIR}/${MY_P}"
110 CONFDIR="${FILESDIR}/config-3.2"
111 PRIVATE_DST=/var/lib/samba/private
112
113 # Tests are currently broken due to hardcoded paths (due to --with-fhs)
114 # The problem is that --without-fhs lets samba use lockdir (which can be changed in smb.conf)
115 # which is wrong as well.
116 RESTRICT="test"
117
118 pkg_setup() {
119 confutils_use_depend_all ads ldap
120 confutils_use_depend_all cifsupcall ads
121 }
122
123 src_unpack() {
124 unpack ${A}
125 cd "${S}/source"
126
127 # Ok, agreed, this is ugly. But it avoids a patch we
128 # need for every samba version and we don't need autotools
129 sed -i \
130 -e 's|"lib32" ||' \
131 -e 's|if test -d "$i/$l" ;|if test -d "$i/$l" -o -L "$i/$l";|' \
132 configure || die "sed failed"
133
134 rm "${S}/docs/manpages"/{mount,umount}.cifs.8
135
136 sed -i \
137 -e 's|tdbsam|tdbsam:${PRIVATEDIR}/passdb.tdb|' \
138 "${S}/source/script/tests/selftest.sh" || die "sed failed"
139 }
140
141 src_compile() {
142 cd "${S}/source"
143
144 local myconf
145 local mylangs
146 local mymod_shared
147
148 mylangs="--with-manpages-langs=en"
149 use linguas_ja && mylangs="${mylangs},ja"
150 use linguas_pl && mylangs="${mylangs},pl"
151
152 use winbind && mymod_shared="--with-shared-modules=idmap_rid"
153 if use ldap ; then
154 myconf="${myconf} $(use_with ads)"
155 use winbind && mymod_shared="${mymod_shared},idmap_ad"
156 fi
157
158 [[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie"
159 use hppa && myconf="${myconf} --disable-pie"
160
161 use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
162
163 # Otherwise we get the whole swat stuff installed
164 if ! use swat ; then
165 sed -i \
166 -e 's/^\(install:.*\)installswat \(.*\)/\1\2/' \
167 Makefile.in || die "sed failed"
168 fi
169
170 econf \
171 --with-fhs \
172 --sysconfdir=/etc/samba \
173 --localstatedir=/var \
174 --with-configdir=/etc/samba \
175 --with-libdir=/usr/$(get_libdir)/samba \
176 --with-pammodulesdir=$(getpam_mod_dir) \
177 --with-swatdir=/usr/share/doc/${PF}/swat \
178 --with-piddir=/var/run/samba \
179 --with-lockdir=/var/cache/samba \
180 --with-logfilebase=/var/log/samba \
181 --with-privatedir=${PRIVATE_DST} \
182 --with-libsmbclient \
183 --without-spinlocks \
184 --enable-socket-wrapper \
185 --enable-nss-wrapper \
186 --with-cifsmount=no \
187 $(use_with acl acl-support) \
188 $(use_with async aio-support) \
189 $(use_with automount) \
190 $(use_with cifsupcall) \
191 $(use_enable cups) \
192 $(use_enable fam) \
193 $(use_with ads krb5) \
194 $(use_with ads dnsupdate) \
195 $(use_with ldap) \
196 $(use_with pam) $(use_with pam pam_smbpass) \
197 $(use_with quotas) $(use_with quotas sys-quotas) \
198 $(use_with readline) \
199 $(use_with syslog) \
200 $(use_with winbind) \
201 ${myconf} ${mylangs} ${mymod_shared} || die "econf failed"
202
203 emake proto || die "emake proto failed"
204 emake everything || die "emake everything failed"
205
206 }
207
208 src_test() {
209 cd "${S}/source"
210 emake test || die "tests failed"
211 }
212
213 src_install() {
214 cd "${S}/source"
215
216 emake DESTDIR="${D}" install-everything || die "emake install-everything failed"
217
218 # Extra rpctorture progs
219 local extra_bins="rpctorture"
220 for i in ${extra_bins} ; do
221 [[ -x "${S}/bin/${i}" ]] && dobin "${S}/bin/${i}"
222 done
223
224 # remove .old stuff from /usr/bin:
225 rm -f "${D}"/usr/bin/*.old
226
227 # Removing executable bits from header-files
228 fperms 644 /usr/include/libsmbclient.h
229
230 # Nsswitch extensions. Make link for wins and winbind resolvers
231 if use winbind ; then
232 dolib.so nsswitch/libnss_wins.so
233 dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2
234 dolib.so nsswitch/libnss_winbind.so
235 dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2
236 fi
237
238 # bug #46389: samba doesn't create symlink anymore
239 # beaviour seems to be changed in 3.0.6, see bug #61046
240 dosym samba/libsmbclient.so /usr/$(get_libdir)/libsmbclient.so
241 dosym samba/libsmbclient.so.0 /usr/$(get_libdir)/libsmbclient.so.0
242 dosym samba/libtalloc.so /usr/$(get_libdir)/libtalloc.so
243 dosym samba/libtalloc.so.1 /usr/$(get_libdir)/libtalloc.so.1
244 dosym samba/libtdb.so /usr/$(get_libdir)/libtdb.so
245 dosym samba/libtdb.so.1 /usr/$(get_libdir)/libtdb.so.1
246 dosym samba/libwbclient.so.0 /usr/$(get_libdir)/libwbclient.so.0
247 dosym samba/libsmbsharemodes.so.0 /usr/$(get_libdir)/libsmbsharemodes.so.0
248
249 # make the smb backend symlink for cups printing support (bug #133133)
250 if use cups ; then
251 dodir $(cups-config --serverbin)/backend
252 dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb
253 fi
254
255 cd "${S}/source"
256
257 # General config files
258 insinto /etc/samba
259 doins "${CONFDIR}"/{smbusers,lmhosts}
260 newins "${CONFDIR}/smb.conf.example-samba3" smb.conf.example
261
262 newpamd "${CONFDIR}/samba.pam" samba
263 use winbind && dopamd "${CONFDIR}/system-auth-winbind"
264 if use swat ; then
265 insinto /etc/xinetd.d
266 newins "${CONFDIR}/swat.xinetd" swat
267 else
268 rm -f "${D}/usr/sbin/swat"
269 rm -f "${D}/usr/share/man/man8/swat.8"
270 fi
271
272 newinitd "${FILESDIR}/samba-init" samba
273 newconfd "${FILESDIR}/samba-conf" samba
274
275 if use ldap ; then
276 insinto /etc/openldap/schema
277 doins "${S}/examples/LDAP/samba.schema"
278 fi
279
280 if use ipv6 ; then
281 insinto /etc/xinetd.d
282 newins "${FILESDIR}/samba-xinetd" smb
283 fi
284
285 # dirs
286 diropts -m0700 ; keepdir "${PRIVATE_DST}"
287 diropts -m1777 ; keepdir /var/spool/samba
288
289 diropts -m0755
290 keepdir /var/{log,run,cache}/samba
291 keepdir /var/lib/samba/{netlogon,profiles}
292 keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
293 keepdir /usr/$(get_libdir)/samba/{rpc,idmap,auth}
294
295 # docs
296 dodoc "${FILESDIR}/README.gentoo"
297 dodoc "${S}"/{MAINTAINERS,README,Roadmap,WHATSNEW.txt}
298 dodoc "${CONFDIR}/nsswitch.conf-wins"
299 use winbind && dodoc "${CONFDIR}/nsswitch.conf-winbind"
300
301 if use examples ; then
302 insinto /usr/share/doc/${PF}
303 doins -r "${S}/examples/"
304 find "${D}/usr/share/doc/${PF}" -type d -print0 | xargs -0 chmod 755
305 find "${D}/usr/share/doc/${PF}/examples" ! -type d -print0 | xargs -0 chmod 644
306 fi
307
308 if ! use doc ; then
309 if ! use swat ; then
310 rm -rf "${D}/usr/share/doc/${PF}/swat"
311 else
312 rm -rf "${D}/usr/share/doc/${PF}/swat/help"/{guide,howto,devel}
313 rm -rf "${D}/usr/share/doc/${PF}/swat/using_samba"
314 fi
315 fi
316
317 }
318
319 pkg_preinst() {
320 local PRIVATE_SRC=/etc/samba/private
321 if [[ ! -r "${ROOT}/${PRIVATE_DST}/secrets.tdb" \
322 && -r "${ROOT}/${PRIVATE_SRC}/secrets.tdb" ]] ; then
323 ebegin "Copying ${ROOT}/${PRIVATE_SRC}/* to ${ROOT}/${PRIVATE_DST}/"
324 mkdir -p "${D}/${PRIVATE_DST}"
325 cp -pPRf "${ROOT}/${PRIVATE_SRC}"/* "${D}/${PRIVATE_DST}/"
326 eend $?
327 fi
328
329 if [[ ! -f "${ROOT}/etc/samba/smb.conf" ]] ; then
330 touch "${D}/etc/samba/smb.conf"
331 fi
332 }
333
334 pkg_postinst() {
335 if use swat ; then
336 einfo "swat must be enabled by xinetd:"
337 einfo " change the /etc/xinetd.d/swat configuration"
338 fi
339
340 if use ipv6 ; then
341 einfo "ipv6 support must be enabled by xinetd:"
342 einfo " change the /etc/xinetd.d/smb configuration"
343 fi
344
345 elog "It is possible to start/stop daemons separately:"
346 elog " Create a symlink from /etc/init.d/samba.{smbd,nmbd,winbind} to"
347 elog " /etc/init.d/samba. Calling /etc/init.d/samba directly will start"
348 elog " the daemons configured in /etc/conf.d/samba"
349
350 elog "The mount/umount.cifs helper applications are not included anymore."
351 elog "Please install net-fs/mount-cifs instead."
352
353 ewarn "If you're upgrading from 3.0.24 or earlier, please make sure to"
354 ewarn "restart your clients to clear any cached information about the server."
355 ewarn "Otherwise they might not be able to connect to the volumes."
356 }