Merge "Add Makefile to puppet-dcdbsync"

This commit is contained in:
Zuul 2019-09-26 13:03:33 +00:00 committed by Gerrit Code Review
commit ecdc0fd5d9
3 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=1

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -26,10 +25,11 @@ A puppet module for dcorch dbsync service
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,11 @@
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2019 Intel Corporation
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/dcdbsync
cp -R dcdbsync/ $(MODULEDIR)/