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