From: Adam Crume Date: Fri, 15 Aug 2014 04:33:43 +0000 (-0700) Subject: lttng: Add distro packaging X-Git-Tag: v0.86~234^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b22d693f6814f9337e866d3200d7beffa69d00b4;p=ceph.git lttng: Add distro packaging Signed-off-by: Adam Crume --- diff --git a/ceph.spec.in b/ceph.spec.in index 0580642e8674..8df2224fd556 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -249,6 +249,7 @@ License: LGPL-2.0 Requires: librados2 = %{version}-%{release} Requires: librbd1 = %{version}-%{release} Requires: libcephfs1 = %{version}-%{release} +BuildRequires: lttng-ust-devel %description -n ceph-test This package contains Ceph benchmarks and test tools. diff --git a/debian/control b/debian/control index b264efc5de83..e3de1a0a3ed8 100644 --- a/debian/control +++ b/debian/control @@ -31,6 +31,7 @@ Build-Depends: autoconf, libleveldb-dev, libnss3-dev, libsnappy-dev, + liblttng-ust-dev, libtool, libudev-dev, libxml2-dev, diff --git a/debian/rules b/debian/rules index 91773313e5ce..500258cb96fb 100755 --- a/debian/rules +++ b/debian/rules @@ -30,6 +30,13 @@ ifeq ($(DEB_HOST_ARCH), armel) extraopts += --without-libatomic-ops endif +ifeq ($(shell dpkg-vendor --derives-from ubuntu && echo yes),yes) + codename = $(shell lsb_release -a | sed -rn 's/Codename:\s([^\s]*)/\1/p') + ifeq ($(codename),trusty) + extraopts += --without-lttng + endif +endif + configure: configure-stamp configure-stamp: dh_testdir