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