aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBen Lovett2010-12-29 22:04:31 -0800
committerMike McQuaid2010-12-30 10:24:13 +0000
commit5cca897cb0bfe7ae6c7864c7ea013b512e8cc0eb (patch)
tree6921e8cbacde76f1d146b373a412dd4a2a263ada /Library/Formula
parenta34c4ac8bda6d1e853940ece24250cea0ed60fbe (diff)
downloadhomebrew-5cca897cb0bfe7ae6c7864c7ea013b512e8cc0eb.tar.bz2
New formula: Aggregate, a IPv4 prefix aggregator.
Note, there is no homepage for this package, and is probably considered by many to be abandonware (the last update was in 2001). However, it's quite useful and gets the job done. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aggregate.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/aggregate.rb b/Library/Formula/aggregate.rb
new file mode 100644
index 000000000..0d36245b5
--- /dev/null
+++ b/Library/Formula/aggregate.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Aggregate <Formula
+ url 'ftp://ftp.isc.org/isc/aggregate/aggregate-1.6.tar.gz'
+ md5 '6fcc515388bf2c5b0c8f9f733bfee7e1'
+
+ def install
+ inreplace "Makefile.in" do |s|
+ s.change_make_var! "CFLAGS", "@CFLAGS@"
+ s.change_make_var! "LDFLAGS", ""
+ s.gsub! "$(prefix)/man/man1", "$(prefix)/share/man/man1"
+ end
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make"
+ bin.mkpath
+ man1.mkpath
+ system "make install"
+ end
+end