From ad4e611924574d1222851847a4e013dd17c0fce2 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Tue, 4 Aug 2020 07:57:43 -0400 Subject: [PATCH] ceph.spec, debian: changes for building cephfs-mirror daemon Signed-off-by: Venky Shankar --- ceph.spec.in | 14 ++++++++++++++ debian/cephfs-mirror.install | 1 + debian/control | 24 ++++++++++++++++++++++++ debian/rules | 1 + 4 files changed, 40 insertions(+) create mode 100644 debian/cephfs-mirror.install diff --git a/ceph.spec.in b/ceph.spec.in index fe193aec60edb..736b098b29e82 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -599,6 +599,17 @@ Requires: python%{python3_pkgversion} %description fuse FUSE based client for Ceph distributed network file system +%package -n cephfs-mirror +Summary: Ceph daemon for mirroring CephFS snapshots +%if 0%{?suse_version} +Group: System/Filesystems +%endif +Requires: ceph-base = %{_epoch_prefix}%{version}-%{release} +Requires: librados2 = %{_epoch_prefix}%{version}-%{release} +Requires: libcephfs2 = %{_epoch_prefix}%{version}-%{release} +%description -n cephfs-mirror +Daemon for mirroring CephFS snapshots between Ceph clusters. + %package -n rbd-fuse Summary: Ceph fuse-based client %if 0%{?suse_version} @@ -1750,6 +1761,9 @@ fi %{_unitdir}/ceph-fuse@.service %{_unitdir}/ceph-fuse.target +%files -n cephfs-mirror +%{_bindir}/cephfs-mirror + %files -n rbd-fuse %{_bindir}/rbd-fuse %{_mandir}/man8/rbd-fuse.8* diff --git a/debian/cephfs-mirror.install b/debian/cephfs-mirror.install new file mode 100644 index 0000000000000..19d2e483d9586 --- /dev/null +++ b/debian/cephfs-mirror.install @@ -0,0 +1 @@ +usr/bin/cephfs-mirror diff --git a/debian/control b/debian/control index c4425a3aadb69..509aa78dec1d0 100644 --- a/debian/control +++ b/debian/control @@ -453,6 +453,30 @@ Description: debugging symbols for ceph-fuse . This package contains the debugging symbols for ceph-fuse. +Package: cephfs-mirror +Architecture: linux-any +Depends: ceph-common (= ${binary:Version}), + librados2 (= ${binary:Version}), + libcephfs2 (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: 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 daemon for mirroring CephFS + directory snapshots between Ceph clusters. + +Package: cephfs-mirror-dbg +Architecture: linux-any +Section: debug +Priority: extra +Depends: cephfs-mirror (= ${binary:Version}), + ${misc:Depends} +Description: debugging symbols for cephfs-mirror + 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 daemon for mirroring CephFS + directory snapshots between Ceph clusters. + Package: rbd-fuse Architecture: linux-any Depends: ${misc:Depends}, diff --git a/debian/rules b/debian/rules index b591ce7d0e0c7..fbddbd1fbb9ba 100755 --- a/debian/rules +++ b/debian/rules @@ -106,6 +106,7 @@ override_dh_strip: dh_strip -pceph-mon --dbg-package=ceph-mon-dbg dh_strip -pceph-osd --dbg-package=ceph-osd-dbg dh_strip -pceph-base --dbg-package=ceph-base-dbg + dh_strip -pcephfs-mirror --dbg-package=cephfs-mirror-dbg dh_strip -prbd-fuse --dbg-package=rbd-fuse-dbg dh_strip -prbd-mirror --dbg-package=rbd-mirror-dbg dh_strip -pceph-immutable-object-cache --dbg-package=ceph-immutable-object-cache-dbg -- 2.47.3