The script used to kick off and kill the samba daemons is here. This should be copied to a suitable system location - I chose the default service methods directory: /lib/svc/method/.
The service bundle file is here. You could save this to the system services directory: /var/svc/manifest/network, but I chose just to keep it in my homedir as I am only experimenting with it. I guess if you plan to use LiveUpgrade in the future, it might be worthwhile copying this file over as I'm not sure how or whether the services database is rebuilt during Live Upgrade.
The service bundle is loaded into the SMF using the command:
# svccfg validate samba.xml # svccfg import samba.xml
Note that I have marked it as disabled by default. To enable it, run:
# svcadm enable network/samba
That was easy, wasn't it ?