From f18c7213938b11601a36c5e2e2a9543c8c8c8e1c Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 1 Feb 2011 17:09:08 -0800 Subject: [PATCH] librbd: add packages for librbd --- debian/control | 37 +++++++++++++++++++++++++++++++- debian/librbd1-dev.install | 3 +++ debian/librbd1.install | 1 + debian/librbd1.postinst | 41 ++++++++++++++++++++++++++++++++++++ debian/librbd1.postrm | 43 ++++++++++++++++++++++++++++++++++++++ debian/rules | 1 + 6 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 debian/librbd1-dev.install create mode 100644 debian/librbd1.install create mode 100644 debian/librbd1.postinst create mode 100644 debian/librbd1.postrm diff --git a/debian/control b/debian/control index bc1247ff466d3..797208259102a 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,7 @@ Standards-Version: 3.9.1 Package: ceph Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libedit2, hdparm, binutils -Recommends: ceph-client-tools, ceph-fuse, libceph1, librados1, libcrush1, btrfs-tools +Recommends: ceph-client-tools, ceph-fuse, libceph1, librados1, librbd1, libcrush1, btrfs-tools Description: distributed storage and file system Ceph is a distributed storage and network file system designed to provide excellent performance, reliability, and scalability. @@ -171,6 +171,41 @@ Description: RADOS distributed object store client library (development files) This package contains development files needed for building applications that link against librados. +Package: librbd1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, librados1 +Description: RADOS block device client library + RBD is a block device striped across multiple distributed objects + in RADOS, a reliable, autonomic distributed object storage cluster + developed as part of the Ceph distributed storage system. This is a + shared library allowing applications to manage these block devices. + +Package: librbd1-dbg +Architecture: any +Section: debug +Priority: extra +Depends: librbd1 (= ${binary:Version}), ${misc:Depends} +Description: debugging symbols for librbd1 + RBD is a block device striped across multiple distributed objects + in RADOS, a reliable, autonomic distributed object storage cluster + developed as part of the Ceph distributed storage system. This is a + shared library allowing applications to manage these block devices. + . + This package contains debugging symbols for librbd1. + +Package: librbd1-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends}, librbd1 (= ${binary:Version}) +Description: RADOS block device client library (development files) + RBD is a block device striped across multiple distributed objects + in RADOS, a reliable, autonomic distributed object storage cluster + developed as part of the Ceph distributed storage system. This is a + shared library allowing applications to manage these block devices. + . + This package contains development files needed for building applications that + link against librbd1. + Package: libceph1 Conflicts: libceph Replaces: libceph diff --git a/debian/librbd1-dev.install b/debian/librbd1-dev.install new file mode 100644 index 0000000000000..ba2d039614dc0 --- /dev/null +++ b/debian/librbd1-dev.install @@ -0,0 +1,3 @@ +usr/lib/librbd.so +usr/lib/librbd.a +usr/lib/librbd.la diff --git a/debian/librbd1.install b/debian/librbd1.install new file mode 100644 index 0000000000000..b3cb648c6362b --- /dev/null +++ b/debian/librbd1.install @@ -0,0 +1 @@ +usr/lib/librbd.so.* diff --git a/debian/librbd1.postinst b/debian/librbd1.postinst new file mode 100644 index 0000000000000..df6b9fcb3dbd7 --- /dev/null +++ b/debian/librbd1.postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ldconfig + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/librbd1.postrm b/debian/librbd1.postrm new file mode 100644 index 0000000000000..598f48b615735 --- /dev/null +++ b/debian/librbd1.postrm @@ -0,0 +1,43 @@ +#!/bin/sh +# postrm script for ceph +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove) + ldconfig + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/rules b/debian/rules index 1941750dbb535..bc4fc769122d1 100755 --- a/debian/rules +++ b/debian/rules @@ -66,6 +66,7 @@ binary-arch: build install dh_strip -pceph-client-tools --dbg-package=ceph-client-tools-dbg dh_strip -plibcrush1 --dbg-package=libcrush1-dbg dh_strip -plibrados1 --dbg-package=librados1-dbg + dh_strip -plibrbd1 --dbg-package=librbd1-dbg dh_strip -plibceph1 --dbg-package=libceph1-dbg dh_strip -pradosgw --dbg-package=radosgw-dbg -- 2.39.5