From d956bb6668553694eb610ef89313e4a4b6bb0f72 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Wed, 30 Dec 2015 10:20:14 -0800 Subject: Added scripts and Debian configuration files for Ubuntu PPA --- host/cmake/debian/rules | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 host/cmake/debian/rules (limited to 'host/cmake/debian/rules') diff --git a/host/cmake/debian/rules b/host/cmake/debian/rules new file mode 100755 index 000000000..842e5247f --- /dev/null +++ b/host/cmake/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +export DEB_HOST_MULTIARCH + +%: + dh $@ --parallel --sourcedirectory=host --builddirectory=build + +override_dh_auto_configure: + dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DPKG_LIB_DIR="/usr/lib/uhd" -DUHD_RELEASE_MODE="release" + +# The test suite for this package is busted on powerpc. +override_dh_auto_test: + - if [ $(DEB_BUILD_ARCH) != powerpc ]; then dh_auto_test; fi + +override_dh_auto_install: + cp debian/uhd-host.limits debian/uhd-host/etc/security/limits.d/uhd.conf + cp debian/uhd-host.sysctl debian/uhd-host/etc/sysctl.d/uhd-usrp2.conf + dh_auto_install + - rm -f debian/tmp/usr/share/doc/uhd/doxygen/html/jquery.js + ln -s /usr/share/javascript/jquery/jquery.js debian/tmp/usr/share/doc/uhd/doxygen/html/jquery.js -- cgit v1.2.3