Browse Source

Merge "Create makefile for install-log-server"

Zuul 2 months ago
parent
commit
320c914b3f

+ 5
- 4
install-log-server/centos/install-log-server.spec View File

@@ -10,19 +10,20 @@ URL: unknown
10 10
 Source0: %{name}-%{version}.tar.gz
11 11
 
12 12
 %define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk
13
+%global debug_package %{nil}
13 14
 
14 15
 %description
15 16
 Titanium Cloud log server installation
16 17
 
17 18
 %prep
18 19
 %setup
19
-mv %name wrs-%{name}-%{version}
20
-tar czf wrs-%{name}-%{version}.tgz wrs-%{name}-%{version}
20
+
21
+%build
22
+make NAME=%{name} VERSION=%{version}
21 23
 
22 24
 # Install for guest-client package
23 25
 %install
24
-install -D -m 644 wrs-%{name}-%{version}.tgz %{buildroot}%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
26
+make install NAME=%{name} VERSION=%{version} SDK_DEPLOY_DIR=%{buildroot}%{cgcs_sdk_deploy_dir}
25 27
 
26 28
 %files
27 29
 %{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
28
-

+ 14
- 0
install-log-server/install-log-server/Makefile View File

@@ -0,0 +1,14 @@
1
+#
2
+# SPDX-License-Identifier: Apache-2.0
3
+#
4
+
5
+NAME ?= install-log-server
6
+VERSION ?= 1.1.2
7
+SDK_DEPLOY_DIR ?= /opt/deploy/cgcs_sdk
8
+
9
+all:
10
+	mv $(NAME) wrs-$(NAME)-$(VERSION)
11
+	tar czf wrs-$(NAME)-$(VERSION).tgz wrs-$(NAME)-$(VERSION)
12
+
13
+install:
14
+	install -D -m 644 wrs-$(NAME)-$(VERSION).tgz $(SDK_DEPLOY_DIR)/wrs-$(NAME)-$(VERSION).tgz

Loading…
Cancel
Save