integ/base/dhcp-config/centos/dhcp-config.spec
zhipengl ffe029ef99 Refactor patches for dhcp package.
Use dhcp-config package to package config files for dhcp package.
Rename files folder to patches
Removed site.h which is not used

Deployment test and ping test between VMs pass
config and script files check pass.

Story: 2003768
Task: 27582

Change-Id: Ib7fd3c0ed6d706f89d08890e90ccee42673b3679
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-10-31 01:55:21 +00:00

37 lines
807 B
RPMSpec

# 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
%post
%files
%config(noreplace) %{dhcpconfdir}/dhclient.conf
%{dhcpconfdir}/dhclient-enter-hooks