From de4da74c8dafe5a1cc5594e5578eeeabb4c57a1f Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Mon, 23 Jan 2012 19:01:50 -0500 Subject: [PATCH] deb: made udev linux-only, as per intrigeri's patch 539ed1b43b5559b8a90f7b651 Referring to Intrigeri's git repo: git://gaffer.ptitcanardnoir.org/barry.git --- debian/changelog | 1 + debian/control | 2 +- debian/rules | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index fc8ee7d4..06b4f928 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,7 @@ barry (0.18.0-0) unstable; urgency=low * added orangeuk and mts ppp chatscript files (2011/08/08) * added bwatch * added btarcmp + * made udev linux-only, as per intrigeri's patch 539ed1b43b5559b8a90f7b651 -- Chris Frey Mon, 2 Jan 2012 03:20:18 -0400 diff --git a/debian/control b/debian/control index 69d410e5..683a395c 100644 --- a/debian/control +++ b/debian/control @@ -67,7 +67,7 @@ Description: Development files for libbarry Package: barry-util Section: utils Architecture: any -Depends: libbarry0 (>= 0.18), libbarry0 (<< 0.19), udev (>= 0.056), python, ${shlibs:Depends} +Depends: libbarry0 (>= 0.18), libbarry0 (<< 0.19), udev (>= 0.056) [linux-any], python, ${shlibs:Depends} Suggests: ppp Description: Command line utilities for working with the RIM BlackBerry Handheld Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld. diff --git a/debian/rules b/debian/rules index 400632cf..10c43d42 100755 --- a/debian/rules +++ b/debian/rules @@ -25,12 +25,14 @@ COMMON_CONFIGURE_FLAGS := --prefix=/usr DEB_INSTALL_DOCS_ALL = install/barry-util:: +ifeq ($(DEB_HOST_ARCH_OS), linux) # Install udev rules for the barry-util package install -d $(CURDIR)/debian/barry-util/etc/udev/rules.d install -m 0644 \ $(DEB_SRCDIR)/udev/10-blackberry.rules \ $(DEB_SRCDIR)/udev/99-blackberry-perms.rules \ $(CURDIR)/debian/barry-util/etc/udev/rules.d +endif # Install modprobe blacklist file for bcharge, into barry-util package install -d $(CURDIR)/debian/barry-util/etc/modprobe.d install -m 0644 $(DEB_SRCDIR)/modprobe/blacklist-berry_charge.conf $(CURDIR)/debian/barry-util/etc/modprobe.d/blacklist-berry_charge.conf -- 2.11.4.GIT