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