228 |
OPTIONS="-q" |
OPTIONS="-q" |
229 |
EOF |
EOF |
230 |
|
|
231 |
|
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcpd6 <<EOF |
232 |
|
# You can set here various option for dhcpd |
233 |
|
|
234 |
|
# Which configuration file to use. |
235 |
|
# CONFIGFILE="/etc/dhcpd6.conf" |
236 |
|
|
237 |
|
# Where to store the lease state information. |
238 |
|
# LEASEFILE="/var/lib/dhcpd/dhcpd6.leases" |
239 |
|
|
240 |
|
# Define INTERFACES to limit which network interfaces dhcpd listens on. |
241 |
|
# The default null value causes dhcpd to listen on all interfaces. |
242 |
|
#INTERFACES="" |
243 |
|
|
244 |
|
# Define OPTIONS with any other options to pass to the dhcpd server. |
245 |
|
# See dhcpd(8) for available options and syntax. |
246 |
|
OPTIONS="-q" |
247 |
|
EOF |
248 |
|
|
249 |
install -d %{buildroot}%{_var}/lib/dhcpd |
install -d %{buildroot}%{_var}/lib/dhcpd |
250 |
touch %{buildroot}%{_var}/lib/dhcpd/dhcpd.leases |
touch %{buildroot}%{_var}/lib/dhcpd/dhcpd.leases |
251 |
|
touch %{buildroot}%{_var}/lib/dhcpd/dhcpd6.leases |
252 |
install -d %{buildroot}%{_var}/lib/dhclient |
install -d %{buildroot}%{_var}/lib/dhclient |
253 |
touch %{buildroot}%{_var}/lib/dhclient/dhclient.leases |
touch %{buildroot}%{_var}/lib/dhclient/dhclient.leases |
254 |
|
|
255 |
|
# Copy sample conf files into position (called by doc macro) |
256 |
|
cp -p doc/examples/dhclient-dhcpv6.conf client/dhclient6.conf.example |
257 |
|
cp -p doc/examples/dhcpd-dhcpv6.conf server/dhcpd6.conf.example |
258 |
|
|
259 |
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay <<EOF |
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay <<EOF |
260 |
# Define SERVERS with a list of one or more DHCP servers where |
# Define SERVERS with a list of one or more DHCP servers where |
261 |
# DHCP packets are to be relayed to and from. This is mandatory. |
# DHCP packets are to be relayed to and from. This is mandatory. |
291 |
if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then |
if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then |
292 |
touch %{_var}/lib/dhcpd/dhcpd.leases |
touch %{_var}/lib/dhcpd/dhcpd.leases |
293 |
fi |
fi |
294 |
|
if [ ! -f %{_var}/lib/dhcpd/dhcpd6.leases ]; then |
295 |
|
touch %{_var}/lib/dhcpd/dhcpd6.leases |
296 |
|
fi |
297 |
|
|
298 |
%preun server |
%preun server |
299 |
%_preun_service dhcpd |
%_preun_service dhcpd |
321 |
%doc doc/* |
%doc doc/* |
322 |
|
|
323 |
%files server |
%files server |
324 |
%doc server/dhcpd.conf.example tests/failover contrib/ldap/dhcp.schema |
%doc server/dhcpd*.conf.example tests/failover contrib/ldap/dhcp.schema |
325 |
%{_unitdir}/dhcpd.service |
%{_unitdir}/dhcpd.service |
326 |
%{_unitdir}/dhcpd6.service |
%{_unitdir}/dhcpd6.service |
327 |
%{_tmpfilesdir}/dhcpd.conf |
%{_tmpfilesdir}/dhcpd.conf |
328 |
%config(noreplace) %{_sysconfdir}/dhcpd.conf |
%config(noreplace) %{_sysconfdir}/dhcpd.conf |
329 |
%config(noreplace) %{_sysconfdir}/sysconfig/dhcpd |
%config(noreplace) %{_sysconfdir}/sysconfig/dhcpd |
330 |
|
%config(noreplace) %{_sysconfdir}/sysconfig/dhcpd6 |
331 |
%{_sbindir}/dhcpd |
%{_sbindir}/dhcpd |
332 |
%{_sbindir}/dhcpreport.pl |
%{_sbindir}/dhcpreport.pl |
333 |
%{_sbindir}/dhcpd-conf-to-ldap |
%{_sbindir}/dhcpd-conf-to-ldap |
341 |
%{_mandir}/man8/dhcpd.8* |
%{_mandir}/man8/dhcpd.8* |
342 |
%dir %{_var}/lib/dhcpd |
%dir %{_var}/lib/dhcpd |
343 |
%config(noreplace) %ghost %{_var}/lib/dhcpd/dhcpd.leases |
%config(noreplace) %ghost %{_var}/lib/dhcpd/dhcpd.leases |
344 |
|
%config(noreplace) %ghost %{_var}/lib/dhcpd/dhcpd6.leases |
345 |
|
|
346 |
%files relay |
%files relay |
347 |
%{_unitdir}/dhcrelay.service |
%{_unitdir}/dhcrelay.service |
351 |
%{_mandir}/man8/dhcrelay.8* |
%{_mandir}/man8/dhcrelay.8* |
352 |
|
|
353 |
%files client |
%files client |
354 |
%doc client/dhclient.conf.example |
%doc client/dhclient*.conf.example |
355 |
%{_sysconfdir}/dhclient-exit-hooks |
%{_sysconfdir}/dhclient-exit-hooks |
356 |
%{_sysconfdir}/dhclient-exit-hooks.d |
%{_sysconfdir}/dhclient-exit-hooks.d |
357 |
%attr (0755,root,root) /sbin/dhclient-script |
%attr (0755,root,root) /sbin/dhclient-script |