
Story: 2005265 Task: 30090 Change-Id: I7cc22cf39d971fbf7fa149b89a892de27b8e6b64 Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
43 lines
1017 B
RPMSpec
43 lines
1017 B
RPMSpec
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (C) 2019 Intel Corporation
|
|
#
|
|
# Where dhcp configuration files are stored
|
|
%global dhcpconfdir %{_sysconfdir}/dhcp
|
|
|
|
Summary: dhcp-config
|
|
Name: dhcp-config
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: StarlingX
|
|
URL: unknown
|
|
BuildArch: noarch
|
|
Source: %name-%version.tar.gz
|
|
|
|
Requires: dhclient
|
|
Summary: package StarlingX configuration files of dhcp to system folder.
|
|
|
|
%description
|
|
package StarlingX configuration files of dhcp to system folder.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
|
|
%install
|
|
%{__install} -d %{buildroot}%{dhcpconfdir}
|
|
%{__install} -p -m 0755 dhclient-enter-hooks %{buildroot}%{dhcpconfdir}/dhclient-enter-hooks
|
|
%{__install} -p -m 0644 dhclient.conf %{buildroot}%{dhcpconfdir}/dhclient.conf
|
|
ln -s %{dhcpconfdir}/dhclient-enter-hooks %{buildroot}%{_sysconfdir}/dhclient-enter-hooks
|
|
|
|
%post
|
|
|
|
%files
|
|
%config(noreplace) %{dhcpconfdir}/dhclient.conf
|
|
%{dhcpconfdir}/dhclient-enter-hooks
|
|
%{_sysconfdir}/dhclient-enter-hooks
|