e3c68b
From 37555b6c83d3a979033111a754ee1728dab254f5 Mon Sep 17 00:00:00 2001
e3c68b
From: Hari Gowtham <hgowtham@redhat.com>
e3c68b
Date: Wed, 18 Sep 2019 17:38:52 +0530
e3c68b
Subject: [PATCH 297/297] rpmbuild: fixing the build errors with 2a905a8ae
e3c68b
e3c68b
Label: DOWNSTREAM ONLY
e3c68b
e3c68b
Have added a Makefile inside extras/quota to remove the
e3c68b
No rule to make target error for quota/log_accounting.sh
e3c68b
e3c68b
Change-Id: Ia3f6b3fa21a0de7eb3bdb31b3d205139df412aca
e3c68b
fixes: bz#1719171
e3c68b
Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
e3c68b
Reviewed-on: https://code.engineering.redhat.com/gerrit/181326
e3c68b
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e3c68b
Reviewed-by: Aravinda Vishwanathapura Krishna Murthy <avishwan@redhat.com>
e3c68b
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
e3c68b
---
e3c68b
 configure.ac             | 1 +
e3c68b
 extras/Makefile.am       | 6 +-----
e3c68b
 extras/quota/Makefile.am | 8 ++++++++
e3c68b
 3 files changed, 10 insertions(+), 5 deletions(-)
e3c68b
 create mode 100644 extras/quota/Makefile.am
e3c68b
e3c68b
diff --git a/configure.ac b/configure.ac
e3c68b
index f597b86..327733e 100644
e3c68b
--- a/configure.ac
e3c68b
+++ b/configure.ac
e3c68b
@@ -232,6 +232,7 @@ AC_CONFIG_FILES([Makefile
e3c68b
                 extras/hook-scripts/reset/pre/Makefile
e3c68b
                 extras/python/Makefile
e3c68b
                 extras/snap_scheduler/Makefile
e3c68b
+                extras/quota/Makefile
e3c68b
                 events/Makefile
e3c68b
                 events/src/Makefile
e3c68b
                 events/src/eventsapiconf.py
e3c68b
diff --git a/extras/Makefile.am b/extras/Makefile.am
e3c68b
index 8cbfda1..31ccdf5 100644
e3c68b
--- a/extras/Makefile.am
e3c68b
+++ b/extras/Makefile.am
e3c68b
@@ -12,7 +12,7 @@ EditorMode_DATA = glusterfs-mode.el glusterfs.vim
e3c68b
 
e3c68b
 SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
e3c68b
           $(GEOREP_EXTRAS_SUBDIR) snap_scheduler firewalld cliutils python \
e3c68b
-		  ganesha
e3c68b
+		  ganesha quota
e3c68b
 
e3c68b
 confdir = $(sysconfdir)/glusterfs
e3c68b
 if WITH_SERVER
e3c68b
@@ -30,14 +30,11 @@ endif
e3c68b
 
e3c68b
 scriptsdir = $(datadir)/glusterfs/scripts
e3c68b
 scripts_SCRIPTS = thin-arbiter/setup-thin-arbiter.sh
e3c68b
-scripts_SCRIPTS += quota/log_accounting.sh
e3c68b
 scripts_SCRIPTS += collect-system-stats.sh
e3c68b
 scripts_SCRIPTS += identify-hangs.sh
e3c68b
 if WITH_SERVER
e3c68b
 scripts_SCRIPTS += post-upgrade-script-for-quota.sh \
e3c68b
 	pre-upgrade-script-for-quota.sh stop-all-gluster-processes.sh
e3c68b
-scripts_SCRIPTS += quota/quota_fsck.py
e3c68b
-scripts_SCRIPTS += quota/xattr_analysis.py
e3c68b
 if USE_SYSTEMD
e3c68b
 scripts_SCRIPTS += control-cpu-load.sh
e3c68b
 scripts_SCRIPTS += control-mem.sh
e3c68b
@@ -56,7 +53,6 @@ EXTRA_DIST = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.co
e3c68b
 	stop-all-gluster-processes.sh clang-checker.sh mount-shared-storage.sh \
e3c68b
 	control-cpu-load.sh control-mem.sh group-distributed-virt \
e3c68b
 	thin-arbiter/thin-arbiter.vol thin-arbiter/setup-thin-arbiter.sh \
e3c68b
-	quota/xattr_analysis.py quota/quota_fsck.py quota/log_accounting.sh \
e3c68b
 	collect-system-stats.sh identify-hangs.sh
e3c68b
 
e3c68b
 if WITH_SERVER
e3c68b
diff --git a/extras/quota/Makefile.am b/extras/quota/Makefile.am
e3c68b
new file mode 100644
e3c68b
index 0000000..cdb6be1
e3c68b
--- /dev/null
e3c68b
+++ b/extras/quota/Makefile.am
e3c68b
@@ -0,0 +1,8 @@
e3c68b
+scriptsdir = $(datadir)/glusterfs/scripts
e3c68b
+scripts_SCRIPTS =  log_accounting.sh
e3c68b
+
e3c68b
+if WITH_SERVER
e3c68b
+scripts_SCRIPTS += xattr_analysis.py quota_fsck.py
e3c68b
+endif
e3c68b
+
e3c68b
+EXTRA_DIST = log_accounting.sh xattr_analysis.py quota_fsck.py
e3c68b
-- 
e3c68b
1.8.3.1
e3c68b