Lines 273-278
Link Here
|
273 |
fi |
273 |
fi |
274 |
|
274 |
|
275 |
# install binaries |
275 |
# install binaries |
|
|
276 |
einfo "install binaries" |
276 |
insinto /usr |
277 |
insinto /usr |
277 |
for prog in ${SBINPROGS} ; do |
278 |
for prog in ${SBINPROGS} ; do |
278 |
dosbin ${prog} || die "installing ${prog} failed" |
279 |
dosbin ${prog} || die "installing ${prog} failed" |
Lines 285-305
Link Here
|
285 |
done |
286 |
done |
286 |
|
287 |
|
287 |
# install krbplugin |
288 |
# install krbplugin |
288 |
if has_version app-crypt/mit-krb5 ; then |
289 |
if [ -n "${KRBPLUGIN}" ] ; then |
289 |
insinto /usr/$(get_libdir)/krb5/plugins/libkrb5 |
290 |
einfo "instal krbpugin" |
290 |
doins ${KRBPLUGIN}${PLUGINEXT} || die "installing |
291 |
if has_version app-crypt/mit-krb5 ; then |
291 |
${KRBPLUGIN}${PLUGINEXT} failed" |
292 |
insinto /usr/$(get_libdir)/krb5/plugins/libkrb5 |
292 |
elif has_version app-crypt/heimdal ; then |
293 |
doins ${KRBPLUGIN}${PLUGINEXT} || die "installing |
293 |
insinto /usr/$(get_libdir)/plugin/krb5 |
294 |
${KRBPLUGIN}${PLUGINEXT} failed" |
294 |
doins ${KRBPLUGIN}${PLUGINEXT} || die "installing |
295 |
elif has_version app-crypt/heimdal ; then |
295 |
${KRBPLUGIN}${PLUGINEXT} failed" |
296 |
insinto /usr/$(get_libdir)/plugin/krb5 |
|
|
297 |
doins ${KRBPLUGIN}${PLUGINEXT} || die "installing |
298 |
${KRBPLUGIN}${PLUGINEXT} failed" |
299 |
fi |
300 |
insinto /usr |
301 |
for prog in ${KRBPLUGIN} ; do |
302 |
doman ../docs/manpages/${prog/bin\/}* || die "doman failed" |
303 |
done |
296 |
fi |
304 |
fi |
297 |
insinto /usr |
|
|
298 |
for prog in ${KRBPLUGIN} ; do |
299 |
doman ../docs/manpages/${prog/bin\/}* || die "doman failed" |
300 |
done |
301 |
|
305 |
|
302 |
# install server components |
306 |
# install server components |
|
|
307 |
einfo "install server components" |
303 |
if use server ; then |
308 |
if use server ; then |
304 |
doman ../docs/manpages/vfs* ../docs/manpages/samba.7 |
309 |
doman ../docs/manpages/vfs* ../docs/manpages/samba.7 |
305 |
|
310 |
|
Lines 337-342
Link Here
|
337 |
fi |
342 |
fi |
338 |
|
343 |
|
339 |
# install client files ({u,}mount.cifs into /) |
344 |
# install client files ({u,}mount.cifs into /) |
|
|
345 |
einfo "install client files ({u,}mount.cifs into /)" |
340 |
if use client ; then |
346 |
if use client ; then |
341 |
into / |
347 |
into / |
342 |
dosbin bin/{u,}mount.cifs || die "u/mount.cifs not around" |
348 |
dosbin bin/{u,}mount.cifs || die "u/mount.cifs not around" |
Lines 344-352
Link Here
|
344 |
fi |
350 |
fi |
345 |
|
351 |
|
346 |
# install the spooler to cups |
352 |
# install the spooler to cups |
|
|
353 |
einfo "install the spooler to cups" |
347 |
use cups && dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb |
354 |
use cups && dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb |
348 |
|
355 |
|
349 |
# install misc files |
356 |
# install misc files |
|
|
357 |
einfo "install misc files" |
350 |
insinto /etc/samba |
358 |
insinto /etc/samba |
351 |
doins "${CONFDIR}"/smb.conf.default |
359 |
doins "${CONFDIR}"/smb.conf.default |
352 |
doman ../docs/manpages/smb.conf.5 |
360 |
doman ../docs/manpages/smb.conf.5 |
Lines 355-360
Link Here
|
355 |
doins ../codepages/{valid.dat,upcase.dat,lowcase.dat} |
363 |
doins ../codepages/{valid.dat,upcase.dat,lowcase.dat} |
356 |
|
364 |
|
357 |
# install docs |
365 |
# install docs |
|
|
366 |
einfo "install docs" |
358 |
if use doc ; then |
367 |
if use doc ; then |
359 |
dohtml -r ../docs/htmldocs/* |
368 |
dohtml -r ../docs/htmldocs/* |
360 |
dodoc ../docs/*.pdf |
369 |
dodoc ../docs/*.pdf |
Lines 373-386
Link Here
|
373 |
doins -r ../examples/pam_winbind ../examples/nss |
382 |
doins -r ../examples/pam_winbind ../examples/nss |
374 |
fi |
383 |
fi |
375 |
|
384 |
|
|
|
385 |
( cd ../examples |
376 |
if use server ; then |
386 |
if use server ; then |
377 |
doins -r \ |
387 |
doins -r \ |
378 |
auth autofs dce-dfs LDAP logon misc pdb perfcounter \ |
388 |
auth autofs dce-dfs LDAP logon misc pdb perfcounter \ |
379 |
printer-accounting printing scripts tridge validchars VFS |
389 |
printer-accounting printing scripts tridge validchars VFS |
380 |
fi |
390 |
fi |
|
|
391 |
) |
381 |
fi |
392 |
fi |
382 |
|
393 |
|
383 |
# Remove empty installation directories |
394 |
# Remove empty installation directories |
|
|
395 |
einfo "Remove empty installation directories" |
384 |
rmdir --ignore-fail-on-non-empty \ |
396 |
rmdir --ignore-fail-on-non-empty \ |
385 |
"${D}/usr/$(get_libdir)/samba" \ |
397 |
"${D}/usr/$(get_libdir)/samba" \ |
386 |
"${D}/usr"/{sbin,bin} \ |
398 |
"${D}/usr"/{sbin,bin} \ |