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