I made a patch to add a new switch to mksquashfs, the switch is -append-suffix <name> The new switch allow you to specify what suffix should be appended to files which already exist in the archive, allowing you to do stuff like backing up data using squashfs by using a `date` output in the suffix, I've made it so if the suffix already exist it appends the original _1 _2 etc... I have an example script I use to backup my /etc when it has changed, it runs hourly on my computer. Files follow...
Created attachment 79195 [details, diff] Add the new switch.
Created attachment 79196 [details] Example script. This contains an example on how the new switch can be used.
Comment on attachment 79195 [details, diff] Add the new switch. The patch can be applied to the latest ebuild: sys-fs/squashfs-tools-2.2_p2
Please, submit this upstream (phillip at lougher.demon.co.uk or see http://squashfs.sourceforge.net/).
Jakub is correct. We do not add functionality to packages that isn't accepted by upstream. Please send this to Phillip. If he accepts the patch, then I have no problem adding it *now* rather than waiting for a new version, but we don't want to maintain our own feature sets.