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