- Make sure all /etc/dhcp config files are marked in the manifest

- Include new config file directies in the dhcp and dhclient packages
- Do not overwrite new config files if they already exist
This commit is contained in:
David Cantrell 2009-01-10 19:14:05 +00:00
parent 13a0b57486
commit f400f01eb3

View File

@ -258,7 +258,7 @@ CFLAGS="%{optflags} -fPIC -D_GNU_SOURCE -DLDAP_CONFIGURATION -DUSE_SSL" \
# Remove files we don't want
%{__rm} -f %{buildroot}%{_sysconfdir}/dhclient.conf
%{__rm} -f %{buildroot}%{_sysconfdir}/dhcp/dhclient.conf
%{__rm} -f %{buildroot}%{_sysconfdir}/dhcpd.conf
# Install correct dhclient-script
%{__mkdir} -p %{buildroot}/sbin
@ -294,6 +294,7 @@ EOF
%{__cp} -p server/dhcpd.conf dhcpd.conf.sample
# Install default (empty) dhcpd.conf:
%{__mkdir} -p %{buildroot}%{_sysconfdir}/dhcp
%{__cat} << EOF > %{buildroot}%{_sysconfdir}/dhcp/dhcpd.conf
#
# DHCP Server Configuration file.