File obs-server-2.9-0005-backend-Make-OBS_BACKEND_DATA_DIR-variable-configura.patch of Package obs-server

From 763b7a9e7399beadf6ed0fecd0e46fe6204141d0 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 f84ec77630..a7537d5d92 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 f55a5b8310..1ed555b4df 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
-OBS_BACKEND_DATA_DIR := /srv/obs
 
 prepare_dirs:
 	$(INSTALL) -d -m 755 $(DESTDIR)$(OBS_BACKEND_PREFIX)
-- 
2.20.1