]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs,deb: package cephfs-shell
authorKefu Chai <kchai@redhat.com>
Wed, 8 Aug 2018 16:50:00 +0000 (00:50 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 9 Aug 2018 12:19:34 +0000 (20:19 +0800)
change `#!/usr/bin/env python3` to `#!/usr/bin/python3` as per
https://www.debian.org/doc/packaging-manuals/python-policy/programs.html#interpreter-directive

Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/cephfs-shell.install [new file with mode: 0644]
debian/control
debian/py3dist-overrides [new file with mode: 0644]
debian/rules
src/tools/cephfs/cephfs-shell

diff --git a/debian/cephfs-shell.install b/debian/cephfs-shell.install
new file mode 100644 (file)
index 0000000..4713a81
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin/cephfs-shell
+usr/lib/python3*/dist-packages/cephfs_shell-*.egg-info
index b2cfc11bcb753c1de1d8ea0ebecdc00da218c331..a33d5ab997b984081e201c34fb41723ff6ddf7b4 100644 (file)
@@ -1078,3 +1078,16 @@ Depends: librados-dev (= ${binary:Version}) ${misc:Depends},
 Description: RADOS object class development kit.
  .
  This package contains development files needed for building RADOS object class plugins.
+
+Package: cephfs-shell
+Architecture: all
+Depends: ${misc:Depends}
+         ${python3:Depends}
+Description: interactive shell 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 an interactive tool that
+ allows accessing a Ceph file system without mounting it by providing
+ a nice pseudo-shell which works like an FTP client.
+ .
+ This package contains a CLI for interacting with the CephFS.
diff --git a/debian/py3dist-overrides b/debian/py3dist-overrides
new file mode 100644 (file)
index 0000000..1cf7616
--- /dev/null
@@ -0,0 +1 @@
+cephfs python3-cephfs; PEP386
index fd752bc5d4f4f74559ef8365354a10e4ee07c969..44490c8fbddd5bbade735307386a38322c4bbebb 100755 (executable)
@@ -12,8 +12,10 @@ ifneq (,$(findstring WITH_STATIC_LIBSTDCXX,$(CEPH_EXTRA_CMAKE_ARGS)))
   export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
 endif
 
-extraopts += -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_PYTHON3=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF
+extraopts += -DWITH_OCF=ON -DWITH_LTTNG=ON
+extraopts += -DWITH_PYTHON3=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF
 extraopts += -DWITH_CEPHFS_JAVA=ON
+extraopts += -DWITH_CEPHFS_SHELL=ON
 extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default
 # assumes that ceph is exmpt from multiarch support, so we override the libdir.
 extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib
@@ -147,6 +149,7 @@ override_dh_python3:
          dh_python3 -p python3-$$binding;      \
        done
        dh_python3 -p python3-ceph-argparse
+       dh_python3 -p cephfs-shell
 
 # do not run tests
 override_dh_auto_test:
index 574c3d67fe4ba077b4420a6c5120f230133d91e2..4fd4b85aec36f0fab175928fa623577453663d36 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
 # coding = utf-8
 
 import argparse