Forked from an existing method for installing Samba3 on 10.7 Lion
This installs the Samba.org open-source implementation of Microsoft Windows File Shares, aka SAMBA or SMB.
The installation will provide a new SMB and NETBIOS daemon to replace Apple's native implmentation on 10.5. It also provides several helper utilities including smbclient, a command-line interative SMB browser similar to FTP.
To share files on your local network from your old Mac, of course! Apple's native SMB implementation only supports SMB v1, which is now considered a legacy protocol and insecure (indeed, recent Windows 10 and 11 machines will refuse to connect.) Using this script will allow your Leopoard-based Mac to act as an SMB2 capable server, allowing newer OSs to connect to your crusty old Mac. While Samba3 does't provide a graphical client to access newer SMB2 shares, smbclient can be utilized to transfer files from command line.