Skip to content

Commit ee65e1d

Browse files
authored
Update Makefile
1 parent 18ceaf2 commit ee65e1d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pkg/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ BUILD_DIR = $(PKG_DIR)/build
55
TARGET_DIR = $(PKG_DIR)/target
66
CONFIG_DIR = /etc/aerospike
77
# Package variables
8+
PACKAGE_NAME = asadm
89
VERSION = $(shell git describe --tags --always)
910
RPM_VERSION = $(shell git describe --tags --always | tr '-' '_')
10-
BUILD_DISTRO ?= $(shell .github/packaging/common/os_version.sh)
11-
NAME = "aerospike-$(PACKAGE_NAME)"
11+
BUILD_DISTRO ?= $(shell $(PKG_DIR)/../.github/packaging/common/os_version.sh)
12+
NAME = aerospike-$(PACKAGE_NAME)
1213
MAINTAINER = "Aerospike"
13-
DESCRIPTION = "Asadmin, a tool for managing Aerospike database."
14+
DESCRIPTION = "Aerospike Admin, a tool for managing Aerospike database."
1415
LICENSE = "Apache License 2.0"
1516
URL = "https://github.com/aerospike/$(PACKAGE_NAME)"
1617
VENDOR = "Aerospike, Inc."
@@ -72,15 +73,14 @@ tar: prep
7273
prep:
7374
install -d $(TARGET_DIR)
7475
install -d $(BUILD_DIR)/$(CONFIG_DIR)
75-
install -d $(BUILD_DIR)/opt/aerospike/bin
76-
install -pm 755 $(TOP_DIR)/asadm $(BUILD_DIR)/opt/aerospike/bin
77-
install -pm 755 $(TOP_DIR)/asinfo $(BUILD_DIR)/opt/aerospike/bin
7876
install -d $(BUILD_DIR)/usr/bin
79-
ln -sf /opt/aerospike/bin/asadm $(BUILD_DIR)/usr/bin/asadm
80-
ln -sf /opt/aerospike/bin/asinfo $(BUILD_DIR)/usr/bin/asinfo
77+
install -d $(BUILD_DIR)/opt/aerospike/bin/asadm
78+
cp -a $(TOP_DIR)/asadm/. $(BUILD_DIR)/opt/aerospike/bin/asadm/
79+
ln -sf /opt/aerospike/bin/asadm/asadm $(BUILD_DIR)/usr/bin/asadm
80+
ln -sf /opt/aerospike/bin/asadm/asinfo $(BUILD_DIR)/usr/bin/asinfo
8181

8282
.PHONY: clean
8383
clean:
8484
rm -rf $(TARGET_DIR)
8585
rm -rf $(BUILD_DIR)/opt
86-
rm -rf $(BUILD_DIR)/var
86+
rm -rf $(BUILD_DIR)/var

0 commit comments

Comments
 (0)