Unfortunately, I have never build a package for linux.

I'm trying to deploy an app that depends on a specific USB device to perform data acquisition.

For the moment I am only targeting Ubuntu (maybe others later) and I have figured out how to (manually) add a rules file into /etc/udev/rules.d and this seems to work.
The app consists of the main executable, libqtcore, libqtgui, a lib for the usb device, libqextserialport and one plugin.

If I create a binary only package, will I be able to install a rules file into udev? Is there such thing as best practices, because some of the steps will require commands to be run as sudo. Udev doesn't seem to detect it when I create a new rules file, so it has to be restarted - can this be done as part of the package installation?