Skip to content

Commit

Permalink
Merge pull request ceph#10147 from SUSE/wip-16598
Browse files Browse the repository at this point in the history
rpm: move mount.ceph from ceph-base to ceph-common and add symlink in /sbin for SUSE

Reviewed-by: Ken Dreyer <[email protected]>
Reviewed-by: Boris Ranto <[email protected]
  • Loading branch information
smithfarm authored Jul 19, 2016
2 parents 88e6244 + b2675ff commit 12c0683
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
10 changes: 7 additions & 3 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,11 @@ install -m 0644 -D src/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/cep
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.fetch_config

# firewall templates
# firewall templates and /sbin/mount.ceph symlink
%if 0%{?suse_version}
install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-mon %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon
install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds
ln -sf %{buildroot}%{_sbindir}/mount.ceph %{buildroot}/sbin/mount.ceph
%endif

# udev rules
Expand Down Expand Up @@ -757,7 +758,6 @@ rm -rf %{buildroot}
%{_libexecdir}/systemd/system-preset/50-ceph.preset
%{_sbindir}/ceph-create-keys
%{_sbindir}/rcceph
%{_sbindir}/mount.ceph
%dir %{_libexecdir}/ceph
%{_libexecdir}/ceph/ceph_common.sh
%dir %{_libdir}/rados-classes
Expand Down Expand Up @@ -792,7 +792,6 @@ rm -rf %{buildroot}
%{_mandir}/man8/osdmaptool.8*
%{_mandir}/man8/monmaptool.8*
%{_mandir}/man8/cephfs.8*
%{_mandir}/man8/mount.ceph.8*
#set up placeholder directories
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/tmp
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-osd
Expand Down Expand Up @@ -850,6 +849,10 @@ DISABLE_RESTART_ON_UPDATE="yes"
%{_bindir}/rbd-replay
%{_bindir}/rbd-replay-many
%{_bindir}/rbdmap
%{_sbindir}/mount.ceph
%if 0%{?suse_version}
/sbin/mount.ceph
%endif
%if %{with lttng}
%{_bindir}/rbd-replay-prep
%endif
Expand All @@ -863,6 +866,7 @@ DISABLE_RESTART_ON_UPDATE="yes"
%{_mandir}/man8/ceph-syn.8*
%{_mandir}/man8/ceph-post-file.8*
%{_mandir}/man8/ceph.8*
%{_mandir}/man8/mount.ceph.8*
%{_mandir}/man8/rados.8*
%{_mandir}/man8/rbd.8*
%{_mandir}/man8/rbdmap.8*
Expand Down
7 changes: 7 additions & 0 deletions src/Makefile-client.am
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ if WITH_FUSE
ceph_fuse_SOURCES = ceph_fuse.cc
ceph_fuse_LDADD = $(LIBCLIENT_FUSE) $(CEPH_GLOBAL)
bin_PROGRAMS += ceph-fuse
sbin_SCRIPTS += mount.fuse.ceph

if WITH_RBD
rbd_fuse_SOURCES = rbd_fuse/rbd-fuse.cc
Expand All @@ -77,6 +78,12 @@ cephfs_SOURCES = cephfs.cc
cephfs_LDADD = $(LIBCOMMON)
bin_PROGRAMS += cephfs

mount_ceph_SOURCES = mount/mount.ceph.c
mount_ceph_LDADD = $(LIBSECRET) $(LIBCOMMON)
if LINUX
sbin_PROGRAMS += mount.ceph
endif # LINUX

python_PYTHON += pybind/ceph_volume_client.py

# libcephfs (this should go somewhere else in the future)
Expand Down
7 changes: 0 additions & 7 deletions src/Makefile-server.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ BUILT_SOURCES += init-ceph

shell_scripts += init-ceph

mount_ceph_SOURCES = mount/mount.ceph.c
mount_ceph_LDADD = $(LIBSECRET) $(LIBCOMMON)
if LINUX
sbin_PROGRAMS += mount.ceph
endif # LINUX
sbin_SCRIPTS += mount.fuse.ceph


if WITH_MON

Expand Down

0 comments on commit 12c0683

Please sign in to comment.