From b8872c3c0fcda7bc9824b1d84e910f1af664a492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 13 Apr 2016 03:14:54 +0200 Subject: Use of USB only on Linux architectures --- debian/changelog | 7 +++++++ debian/rules | 11 ++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index daee836..c96436b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +ipmitool (1.8.16-3) UNRELEASED; urgency=medium + + * debian/rules: + - Use of USB only on Linux architectures (Closes: #820007). + + -- Jörg Frings-Fürst Wed, 13 Apr 2016 03:05:48 +0200 + ipmitool (1.8.16-2) unstable; urgency=medium * New debian/patches/0001-Dialect_change.patch (Closes: #816491): diff --git a/debian/rules b/debian/rules index 2b8f7e2..76c0336 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,15 @@ export DH_OPTIONS # export DEB_BUILD_MAINT_OPTIONS = hardening=+all +# Platform-specific features +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +ifneq ($(DEB_HOST_ARCH_OS),linux) + # USB implementation is Linux-specific + extra_config_opts += --disable-intf-usb +endif + + %: dh $@ --with systemd,autoreconf @@ -31,4 +40,4 @@ override_dh_systemd_enable: dh_systemd_enable --no-enable ipmievd.service override_dh_auto_configure: - dh_auto_configure -- --prefix=/usr --with-kerneldir --mandir=/usr/share/man + dh_auto_configure -- --prefix=/usr --with-kerneldir --mandir=/usr/share/man $(extra_config_opts) -- cgit v1.2.3