Add Makefile to puppet-dcdbsync

This puppet module was missed when the other ones were updated to use
Makefile for the install target.  Add the Makefile and update the
centos specfile to use the install target.

Story: 2006613
Task: 36801
Task: 36802
Change-Id: If3e13cb235469354c1778d4d0e0bab94b0b0e670
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Saul Wold 2019-09-25 06:53:20 -07:00
parent 4389a5a31f
commit 875acfe3fd
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)/