summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@Netapp.com>2022-02-22 12:28:47 -0500
committerSteve Dickson <steved@redhat.com>2022-02-23 11:45:51 -0500
commit475857723dee84a68b675a56ca0ea2e81c2f626e (patch)
tree45e908791994ef471ca08658b380c32478394438 /tools
parentddc633fd57caf8a66d4714091a7f31da59afa7f2 (diff)
downloadnfs-utils-475857723dee84a68b675a56ca0ea2e81c2f626e.tar.gz
rpcctl: Add installation to the Makefilenfs-utils-2-6-2-rc2
And create a shell script that launches the python program from the $(libdir) Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am2
-rw-r--r--tools/rpcctl/Makefile.am13
2 files changed, 14 insertions, 1 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 9b4b080..c3feabb 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -12,6 +12,6 @@ if CONFIG_NFSDCLD
OPTDIRS += nfsdclddb
endif
-SUBDIRS = locktest rpcdebug nlmtest mountstats nfs-iostat nfsdclnts $(OPTDIRS)
+SUBDIRS = locktest rpcdebug nlmtest mountstats nfs-iostat rpcctl nfsdclnts $(OPTDIRS)
MAINTAINERCLEANFILES = Makefile.in
diff --git a/tools/rpcctl/Makefile.am b/tools/rpcctl/Makefile.am
new file mode 100644
index 0000000..33fb431
--- /dev/null
+++ b/tools/rpcctl/Makefile.am
@@ -0,0 +1,13 @@
+## Process this file with automake to produce Makefile.in
+PYTHON_FILES = rpcctl.py
+
+man8_MANS = rpcctl.man
+
+EXTRA_DIST = $(man8_MANS) $(PYTHON_FILES)
+
+all-local: $(PYTHON_FILES)
+
+install-data-hook:
+ $(INSTALL) -m 755 rpcctl.py $(DESTDIR)$(sbindir)/rpcctl
+
+MAINTAINERCLEANFILES=Makefile.in