summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Cordoba <erich.cordoba.malibran@intel.com>2019-01-29 20:57:00 -0600
committerErich Cordoba <erich.cordoba.malibran@intel.com>2019-01-29 20:59:27 -0600
commit80e2ccee51ac473a504ad0c35082661313e4894a (patch)
tree09c43db780b28fdef7500c969771a7c06b504576
parentc4c4191a91f4740f17c165c7caf41d15abeac989 (diff)
Create makefile for install-log-server
Story: 2004043 Task: 27554 Change-Id: I3f31d6b0117a852a67b8c364ed61922e97cc81e6 Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
Notes
Notes (review): Code-Review+2: jerry <jerry.sun@windriver.com> Workflow+1: jerry <jerry.sun@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 31 Jan 2019 14:00:47 +0000 Reviewed-on: https://review.openstack.org/633862 Project: openstack/stx-clients Branch: refs/heads/master
-rw-r--r--install-log-server/centos/install-log-server.spec9
-rw-r--r--install-log-server/install-log-server/Makefile14
2 files changed, 19 insertions, 4 deletions
diff --git a/install-log-server/centos/install-log-server.spec b/install-log-server/centos/install-log-server.spec
index f22042b..5415324 100644
--- a/install-log-server/centos/install-log-server.spec
+++ b/install-log-server/centos/install-log-server.spec
@@ -10,19 +10,20 @@ URL: unknown
10Source0: %{name}-%{version}.tar.gz 10Source0: %{name}-%{version}.tar.gz
11 11
12%define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk 12%define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk
13%global debug_package %{nil}
13 14
14%description 15%description
15Titanium Cloud log server installation 16Titanium Cloud log server installation
16 17
17%prep 18%prep
18%setup 19%setup
19mv %name wrs-%{name}-%{version} 20
20tar czf wrs-%{name}-%{version}.tgz wrs-%{name}-%{version} 21%build
22make NAME=%{name} VERSION=%{version}
21 23
22# Install for guest-client package 24# Install for guest-client package
23%install 25%install
24install -D -m 644 wrs-%{name}-%{version}.tgz %{buildroot}%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz 26make install NAME=%{name} VERSION=%{version} SDK_DEPLOY_DIR=%{buildroot}%{cgcs_sdk_deploy_dir}
25 27
26%files 28%files
27%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz 29%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
28
diff --git a/install-log-server/install-log-server/Makefile b/install-log-server/install-log-server/Makefile
new file mode 100644
index 0000000..4f1c785
--- /dev/null
+++ b/install-log-server/install-log-server/Makefile
@@ -0,0 +1,14 @@
1#
2# SPDX-License-Identifier: Apache-2.0
3#
4
5NAME ?= install-log-server
6VERSION ?= 1.1.2
7SDK_DEPLOY_DIR ?= /opt/deploy/cgcs_sdk
8
9all:
10 mv $(NAME) wrs-$(NAME)-$(VERSION)
11 tar czf wrs-$(NAME)-$(VERSION).tgz wrs-$(NAME)-$(VERSION)
12
13install:
14 install -D -m 644 wrs-$(NAME)-$(VERSION).tgz $(SDK_DEPLOY_DIR)/wrs-$(NAME)-$(VERSION).tgz