Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93400 - gnome-extra/nautilus-share: a nautilus extension to share folders over SMB
Summary: gnome-extra/nautilus-share: a nautilus extension to share folders over SMB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low enhancement with 1 vote (vote)
Assignee: Maxim Koltsov (RETIRED)
URL: http://gentoo.ovibes.net/nautilus-share/
Whiteboard: sunrise suggested
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-05-20 21:25 UTC by Ed Catmur
Modified: 2012-05-20 11:55 UTC (History)
6 users (show)

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


Attachments
nautilus-share-0.5.1.ebuild (nautilus-share-0.5.1.ebuild,2.88 KB, text/plain)
2005-05-20 21:26 UTC, Ed Catmur
Details
nautilus-share-0.5.1-dbus-api.patch (nautilus-share-0.5.1-dbus-api.patch,1.70 KB, patch)
2005-05-20 21:26 UTC, Ed Catmur
Details | Diff
nautilus-share-0.5.1-dbus-api-2.patch (nautilus-share-0.5.1-dbus-api-2.patch,15.98 KB, patch)
2005-05-20 21:27 UTC, Ed Catmur
Details | Diff
nautilus-share-0.5.1-dbus-api-3.patch (nautilus-share-0.5.1-dbus-api-3.patch,4.29 KB, patch)
2005-05-20 21:27 UTC, Ed Catmur
Details | Diff
nautilus-share-0.5.1-stock-icon.patch (nautilus-share-0.5.1-stock-icon.patch,429 bytes, patch)
2005-05-20 21:27 UTC, Ed Catmur
Details | Diff
smbshared (smbshared,960 bytes, text/plain)
2005-05-20 21:28 UTC, Ed Catmur
Details
nautilus-share-0.5.1.ebuild (nautilus-share-0.5.1.ebuild,3.11 KB, text/plain)
2005-05-21 12:30 UTC, Ed Catmur
Details
nautilus-share-0.5.1-dbus-api-auto.patch (nautilus-share-0.5.1-dbus-api-auto.patch,26.10 KB, patch)
2005-05-21 12:30 UTC, Ed Catmur
Details | Diff
nautilus-share-0.5.2.ebuild (nautilus-share-0.5.2.ebuild,2.68 KB, text/plain)
2005-05-21 19:20 UTC, Ed Catmur
Details
nautilus-share-0.6.2-dbus-api.patch (nautilus-share-0.6.2-dbus-api.patch,1.91 KB, patch)
2005-06-06 08:24 UTC, Ed Catmur
Details | Diff
nautilus-share-0.6.2.ebuild (nautilus-share-0.6.2.ebuild,2.76 KB, text/plain)
2005-06-06 08:25 UTC, Ed Catmur
Details
nautilus-share-0.6.3.ebuild (nautilus-share-0.6.3.ebuild,2.71 KB, text/plain)
2005-06-08 08:21 UTC, Joe Gallo
Details
nautilus-share-0.6.4.ebuild (nautilus-share-0.6.4.ebuild,2.67 KB, text/plain)
2005-08-19 19:48 UTC, Ed Catmur
Details
nautilus-share-0.6.4.ebuild (nautilus-share-0.6.4.ebuild,2.69 KB, text/plain)
2006-05-05 07:42 UTC, Ed Catmur
Details
smbshared (smbshared,966 bytes, text/plain)
2006-05-05 07:43 UTC, Ed Catmur
Details
nautilus-share-0.7.0.ebuild (nautilus-share-0.7.0.ebuild,3.10 KB, text/plain)
2006-08-13 07:34 UTC, Gilles Dartiguelongue (RETIRED)
Details
nautilus-share-0.7.0.ebuild (nautilus-share-0.7.0.ebuild,2.27 KB, text/plain)
2006-08-23 05:50 UTC, Ed Catmur
Details
nautilus-share-0.7.0.ebuild (nautilus-share-0.7.0.ebuild,2.48 KB, text/plain)
2006-08-23 06:02 UTC, Ed Catmur
Details
nautilus-share-0.7.0.ebuild (nautilus-share-0.7.0.ebuild,2.49 KB, text/plain)
2006-08-23 06:08 UTC, Ed Catmur
Details
nautilus-share-0.7.0.ebuild (nautilus-share-0.7.0.ebuild,2.48 KB, text/plain)
2006-08-23 06:10 UTC, Ed Catmur
Details
nautilus-share-0.7.1.ebuild (nautilus-share-0.7.1.ebuild,2.47 KB, text/plain)
2007-01-02 16:00 UTC, Ed Catmur
Details
Updated ebuild for gnome-2.22 _only_ (nautilus-share-0.7.2-r1.ebuild,2.55 KB, text/plain)
2008-07-24 14:55 UTC, onip
Details
patch to apply (nautilus-2.22.patch,1.04 KB, patch)
2008-07-24 14:56 UTC, onip
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2005-05-20 21:25:59 UTC
As summary.

Ebuild to follow.

