Skip to content

Instantly share code, notes, and snippets.

@x-magic
Last active July 10, 2022 04:16
Show Gist options
  • Save x-magic/fa23b59d601e54703678e07486d06efc to your computer and use it in GitHub Desktop.
Save x-magic/fa23b59d601e54703678e07486d06efc to your computer and use it in GitHub Desktop.
Build Debian package for vlmcsd

Build Debian package for vlmcsd

It turns out vlmcsd already has a Debian buildpackage scripts as a git submodule.

To build the package and install

  1. Clone the vlmcsd git repository with submodules
foo@bar:~$ git clone --recurse-submodules -j8 https://github.com/Wind4/vlmcsd.git vlmcsd/vlmcsd
  1. 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.

  1. 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.

To remove the installed package

foo@target:~$ sudo apt purge vlmcsd

And all files including the configuration files should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment