Added support for pre- and postinstall and moved packages