1 |
vostorga 11/05/04 14:08:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: samba-3.4.13.ebuild |
5 |
Removed: samba-3.5.7.ebuild samba-3.4.9.ebuild |
6 |
Log: |
7 |
Version bump to 3.4.13, cleaning up old ebuilds |
8 |
|
9 |
(Portage version: 2.1.9.42/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.469 net-fs/samba/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.469&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.469&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?r1=1.468&r2=1.469 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v |
21 |
retrieving revision 1.468 |
22 |
retrieving revision 1.469 |
23 |
diff -u -r1.468 -r1.469 |
24 |
--- ChangeLog 3 May 2011 15:26:29 -0000 1.468 |
25 |
+++ ChangeLog 4 May 2011 14:08:27 -0000 1.469 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-fs/samba |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.468 2011/05/03 15:26:29 scarabeus Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.469 2011/05/04 14:08:27 vostorga Exp $ |
31 |
+ |
32 |
+*samba-3.4.13 (04 May 2011) |
33 |
+ |
34 |
+ 04 May 2011; Víctor Ostorga <vostorga@g.o> -samba-3.4.9.ebuild, |
35 |
+ +samba-3.4.13.ebuild, -samba-3.5.7.ebuild: |
36 |
+ Version bump to 3.4.13, cleaning up old ebuilds |
37 |
|
38 |
03 May 2011; Tomáš Chvátal <scarabeus@g.o> samba-3.5.8-r1.ebuild: |
39 |
Migrate to eapi4 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-fs/samba/samba-3.4.13.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-3.4.13.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-3.4.13.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: samba-3.4.13.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.4.13.ebuild,v 1.1 2011/05/04 14:08:27 vostorga Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
|
56 |
inherit pam confutils versionator multilib |
57 |
|
58 |
MY_PV=${PV/_/} |
59 |
MY_P="${PN}-${MY_PV}" |
60 |
|
61 |
DESCRIPTION="Library bits of the samba network filesystem" |
62 |
HOMEPAGE="http://www.samba.org/" |
63 |
SRC_URI="mirror://samba/${P}.tar.gz" |
64 |
LICENSE="GPL-3" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~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 swat |
69 |
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 ) |
82 |
caps? ( sys-libs/libcap ) |
83 |
client? ( !net-fs/mount-cifs |
84 |
dev-libs/iniparser ) |
85 |
cluster? ( dev-db/ctdb ) |
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 |
readline? ( >=sys-libs/readline-5.2 ) |
93 |
syslog? ( virtual/logger )" |
94 |
|
95 |
RDEPEND="${DEPEND}" |
96 |
|
97 |
# Disable tests since we don't want to build that much here |
98 |
RESTRICT="test" |
99 |
|
100 |
SBINPROGS="" |
101 |
BINPROGS="" |
102 |
|
103 |
if use server ; then |
104 |
SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd" |
105 |
BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit |
106 |
bin/profiles bin/sharesec bin/eventlogadm" |
107 |
|
108 |
use swat && SBINPROGS="${SBINPROGS} bin/swat" |
109 |
use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" |
110 |
use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator" |
111 |
fi |
112 |
|
113 |
if use client ; then |
114 |
BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree |
115 |
bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas |
116 |
bin/ntlm_auth" |
117 |
|
118 |
use ads && SBINPROGS="${SBINPROGS} bin/cifs.upcall" |
119 |
fi |
120 |
|
121 |
use cups && BINPROGS="${BINPROGS} bin/smbspool" |
122 |
use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; |
123 |
|
124 |
if use winbind ; then |
125 |
BINPROGS="${BINPROGS} bin/wbinfo" |
126 |
mymod_shared="--with-shared-modules=idmap_rid,idmap_hash" |
127 |
use ldap && mymod_shared="${mymod_shared},idmap_adex,idmap_ldap" |
128 |
use ads && mymod_shared="${mymod_shared},idmap_ad" |
129 |
fi |
130 |
|
131 |
S="${WORKDIR}/${MY_P}/source3" |
132 |
|
133 |
# TODO: |
134 |
# - enable iPrint on Prefix/OSX and Darwin? |
135 |
# - selftest-prefix? selftest? |
136 |
# - AFS? |
137 |
|
138 |
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
139 |
|
140 |
pkg_setup() { |
141 |
if use winbind && |
142 |
[[ $(tc-getCC)$ == *gcc* ]] && |
143 |
[[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] |
144 |
then |
145 |
eerror "It is a known issue that ${P} will not build with " |
146 |
eerror "winbind use flag enabled when using gcc < 4.3 ." |
147 |
eerror "Please use at least the latest stable gcc version." |
148 |
die "Using sys-devel/gcc < 4.3 with winbind use flag." |
149 |
fi |
150 |
|
151 |
confutils_use_depend_all ads ldap |
152 |
confutils_use_depend_all swat server |
153 |
confutils_use_depend_all client netapi |
154 |
} |
155 |
|
156 |
src_prepare() { |
157 |
cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk" |
158 |
|
159 |
# ensure that winbind has correct ldflags (QA notice) |
160 |
sed -i \ |
161 |
-e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ |
162 |
configure || die "sed failed" |
163 |
|
164 |
epatch "${CONFDIR}"/${PN}-3.4.9-kerberos-dummy.patch |
165 |
} |
166 |
|
167 |
src_configure() { |
168 |
local myconf |
169 |
|
170 |
# Filter out -fPIE |
171 |
[[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie" |
172 |
|
173 |
# Upstream refuses to make this configurable |
174 |
use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no |
175 |
|
176 |
# use_with doesn't accept 2 USE-flags |
177 |
if use client && use ads ; then |
178 |
myconf="${myconf} --with-cifsupcall" |
179 |
else |
180 |
myconf="${myconf} --without-cifsupcall" |
181 |
fi |
182 |
|
183 |
# Notes: |
184 |
# - automount is only needed in conjunction with NIS and we don't have that |
185 |
# anymore => LDAP? |
186 |
# - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default |
187 |
econf ${myconf} \ |
188 |
--with-piddir=/var/run/samba \ |
189 |
--sysconfdir=/etc/samba \ |
190 |
--localstatedir=/var \ |
191 |
$(use_enable debug developer) \ |
192 |
--enable-largefile \ |
193 |
--enable-socket-wrapper \ |
194 |
--enable-nss-wrapper \ |
195 |
$(use_enable swat) \ |
196 |
$(use_enable debug dmalloc) \ |
197 |
$(use_enable cups) \ |
198 |
--disable-iprint \ |
199 |
$(use_enable fam) \ |
200 |
--enable-shared-libs \ |
201 |
--disable-dnssd \ |
202 |
$(use_enable avahi) \ |
203 |
--with-fhs \ |
204 |
--with-privatedir=/var/lib/samba/private \ |
205 |
--with-rootsbindir=/var/cache/samba \ |
206 |
--with-lockdir=/var/cache/samba \ |
207 |
--with-swatdir=/usr/share/doc/${PF}/swat \ |
208 |
--with-configdir=/etc/samba \ |
209 |
--with-logfilebase=/var/log/samba \ |
210 |
--with-pammodulesdir=$(getpam_mod_dir) \ |
211 |
--without-afs \ |
212 |
--without-fake-kaserver \ |
213 |
--without-vfs-afsacl \ |
214 |
$(use_with ldap) \ |
215 |
$(use_with ads) \ |
216 |
$(use_with ads krb5 /usr) \ |
217 |
$(use_with ads dnsupdate) \ |
218 |
--without-automount \ |
219 |
$(use_with client cifsmount) \ |
220 |
$(use_with pam) \ |
221 |
$(use_with pam pam_smbpass) \ |
222 |
$(use_with syslog) \ |
223 |
$(use_with quota quotas) \ |
224 |
$(use_with quota sys-quotas) \ |
225 |
--without-utmp \ |
226 |
--without-lib{talloc,tdb} \ |
227 |
$(use_with netapi libnetapi) \ |
228 |
$(use_with smbclient libsmbclient) \ |
229 |
$(use_with smbsharemodes libsmbsharemodes) \ |
230 |
$(use_with addns libaddns) \ |
231 |
$(use_with cluster ctdb /usr) \ |
232 |
$(use_with cluster cluster-support) \ |
233 |
$(use_with acl acl-support) \ |
234 |
$(use_with aio aio-support) \ |
235 |
--with-sendfile-support \ |
236 |
$(use_with winbind) \ |
237 |
${mymod_shared} \ |
238 |
--without-included-popt \ |
239 |
--without-included-iniparser |
240 |
} |
241 |
|
242 |
src_compile() { |
243 |
# compile libs |
244 |
if use addns ; then |
245 |
einfo "make addns library" |
246 |
emake libaddns || die "emake libaddns failed" |
247 |
fi |
248 |
if use netapi ; then |
249 |
einfo "make netapi library" |
250 |
emake libnetapi || die "emake libnetapi failed" |
251 |
fi |
252 |
if use smbclient ; then |
253 |
einfo "make smbclient library" |
254 |
emake libsmbclient || die "emake libsmbclient failed" |
255 |
fi |
256 |
if use smbsharemodes ; then |
257 |
einfo "make smbsharemodes library" |
258 |
emake libsmbsharemodes || die "emake libsmbsharemodes failed" |
259 |
fi |
260 |
|
261 |
# compile modules |
262 |
emake modules || die "building modules failed" |
263 |
|
264 |
# compile pam moudles |
265 |
if use pam ; then |
266 |
einfo "make pam modules" |
267 |
emake pam_modules || die "emake pam_modules failed"; |
268 |
fi |
269 |
|
270 |
# compile winbind nss modules |
271 |
if use winbind ; then |
272 |
einfo "make nss modules" |
273 |
emake nss_modules || die "emake nss_modules failed"; |
274 |
fi |
275 |
|
276 |
# compile utilities |
277 |
if [ -n "${BINPROGS}" ] ; then |
278 |
einfo "make binprogs" |
279 |
emake ${BINPROGS} || die "emake binprogs failed"; |
280 |
fi |
281 |
if [ -n "${SBINPROGS}" ] ; then |
282 |
einfo "make sbinprogs" |
283 |
emake ${SBINPROGS} || die "emake sbinprogs failed"; |
284 |
fi |
285 |
|
286 |
if use client ; then |
287 |
einfo "make {,u}mount.cifs" |
288 |
emake bin/{,u}mount.cifs || die "emake {,u}mount.cifs failed" |
289 |
fi |
290 |
} |
291 |
|
292 |
src_install() { |
293 |
# install libs |
294 |
if use addns ; then |
295 |
einfo "install addns library" |
296 |
emake installlibaddns DESTDIR="${D}" || die "emake install libaddns failed" |
297 |
fi |
298 |
if use netapi ; then |
299 |
einfo "install netapi library" |
300 |
emake installlibnetapi DESTDIR="${D}" || die "emake install libnetapi failed" |
301 |
fi |
302 |
if use smbclient ; then |
303 |
einfo "install smbclient library" |
304 |
emake installlibsmbclient DESTDIR="${D}" || die "emake install libsmbclient failed" |
305 |
fi |
306 |
if use smbsharemodes ; then |
307 |
einfo "install smbsharemodes library" |
308 |
emake installlibsmbsharemodes DESTDIR="${D}" || die "emake install libsmbsharemodes failed" |
309 |
fi |
310 |
|
311 |
# install modules |
312 |
emake installmodules DESTDIR="${D}" || die "installing modules failed" |
313 |
|
314 |
if use pam ; then |
315 |
einfo "install pam modules" |
316 |
emake installpammodules DESTDIR="${D}" || die "emake installpammodules failed" |
317 |
|
318 |
if use winbind ; then |
319 |
newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
320 |
doman ../docs/manpages/pam_winbind.8 |
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}" || die "emake installlibwbclient failed" |
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} || die "installing ${prog} failed" |
351 |
doman ../docs/manpages/${prog/bin\/}* || die "doman failed" |
352 |
done |
353 |
|
354 |
for prog in ${BINPROGS} ; do |
355 |
dobin ${prog} || die "installing ${prog} failed" |
356 |
doman ../docs/manpages/${prog/bin\/}* || die "doman failed" |
357 |
done |
358 |
|
359 |
# install server components |
360 |
if use server ; then |
361 |
doman ../docs/manpages/vfs* ../docs/manpages/samba.7 |
362 |
|
363 |
diropts -m0700 |
364 |
keepdir /var/lib/samba/private |
365 |
|
366 |
diropts -m1777 |
367 |
keepdir /var/spool/samba |
368 |
|
369 |
diropts -m0755 |
370 |
keepdir /var/{cache,log}/samba |
371 |
keepdir /var/lib/samba/{netlogon,profiles} |
372 |
keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR} |
373 |
keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext} |
374 |
|
375 |
newconfd "${CONFDIR}/samba.confd" samba |
376 |
newinitd "${CONFDIR}/samba.initd" samba |
377 |
|
378 |
insinto /etc/samba |
379 |
doins "${CONFDIR}"/{smbusers,lmhosts} |
380 |
|
381 |
if use ldap ; then |
382 |
insinto /etc/openldap/schema |
383 |
doins ../examples/LDAP/samba.schema |
384 |
fi |
385 |
|
386 |
if use swat ; then |
387 |
insinto /etc/xinetd.d |
388 |
newins "${CONFDIR}/swat.xinetd" swat |
389 |
script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}" \ |
390 |
|| die "installing swat failed" |
391 |
fi |
392 |
|
393 |
dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS |
394 |
fi |
395 |
|
396 |
# install client files ({u,}mount.cifs into /) |
397 |
if use client ; then |
398 |
into / |
399 |
dosbin bin/{u,}mount.cifs || die "u/mount.cifs not around" |
400 |
doman ../docs/manpages/{u,}mount.cifs.8 || die "can't create man pages" |
401 |
fi |
402 |
|
403 |
# install the spooler to cups |
404 |
use cups && dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb |
405 |
|
406 |
# install misc files |
407 |
insinto /etc/samba |
408 |
doins "${CONFDIR}"/smb.conf.default |
409 |
doman ../docs/manpages/smb.conf.5 |
410 |
|
411 |
insinto /usr/"$(get_libdir)"/samba |
412 |
doins ../codepages/{valid.dat,upcase.dat,lowcase.dat} |
413 |
|
414 |
# install docs |
415 |
if use doc ; then |
416 |
dohtml -r ../docs/htmldocs/* |
417 |
dodoc ../docs/*.pdf |
418 |
fi |
419 |
|
420 |
# install examples |
421 |
if use examples ; then |
422 |
einfo "install examples" |
423 |
insinto /usr/share/doc/${PF}/examples |
424 |
|
425 |
if use smbclient ; then |
426 |
doins -r ../examples/libsmbclient |
427 |
fi |
428 |
|
429 |
if use winbind ; then |
430 |
doins -r ../examples/pam_winbind ../examples/nss |
431 |
fi |
432 |
|
433 |
if use server ; then |
434 |
doins -r \ |
435 |
../examples/{auth,autofs,dce-dfs,LDAP,logon,misc} \ |
436 |
../examples/{pdb,perfcounter,printer-accounting} \ |
437 |
../examples/{printing,scripts,tridge,validchars,VFS} |
438 |
fi |
439 |
fi |
440 |
|
441 |
# Remove empty installation directories |
442 |
rmdir --ignore-fail-on-non-empty \ |
443 |
"${D}/usr/$(get_libdir)/samba" \ |
444 |
"${D}/usr"/{sbin,bin} \ |
445 |
"${D}/usr/share"/{man,locale,} \ |
446 |
"${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ |
447 |
# || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" |
448 |
} |
449 |
|
450 |
pkg_postinst() { |
451 |
elog "The default passdb backend has been changed to 'tdbsam' in samba 3.4!" |
452 |
elog "That breaks existing setups using the 'smbpasswd' backend without" |
453 |
elog "explicit declaration!" |
454 |
elog "Please use 'passdb backend = smbpasswd' if you would like to stick to the" |
455 |
elog "'smbpasswd' backend or convert your smbpasswd entries using e.g. " |
456 |
elog "'pdbedit -i smbpasswd -e tdbsam'." |
457 |
elog "For further information make sure to read the release notes at" |
458 |
elog "http://samba.org/samba/history/${P}.html and " |
459 |
elog "http://samba.org/samba/history/${PN}-3.4.0.html" |
460 |
} |