aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 21:13:56 -0700
committerAdam Vandenberg2013-09-11 22:05:29 -0700
commit4d7f681d14b666cfab527d7151431919ddf173dd (patch)
tree3f8ededc3e1a050f2dea29f2d0ebf9e82153d9df /Library/Formula
parent6385c3abec727cb767263686cf9c246455169c60 (diff)
downloadhomebrew-4d7f681d14b666cfab527d7151431919ddf173dd.tar.bz2
honeyd: use resource
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/honeyd.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Formula/honeyd.rb b/Library/Formula/honeyd.rb
index 47f433f44..34f285ba8 100644
--- a/Library/Formula/honeyd.rb
+++ b/Library/Formula/honeyd.rb
@@ -1,11 +1,5 @@
require 'formula'
-class Libevent1 < Formula
- homepage 'http://libevent.org/'
- url 'https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz'
- sha1 '4a834364c28ad652ddeb00b5f83872506eede7d4'
-end
-
class Honeyd < Formula
homepage 'http://honeyd.org/'
url 'http://www.honeyd.org/uploads/honeyd-1.5c.tar.gz'
@@ -13,6 +7,12 @@ class Honeyd < Formula
depends_on 'libdnet'
+ # Requires libevent1, not 2 - http://libevent.org/
+ resource 'libevent1' do
+ url 'https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz'
+ sha1 '4a834364c28ad652ddeb00b5f83872506eede7d4'
+ end
+
# make the setrlimit function work
# honeyd is no longer developed so patching upstream won't happen
def patches
@@ -21,7 +21,8 @@ class Honeyd < Formula
def install
libevent1_prefix = libexec/'libevent1'
- Libevent1.new.brew do
+
+ resource('libevent1').stage do
system './configure', "--prefix=#{libevent1_prefix}"
system 'make install'
end