Skip to content

Commit 004713e

Browse files
committed
tools/cephfs,deb: package cephfs-shell
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 <[email protected]>
1 parent ee86364 commit 004713e

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

debian/cephfs-shell.install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
usr/bin/cephfs-shell
2+
usr/lib/python3*/dist-packages/cephfs_shell-*.egg-info

debian/control

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,3 +1078,16 @@ Depends: librados-dev (= ${binary:Version}) ${misc:Depends},
10781078
Description: RADOS object class development kit.
10791079
.
10801080
This package contains development files needed for building RADOS object class plugins.
1081+
1082+
Package: cephfs-shell
1083+
Architecture: all
1084+
Depends: ${misc:Depends}
1085+
${python3:Depends}
1086+
Description: interactive shell for the Ceph distributed file system
1087+
Ceph is a massively scalable, open-source, distributed
1088+
storage system that runs on commodity hardware and delivers object,
1089+
block and file system storage. This is an interactive tool that
1090+
allows accessing a Ceph file system without mounting it by providing
1091+
a nice pseudo-shell which works like an FTP client.
1092+
.
1093+
This package contains a CLI for interacting with the CephFS.

debian/py3dist-overrides

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cephfs python3-cephfs; PEP386

debian/rules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ ifneq (,$(findstring WITH_STATIC_LIBSTDCXX,$(CEPH_EXTRA_CMAKE_ARGS)))
1212
export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
1313
endif
1414

15-
extraopts += -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_PYTHON3=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF
15+
extraopts += -DWITH_OCF=ON -DWITH_LTTNG=ON
16+
extraopts += -DWITH_PYTHON3=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF
1617
extraopts += -DWITH_CEPHFS_JAVA=ON
18+
extraopts += -DWITH_CEPHFS_SHELL=ON
1719
extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default
1820
# assumes that ceph is exmpt from multiarch support, so we override the libdir.
1921
extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib
@@ -147,6 +149,7 @@ override_dh_python3:
147149
dh_python3 -p python3-$$binding; \
148150
done
149151
dh_python3 -p python3-ceph-argparse
152+
dh_python3 -p cephfs-shell
150153

151154
# do not run tests
152155
override_dh_auto_test:

src/tools/cephfs/cephfs-shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/python3
22
# coding = utf-8
33

44
import argparse

0 commit comments

Comments
 (0)