2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-29 22:02:47 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Apachetop < Formula
|
2012-03-23 05:16:44 +00:00
|
|
|
homepage 'http://freecode.com/projects/apachetop'
|
2009-09-29 22:02:47 +00:00
|
|
|
url 'http://www.webta.org/apachetop/apachetop-0.12.6.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '005c9479800a418ee7febe5027478ca8cbf3c51b'
|
2009-09-29 22:02:47 +00:00
|
|
|
|
2013-11-07 03:47:29 +00:00
|
|
|
# Upstream hasn't had activity in years, patch from MacPorts
|
|
|
|
def patches; { :p0 => DATA }; end
|
|
|
|
|
2009-09-29 22:02:47 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2013-11-07 03:47:25 +00:00
|
|
|
"--mandir=#{man}",
|
2009-09-29 22:02:47 +00:00
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-logfile=/var/log/apache2/access_log"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-11-07 03:47:29 +00:00
|
|
|
|
|
|
|
__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);
|
|
|
|
|
|
|
|
|