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