Add DSL for after_install and similar blocks
Merge pull request #5723 from federicobond/postflight-dsl

Add DSL for after_install and similar blocks