Works fine on my system (dbus-0.33, samba-3.0.14a-r1, etc.)
Comment 1 Ed Catmur 2005-05-20 21:26:31 UTC
Created attachment 59428 [details]
nautilus-share-0.5.1.ebuild
Comment 2 Ed Catmur 2005-05-20 21:26:52 UTC
Created attachment 59429 [details, diff]
nautilus-share-0.5.1-dbus-api.patch
Comment 3 Ed Catmur 2005-05-20 21:27:09 UTC
Created attachment 59430 [details, diff]
nautilus-share-0.5.1-dbus-api-2.patch
Comment 4 Ed Catmur 2005-05-20 21:27:40 UTC
Created attachment 59431 [details, diff]
nautilus-share-0.5.1-dbus-api-3.patch

Sorry about the separate patches; it just happened this way.
Comment 5 Ed Catmur 2005-05-20 21:27:56 UTC
Created attachment 59432 [details, diff]
nautilus-share-0.5.1-stock-icon.patch
Comment 6 Ed Catmur 2005-05-20 21:28:44 UTC
Created attachment 59433 [details]
smbshared

/etc/init.d/smbshared runscript
Comment 7 Ed Catmur 2005-05-20 21:35:06 UTC
I am in contact with the maintainer and have upstreamed the patches.

The package uses the debian-only /etc/dbus-1/event.d directory; I replace this
with a gentooized initscript (above). (AFAICT debian /etc/dbus-1/event.d is just
a hack to get around the fact that the debian service system does not handle
service dependencies.)

Regarding /etc/samba/smb.conf, the method of editing it in the script works OK
but I can't help feeling that it's ugly. Still, I can't see a more elegant method.
Comment 8 Ed Catmur 2005-05-21 12:30:04 UTC
Created attachment 59473 [details]
nautilus-share-0.5.1.ebuild

This probably handles /etc/samba/smb.conf better.

Also uses a better API compatibility patch.
Comment 9 Ed Catmur 2005-05-21 12:30:27 UTC
Created attachment 59474 [details, diff]
nautilus-share-0.5.1-dbus-api-auto.patch
Comment 10 Ed Catmur 2005-05-21 19:20:07 UTC
Created attachment 59508 [details]
nautilus-share-0.5.2.ebuild

After discussion with the author, the 0.5.1 patches have been merged. The 0.5.2
version works out of the box with both old and new DBUS APIs.
Comment 11 Joe Gallo 2005-05-26 07:17:29 UTC
The directions at the end of the ebuild output say to issue the command:
    rc-update add smbshared default

But that results in:
    */sbin/rc-update: /etc/init.d/smbshared not found; aborting.

I'm guessing the ebuild should probably say samba instead of smbshared, but I'm
also prone to stupidity.  Am I correct?
Comment 12 Ed Catmur 2005-05-26 12:01:14 UTC
No, /etc/init.d/smbshared should be installed by the ebuild.
Comment 13 Joe Gallo 2005-05-26 17:56:21 UTC
Ah, yep, I missed the extra file there that I need to put in the overlay. 
Thanks for the correction, Ed.
Comment 14 Alex Murray 2005-05-28 16:19:27 UTC
Version 0.6 has been released, a straight copy of the ebuild should be all that
is needed.
Comment 15 Ed Catmur 2005-06-06 08:24:50 UTC
Created attachment 60724 [details, diff]
nautilus-share-0.6.2-dbus-api.patch

nautilus-share-0.6.2 released. Needs the attached patch for dbus-0.3x.
Comment 16 Ed Catmur 2005-06-06 08:25:08 UTC
Created attachment 60725 [details]
nautilus-share-0.6.2.ebuild
Comment 17 Karol Krizka 2005-06-06 17:17:27 UTC
I've got a few comments:
-There is no /etc/init.d/smbshared
-Works on amd64
-Great app :D
Comment 18 Joe Gallo 2005-06-08 08:21:57 UTC
Created attachment 60841 [details]
nautilus-share-0.6.3.ebuild

Version bump, and the dbus api patch has been incorporated into the package, so
I took it out of the ebuild.
Comment 19 Joe Gallo 2005-06-08 08:24:16 UTC
(In reply to comment #17)
> -There is no /etc/init.d/smbshared

smbshared is an attachment to this bug, you need to download it in addition to
the ebuild.  (Easy mistake to make, though, I did it earlier, too.)
Comment 20 Ed Catmur 2005-08-19 19:48:20 UTC
Created attachment 66363 [details]
nautilus-share-0.6.4.ebuild

ebuild bump
Comment 21 onip 2006-05-05 06:07:51 UTC
Doesn't samba be included in RDEPEND? With samba stopped nautilus share wouldn't work. The same problem appears for smbshared initscript, which would need a dependency on samba.

Am i wrong?

p.s. sorry for my poor english
Comment 22 Ed Catmur 2006-05-05 07:42:58 UTC
Created attachment 86198 [details]
nautilus-share-0.6.4.ebuild

You're quite right. Updated versions attached.
Comment 23 Ed Catmur 2006-05-05 07:43:30 UTC
Created attachment 86199 [details]
smbshared

updated init script
Comment 24 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-07-02 23:51:45 UTC
works for me, thanks for the ebuild (up to date ~x86)
Comment 25 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-08-13 07:34:48 UTC
Created attachment 94146 [details]
nautilus-share-0.7.0.ebuild

update to latest version.
changed einfo to elog
updated dependencie on samba to 3.0.23a
Comment 26 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-08-23 02:55:55 UTC
further testings of latest version (0.7.0) lead me to find the you need to add "usershare allow guests = yes" to your /etc/samba/smb.conf if you want to allow guests to connect to your usershares.

It seems that smbshared init script is not needed anymore because nautilus-share directly uses the command "net usershare"
Comment 27 Ed Catmur 2006-08-23 05:13:33 UTC
Yeah, and we can also remove the dbus dependency. Nice.

I don't like the /usr/local/samba/lib/usershares directory; it's non-fhssy. Something in /var/lib would be better; /var/lib/samba/usershares probably. Also we should recommend a group to control access; the docs have "serveropt" but that's non-descriptive; "samba" would be the obvious alternative.
Comment 28 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-08-23 05:42:13 UTC
> Yeah, and we can also remove the dbus dependency. Nice.
right, I missed the note on the homepage

> I don't like the /usr/local/samba/lib/usershares directory; it's non-fhssy.
> Something in /var/lib would be better; /var/lib/samba/usershares probably.
I agree and I expect it to be changed if it goes to sunrise or portage.

> Also we should recommend a group to control access; the docs have "serveropt" but that's non-descriptive; "samba" would be the obvious alternative.
I seperated group would probably be sort of safer, but this is a user oriented feature that should be available easily to desktop user. I thought that the group that would best fit that description was users. As it is just some quick tips to get started some admin might easily change this.
As a side note, I'm not sure that the samba group would be appropriated and the same way that you don't add users to the apache group (I might be wrong though).
Comment 29 Ed Catmur 2006-08-23 05:50:43 UTC
Created attachment 94926 [details]
nautilus-share-0.7.0.ebuild

Ebuild incorporating above suggestions.
Comment 30 Ed Catmur 2006-08-23 06:02:36 UTC
Created attachment 94927 [details]
nautilus-share-0.7.0.ebuild

Add "usershare allow guests = yes" to the smb.conf template.

Sorry, bit of an overlap there.

> I seperated group would probably be sort of safer, but this is a user oriented
> feature that should be available easily to desktop user. I thought that the
> group that would best fit that description was users. As it is just some quick
> tips to get started some admin might easily change this.

I've put in groupadd etc. commands; all the admin needs to do is add users to the relevant group.

> As a side note, I'm not sure that the samba group would be appropriated and 
> the same way that you don't add users to the apache group (I might be wrong
> though).

Well, I'm thinking of it in the same way as the "cron" group; membership of cron conveys the right to have a crontab, membership of samba gives the right to have samba shares. Although if you can suggest a better name...
Comment 31 Ed Catmur 2006-08-23 06:08:03 UTC
Created attachment 94928 [details]
nautilus-share-0.7.0.ebuild

Use usermod --groups --append to avoid nuking group membership.
Comment 32 Ed Catmur 2006-08-23 06:10:02 UTC
Created attachment 94930 [details]
nautilus-share-0.7.0.ebuild

hm, usermod doesn't seem to like long form... short form works.
Comment 33 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-08-23 06:10:42 UTC
Comment on attachment 94146 [details]
nautilus-share-0.7.0.ebuild

this ebuild is now obsoleted by comment #31 proposition
Comment 34 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-08-23 06:11:50 UTC
maybe a not about -a could be added because users might already be added to plugdev group and we don't want them to loose this setting
Comment 35 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-08-23 06:12:57 UTC
oops, not fast enough, sorry
Comment 36 Ed Catmur 2007-01-02 16:00:36 UTC
Created attachment 105251 [details]
nautilus-share-0.7.1.ebuild

bump
Comment 37 onip 2008-07-24 14:53:52 UTC
nautilus-share needs to be patched to work with >=nautilus-2.22

Here I found the patch -> http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg503328.html

patch and ebuild following
Comment 38 onip 2008-07-24 14:55:08 UTC
Created attachment 161268 [details]
Updated ebuild for gnome-2.22 _only_
Comment 39 onip 2008-07-24 14:56:18 UTC
Created attachment 161269 [details, diff]
patch to apply
Comment 40 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-01-21 15:03:18 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 41 Pablo Cholaky 2009-10-12 01:58:05 UTC
Should be on portage. VERY useful for users.!

Should be on gnome-base/gnome meta package
Comment 42 Maxim Koltsov (RETIRED) gentoo-dev 2012-05-20 11:55:09 UTC
I've added 0.7.3 version to tree, ebuild is based on one from sabayon overlay.