diff --git a/ceph.spec.in b/ceph.spec.in index 74920d5ee1ea2..0882ba980aa6c 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -253,6 +253,15 @@ Requires: librbd1 = %{epoch}:%{version}-%{release} %description -n rbd-fuse FUSE based client to map Ceph rbd images to files +%package -n rbd-nbd +Summary: Ceph RBD client base on NBD +Group: System Environment/Base +Requires: %{name} +Requires: librados2 = %{epoch}:%{version}-%{release} +Requires: librbd1 = %{epoch}:%{version}-%{release} +%description -n rbd-nbd +NBD based client to map Ceph rbd images to local device + %package radosgw Summary: Rados REST gateway Group: Development/Libraries @@ -961,6 +970,12 @@ fi %{_bindir}/rbd-fuse %{_mandir}/man8/rbd-fuse.8* +################################################################################# +%files -n rbd-nbd +%defattr(-,root,root,-) +%{_bindir}/rbd-nbd +%{_mandir}/man8/rbd-nbd.8* + ################################################################################# %files radosgw %defattr(-,root,root,-) diff --git a/debian/control b/debian/control index d757e05b7daa8..c8f2c290413a8 100644 --- a/debian/control +++ b/debian/control @@ -190,6 +190,33 @@ Description: debugging symbols for rbd-fuse . This package contains the debugging symbols for rbd-fuse. +Package: rbd-nbd +Architecture: linux-any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: NBD-based rbd client for the Ceph distributed file system + Ceph is a massively scalable, open-source, distributed + storage system that runs on commodity hardware and delivers object, + block and file system storage. This is a + NBD-based client that allows one to map Ceph rbd images as local + block device. + . + NBD base client that allows one to map Ceph rbd images as local + block device. + +Package: rbd-nbd-dbg +Architecture: linux-any +Section: debug +Priority: extra +Depends: rbd-nbd (= ${binary:Version}), ${misc:Depends} +Description: debugging symbols for rbd-nbd + Ceph is a massively scalable, open-source, distributed + storage system that runs on commodity hardware and delivers object, + block and file system storage. This is a + NBD-based client that allows one to map Ceph rbd images as local + block device. + . + This package contains the debugging symbols for rbd-nbd. + Package: ceph-common Architecture: linux-any Depends: librbd1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, diff --git a/debian/rbd-nbd.install b/debian/rbd-nbd.install new file mode 100644 index 0000000000000..385c4501f770c --- /dev/null +++ b/debian/rbd-nbd.install @@ -0,0 +1,2 @@ +usr/bin/rbd-nbd +usr/share/man/man8/rbd-nbd.8 diff --git a/debian/rules b/debian/rules index 13ea829734bb2..3bb2cdfc7226e 100755 --- a/debian/rules +++ b/debian/rules @@ -161,6 +161,7 @@ binary-arch: build install dh_strip -pceph-mds --dbg-package=ceph-mds-dbg dh_strip -pceph-fuse --dbg-package=ceph-fuse-dbg dh_strip -prbd-fuse --dbg-package=rbd-fuse-dbg + dh_strip -prbd-nbd --dbg-package=rbd-nbd-dbg dh_strip -pceph-common --dbg-package=ceph-common-dbg dh_strip -pceph-fs-common --dbg-package=ceph-fs-common-dbg dh_strip -plibrados2 --dbg-package=librados2-dbg