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