Add a file in /etc/sudoers.d/ (take a look at the files there, there are a lot of examples ) then execute update-sudoers in your postinst and postrm files. After that you can just use sudo.