Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/samba: ChangeLog samba-3.4.6.ebuild metadata.xml
Date: Fri, 26 Feb 2010 20:11:28
Message-Id: E1Nl6Ww-0006FP-W7@stork.gentoo.org
1 patrick 10/02/26 20:11:22
2
3 Modified: ChangeLog metadata.xml
4 Added: samba-3.4.6.ebuild
5 Log:
6 Adding unsplit 3.4 ebuild
7 (Portage version: 2.2_rc63/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.401 net-fs/samba/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.401&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?rev=1.401&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/ChangeLog?r1=1.400&r2=1.401
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v
19 retrieving revision 1.400
20 retrieving revision 1.401
21 diff -u -r1.400 -r1.401
22 --- ChangeLog 23 Feb 2010 12:19:03 -0000 1.400
23 +++ ChangeLog 26 Feb 2010 20:11:21 -0000 1.401
24 @@ -1,6 +1,16 @@
25 # ChangeLog for net-fs/samba
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.400 2010/02/23 12:19:03 dagger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.401 2010/02/26 20:11:21 patrick Exp $
29 +
30 +*samba-3.4.6 (26 Feb 2010)
31 +
32 + 26 Feb 2010; Patrick Lauer <patrick@g.o>
33 + +files/samba-3.4.2-lib.tevent.python.mk, +files/3.4/lmhosts,
34 + +files/3.4/nsswitch.conf-winbind, +files/3.4/nsswitch.conf-wins,
35 + +files/3.4/samba.confd, +files/3.4/samba.initd, +files/3.4/samba.pam,
36 + +files/3.4/smb.conf.default, +samba-3.4.6.ebuild, +files/3.4/smbusers,
37 + +files/3.4/swat.xinetd, +files/3.4/system-auth-winbind.pam, metadata.xml:
38 + Adding unsplit 3.4 ebuild
39
40 23 Feb 2010; Robert Piasek <dagger@g.o> samba-4.0.0_alpha11.ebuild:
41 We need emake installpc to install PKG-CONFIG files
42
43
44
45 1.10 net-fs/samba/metadata.xml
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?rev=1.10&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?rev=1.10&content-type=text/plain
49 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/metadata.xml?r1=1.9&r2=1.10
50
51 Index: metadata.xml
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/metadata.xml,v
54 retrieving revision 1.9
55 retrieving revision 1.10
56 diff -u -r1.9 -r1.10
57 --- metadata.xml 23 Feb 2010 09:50:58 -0000 1.9
58 +++ metadata.xml 26 Feb 2010 20:11:21 -0000 1.10
59 @@ -23,5 +23,12 @@
60 <flag name="netapi">Enable building of netapi bits</flag>
61 <flag name="tools">Enable extra tools</flag>
62 <flag name="dso">Enable dso support</flag>
63 + <flag name="addns">Enable AD DNS integration</flag>
64 + <flag name="aio">Enable asynchronous IO support</flag>
65 + <flag name="cluster">Enable support for clustering</flag>
66 + <flag name="ldb">Enable the ldb tools</flag>
67 + <flag name="quota">Enables support for user quotas</flag>
68 + <flag name="smbclient">Enable smbclient tool</flag>
69 + <flag name="smbsharemodes">Enable special smb share modes (?) </flag>
70 </use>
71 </pkgmetadata>
72
73
74
75 1.1 net-fs/samba/samba-3.4.6.ebuild
76
77 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-3.4.6.ebuild?rev=1.1&view=markup
78 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba-3.4.6.ebuild?rev=1.1&content-type=text/plain
79
80 Index: samba-3.4.6.ebuild
81 ===================================================================
82 # Copyright 1999-2010 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.4.6.ebuild,v 1.1 2010/02/26 20:11:21 patrick Exp $
85
86 EAPI="2"
87
88 inherit pam confutils versionator multilib
89
90 MY_PV=${PV/_/}
91 MY_P="${PN}-${MY_PV}"
92
93 DESCRIPTION="Library bits of the samba network filesystem"
94 HOMEPAGE="http://www.samba.org/"
95 SRC_URI="mirror://samba/${P}.tar.gz"
96 LICENSE="GPL-3"
97 SLOT="0"
98 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
99 IUSE="acl addns ads aio avahi caps +client cluster cups debug doc examples fam
100 ldap ldb +netapi pam quota +readline +server +smbclient smbsharemodes swat
101 syslog winbind "
102
103 DEPEND="dev-libs/popt
104 !net-fs/samba-client
105 !net-fs/samba-libs
106 !net-fs/samba-server
107 sys-libs/talloc
108 sys-libs/tdb
109 virtual/libiconv
110 ads? ( virtual/krb5 sys-fs/e2fsprogs
111 client? ( sys-apps/keyutils ) )
112 avahi? ( net-dns/avahi )
113 caps? ( sys-libs/libcap )
114 client? ( !net-fs/mount-cifs
115 dev-libs/iniparser )
116 cluster? ( dev-db/ctdb )
117 cups? ( net-print/cups )
118 debug? ( dev-libs/dmalloc )
119 fam? ( dev-libs/libgamin )
120 ldap? ( net-nds/openldap )
121 pam? ( virtual/pam
122 winbind? ( dev-libs/iniparser ) )
123 readline? ( >=sys-libs/readline-5.2 )
124 syslog? ( virtual/logger )"
125
126 RDEPEND="${DEPEND}"
127
128 # Disable tests since we don't want to build that much here
129 RESTRICT="test"
130
131 SBINPROGS=""
132 BINPROGS=""
133
134 if use server ; then
135 SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd"
136 BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
137 bin/profiles bin/sharesec bin/eventlogadm"
138
139 use swat && SBINPROGS="${SBINPROGS} bin/swat"
140 use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
141 use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator"
142 fi
143
144 if use client ; then
145 BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree
146 bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas
147 bin/ntlm_auth"
148
149 use ads && SBINPROGS="${SBINPROGS} bin/cifs.upcall"
150 fi
151
152 use cups && BINPROGS="${BINPROGS} bin/smbspool"
153 use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename";
154 use winbind && BINPROGS="${BINPROGS} bin/wbinfo"
155
156 S="${WORKDIR}/${MY_P}/source3"
157
158 # TODO:
159 # - enable iPrint on Prefix/OSX and Darwin?
160 # - selftest-prefix? selftest?
161 # - AFS?
162
163 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
164
165 pkg_setup() {
166 confutils_use_depend_all ads ldap
167 confutils_use_depend_all swat server
168 }
169
170 src_prepare() {
171 cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk"
172
173 # ensure that winbind has correct ldflags (QA notice)
174 sed -i \
175 -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
176 configure || die "sed failed"
177 }
178
179 src_configure() {
180 local myconf
181
182 # Filter out -fPIE
183 [[ ${CHOST} == *-*bsd* ]] || use hppa && myconf="${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 # use_with doesn't accept 2 USE-flags
189 if use client && use ads ; then
190 myconf="${myconf} --with-cifsupcall"
191 else
192 myconf="${myconf} --without-cifsupcall"
193 fi
194
195 # Notes:
196 # - automount is only needed in conjunction with NIS and we don't have that
197 # anymore => LDAP?
198 # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
199 econf ${myconf} \
200 --with-piddir=/var/run/samba \
201 --sysconfdir=/etc/samba \
202 --localstatedir=/var \
203 $(use_enable debug developer) \
204 --enable-largefile \
205 --enable-socket-wrapper \
206 --enable-nss-wrapper \
207 $(use_enable swat) \
208 $(use_enable debug dmalloc) \
209 $(use_enable cups) \
210 --disable-iprint \
211 $(use_enable fam) \
212 --enable-shared-libs \
213 --disable-dnssd \
214 $(use_enable avahi) \
215 --with-fhs \
216 --with-privatedir=/var/lib/samba/private \
217 --with-rootsbindir=/var/cache/samba \
218 --with-lockdir=/var/cache/samba \
219 --with-swatdir=/usr/share/doc/${PF}/swat \
220 --with-configdir=/etc/samba \
221 --with-logfilebase=/var/log/samba \
222 --with-pammodulesdir=$(getpam_mod_dir) \
223 --without-afs \
224 --without-fake-kaserver \
225 --without-vfs-afsacl \
226 $(use_with ldap) \
227 $(use_with ads) \
228 $(use_with ads krb5 /usr) \
229 $(use_with ads dnsupdate) \
230 --without-automount \
231 $(use_with client cifsmount) \
232 $(use_with pam) \
233 $(use_with pam pam_smbpass) \
234 $(use_with syslog) \
235 $(use_with quota quotas) \
236 $(use_with quota sys-quotas) \
237 --without-utmp \
238 --without-lib{talloc,tdb} \
239 $(use_with netapi libnetapi) \
240 $(use_with smbclient libsmbclient) \
241 $(use_with smbsharemodes libsmbsharemodes) \
242 $(use_with addns libaddns) \
243 $(use_with cluster ctdb /usr) \
244 $(use_with cluster cluster-support) \
245 $(use_with acl acl-support) \
246 $(use_with aio aio-support) \
247 --with-sendfile-support \
248 $(use_with winbind) \
249 --without-included-popt \
250 --without-included-iniparser
251 }
252
253 src_compile() {
254 # compile libs
255 if use addns ; then
256 einfo "make addns library"
257 emake libaddns || die "emake libaddns failed"
258 fi
259 if use netapi ; then
260 einfo "make netapi library"
261 emake libnetapi || die "emake libnetapi failed"
262 fi
263 if use smbclient ; then
264 einfo "make smbclient library"
265 emake libsmbclient || die "emake libsmbclient failed"
266 fi
267 if use smbsharemodes ; then
268 einfo "make smbsharemodes library"
269 emake libsmbsharemodes || die "emake libsmbsharemodes failed"
270 fi
271
272 # compile modules
273 emake modules || die "building modules failed"
274
275 # compile pam moudles
276 if use pam ; then
277 einfo "make pam modules"
278 emake pam_modules || die "emake pam_modules failed";
279 fi
280
281 # compile winbind nss modules
282 if use winbind ; then
283 einfo "make nss modules"
284 emake nss_modules || die "emake nss_modules failed";
285 fi
286
287 # compile utilities
288 if [ -n "${BINPROGS}" ] ; then
289 einfo "make binprogs"
290 emake ${BINPROGS} || die "emake binprogs failed";
291 fi
292 if [ -n "${SBINPROGS}" ] ; then
293 einfo "make sbinprogs"
294 emake ${SBINPROGS} || die "emake sbinprogs failed";
295 fi
296
297 if use client ; then
298 einfo "make {,u}mount.cifs"
299 emake bin/{,u}mount.cifs || die "emake {,u}mount.cifs failed"
300 fi
301 }
302
303 src_install() {
304 # install libs
305 if use addns ; then
306 einfo "install addns library"
307 emake installlibaddns DESTDIR="${D}" || die "emake install libaddns failed"
308 fi
309 if use netapi ; then
310 einfo "install netapi library"
311 emake installlibnetapi DESTDIR="${D}" || die "emake install libnetapi failed"
312 fi
313 if use smbclient ; then
314 einfo "install smbclient library"
315 emake installlibsmbclient DESTDIR="${D}" || die "emake install libsmbclient failed"
316 fi
317 if use smbsharemodes ; then
318 einfo "install smbsharemodes library"
319 emake installlibsmbsharemodes DESTDIR="${D}" || die "emake install libsmbsharemodes failed"
320 fi
321
322 # install modules
323 emake installmodules DESTDIR="${D}" || die "installing modules failed"
324
325 if use pam ; then
326 einfo "install pam modules"
327 emake installpammodules DESTDIR="${D}" || die "emake installpammodules failed"
328
329 if use winbind ; then
330 newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
331 doman ../docs/manpages/pam_winbind.8
332 fi
333
334 newpamd "${CONFDIR}/samba.pam" samba
335 dodoc pam_smbpass/README
336 fi
337
338 # Nsswitch extensions. Make link for wins and winbind resolvers
339 if use winbind ; then
340 einfo "install libwbclient"
341 emake installlibwbclient DESTDIR="${D}" || die "emake installlibwbclient failed"
342 dolib.so ../nsswitch/libnss_wins.so
343 dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2
344 dolib.so ../nsswitch/libnss_winbind.so
345 dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2
346 fi
347
348 # install binaries
349 insinto /usr
350 for prog in ${SBINPROGS} ; do
351 dosbin ${prog} || die "installing ${prog} failed"
352 doman ../docs/manpages/${prog/bin\/}* || die "doman failed"
353 done
354 dobin ${BINPROGS} || die "installing binaries failed"
355 for prog in ${BINPROGS} ; do
356 dobin ${prog} || die "installing ${prog} failed"
357 doman ../docs/manpages/${prog/bin\/}* || die "doman failed"
358 done
359
360 # install server components
361 if use server ; then
362 doman ../docs/manpages/vfs* ../docs/manpages/samba.7
363
364 diropts -m0700
365 keepdir /var/lib/samba/private
366
367 diropts -m1777
368 keepdir /var/spool/samba
369
370 diropts -m0755
371 keepdir /var/{cache,log}/samba
372 keepdir /var/lib/samba/{netlogon,profiles}
373 keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
374 keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
375
376 newconfd "${CONFDIR}/samba.confd" samba
377 newinitd "${CONFDIR}/samba.initd" samba
378
379 insinto /etc/samba
380 doins "${CONFDIR}"/{smbusers,lmhosts}
381
382 if use ldap ; then
383 insinto /etc/openldap/schema
384 doins ../examples/LDAP/samba.schema
385 fi
386
387 if use swat ; then
388 insinto /etc/xinetd.d
389 newins "${CONFDIR}/swat.xinetd" swat
390 script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}" \
391 || die "installing swat failed"
392 fi
393
394 dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
395 fi
396
397 # install client files ({u,}mount.cifs into /)
398 if use client ; then
399 into /
400 dosbin bin/{u,}mount.cifs || die "u/mount.cifs not around"
401 doman ../docs/manpages/{u,}mount.cifs.8 || die "can't create man pages"
402 fi
403
404 # install the spooler to cups
405 use cups && dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb
406
407 # install misc files
408 insinto /etc/samba
409 doins "${CONFDIR}"/smb.conf.default
410 doman ../docs/manpages/smb.conf.5
411
412 insinto /usr/"$(get_libdir)"/samba
413 doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
414
415 # install docs
416 if use doc ; then
417 dohtml -r ../docs/htmldocs/*
418 dodoc ../docs/*.pdf
419 fi
420
421 # install examples
422 if use examples ; then
423 einfo "install examples"
424 insinto /usr/share/doc/${PF}/examples
425
426 if use smbclient ; then
427 doins -r ../examples/libsmbclient
428 fi
429
430 if use winbind ; then
431 doins -r ../examples/pam_winbind ../examples/nss
432 fi
433
434 if use server ; then
435 doins -r \
436 auth autofs dce-dfs LDAP logon misc pdb perfcounter \
437 printer-accounting 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 }