The best way would be a combined package. As the roaming client downloads as a PKG, it does make life easier:
You're going to follow exactly the same instructions as above:
mkdir InstallFile
cd InstallFile
mkdir Content
mkdir scripts
cd Content
touch OrgInfo.plist
cd ../scripts
touch postinstall
chmod a+x postinstall
Drop the OrgInfo.plist into the Content folder
ALSO drop the RoamingClient_MAC_3.0.5.pkg into the same Content folder
NOTE: Watch out for the name of the roaming client changing with each new release
Edit the postinstall file:
#!/bin/bash
mv /tmp/OrgInfo.plist /Library/Application\ Support/OpenDNS\ Roaming\ Client
exit 0
But add a new line after the #!/bin/bash
installer -pkg /tmp/RoamingClient_MAC_3.0.5.pkg -target /
NOTE: again, make sure that, whenever creating a new package after a roaming client update, that you update the name of the package. Also note the spaces above too.
You can test using the Installer command on your Mac at the command line:
sudo installer -pkg RoamingClient_MAC_3.0.5.pkg -target /
Password:
installer: Package name is Umbrella Roaming Client
installer: Installing at base path /
installer: The install was successful.
Just to ensure it installs with no issues, and that the relevant directories are created
Now, back to Terminal. The command the build the package is identical, but I've changed the names to something a little more appropriate:
sudo pkgbuild --identifier com.meraki.umbrellaroamingclient --root Content --script scripts --install-location /tmp/ umbrellaroamingclient.pkg
pkgbuild: Inferring bundle components from contents of content
pkgbuild: Adding top-level postinstall script
pkgbuild: Wrote package to umbrellaroamingclient.pkg
And you're all done.