Preparing package.
set rules permissions.