aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/wakeonlan.rb
diff options
context:
space:
mode:
authorRobert Shaw2010-03-09 17:12:38 -0800
committerAdam Vandenberg2010-03-11 12:00:38 -0800
commite3f93c4e578659d268c0723e838450dbcd4cf17c (patch)
tree3ee2db53dadaa2efe4a951deb45efb64d038fe77 /Library/Formula/wakeonlan.rb
parent6f3b4ddf66190ef83c7c84cb1624d25f9bc95412 (diff)
downloadhomebrew-e3f93c4e578659d268c0723e838450dbcd4cf17c.tar.bz2
Fix to install in Cellar as it should
The current wakeonlan formula causes the script and man page to get installed directly into /usr/local instead of into the Cellar like it should, this patch fixes that. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/wakeonlan.rb')
-rw-r--r--Library/Formula/wakeonlan.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/wakeonlan.rb b/Library/Formula/wakeonlan.rb
index 1448e850f..766d06210 100644
--- a/Library/Formula/wakeonlan.rb
+++ b/Library/Formula/wakeonlan.rb
@@ -7,6 +7,11 @@ class Wakeonlan <Formula
def install
system "perl", "Makefile.PL"
+ # Make sure script and manual get installed in Cellar properly
+ inreplace "Makefile" do |s|
+ s.change_make_var! "INSTALLSITESCRIPT", bin
+ s.change_make_var! "INSTALLSITEMAN1DIR", man1
+ end
system "make"
system "make install"
end