move (un)installation script content to postinst/prerm