From 84dd2dfe0e7d6905f52cea333a106b1fe344bf84 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 5 Aug 2020 20:28:50 +0800 Subject: [PATCH] Disable limesdr/hackrf support on jessie, stretch, wheezy --- debian-jessie/control | 30 ++++++++++++++++++++++++++++++ debian-jessie/rules | 32 ++++++++++++++++++++++++++++++++ debian-stretch/control | 30 ++++++++++++++++++++++++++++++ debian-stretch/rules | 32 ++++++++++++++++++++++++++++++++ debian-wheezy/rules | 2 +- prepare-build.sh | 1 + 6 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 debian-jessie/control create mode 100755 debian-jessie/rules create mode 100644 debian-stretch/control create mode 100755 debian-stretch/rules diff --git a/debian-jessie/control b/debian-jessie/control new file mode 100644 index 0000000..f60de0d --- /dev/null +++ b/debian-jessie/control @@ -0,0 +1,30 @@ +Source: dump1090-fa +Section: embedded +Priority: extra +Maintainer: Oliver Jowett +Build-Depends: debhelper(>=9), librtlsdr-dev, libusb-1.0-0-dev, pkg-config, dh-systemd, libncurses5-dev, libbladerf-dev +Standards-Version: 3.9.3 +Homepage: http://www.flightaware.com/ +Vcs-Git: https://github.com/flightaware/dump1090.git + +Package: dump1090 +Architecture: all +Depends: dump1090-fa, ${misc:Depends} +Priority: extra +Section: oldlibs +Description: transitional dummy package for dump1090 + This is a transitional dummy package to handle upgrades from + the old package name of "dump1090" to the new package name of + "dump1090-fa". It can safely be removed. + +Package: dump1090-fa +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libbladerf1 (>= 0.2016.06), adduser, lighttpd +Replaces: dump1090 (<< 3.0) +Breaks: dump1090 (<< 3.0) +Description: ADS-B Ground Station System for RTL-SDR + Networked Aviation Mode S / ADS-B decoder/translator with RTL-SDR software + defined radio USB device support. + . + This is FlightAware's fork of dump1090-mutability, customized for use + in the PiAware sdcard images. diff --git a/debian-jessie/rules b/debian-jessie/rules new file mode 100755 index 0000000..ee18e9e --- /dev/null +++ b/debian-jessie/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +ifeq ($(DEB_HOST_ARCH),armhf) + # Assume a Pi-like target, where using an 8-bit table is a fairly big win over the float path + CPPFLAGS += -DSC16Q11_TABLE_BITS=8 +endif + +override_dh_auto_build: + dh_auto_build -- RTLSDR=yes BLADERF=yes HACKRF=no LIMESDR=no DUMP1090_VERSION=$(DEB_VERSION) + +override_dh_install: + dh_install + install -d debian/dump1090-fa/usr/bin + cp -a dump1090 debian/dump1090-fa/usr/bin/dump1090-fa + cp -a view1090 debian/dump1090-fa/usr/bin/view1090-fa + +%: + dh $@ --with=systemd diff --git a/debian-stretch/control b/debian-stretch/control new file mode 100644 index 0000000..f60de0d --- /dev/null +++ b/debian-stretch/control @@ -0,0 +1,30 @@ +Source: dump1090-fa +Section: embedded +Priority: extra +Maintainer: Oliver Jowett +Build-Depends: debhelper(>=9), librtlsdr-dev, libusb-1.0-0-dev, pkg-config, dh-systemd, libncurses5-dev, libbladerf-dev +Standards-Version: 3.9.3 +Homepage: http://www.flightaware.com/ +Vcs-Git: https://github.com/flightaware/dump1090.git + +Package: dump1090 +Architecture: all +Depends: dump1090-fa, ${misc:Depends} +Priority: extra +Section: oldlibs +Description: transitional dummy package for dump1090 + This is a transitional dummy package to handle upgrades from + the old package name of "dump1090" to the new package name of + "dump1090-fa". It can safely be removed. + +Package: dump1090-fa +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libbladerf1 (>= 0.2016.06), adduser, lighttpd +Replaces: dump1090 (<< 3.0) +Breaks: dump1090 (<< 3.0) +Description: ADS-B Ground Station System for RTL-SDR + Networked Aviation Mode S / ADS-B decoder/translator with RTL-SDR software + defined radio USB device support. + . + This is FlightAware's fork of dump1090-mutability, customized for use + in the PiAware sdcard images. diff --git a/debian-stretch/rules b/debian-stretch/rules new file mode 100755 index 0000000..ee18e9e --- /dev/null +++ b/debian-stretch/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +ifeq ($(DEB_HOST_ARCH),armhf) + # Assume a Pi-like target, where using an 8-bit table is a fairly big win over the float path + CPPFLAGS += -DSC16Q11_TABLE_BITS=8 +endif + +override_dh_auto_build: + dh_auto_build -- RTLSDR=yes BLADERF=yes HACKRF=no LIMESDR=no DUMP1090_VERSION=$(DEB_VERSION) + +override_dh_install: + dh_install + install -d debian/dump1090-fa/usr/bin + cp -a dump1090 debian/dump1090-fa/usr/bin/dump1090-fa + cp -a view1090 debian/dump1090-fa/usr/bin/view1090-fa + +%: + dh $@ --with=systemd diff --git a/debian-wheezy/rules b/debian-wheezy/rules index 9b0a773..a886b5b 100755 --- a/debian-wheezy/rules +++ b/debian-wheezy/rules @@ -22,7 +22,7 @@ install_rtlsdr: cd rtl-sdr-build && cmake ../rtl-sdr -DCMAKE_INSTALL_PREFIX=./install && make install override_dh_auto_build: install_rtlsdr - dh_auto_build -- RTLSDR=yes BLADERF=no DIALECT=-std=gnu1x DUMP1090_VERSION=$(DUMP1090_VERSION) STATIC=yes RTLSDR_PREFIX=rtl-sdr-build/install + dh_auto_build -- RTLSDR=yes BLADERF=no HACKRF=no LIMESDR=no DIALECT=-std=gnu1x DUMP1090_VERSION=$(DUMP1090_VERSION) STATIC=yes RTLSDR_PREFIX=rtl-sdr-build/install override_dh_auto_test: dh_auto_test -- DIALECT=-std=gnu1x diff --git a/prepare-build.sh b/prepare-build.sh index 795dec9..3b8026a 100755 --- a/prepare-build.sh +++ b/prepare-build.sh @@ -52,6 +52,7 @@ case "$DIST" in ;; stretch) + cp -a $TOP/debian-stretch/* $OUT/debian/ echo "Updating changelog for stretch backport build" >&2 dch --changelog $OUT/debian/changelog --local ~bpo9+ --force-distribution --distribution stretch-backports "Automated backport build for jessie" ;;