aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/apachetop.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/apachetop.rb b/Library/Formula/apachetop.rb
index 45f23ba5d..371ab3593 100644
--- a/Library/Formula/apachetop.rb
+++ b/Library/Formula/apachetop.rb
@@ -5,6 +5,9 @@ class Apachetop < Formula
url 'http://www.webta.org/apachetop/apachetop-0.12.6.tar.gz'
sha1 '005c9479800a418ee7febe5027478ca8cbf3c51b'
+ # Upstream hasn't had activity in years, patch from MacPorts
+ def patches; { :p0 => DATA }; end
+
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
@@ -14,3 +17,19 @@ class Apachetop < Formula
system "make install"
end
end
+
+__END__
+--- src/resolver.h 2005-10-15 18:10:01.000000000 +0200
++++ src/resolver.h 2007-02-17 11:24:37.000000000
+0100
+@@ -10,8 +10,8 @@
+ class Resolver
+ {
+ public:
+- Resolver::Resolver(void);
+- Resolver::~Resolver(void);
++ Resolver(void);
++ ~Resolver(void);
+ int add_request(char *request, enum resolver_action act);
+
+