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'
|
2014-06-29 03:26:46 +00:00
|
|
|
url 'http://ftp.debian.org/debian/pool/main/a/apachetop/apachetop_0.12.6.orig.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '005c9479800a418ee7febe5027478ca8cbf3c51b'
|
2009-09-29 22:02:47 +00:00
|
|
|
|
2014-06-29 03:47:43 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "5d9cac60ff10e36bcf346a7cd333c2d16eed3ecf" => :mavericks
|
|
|
|
sha1 "a70bbfb92d902f89032f83fb1072deb0787836a4" => :mountain_lion
|
|
|
|
sha1 "7743bd957fb2e9da0337f9674ff2d281bd4c3ff5" => :lion
|
|
|
|
end
|
|
|
|
|
2014-06-29 03:26:46 +00:00
|
|
|
# Freecode is officially static from this point forwards. Do not rely on it for up-to-date package information.
|
2013-11-07 03:47:29 +00:00
|
|
|
# Upstream hasn't had activity in years, patch from MacPorts
|
2014-03-18 03:44:48 +00:00
|
|
|
patch :p0, :DATA
|
2013-11-07 03:47:29 +00:00
|
|
|
|
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);
|
|
|
|
|
|
|
|
|