File obs-server-2.10-0006-backend-Make-OBS_BACKEND_DATA_DIR-variable-configura.patch of Package obs-server

From 299700a7fcd466d3cfa12585f9eace7a5185f402 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Tue, 28 Jun 2016 01:17:35 +0100
Subject: [PATCH] [backend] Make OBS_BACKEND_DATA_DIR variable configuration
 parameter.

Moving this variable to Makefile.local allows it to be
a configuration variable.
This allows to create backend data directories somewhere else
than "/srv/obs".

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 Makefile.include     | 1 +
 src/backend/Makefile | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.include b/Makefile.include
index 322edc7a31..a4278248bd 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -1,5 +1,6 @@
 INSTALL=/usr/bin/install
 OBS_BACKEND_PREFIX=/usr/lib/obs/server
+OBS_BACKEND_DATA_DIR=/srv/obs
 OBS_DOCUMENT_ROOT=/srv/www/obs
 OBS_API_PREFIX=$(OBS_DOCUMENT_ROOT)/api
 OBS_APIDOCS_PREFIX=$(OBS_DOCUMENT_ROOT)/docs
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 7b0abf298f..d0a2601c7e 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -1,7 +1,6 @@
 include ../../Makefile.include
 
 OBS_BACKEND_DATA_SUBDIRS := build events info jobs log projects repos run sources trees workers service service/log
-OBS_BACKEND_DATA_DIR := /srv/obs
 
 prepare_dirs:
 	$(INSTALL) -d -m 755 $(DESTDIR)$(OBS_BACKEND_PREFIX)
-- 
2.31.1