aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-09 22:12:16 -0600
committerJack Nagel2012-02-09 22:12:16 -0600
commitcbcc6e265d42ee34e28ec38e6d6470760e0af0dd (patch)
treeb885e7698facd820fd0a7808c14a6c1481288415 /Library
parent4c5b212a3e7cf146d8083533932bcfd812e9aeb3 (diff)
downloadhomebrew-cbcc6e265d42ee34e28ec38e6d6470760e0af0dd.tar.bz2
hping: style cleanups
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/hping.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/hping.rb b/Library/Formula/hping.rb
index 7a1ddde3a..341295f76 100644
--- a/Library/Formula/hping.rb
+++ b/Library/Formula/hping.rb
@@ -1,8 +1,8 @@
require 'formula'
class Hping < Formula
- url 'http://www.hping.org/hping3-20051105.tar.gz'
homepage 'http://www.hping.org/'
+ url 'http://www.hping.org/hping3-20051105.tar.gz'
md5 'ca4ea4e34bcc2162aedf25df8b2d1747'
version '3.20051105'
@@ -21,14 +21,13 @@ class Hping < Formula
# Compile fails with tcl support; TCL on OS X is 32-bit only
system "./configure", "--no-tcl"
- inreplace 'Makefile' do |s|
- s.change_make_var! "INSTALL_PATH", prefix
- s.change_make_var! "INSTALL_MANPATH", man
- end
-
# Target folders need to exist before installing
sbin.mkpath
man8.mkpath
- system "make install"
+ system "make", "CC=#{ENV.cc}",
+ "COMPILE_TIME=#{ENV.cflags}",
+ "INSTALL_PATH=#{prefix}",
+ "INSTALL_MANPATH=#{man}",
+ "install"
end
end