From 3607e808fd9fd340fdcb2b946fc3533b52cbd27a Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Wed, 29 Apr 2009 18:18:06 +0100 Subject: [PATCH] debian: use external libblkid on Ubuntu Check the output of lsb_release -is to allow per-distro customisations. On Ubuntu, use the external libblkid. The advantage to doing this in the standard rules is that anybody may download a newer e2fsprogs tarball and have it build packages the same way as their distribution. Use ?= so it can still be overidden. --- debian/rules | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/debian/rules b/debian/rules index b798854..f60f0a9 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,12 @@ export LC_ALL=C # no chance that pkg-create-dbgsym can cope with this package's manual construction of -dbg export NO_PKG_MANGLE=1 +# Allow distro-specific behaviour +DISTRO :=$(shell lsb_release -is 2>/dev/null || echo Debian) +ifeq ($(DISTRO),Ubuntu) +BUILD_BLKID ?= no +endif + # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) -- 1.6.0.5