processing of additional source directories: opt, sbin, share
support for package maintainer scripts (preinst, postinst, prerm, postrm)
Merge pull request #1 from liruoko/master

backport from Y repo