/[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 332183 by guillomovitch, Sun Dec 16 22:47:45 2012 UTC revision 332184 by guillomovitch, Mon Dec 17 20:53:30 2012 UTC
# Line 210  cat > %{buildroot}%{_sysconfdir}/sysconf Line 210  cat > %{buildroot}%{_sysconfdir}/sysconf
210  # CONFIGFILE="/etc/dhcpd.conf"  # CONFIGFILE="/etc/dhcpd.conf"
211    
212  # Where to store the lease state information.  # Where to store the lease state information.
213  # LEASEFILE="/var/lib/dhcp/dhcpd.leases"  # LEASEFILE="/var/lib/dhcpd/dhcpd.leases"
214    
215  # Define INTERFACES to limit which network interfaces dhcpd listens on.  # Define INTERFACES to limit which network interfaces dhcpd listens on.
216  # The default null value causes dhcpd to listen on all interfaces.  # The default null value causes dhcpd to listen on all interfaces.
# Line 255  rm -f %{buildroot}%{_libdir}/*.a Line 255  rm -f %{buildroot}%{_libdir}/*.a
255    
256  %post server  %post server
257  %_post_service dhcpd  %_post_service dhcpd
258  systemd-tmpfiles --create %{name}.conf  systemd-tmpfiles --create dhcpd.conf
259  # New dhcpd lease file  # New dhcpd lease file
260  if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then  if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then
261      touch %{_var}/lib/dhcpd/dhcpd.leases      touch %{_var}/lib/dhcpd/dhcpd.leases
# Line 266  fi Line 266  fi
266    
267  %post relay  %post relay
268  %_post_service dhcrelay  %_post_service dhcrelay
269  systemd-tmpfiles --create %{name}.conf  systemd-tmpfiles --create dhcrelay.conf
270    
271  %preun relay  %preun relay
272  %_preun_service dhcrelay  %_preun_service dhcrelay
273    
274  %post client  %post client
275  touch %{_var}/lib/dhclient/dhclient.leases  touch %{_var}/lib/dhclient/dhclient.leases
276  systemd-tmpfiles --create %{name}.conf  systemd-tmpfiles --create dhclient.conf
277    
278  %postun client  %postun client
279  rm -rf %{_var}/lib/dhclient/dhclient.leases  rm -rf %{_var}/lib/dhclient/dhclient.leases

Legend:
Removed from v.332183  
changed lines
  Added in v.332184

  ViewVC Help
Powered by ViewVC 1.1.30