summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>2015-11-13 10:31:00 +0100
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>2015-11-21 16:26:44 +0100
commit7bbd54a1e6302a1daa671edf6c47309105371737 (patch)
tree90d27fccbffee0ce2ee55be56c87639c39b7d76d
parentadd rbd-nbd doc (diff)
downloadceph-7bbd54a1e6302a1daa671edf6c47309105371737.tar.xz
ceph-7bbd54a1e6302a1daa671edf6c47309105371737.zip
add rbd-nbd package
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
-rw-r--r--ceph.spec.in15
-rw-r--r--debian/control27
-rw-r--r--debian/rbd-nbd.install2
-rwxr-xr-xdebian/rules1
4 files changed, 45 insertions, 0 deletions
diff --git a/ceph.spec.in b/ceph.spec.in
index 74920d5ee1e..0882ba980aa 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
@@ -962,6 +971,12 @@ fi
%{_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,-)
%{_bindir}/radosgw
diff --git a/debian/control b/debian/control
index d757e05b7da..c8f2c290413 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 00000000000..385c4501f77
--- /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 13ea829734b..3bb2cdfc722 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