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: samba-3.6.9.ebuild ChangeLog
Date: Thu, 01 Nov 2012 04:20:18
Message-Id: 20121101041958.5AA3221600@flycatcher.gentoo.org
1 patrick 12/11/01 04:19:58
2
3 Modified: ChangeLog
4 Added: samba-3.6.9.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.531 net-fs/samba/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.531&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.531&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?r1=1.530&r2=1.531
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v
20 retrieving revision 1.530
21 retrieving revision 1.531
22 diff -u -r1.530 -r1.531
23 --- ChangeLog 19 Oct 2012 08:10:00 -0000 1.530
24 +++ ChangeLog 1 Nov 2012 04:19:58 -0000 1.531
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-fs/samba
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.530 2012/10/19 08:10:00 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.531 2012/11/01 04:19:58 patrick Exp $
30 +
31 +*samba-3.6.9 (01 Nov 2012)
32 +
33 + 01 Nov 2012; Patrick Lauer <patrick@g.o> +samba-3.6.9.ebuild:
34 + Bump
35
36 19 Oct 2012; Sven Vermeulen samba-3.5.15.ebuild, samba-3.5.17.ebuild,
37 samba-3.5.18.ebuild, samba-3.6.6.ebuild, samba-3.6.7.ebuild,
38
39
40
41 1.1 net-fs/samba/samba-3.6.9.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-3.6.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-3.6.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: samba-3.6.9.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.9.ebuild,v 1.1 2012/11/01 04:19:58 patrick Exp $
51
52 EAPI=4
53
54 inherit pam versionator multilib eutils
55
56 MY_PV=${PV/_/}
57 MY_P="${PN}-${MY_PV}"
58
59 DESCRIPTION="Library bits of the samba network filesystem"
60 HOMEPAGE="http://www.samba.org/"
61 SRC_URI="mirror://samba/${MY_P}.tar.gz"
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~hppa ~x86"
65 IUSE="acl addns ads +aio avahi caps +client cluster cups debug dmapi doc examples fam
66 ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes
67 swat syslog winbind"
68
69 DEPEND="dev-libs/popt
70 >=sys-libs/talloc-2.0.5
71 >=sys-libs/tdb-1.2.9
72 virtual/libiconv
73 ads? ( virtual/krb5 sys-fs/e2fsprogs
74 client? ( sys-apps/keyutils
75 kernel_linux? ( net-fs/cifs-utils[ads] ) ) )
76 avahi? ( net-dns/avahi[dbus] )
77 caps? ( sys-libs/libcap )
78 client? ( !net-fs/mount-cifs
79 dev-libs/iniparser
80 kernel_linux? ( net-fs/cifs-utils ) )
81 cluster? ( >=dev-db/ctdb-1.13 )
82 cups? ( net-print/cups )
83 debug? ( dev-libs/dmalloc )
84 dmapi? ( sys-apps/dmapi )
85 fam? ( virtual/fam )
86 ldap? ( net-nds/openldap )
87 ldb? ( sys-libs/ldb )
88 pam? ( virtual/pam
89 winbind? ( dev-libs/iniparser )
90 )
91 readline? ( >=sys-libs/readline-5.2 )
92 selinux? ( sec-policy/selinux-samba )
93 syslog? ( virtual/logger )"
94
95 RDEPEND="${DEPEND}"
96
97 # Disable tests since we don't want to build that much here
98 RESTRICT="test"
99
100 SBINPROGS=""
101 BINPROGS=""
102 KRBPLUGIN=""
103 PLUGINEXT=".so"
104 SHAREDMODS=""
105
106 S="${WORKDIR}/${MY_P}/source3"
107
108 # TODO:
109 # - enable iPrint on Prefix/OSX and Darwin?
110 # - selftest-prefix? selftest?
111 # - AFS?
112
113 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
114
115 REQUIRED_USE="
116 ads? ( ldap )
117 swat? ( server )
118 "
119
120 pkg_pretend() {
121 if [[ ${MERGE_TYPE} != binary ]]; then
122 if use winbind &&
123 [[ $(tc-getCC)$ == *gcc* ]] &&
124 [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]]
125 then
126 eerror "It is a known issue that ${P} will not build with "
127 eerror "winbind use flag enabled when using gcc < 4.3 ."
128 eerror "Please use at least the latest stable gcc version."
129 die "Using sys-devel/gcc < 4.3 with winbind use flag."
130 fi
131 fi
132 }
133
134 pkg_setup() {
135 if use server ; then
136 SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd"
137 BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
138 bin/profiles bin/sharesec bin/eventlogadm bin/smbta-util"
139
140 use swat && SBINPROGS="${SBINPROGS} bin/swat"
141 use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
142 use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator"
143 fi
144
145 if use client ; then
146 BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree
147 bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas
148 bin/ntlm_auth"
149
150 fi
151
152 use cups && BINPROGS="${BINPROGS} bin/smbspool"
153 # use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename";
154
155 if use winbind ; then
156 BINPROGS="${BINPROGS} bin/wbinfo"
157 SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash"
158 use ads && SHAREDMODS="${SHAREDMODS},idmap_ad"
159 use cluster && SHAREDMODS="${SHAREDMODS},idmap_tdb2"
160 use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex"
161 fi
162 }
163
164 src_prepare() {
165 cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk"
166
167 # ensure that winbind has correct ldflags (QA notice)
168 sed -i \
169 -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
170 configure || die "sed failed"
171 cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/smb.conf.default.patch
172 }
173
174 src_configure() {
175 local myconf
176
177 # Filter out -fPIE
178 [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie"
179
180 # http://wiki.samba.org/index.php/CTDB_Setup
181 use cluster && myconf+=" --disable-pie"
182
183 # Upstream refuses to make this configurable
184 use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
185
186 #bug #399141 wrap newer iniparser version
187 has_version ">=dev-libs/iniparser-3.0.0" && \
188 export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)"
189
190 # Notes:
191 # - automount is only needed in conjunction with NIS and we don't have that
192 # anymore => LDAP?
193 # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
194 econf ${myconf} \
195 --with-piddir=/var/run/samba \
196 --sysconfdir=/etc/samba \
197 --localstatedir=/var \
198 $(use_enable debug developer) \
199 --enable-largefile \
200 --enable-socket-wrapper \
201 --enable-nss-wrapper \
202 $(use_enable swat) \
203 $(use_enable debug dmalloc) \
204 $(use_enable cups) \
205 --disable-iprint \
206 $(use_enable fam) \
207 --enable-shared-libs \
208 --disable-dnssd \
209 $(use_enable avahi) \
210 --with-fhs \
211 --with-privatedir=/var/lib/samba/private \
212 --with-rootsbindir=/var/cache/samba \
213 --with-lockdir=/var/cache/samba \
214 --with-swatdir=/usr/share/doc/${PF}/swat \
215 --with-configdir=/etc/samba \
216 --with-logfilebase=/var/log/samba \
217 --with-pammodulesdir=$(getpam_mod_dir) \
218 $(use_with dmapi) \
219 --without-afs \
220 --without-fake-kaserver \
221 --without-vfs-afsacl \
222 $(use_with ldap) \
223 $(use_with ads) \
224 $(use_with ads krb5 /usr) \
225 $(use_with ads dnsupdate) \
226 --without-automount \
227 $(use_with pam) \
228 $(use_with pam pam_smbpass) \
229 $(use_with syslog) \
230 $(use_with quota quotas) \
231 $(use_with quota sys-quotas) \
232 --without-utmp \
233 --without-lib{talloc,tdb} \
234 $(use_with netapi libnetapi) \
235 $(use_with smbclient libsmbclient) \
236 $(use_with smbsharemodes libsmbsharemodes) \
237 $(use_with addns libaddns) \
238 $(use_with cluster ctdb /usr) \
239 $(use_with cluster cluster-support) \
240 $(use_with acl acl-support) \
241 $(use_with aio aio-support) \
242 --with-sendfile-support \
243 $(use_with winbind) \
244 --with-shared-modules=${SHAREDMODS} \
245 --without-included-popt \
246 --without-included-iniparser
247 }
248
249 src_compile() {
250 # compile libs
251 if use addns ; then
252 einfo "make addns library"
253 emake libaddns
254 fi
255 if use netapi ; then
256 einfo "make netapi library"
257 emake libnetapi
258 fi
259 if use smbclient ; then
260 einfo "make smbclient library"
261 emake libsmbclient
262 fi
263 if use smbsharemodes ; then
264 einfo "make smbsharemodes library"
265 emake libsmbsharemodes
266 fi
267
268 # compile modules
269 emake modules
270
271 # compile pam moudles
272 if use pam ; then
273 einfo "make pam modules"
274 emake pam_modules
275 fi
276
277 # compile winbind nss modules
278 if use winbind ; then
279 einfo "make nss modules"
280 emake nss_modules
281 fi
282
283 # compile utilities
284 if [ -n "${BINPROGS}" ] ; then
285 einfo "make binprogs"
286 emake ${BINPROGS}
287 fi
288 if [ -n "${SBINPROGS}" ] ; then
289 einfo "make sbinprogs"
290 emake ${SBINPROGS}
291 fi
292
293 if [ -n "${KRBPLUGIN}" ] ; then
294 einfo "make krbplugin"
295 emake ${KRBPLUGIN}${PLUGINEXT}
296 fi
297
298 }
299
300 src_install() {
301 # install libs
302 if use addns ; then
303 einfo "install addns library"
304 emake installlibaddns DESTDIR="${D}"
305 fi
306 if use netapi ; then
307 einfo "install netapi library"
308 emake installlibnetapi DESTDIR="${D}"
309 fi
310 if use smbclient ; then
311 einfo "install smbclient library"
312 emake installlibsmbclient DESTDIR="${D}"
313 fi
314 if use smbsharemodes ; then
315 einfo "install smbsharemodes library"
316 emake installlibsmbsharemodes DESTDIR="${D}"
317 fi
318
319 # install modules
320 emake installmodules DESTDIR="${D}"
321
322 if use pam ; then
323 einfo "install pam modules"
324 emake installpammodules DESTDIR="${D}"
325
326 if use winbind ; then
327 newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
328 doman ../docs/manpages/pam_winbind.8
329 # bug #376853
330 insinto /etc/security
331 doins ../examples/pam_winbind/pam_winbind.conf || die
332 fi
333
334 newpamd "${CONFDIR}/samba.pam" samba
335 dodoc pam_smbpass/README
336 fi
337
338 # Nsswitch extensions. Make link for wins and winbind resolvers
339 if use winbind ; then
340 einfo "install libwbclient"
341 emake installlibwbclient DESTDIR="${D}"
342 dolib.so ../nsswitch/libnss_wins.so
343 dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2
344 dolib.so ../nsswitch/libnss_winbind.so
345 dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2
346 einfo "install libwbclient related manpages"
347 doman ../docs/manpages/idmap_rid.8
348 doman ../docs/manpages/idmap_hash.8
349 if use ldap ; then
350 doman ../docs/manpages/idmap_adex.8
351 doman ../docs/manpages/idmap_ldap.8
352 fi
353 if use ads ; then
354 doman ../docs/manpages/idmap_ad.8
355 fi
356 fi
357
358 # install binaries
359 insinto /usr
360 for prog in ${SBINPROGS} ; do
361 dosbin ${prog}
362 doman ../docs/manpages/${prog/bin\/}*
363 done
364
365 for prog in ${BINPROGS} ; do
366 dobin ${prog}
367 doman ../docs/manpages/${prog/bin\/}*
368 done
369
370 # install scripts
371 if use client ; then
372 dobin script/findsmb
373 doman ../docs/manpages/findsmb.1
374 fi
375
376 # install krbplugin
377 if [ -n "${KRBPLUGIN}" ] ; then
378 if has_version app-crypt/mit-krb5 ; then
379 insinto /usr/$(get_libdir)/krb5/plugins/libkrb5
380 doins ${KRBPLUGIN}${PLUGINEXT}
381 elif has_version app-crypt/heimdal ; then
382 insinto /usr/$(get_libdir)/plugin/krb5
383 doins ${KRBPLUGIN}${PLUGINEXT}
384 fi
385 insinto /usr
386 for prog in ${KRBPLUGIN} ; do
387 doman ../docs/manpages/${prog/bin\/}*
388 done
389 fi
390
391 # install server components
392 if use server ; then
393 doman ../docs/manpages/vfs* ../docs/manpages/samba.7
394
395 diropts -m0700
396 keepdir /var/lib/samba/private
397
398 diropts -m1777
399 keepdir /var/spool/samba
400
401 diropts -m0755
402 keepdir /var/{cache,log}/samba
403 keepdir /var/lib/samba/{netlogon,profiles}
404 keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
405 keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
406
407 newconfd "${CONFDIR}/samba.confd" samba
408 newinitd "${CONFDIR}/samba.initd" samba
409
410 insinto /etc/samba
411 doins "${CONFDIR}"/{smbusers,lmhosts}
412
413 if use ldap ; then
414 insinto /etc/openldap/schema
415 doins ../examples/LDAP/samba.schema
416 fi
417
418 if use swat ; then
419 insinto /etc/xinetd.d
420 newins "${CONFDIR}/swat.xinetd" swat
421 script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}"
422 fi
423
424 dodoc ../MAINTAINERS.txt ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
425 fi
426
427 # install the spooler to cups
428 if use cups ; then
429 dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb
430 fi
431
432 # install misc files
433 insinto /etc/samba
434 doins ../examples/smb.conf.default
435 doman ../docs/manpages/smb.conf.5
436
437 insinto /usr/"$(get_libdir)"/samba
438 doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
439
440 # install docs
441 if use doc ; then
442 dohtml -r ../docs/htmldocs/*
443 dodoc ../docs/*.pdf
444 fi
445
446 # install examples
447 if use examples ; then
448 insinto /usr/share/doc/${PF}/examples
449
450 if use smbclient ; then
451 doins -r ../examples/libsmbclient
452 fi
453
454 if use winbind ; then
455 doins -r ../examples/pam_winbind ../examples/nss
456 fi
457
458 if use server ; then
459 cd ../examples
460 doins -r auth autofs dce-dfs LDAP logon misc pdb \
461 perfcounter printer-accounting printing scripts tridge \
462 validchars VFS
463 fi
464 fi
465
466 # Remove empty installation directories
467 rmdir --ignore-fail-on-non-empty \
468 "${D}/usr/$(get_libdir)/samba" \
469 "${D}/usr"/{sbin,bin} \
470 "${D}/usr/share"/{man,locale,} \
471 "${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \
472 # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild"
473 }
474
475 pkg_postinst() {
476 elog "Samba 3.6 has adopted a number of improved security defaults that"
477 elog "will impact on existing users of Samba."
478 elog " client ntlmv2 auth = yes"
479 elog " client use spnego principal = no"
480 elog " send spnego principal = no"
481 elog ""
482 elog "SMB2 protocol support in 3.6.0 is fully functional and can be "
483 elog "enabled by setting 'max protocol = smb2'. SMB2 is a new "
484 elog "implementation of the SMB protocol used by Windows Vista and higher"
485 elog ""
486 elog "For further information make sure to read the release notes at"
487 elog "http://samba.org/samba/history/${P}.html and "
488 elog "http://samba.org/samba/history/${PN}-3.6.0.html"
489 }