aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ctail.rb
diff options
context:
space:
mode:
authorFrançois Beausoleil2010-02-17 17:04:48 -0500
committerAdam Vandenberg2010-06-15 20:57:22 -0700
commit04f57c180f29ad5bf8a570e070ea5b7b95d6ee1d (patch)
tree829fd05b4d9cc4cac5e991fd077eb5d6ba26bb8a /Library/Formula/ctail.rb
parentcbaff3e6e2adcd0ef3ccf7ef6a68e002054fc89e (diff)
downloadhomebrew-04f57c180f29ad5bf8a570e070ea5b7b95d6ee1d.tar.bz2
New formula: ctail
ctail is a tool for operating tail(1) across large clusters of machines, with many log files. It relies upon existing SSH authentication infrastructure, rather than introducing central points of log collection, or other large infrastructure changes, which aren't easily changed in many systems. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ctail.rb')
-rw-r--r--Library/Formula/ctail.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/ctail.rb b/Library/Formula/ctail.rb
new file mode 100644
index 000000000..067a39d04
--- /dev/null
+++ b/Library/Formula/ctail.rb
@@ -0,0 +1,15 @@
+require 'formula'
+
+class Ctail <Formula
+ url 'http://ctail.i-want-a-pony.com/downloads/ctail-0.1.0.tar.bz2'
+ homepage 'http://ctail.i-want-a-pony.com/'
+ md5 'fc39139aeaf3400aa13b338e2266b976'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug"
+ system "/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -g -Wall -Werror -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I. -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o ctail.lo ctail.c && touch ctail.lo"
+ system "/usr/share/apr-1/build-1/libtool --silent --mode=link gcc -o ctail ctail.lo -L/usr/lib -R/usr/lib -laprutil-1 -lexpat -liconv -lsqlite3 -L/usr/lib -R/usr/lib -lapr-1 -lpthread"
+ bin.mkpath
+ system "/usr/share/apr-1/build-1/libtool --silent --mode=install /usr/bin/install -c -m 755 ctail #{bin}"
+ end
+end