title: Handling archives with resource forks on non-HFS file-systems
body: <p>I'm working on a website that is supposed to store compressed archive files for downloading, for different platforms (Mac and Windows).</p>
  
  <p>Unfortunately, the Mac version of the download uses "resource forks", which I understand is a vendor-specific feature of the MacOS file system that attaches extra data to a file identifier. Previously, the only solution was to create the Mac archive (at that time a <code>.sit</code> archive, specifically) on a Mac, and manually upload both versions.</p>
  
  <p>I would now like to let the website accept only the Windows file (a regular <code>.zip</code> that can be decompressed on any file-system), and generate a Mac archive with resource forks automatically. Basically, all I need is some way to generate an archive file on the Linux server (in any reasonably common format that can support resource forks; not sure if <code>.sit</code> is still the best option) that will yield the correct file structure when decompressed on Mac. As the file system doesn't support forks, the archive probably has to be assembled in memory and written to disk, rather than using any native compression tool.</p>
  
  <p>Is there some software that can do this, or at least some format specification that would allow implementing it from scratch?</p>