I've been following the excellent guides to create debian packages to install an application executable
and using dh-systemd to install a systemd service
however, I would like to combine the two to create a package to install a service and install the binary which gets run by the service.
The first tutorial has the application files in the directory above the /debian folder and a make file to build and install the application, whereas the systemd tutorial has the service file in the debian folder. It is not clear to me how to create a control file which installs both service file and dependant binary.
I'd be grateful if someone could advise how to do this or provide some useful reference material.
I've tried reading https://wiki.debian.org/Teams/pkg-systemd/Packaging but this doesn't explain much.
Is this a realistic expectation, or should services and applications be packaged separately?