Add Debian packaging information

This allows (among others) to build rtl-sdr nightly packages
for a variety of distributions as part of the network:osmocom:nightly
builds
This commit is contained in:
Harald Welte
2018-06-03 15:19:53 +02:00
parent 9573e68d10
commit 8a26abaf79
29 changed files with 1507 additions and 0 deletions

12
debian/rules vendored Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH
%:
dh $@
override_dh_auto_configure: debian/librtlsdr0.udev
dh_auto_configure -- -DLIB_INSTALL_DIR=lib/$(DEB_HOST_MULTIARCH) -DDETACH_KERNEL_DRIVER=ON
debian/librtlsdr0.udev: rtl-sdr.rules
cp -p rtl-sdr.rules debian/librtlsdr0.udev