This should be pretty simple. All it would need to be is an Applescript and/or a shell script that would:

Add the proper MIME type to the "mime.types" file:

You can find this in:

        "/private/etc/httpd/mime.types"

Add the line:

        "application/x-newton-compatible-pkg pkg"

The script would:

  1. set a string called NewtMime? to "application/x-newton-compatible-pkg pkg"
  2. set a string called PkgExt? to "pkg"
  3. get Administrator permissions
  4. if grep the mime.types file for the existence of NewtMime? then exit
  5. if grep the mime.types file for the existence of PkgExt? then ask which one to replace or new line
  6. overwrite chosen existing line, or append NewtMime? to the end of the file
  7. restart apache

...Ross...