| 2 | |
| 3 | NOTE: 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 | |
| 10 | Finally, if the port maintainer wishes to include smb.conf in the port copied from the example, the line |
| 11 | |
| 12 | log file = /usr/local/samba/var/log.%m |
| 13 | |
| 14 | should be changed to |
| 15 | |
| 16 | log file = /opt/local/samba/var/log/log.%m |
| 17 | |
| 18 | and /opt/local/samba/var/log should be created when the port is installed. |
| 19 | |
| 20 | It 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>&&</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 | |
| 43 | samba4 is especially attractive to users of Mavericks as the built in SMBX seems to be even more broken now than before. |