It turns out vlmcsd already has a Debian buildpackage scripts as a git submodule.
- Clone the vlmcsd git repository with submodules
foo@bar:~$ git clone --recurse-submodules -j8 https://github.com/Wind4/vlmcsd.git vlmcsd/vlmcsd
- Build the Debian package
foo@bar:~$ cd vlmcsd/vlmcsd
foo@bar:~$ dpkg-buildpackage -rfakeroot -b -uc -us
Note this will build the package unsigned - well, you shouldn't be able to sign it anyway.
- Find the newly-built package and install either locally or remotely
foo@bar:~$ scp ../vlmcsd_*_amd64.deb target:~/
foo@target:~$ sudo dpkg -i vlmcsd_*_amd64.deb
You should be able to build the whole thing directly with gbp, too.
foo@target:~$ sudo apt purge vlmcsd
And all files including the configuration files should be removed.