Changes between Initial Version and Version 1 of Ticket #38834, comment 13


Ignore:
Timestamp:
Oct 24, 2013, 4:41:24 AM (11 years ago)
Author:
joshk.macports@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38834, comment 13

    initial v1  
    11I updated the port to 4.1.0. On Mavericks (not sure if it is needed elsewhere) I had to add an extra patch to #define MD5_CTX as CC_MD5_CTX. Hope it's useful to someone.
     2
     3NOTE: I forgot about this, but one problem is that the port does not automatically create the directories that are needed to launch the daemon properly. To make this happen, I had to create the following dirs:
     4
     5/opt/local/var/lib/samba/private
     6/opt/local/etc/samba (in which I had to fetch the example smb.conf and put it in)
     7/opt/local/var/lock/samba
     8/opt/local/var/cache/samba
     9
     10Finally, if the port maintainer wishes to include smb.conf in the port copied from the example, the line
     11
     12log file = /usr/local/samba/var/log.%m
     13
     14should be changed to
     15
     16log file = /opt/local/samba/var/log/log.%m
     17
     18and /opt/local/samba/var/log should be created when the port is installed.
     19
     20It would be nice to ship a plist file as well. Here's mine:
     21
     22
     23{{{
     24<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
     25<plist version="1.0">
     26<dict>
     27<key>Label</key>
     28<string>org.triplehelix.samba4</string>
     29<key>ProgramArguments</key>
     30<array>
     31<string>/opt/local/sbin/smbd</string>
     32<string>-D</string>
     33<string>&amp;&amp;</string>
     34<string>/opt/local/sbin/nmbd</string>
     35<string>-D</string>
     36</array>
     37<key>RunAtLoad</key>
     38<true/>
     39</dict>
     40</plist>
     41}}}
     42
     43samba4 is especially attractive to users of Mavericks as the built in SMBX seems to be even more broken now than before.