Skip to content

Instantly share code, notes, and snippets.

@azrdev
Created October 19, 2019 12:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save azrdev/ce278033928b670330868815739c15ea to your computer and use it in GitHub Desktop.
Save azrdev/ce278033928b670330868815739c15ea to your computer and use it in GitHub Desktop.
build tinc-1.1pre .deb package on raspbian

Follow https://wiki.debian.org/SimpleBackportCreation for https://packages.debian.org/experimental/tinc (which is currently 1.1pre17)

sudo apt-get install packaging-dev debian-keyring devscripts equivs

Don't add experimental to your sources.list, its gpg keys are not in raspbian. Instead, get the source package (.dsc and tinc source code) manually: On https://packages.debian.org/experimental/tinc look for the "source package" link in the box on the right side; it is currently labeled [tinc_1.1~pre17-1.1.dsc]. Then use that link to get the .dsc and the source code, and continue with the debian backport guide:

dget http://deb.debian.org/debian/pool/main/t/tinc/tinc_1.1~pre17-1.1.dsc
cd tinc_1.1*/
sudo mk-build-deps --install --remove
dch --bpo  # change version/release and add changelog entry. needed for collision avoidance
fakeroot debian/rules binary
dpkg-buildpackage -us -uc
sudo apt install tinc_1.1*.deb
@h4x3rotab
Copy link

In the last step, the deb file is created in the up level directory. So a cd .. is needed.

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