[PATCH v2] Add OS X Spotlight support

Ralph Böhme rb at sernet.de
Tue Aug 12 07:39:57 MDT 2014


Hi

here's the updated patchset.

git: <https://github.com/slowfranklin/samba>

Instructions:

- install tracker and libtracker-sparql-dev (or whatever it's called
  on your system)

- use a script like the following for starting Samba and a "private"
  dbus instance: [1]

- install a dbus-session.conf file in the location referenced in the
  start script and adust path in listen directive: [2]
                                                                                                                                                
- configure samba with --enable-spotlight

- smb.conf [3]:

[global]
        rpc_server:mdssvc = embedded

or
        rpc_daemon:mdssd = fork
        rpc_server:mdssvc = external

[share]
        spotlight = yes

For testing with Tracker commandline utils, you have to run a root
shell and source these shell commands [4]:

INSTALLDIR=/some/dir
TRACKER_DIR="$INSTALLDIR/var/tracker"
export HOME="$TRACKER_DIR"
export DBUS_SESSION_BUS_ADDRESS="unix:path=$INSTALLDIR/var/run/spotlight.ipc"

I'll wrap this up in a wiki page.

-Ralph

[1] <https://gist.github.com/slowfranklin/10371423>
[2] <https://gist.github.com/slowfranklin/8a52c36be3b6579f62ab
[3] <https://gist.github.com/slowfranklin/d97aaf4b11febb187793>
[4] <https://gist.github.com/slowfranklin/f93e21b4371d8429b82b>

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spotlightv2.tgz
Type: application/gzip
Size: 69407 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140812/c38680bb/attachment.bin>


More information about the samba-technical mailing list