Maybe I'm being a little bit naive, but wouldn't it be possible to simply write a preprocessor that followed your rules and spat out a completed/etc/groups file as a result? Then your solution would be portable and would require no new additions to any other systems.
Preprocessor (Score:4)