Skip to content

Instantly share code, notes, and snippets.

@mweinelt
Last active October 9, 2018 16:04
Show Gist options
  • Save mweinelt/efff4fb7eba1ee41ef2d to your computer and use it in GitHub Desktop.
Save mweinelt/efff4fb7eba1ee41ef2d to your computer and use it in GitHub Desktop.
Building Tinc1.1pre12 on Debian Wheezy

Create the build directory:

mkdir -p /usr/src/tinc
cd /usr/src/tinc

Get the Source packages

wget http://ftp.de.debian.org/debian/pool/main/t/tinc/tinc_1.1~pre12.orig.tar.gz
tar xvzf tinc_1.1~pre12.orig.tar.gz
wget http://ftp.de.debian.org/debian/pool/main/t/tinc/tinc_1.1~pre12-1.debian.tar.xz
tar xvJf tinc_1.1~pre12-1.debian.tar.xz -C tinc-1.1pre11
cd tinc-1.1pre12

If you want debug symbols for tinc edit the build files as follows:

Append to debian/rules

PHONY: override_dh_strip
override_dh_strip:
        dh_strip --dbg-package=tinc-dbg

Append to debian/control

Package: tinc-dbg
Architecture: any
Section: debug
Priority: extra
Depends: ${shlibs:Depends}, ${misc:Depends}, tinc (= ${binary:Version})
Description: debugging symbols for tinc
 tinc is a daemon with which you can create a virtual private network
 (VPN). One daemon can handle multiple connections, so you can
 create an entire (moderately sized) VPN with only one daemon per
 participating computer.
 .
 This package contains the debugging symbols for tinc.

Build the package

dpkg-buildpackage -rfakeroot -uc -us

Install the package

dpkg -i ../tinc_1.1~pre12-1_amd64.deb
dpkg -i ../tinc-dbg_1.1~pre12-1_amd64.deb
@Mic92
Copy link

Mic92 commented Aug 3, 2016

debian now ships tinc_1.1~pre12-1 in testing!

@krombel
Copy link

krombel commented Oct 9, 2018

As of yesterday it is tinc_1.1~pre17-1

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