WIP: porting postinst into recipe