Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308655 - New net-fs/cifs-utils package
Summary: New net-fs/cifs-utils package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-09 14:58 UTC by Ewoud Kohl van Wijngaarden
Modified: 2011-01-28 15:15 UTC (History)
1 user (show)

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


Attachments
cifs-utils-4.5.ebuild (cifs-utils-4.5.ebuild,1.05 KB, text/plain)
2010-05-22 09:13 UTC, Ewoud Kohl van Wijngaarden
Details
Expanded ebuild (cifs-utils-4.5-r1.ebuild,1.76 KB, text/plain)
2010-05-27 11:11 UTC, Sebastiaan
Details
cifs-utils-4.8 (cifs-utils-4.8.ebuild,1.54 KB, patch)
2011-01-19 20:46 UTC, Víctor Ostorga (RETIRED)
Details | Diff
Updated cifs-utils-4.8.ebuild (cifs-utils-4.8.ebuild,1.98 KB, text/plain)
2011-01-20 14:16 UTC, Víctor Ostorga (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ewoud Kohl van Wijngaarden 2010-03-09 14:58:05 UTC
cifs-utils is a separate package which provides mount.cifs and was originally bundled with samba. In Gentoo we have net-fs/mount-cifs which provides the same idea, but I can't find the sources of that package. Also, samba 3.3 and up started providing mount.cifs again as far as I can tell.

How is cifs-utils better than mount-cifs and samba?
- mount-cifs doesn't provide Active Directory integration where cifs-utils does
- mount.cifs has already been removed from samba master so it's unlikely that 3.6 will ship with it at all
- the umount.cifs helper is no longer needed in cifs-utils
- Clear upstream path

In my samba 4 overlay (http://github.com/webkiller71/samba4) I've added cifs-utils packages (http://github.com/webkiller71/samba4/commit/97f8654f78e97ab4d17c1f78beb2e7be71716fe3). 4.0 is the newest release, but there are some fixes in git which make life easier. First of all, cifs.upcall is optional in git which strips the dependencies down (yay USE-flags) and there's a segfault fix with the ip-option. That's why I've also added a git ebuild. I might not be using the autotools eclass properly, so please review.

They're fairly trivial, but the migration path might not be. You could in fact see this as moving net-fs/mount-cifs to net-fs/cifs-utils since it provides the exact same feature. But imho it should also be removed from the samba packages. I'm unsure how the blockers should be fixed, but it's currently something like this (without the move):
!net-fs/mount-cifs
!<net-fs/samba-3.0.25
!net-fs/samba-client
!>=net-fs/samba-3.4.6

Reproducible: Always

Steps to Reproduce:
Comment 1 Ewoud Kohl van Wijngaarden 2010-05-22 09:12:42 UTC
Bumped my overlay to 4.5. I've set the blocker to <net-fs/samba-3.6 since samba 3.6 won't include mount.cifs. This ignores the fact that 4.0.0_alpha11 still contains them (alpha 12 won't).

I'm not sure if my caps and caps-ng USE-flags are solved in the correct way, but I couldn't find a package which could either use libcap or libcap-ng.
Comment 2 Ewoud Kohl van Wijngaarden 2010-05-22 09:13:17 UTC
Created attachment 232439 [details]
cifs-utils-4.5.ebuild
Comment 3 Sebastiaan 2010-05-27 11:11:27 UTC
Thank you for this package, I already wondered where cifs.upcall went in samba-4.

Works like a charm, and I am glad to see this light package for simple CIFS (client-side) mounts. As far as I am concerned, this ebuild goes into portage

I have made a few ammendments to the ebuild:
- setuid flag, so mount.cifs has the suid bit set for user mounts
- a message that suggests to add a line to /etc/request-key.conf: can save people hours from struggling to make DFS work.

Comment 4 Sebastiaan 2010-05-27 11:11:58 UTC
Created attachment 233109 [details]
Expanded ebuild
Comment 5 Víctor Ostorga (RETIRED) gentoo-dev 2011-01-19 20:46:17 UTC
Created attachment 260290 [details, diff]
cifs-utils-4.8

I attach updated ebuild for cifs-utils. Give it a try and I'll look forward to include it to official tree as a replacement of mount-cifs
Comment 6 Víctor Ostorga (RETIRED) gentoo-dev 2011-01-20 14:16:47 UTC
Created attachment 260367 [details]
Updated cifs-utils-4.8.ebuild

Updated cifs-utils ebuild, now checking if the kernel was configured with CONFIG_CIFS support
Comment 7 Víctor Ostorga (RETIRED) gentoo-dev 2011-01-28 15:15:45 UTC
+*cifs-utils-4.8.1 (28 Jan 2011)
+
+  28 Jan 2011; Víctor Ostorga <vostorga@gentoo.org>
+  +cifs-utils-4.8.1.ebuild, +metadata.xml:
+  Initial import, ebuild based on work from Ewoud Kohl van Wijngaarden
+  <gentoo@kohlvanwijngaarden.nl> and Sebastiaan <s.breedveld@erasmusmc.nl>
+  bug 308655