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