1 |
dagger 11/07/27 11:51:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: samba-3.6.0_rc3.ebuild |
5 |
Removed: samba-3.6.0_rc2.ebuild |
6 |
Log: |
7 |
Update release candidate of samba 3.6 to version 3. |
8 |
Drop keywords for some archs to make repoman happy. |
9 |
net-fs/cifs-utils needs to be keyworded before we can add them back. |
10 |
|
11 |
(Portage version: 2.1.10.7/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.475 net-fs/samba/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.475&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.475&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?r1=1.474&r2=1.475 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v |
23 |
retrieving revision 1.474 |
24 |
retrieving revision 1.475 |
25 |
diff -u -r1.474 -r1.475 |
26 |
--- ChangeLog 30 Jun 2011 16:58:05 -0000 1.474 |
27 |
+++ ChangeLog 27 Jul 2011 11:51:12 -0000 1.475 |
28 |
@@ -1,6 +1,12 @@ |
29 |
# ChangeLog for net-fs/samba |
30 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.474 2011/06/30 16:58:05 vostorga Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.475 2011/07/27 11:51:12 dagger Exp $ |
33 |
+ |
34 |
+*samba-3.6.0_rc3 (27 Jul 2011) |
35 |
+ |
36 |
+ 27 Jul 2011; Robert Piasek <dagger@g.o> -samba-3.6.0_rc2.ebuild, |
37 |
+ +samba-3.6.0_rc3.ebuild: |
38 |
+ Upgrade samba 3.6 release candidate to version 3 |
39 |
|
40 |
*samba-3.6.0_rc2 (30 Jun 2011) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-fs/samba/samba-3.6.0_rc3.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-3.6.0_rc3.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-3.6.0_rc3.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: samba-3.6.0_rc3.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.0_rc3.ebuild,v 1.1 2011/07/27 11:51:12 dagger Exp $ |
55 |
|
56 |
EAPI=4 |
57 |
|
58 |
inherit pam versionator multilib eutils |
59 |
|
60 |
MY_PV=${PV/_/} |
61 |
MY_P="${PN}-${MY_PV}" |
62 |
|
63 |
DESCRIPTION="Library bits of the samba network filesystem" |
64 |
HOMEPAGE="http://www.samba.org/" |
65 |
SRC_URI="mirror://samba/rc/${MY_P}.tar.gz" |
66 |
LICENSE="GPL-3" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~x86" |
69 |
IUSE="acl addns ads +aio avahi caps +client cluster cups debug doc examples fam |
70 |
ldap ldb +netapi pam quota +readline +server +smbclient smbsharemodes |
71 |
swat syslog winbind" |
72 |
|
73 |
DEPEND="dev-libs/popt |
74 |
!net-fs/samba-client |
75 |
!net-fs/samba-libs |
76 |
!net-fs/samba-server |
77 |
>=sys-libs/talloc-2.0.5 |
78 |
>=sys-libs/tdb-1.2.9 |
79 |
virtual/libiconv |
80 |
ads? ( virtual/krb5 sys-fs/e2fsprogs |
81 |
client? ( sys-apps/keyutils |
82 |
net-fs/cifs-utils[ads] ) ) |
83 |
avahi? ( net-dns/avahi[dbus] ) |
84 |
caps? ( sys-libs/libcap ) |
85 |
client? ( !net-fs/mount-cifs |
86 |
dev-libs/iniparser |
87 |
net-fs/cifs-utils ) |
88 |
cluster? ( >=dev-db/ctdb-1.0.114_p1 ) |
89 |
cups? ( net-print/cups ) |
90 |
debug? ( dev-libs/dmalloc ) |
91 |
fam? ( virtual/fam ) |
92 |
ldap? ( net-nds/openldap ) |
93 |
pam? ( virtual/pam |
94 |
winbind? ( dev-libs/iniparser ) |
95 |
) |
96 |
readline? ( >=sys-libs/readline-5.2 ) |
97 |
syslog? ( virtual/logger )" |
98 |
|
99 |
RDEPEND="${DEPEND}" |
100 |
|
101 |
# Disable tests since we don't want to build that much here |
102 |
RESTRICT="test" |
103 |
|
104 |
SBINPROGS="" |
105 |
BINPROGS="" |
106 |
KRBPLUGIN="" |
107 |
PLUGINEXT=".so" |
108 |
SHAREDMODS="" |
109 |
|
110 |
S="${WORKDIR}/${MY_P}/source3" |
111 |
|
112 |
# TODO: |
113 |
# - enable iPrint on Prefix/OSX and Darwin? |
114 |
# - selftest-prefix? selftest? |
115 |
# - AFS? |
116 |
|
117 |
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
118 |
|
119 |
REQUIRED_USE=" |
120 |
ads? ( ldap ) |
121 |
swat? ( server ) |
122 |
" |
123 |
|
124 |
pkg_setup() { |
125 |
if use server ; then |
126 |
SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd" |
127 |
BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit |
128 |
bin/profiles bin/sharesec bin/eventlogadm bin/smbta-util" |
129 |
|
130 |
use swat && SBINPROGS="${SBINPROGS} bin/swat" |
131 |
use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" |
132 |
use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator" |
133 |
fi |
134 |
|
135 |
if use client ; then |
136 |
BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree |
137 |
bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas |
138 |
bin/ntlm_auth" |
139 |
|
140 |
fi |
141 |
|
142 |
use cups && BINPROGS="${BINPROGS} bin/smbspool" |
143 |
use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; |
144 |
|
145 |
if use winbind ; then |
146 |
BINPROGS="${BINPROGS} bin/wbinfo" |
147 |
SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash" |
148 |
use ads && SHAREDMODS="${SHAREDMODS},idmap_ad" |
149 |
use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex" |
150 |
fi |
151 |
|
152 |
if use winbind && |
153 |
[[ $(tc-getCC)$ == *gcc* ]] && |
154 |
[[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] |
155 |
then |
156 |
eerror "It is a known issue that ${P} will not build with " |
157 |
eerror "winbind use flag enabled when using gcc < 4.3 ." |
158 |
eerror "Please use at least the latest stable gcc version." |
159 |
die "Using sys-devel/gcc < 4.3 with winbind use flag." |
160 |
fi |
161 |
} |
162 |
|
163 |
src_prepare() { |
164 |
cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk" |
165 |
|
166 |
# ensure that winbind has correct ldflags (QA notice) |
167 |
sed -i \ |
168 |
-e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ |
169 |
configure || die "sed failed" |
170 |
cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/smb.conf.default.patch |
171 |
} |
172 |
|
173 |
src_configure() { |
174 |
local myconf |
175 |
|
176 |
# Filter out -fPIE |
177 |
[[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie" |
178 |
|
179 |
# Upstream refuses to make this configurable |
180 |
use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no |
181 |
|
182 |
# Notes: |
183 |
# - automount is only needed in conjunction with NIS and we don't have that |
184 |
# anymore => LDAP? |
185 |
# - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default |
186 |
econf ${myconf} \ |
187 |
--with-piddir=/var/run/samba \ |
188 |
--sysconfdir=/etc/samba \ |
189 |
--localstatedir=/var \ |
190 |
$(use_enable debug developer) \ |
191 |
--enable-largefile \ |
192 |
--enable-socket-wrapper \ |
193 |
--enable-nss-wrapper \ |
194 |
$(use_enable swat) \ |
195 |
$(use_enable debug dmalloc) \ |
196 |
$(use_enable cups) \ |
197 |
--disable-iprint \ |
198 |
$(use_enable fam) \ |
199 |
--enable-shared-libs \ |
200 |
--disable-dnssd \ |
201 |
$(use_enable avahi) \ |
202 |
--with-fhs \ |
203 |
--with-privatedir=/var/lib/samba/private \ |
204 |
--with-rootsbindir=/var/cache/samba \ |
205 |
--with-lockdir=/var/cache/samba \ |
206 |
--with-swatdir=/usr/share/doc/${PF}/swat \ |
207 |
--with-configdir=/etc/samba \ |
208 |
--with-logfilebase=/var/log/samba \ |
209 |
--with-pammodulesdir=$(getpam_mod_dir) \ |
210 |
--without-afs \ |
211 |
--without-fake-kaserver \ |
212 |
--without-vfs-afsacl \ |
213 |
$(use_with ldap) \ |
214 |
$(use_with ads) \ |
215 |
$(use_with ads krb5 /usr) \ |
216 |
$(use_with ads dnsupdate) \ |
217 |
--without-automount \ |
218 |
$(use_with pam) \ |
219 |
$(use_with pam pam_smbpass) \ |
220 |
$(use_with syslog) \ |
221 |
$(use_with quota quotas) \ |
222 |
$(use_with quota sys-quotas) \ |
223 |
--without-utmp \ |
224 |
--without-lib{talloc,tdb} \ |
225 |
$(use_with netapi libnetapi) \ |
226 |
$(use_with smbclient libsmbclient) \ |
227 |
$(use_with smbsharemodes libsmbsharemodes) \ |
228 |
$(use_with addns libaddns) \ |
229 |
$(use_with cluster ctdb /usr) \ |
230 |
$(use_with cluster cluster-support) \ |
231 |
$(use_with acl acl-support) \ |
232 |
$(use_with aio aio-support) \ |
233 |
--with-sendfile-support \ |
234 |
$(use_with winbind) \ |
235 |
--with-shared-modules=${SHAREDMODS} \ |
236 |
--without-included-popt \ |
237 |
--without-included-iniparser |
238 |
} |
239 |
|
240 |
src_compile() { |
241 |
# compile libs |
242 |
if use addns ; then |
243 |
einfo "make addns library" |
244 |
emake libaddns |
245 |
fi |
246 |
if use netapi ; then |
247 |
einfo "make netapi library" |
248 |
emake libnetapi |
249 |
fi |
250 |
if use smbclient ; then |
251 |
einfo "make smbclient library" |
252 |
emake libsmbclient |
253 |
fi |
254 |
if use smbsharemodes ; then |
255 |
einfo "make smbsharemodes library" |
256 |
emake libsmbsharemodes |
257 |
fi |
258 |
|
259 |
# compile modules |
260 |
emake modules |
261 |
|
262 |
# compile pam moudles |
263 |
if use pam ; then |
264 |
einfo "make pam modules" |
265 |
emake pam_modules |
266 |
fi |
267 |
|
268 |
# compile winbind nss modules |
269 |
if use winbind ; then |
270 |
einfo "make nss modules" |
271 |
emake nss_modules |
272 |
fi |
273 |
|
274 |
# compile utilities |
275 |
if [ -n "${BINPROGS}" ] ; then |
276 |
einfo "make binprogs" |
277 |
emake ${BINPROGS} |
278 |
fi |
279 |
if [ -n "${SBINPROGS}" ] ; then |
280 |
einfo "make sbinprogs" |
281 |
emake ${SBINPROGS} |
282 |
fi |
283 |
|
284 |
if [ -n "${KRBPLUGIN}" ] ; then |
285 |
einfo "make krbplugin" |
286 |
emake ${KRBPLUGIN}${PLUGINEXT} |
287 |
fi |
288 |
|
289 |
} |
290 |
|
291 |
src_install() { |
292 |
# install libs |
293 |
if use addns ; then |
294 |
einfo "install addns library" |
295 |
emake installlibaddns DESTDIR="${D}" |
296 |
fi |
297 |
if use netapi ; then |
298 |
einfo "install netapi library" |
299 |
emake installlibnetapi DESTDIR="${D}" |
300 |
fi |
301 |
if use smbclient ; then |
302 |
einfo "install smbclient library" |
303 |
emake installlibsmbclient DESTDIR="${D}" |
304 |
fi |
305 |
if use smbsharemodes ; then |
306 |
einfo "install smbsharemodes library" |
307 |
emake installlibsmbsharemodes DESTDIR="${D}" |
308 |
fi |
309 |
|
310 |
# install modules |
311 |
emake installmodules DESTDIR="${D}" |
312 |
|
313 |
if use pam ; then |
314 |
einfo "install pam modules" |
315 |
emake installpammodules DESTDIR="${D}" |
316 |
|
317 |
if use winbind ; then |
318 |
newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
319 |
doman ../docs/manpages/pam_winbind.8 |
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 "The default value of 'wide links' has been changed to 'no' in samba 3.5" |
459 |
elog "to avoid an insecure default configuration" |
460 |
elog "('wide links = yes' and 'unix extensions = yes'). For more details," |
461 |
elog "please see http://www.samba.org/samba/news/symlink_attack.html ." |
462 |
elog "" |
463 |
elog "An EXPERIMENTAL implementation of the SMB2 protocol has been added." |
464 |
elog "SMB2 can be enabled by setting 'max protocol = smb2'. SMB2 is a new " |
465 |
elog "implementation of the SMB protocol used by Windows Vista and higher" |
466 |
elog "" |
467 |
elog "For further information make sure to read the release notes at" |
468 |
elog "http://samba.org/samba/history/${P}.html and " |
469 |
elog "http://samba.org/samba/history/${PN}-3.5.0.html" |
470 |
} |