/[packages]/cauldron/dhcp/current/SPECS/dhcp.spec
ViewVC logotype

Diff of /cauldron/dhcp/current/SPECS/dhcp.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 905749 by luigiwalser, Thu Sep 3 15:51:43 2015 UTC revision 905750 by luigiwalser, Tue Nov 24 14:17:55 2015 UTC
# Line 232  cat > %{buildroot}%{_sysconfdir}/sysconf Line 232  cat > %{buildroot}%{_sysconfdir}/sysconf
232  OPTIONS="-q"  OPTIONS="-q"
233  EOF  EOF
234    
235    cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcpd6 <<EOF
236    # You can set here various option for dhcpd
237    
238    # Which configuration file to use.
239    # CONFIGFILE="/etc/dhcpd6.conf"
240    
241    # Where to store the lease state information.
242    # LEASEFILE="/var/lib/dhcpd/dhcpd6.leases"
243    
244    # Define INTERFACES to limit which network interfaces dhcpd listens on.
245    # The default null value causes dhcpd to listen on all interfaces.
246    #INTERFACES=""
247    
248    # Define OPTIONS with any other options to pass to the dhcpd server.
249    # See dhcpd(8) for available options and syntax.
250    OPTIONS="-q"
251    EOF
252    
253  install -d %{buildroot}%{_var}/lib/dhcpd  install -d %{buildroot}%{_var}/lib/dhcpd
254  touch %{buildroot}%{_var}/lib/dhcpd/dhcpd.leases  touch %{buildroot}%{_var}/lib/dhcpd/dhcpd.leases
255    touch %{buildroot}%{_var}/lib/dhcpd/dhcpd6.leases
256  install -d %{buildroot}%{_var}/lib/dhclient  install -d %{buildroot}%{_var}/lib/dhclient
257  touch %{buildroot}%{_var}/lib/dhclient/dhclient.leases  touch %{buildroot}%{_var}/lib/dhclient/dhclient.leases
258    
259    # Copy sample conf files into position (called by doc macro)
260    cp -p doc/examples/dhclient-dhcpv6.conf client/dhclient6.conf.example
261    cp -p doc/examples/dhcpd-dhcpv6.conf server/dhcpd6.conf.example
262    
263  cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay <<EOF  cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay <<EOF
264  # Define SERVERS with a list of one or more DHCP servers where  # Define SERVERS with a list of one or more DHCP servers where
265  # DHCP packets are to be relayed to and from.  This is mandatory.  # DHCP packets are to be relayed to and from.  This is mandatory.
# Line 272  rm -f %{buildroot}%{_libdir}/*.a Line 295  rm -f %{buildroot}%{_libdir}/*.a
295  if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then  if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then
296      touch %{_var}/lib/dhcpd/dhcpd.leases      touch %{_var}/lib/dhcpd/dhcpd.leases
297  fi  fi
298    if [ ! -f %{_var}/lib/dhcpd/dhcpd6.leases ]; then
299        touch %{_var}/lib/dhcpd/dhcpd6.leases
300    fi
301    
302  %preun server  %preun server
303  %_preun_service dhcpd  %_preun_service dhcpd
# Line 299  rm -rf %{_var}/lib/dhclient/dhclient.lea Line 325  rm -rf %{_var}/lib/dhclient/dhclient.lea
325  %doc doc/*  %doc doc/*
326    
327  %files server  %files server
328  %doc server/dhcpd.conf.example tests/failover contrib/ldap/dhcp.schema  %doc server/dhcpd*.conf.example tests/failover contrib/ldap/dhcp.schema
329  %{_unitdir}/dhcpd.service  %{_unitdir}/dhcpd.service
330  %{_unitdir}/dhcpd6.service  %{_unitdir}/dhcpd6.service
331  %{_tmpfilesdir}/dhcpd.conf  %{_tmpfilesdir}/dhcpd.conf
332  %config(noreplace) %{_sysconfdir}/dhcpd.conf  %config(noreplace) %{_sysconfdir}/dhcpd.conf
333  %config(noreplace) %{_sysconfdir}/sysconfig/dhcpd  %config(noreplace) %{_sysconfdir}/sysconfig/dhcpd
334    %config(noreplace) %{_sysconfdir}/sysconfig/dhcpd6
335  %{_sbindir}/dhcpd  %{_sbindir}/dhcpd
336  %{_sbindir}/dhcpreport.pl  %{_sbindir}/dhcpreport.pl
337  %{_sbindir}/dhcpd-conf-to-ldap  %{_sbindir}/dhcpd-conf-to-ldap
# Line 318  rm -rf %{_var}/lib/dhclient/dhclient.lea Line 345  rm -rf %{_var}/lib/dhclient/dhclient.lea
345  %{_mandir}/man8/dhcpd.8*  %{_mandir}/man8/dhcpd.8*
346  %dir %{_var}/lib/dhcpd  %dir %{_var}/lib/dhcpd
347  %config(noreplace) %ghost %{_var}/lib/dhcpd/dhcpd.leases  %config(noreplace) %ghost %{_var}/lib/dhcpd/dhcpd.leases
348    %config(noreplace) %ghost %{_var}/lib/dhcpd/dhcpd6.leases
349    
350  %files relay  %files relay
351  %{_unitdir}/dhcrelay.service  %{_unitdir}/dhcrelay.service
# Line 327  rm -rf %{_var}/lib/dhclient/dhclient.lea Line 355  rm -rf %{_var}/lib/dhclient/dhclient.lea
355  %{_mandir}/man8/dhcrelay.8*  %{_mandir}/man8/dhcrelay.8*
356    
357  %files client  %files client
358  %doc client/dhclient.conf.example  %doc client/dhclient*.conf.example
359  %{_sysconfdir}/dhclient-exit-hooks  %{_sysconfdir}/dhclient-exit-hooks
360  %{_sysconfdir}/dhclient-exit-hooks.d  %{_sysconfdir}/dhclient-exit-hooks.d
361  %attr (0755,root,root) /sbin/dhclient-script  %attr (0755,root,root) /sbin/dhclient-script

Legend:
Removed from v.905749  
changed lines
  Added in v.905750

  ViewVC Help
Powered by ViewVC 1.1.30