Skip to main content
Home Forums 68kMLA How do you store your software (sit? bin.hqx? etc) — #4
Post #4 by bbraun
Source Forum68kMLA
CategoryNetworking
Post DateTue, 28 Feb 2012 - 03:55
Original URLhttps://68kmla.org/bb/threads/how-do-you-store-your-software-sit-bin-hqx-etc.24845/
Post
I keep a similar setup, netatalk on linux backed by ext3, accessible via ethertalk with an ethertalk<->localtalk bridge for the localtalk machines.

My personal preference is to keep .{sit,cpt}.hqx versions as the authoritative copy, and I have an "extracted" subdirectory where I keep extracted copies of the compressed & binhexed versions. The entire "extracted" subdirectory can be blown away if additional disk space is needed, but it serves as a convenient cache for frequently used software so I don't always have to copy locally and extract everything.

As for netatalk's storage, it basically stores the datafork in the file you normally see, then there's an ".AppleDouble" subdir inside every directory, and inside that is the same filename, but it's an AppleDouble file of the metadata for the normal file. It's more than just the resource fork, it also contains the file type/creator code and some other stuff.

This is a pretty simple system, but if you lose the .AppleDouble subdir, or rename files in Linux (or via another sharing protocol other than netatalk), the .AppleDouble files and the datafork file can end up with different names or in different directories and netatalk won't be able to match them up. The system is pretty simple and reliable, if you always use netatalk to access it. But if that's not your usage model, I wouldn't rely on the extracted copies.

I also like to take advantage of netatalk splitting the resource fork and metadata for me, since it's easy enough from a shell on the linux machine to hexdump the appledouble files to easily inspect resources. I used this extensively while working on the bootable romdisk driver. CodeWarrior on the mac would spit out a DRVR resource into a file that lived on netatalk. I then had a shell script on the netatalk server to extract just the actual driver from the netatalk appledouble file and dd it into the ROM file at the right offset.

mp.ls