Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41796 - samba-3.0.2a ebuild fails to install smbldap-tools correctly
Summary: samba-3.0.2a ebuild fails to install smbldap-tools correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on: 48871
Blocks:
  Show dependency tree
 
Reported: 2004-02-16 08:45 UTC by Toby Bryans
Modified: 2004-06-11 07:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patches ebuild to r1 (samba-3.0.2a-r1.ebuild.patch,1.57 KB, patch)
2004-02-18 04:02 UTC, Toby Bryans
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toby Bryans 2004-02-16 08:45:54 UTC
Due to the smbldap tools moving away from .pl extensions on their scripts and just using (for example) smbldap-useradd rather than smbldap-useradd.pl the ebuild does not install the scripts correctly. The ebuild needs to be changed so that line 320 reads:

        exeinto /usr/share/samba/scripts ; doexe smbldap-*

I think this is OK as the rest of the perl files are smbldap_ not smbldap-.
Comment 1 Donny Davies (RETIRED) gentoo-dev 2004-02-16 11:48:03 UTC
Ok thanks for the report, will fix shortly.
Comment 2 Toby Bryans 2004-02-17 01:06:35 UTC
Actually, there appear to be more problems with smbldap_tools 0.84 - they 
seem to have changed significantly.

They now seem to require a separate configuration directory 
(/etc/smbldap-tools), one changed file:

smbldap_conf.pm is now /etc/smbldap-tools/smbldap.conf

And one additional file:

/etc/smbldap-tools/smbldap_bind.conf

These don't seem to be installed by the current 3.0.2a script
Comment 3 Donny Davies (RETIRED) gentoo-dev 2004-02-17 07:46:36 UTC
Eeek.  Ok, could somebody please help and dig in to this,
possibly coming up with a patch I can apply to the ebuild please?

I'm really busy at work this week, probably will not have too much
time to fix it.  That and my set up uses its own smbldap tools
scripts, not the ones I've built into the samba ebuild, so
I didnt notice the breakage.

Would appreciate help here.
Comment 4 Toby Bryans 2004-02-18 03:44:03 UTC
Am working on it - this is the first ebuild work I have done so it may need tidying up but I'm pretty sure the majority of the work is OK.

Will post an update later when I have a version that I am satisfied with.
Comment 5 Toby Bryans 2004-02-18 03:59:27 UTC
Have attached a patch generated with 
diff -Naur samba-3.0.2a.ebuild samba-3.0.2a-r1.ebuild
which seems to do the job. Would be interested to know if I have made any
major mistakes so I can get it right next time.
Comment 6 Toby Bryans 2004-02-18 04:02:17 UTC
Created attachment 25846 [details, diff]
patches ebuild to r1

This corrects the ebuild so that the smbldap-tools config files are in the
correct place and warns the user about all the changes that will be required to
their setup.
Comment 7 Christian Andreetta (RETIRED) gentoo-dev 2004-05-15 09:05:09 UTC
thanks for the patch :)
included in proposed ebuild for samba 3.0.4 (please see bug 48871)
Comment 8 Christian Andreetta (RETIRED) gentoo-dev 2004-06-11 07:15:18 UTC
fixed in bug 48871