For eminently sensible reasons most software updates are hosted on websites as either a .pkg, a .dmg, a .zip, or a .tar.gz, that is as a
single file.
In this case I am hoping to create a recipe to download the PaperCut client from an internal PaperCut MF server and the client is stored on the server as a standard directory with the standard .app extension.
As it is a Linux server the full path is as follows.
/home/papercut/client/mac/PCClient.app/
This can be downloaded via scp, ftp, smb, etc. but not CURL as CURL does not support recursive downloads unlike WGET.
I had originally hoped to use CURL which is what AutoPkg uses before discovering this. I would much prefer not to use smb or ftp but would be ok with using scp and willing to listen to other suggestions. The preference is to minimise the amount of setup required on the Linux server, it does have Apache already installed and running.
As this is an internal server to which I have full access I am considering a fallback to creating a script to automate creating a zip archive or similar on the server and then would be able to download that.
For those unfamiliar with PaperCut it is a commercial printer management solution which can be run as a server on a Mac, Linux or Windows system. The way it is distributed is as a server installer and this when it installs the server auto creates the above referred to client directory with the expectation that admins would manually copy and distribute the clients. I am hoping to still manually upgrade the server as needed but then automate downloading and distributing the matching client.
I can easily manually add the PaperCut client to Munki but would like to automate this.