Rather than using a file for stuff like this, change them to be
functions in templates. Now if any template want to use them, it
can specify for example a {pre,post}_<stage>() shell function.
Also remove some NetBSD specific stuff that is not useful anymore.
--HG--
extra : convert_revision : b7157c61c92c05904e0e4d971268e5f018db46bc