Changeset 479

Show
Ignore:
Timestamp:
05/26/08 23:55:53 (7 months ago)
Author:
mbailey
Message:

bugfix: set variable *before* using it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/deprec/recipes/nagios.rb

    r468 r479  
    223223    end 
    224224     
    225     SRC_PACKAGES[:nrpe] = { 
    226       :filename => 'nrpe-2.11.tar.gz',    
    227       :md5sum => "dcf3b7c5b7c94c0ba6cbb4999c1161f0  nrpe-2.11.tar.gz",  
    228       :dir => 'nrpe-2.11',   
    229       :url => "http://easynews.dl.sourceforge.net/sourceforge/nagios/nrpe-2.11.tar.gz", 
    230       :unpack => "tar zxfv nrpe-2.11.tar.gz;", 
    231       :configure => "./configure --with-nagios-user=#{nagios_user} --with-nagios-group=#{nagios_group} #{ '--enable-command-args' if nrpe_enable_command_args};", 
    232       :make => 'make all;', 
    233       :install => 'make install-plugin; make install-daemon; make install-daemon-config;' 
    234     } 
     225 
    235226     
    236227    namespace :nrpe do 
     
    238229      set :nrpe_enable_command_args, false # set to true to compile nrpe to accept arguments 
    239230                                               # note that you'll need to set it before these recipes are loaded (e.g. in .caprc) 
     231       
     232      SRC_PACKAGES[:nrpe] = { 
     233        :filename => 'nrpe-2.11.tar.gz',    
     234        :md5sum => "dcf3b7c5b7c94c0ba6cbb4999c1161f0  nrpe-2.11.tar.gz",  
     235        :dir => 'nrpe-2.11',   
     236        :url => "http://easynews.dl.sourceforge.net/sourceforge/nagios/nrpe-2.11.tar.gz", 
     237        :unpack => "tar zxfv nrpe-2.11.tar.gz;", 
     238        :configure => "./configure --with-nagios-user=#{nagios_user} --with-nagios-group=#{nagios_group} #{ '--enable-command-args' if nrpe_enable_command_args};", 
     239        :make => 'make all;', 
     240        :install => 'make install-plugin; make install-daemon; make install-daemon-config;' 
     241      } 
    240242     
    241243      task :install do