flightaware/dump1090_mr — pull request #5 by mutability (2014-11-19 16:56:09+00:00)
Title: Merge Debian packaging from dump1090_builder

This merges the Debian packaging parts from dump1090_builder.
I have renamed the package to "fadump1090" to avoid confusion (but that's easy enough to change back if needed)

There are some Makefile tweaks to help support this, but building from source without any Debian packaging is fundamentally unchanged. The main change is that there's just one Makefile now, not several duplicated ones.

All the Debian-specific bits are contained under debian/

There are also fixes for some things caught by lintian (e.g. use of CPPFLAGS, manpage error, init.d script header error)

Notes on building:

Basic dependencies:

sudo apt-get install build-essential debhelper fakeroot lintian

You will need a librtlsdr-dev package. This is available in wheezy-backports, or directly in post-wheezy releases:

$ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://ftp.uk.debian.org/debian wheezy-backports main
$ cat /etc/apt/apt.conf.d/99defaultrelease # sets default release to wheezy, so we only use backports if necessary
APT::Default-Release "wheezy";
$ sudo apt-get install librtlsdr-dev

Then building is simply:

$ dpkg-buildpackage
$ lintian # if you feel so inclined

There are still a few lintian errors but those are somewhat more policy decisions e.g. version numbering, what to do about the binary-only coaa1090.obj, etc, so I haven't touched them.

This will do a selfcontained build and there is no need for pre-building anything, and your system-wide install is not touched.

The resulting package will have a dependency on librtlsdr0. This is, again, available from wheezy-backports, or the .deb could be directly installed as it has minimal dependencies.

This should also build fine on other architectures - it looks OK on my x86_64 Ubuntu 14.04 install.