Hooks to install files outside of /opt/ros in Debian packages?
We have a driver package that requires adding udev rules to ensure the system device files have proper permissions. Rather than having some manual step(s) documented, I'd like to have the ROS package just install the required file.
Are there any hooks that are available to have the ROS build farm add install rules for files outside of the /opt/ros hierarchy? Specifically I'd like to install a file in /etc/udev/rules.d/
I've notice that packages put docs in /usr/share/doc/ros-<distro>-<package>/changelog.Debian.gz, but I don't see what rule added the change log to this location.
Also, is there any support for maintainer scripts? Future drivers may require building loadable kernel modules and I was hoping to use the postinst maintainer script to run DKMS to build the required modules if the kernel is not already patched.
Maybe check the Debian packages (from Debian repos).they don't use /opt at all. E.g package python-gencpp contains /etc/ros/genmsg/gencpp.
I could manually create rules to accomplish my goal, but I wondering if there are hooks available so that I can have a package built in the ROS build farm implement this.