summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-01-31 14:00:47 +0000
committerGerrit Code Review <review@openstack.org>2019-01-31 14:00:47 +0000
commit320c914b3f979d3cee9aaf32ad44b18278e4effc (patch)
treebb6e3f538e722b413f7ba2c8308f4162bc730d58
parent4c8bcf1d3ecc89680baa1b619da9f7f813661f9e (diff)
parent80e2ccee51ac473a504ad0c35082661313e4894a (diff)
Merge "Create makefile for install-log-server"
-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