Merge "Create makefile for install-log-server"

This commit is contained in:
Zuul 2019-01-31 14:00:47 +00:00 committed by Gerrit Code Review
commit 320c914b3f
2 changed files with 19 additions and 4 deletions

View File

@ -10,19 +10,20 @@ URL: unknown
Source0: %{name}-%{version}.tar.gz
%define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk
%global debug_package %{nil}
%description
Titanium Cloud log server installation
%prep
%setup
mv %name wrs-%{name}-%{version}
tar czf wrs-%{name}-%{version}.tgz wrs-%{name}-%{version}
%build
make NAME=%{name} VERSION=%{version}
# Install for guest-client package
%install
install -D -m 644 wrs-%{name}-%{version}.tgz %{buildroot}%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
make install NAME=%{name} VERSION=%{version} SDK_DEPLOY_DIR=%{buildroot}%{cgcs_sdk_deploy_dir}
%files
%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz

View File

@ -0,0 +1,14 @@
#
# SPDX-License-Identifier: Apache-2.0
#
NAME ?= install-log-server
VERSION ?= 1.1.2
SDK_DEPLOY_DIR ?= /opt/deploy/cgcs_sdk
all:
mv $(NAME) wrs-$(NAME)-$(VERSION)
tar czf wrs-$(NAME)-$(VERSION).tgz wrs-$(NAME)-$(VERSION)
install:
install -D -m 644 wrs-$(NAME)-$(VERSION).tgz $(SDK_DEPLOY_DIR)/wrs-$(NAME)-$(VERSION).tgz