diff options
| author | Andre Arko | 2009-09-03 10:18:48 -0700 |
|---|---|---|
| committer | Andre Arko | 2009-09-15 17:30:40 -0700 |
| commit | a4837e77f2bab2613a63f278e22e11f2c58cb7d9 (patch) | |
| tree | 1bf5d027533479a48dd1ce6ae529c650e23d2cdb /Library/Formula | |
| parent | fb633cbe3b975e7fdb881cd75fc9b0013e21de46 (diff) | |
| download | homebrew-a4837e77f2bab2613a63f278e22e11f2c58cb7d9.tar.bz2 | |
Add znc, the advanced IRC proxy/bouncer
Includes recipes for znc and its dep, the c-ares lib
Now without stripping, so .so plugins will load
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/c-ares.rb | 12 | ||||
| -rw-r--r-- | Library/Formula/znc.rb | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/c-ares.rb b/Library/Formula/c-ares.rb new file mode 100644 index 000000000..642f26d56 --- /dev/null +++ b/Library/Formula/c-ares.rb @@ -0,0 +1,12 @@ +require 'brewkit' + +class CAres <Formula + @url='http://c-ares.haxx.se/c-ares-1.6.0.tar.gz' + @homepage='http://c-ares.haxx.se/' + @md5='4503b0db3dd79d3c1f58d87722dbab46' + + def install + system "./configure", "--prefix=#{prefix}" + system "make install" + end +end diff --git a/Library/Formula/znc.rb b/Library/Formula/znc.rb new file mode 100644 index 000000000..106c4cf53 --- /dev/null +++ b/Library/Formula/znc.rb @@ -0,0 +1,26 @@ +require 'brewkit' + +class Znc <Formula + @url='http://downloads.sourceforge.net/project/znc/znc/0.074/znc-0.074.tar.gz' + @homepage='http://en.znc.in/wiki/ZNC' + @md5='378187acd114769f8f97ef2d4b19da25' + + def deps + LibraryDep.new 'c-ares' + end + + def skip_clean? path + path == bin+'znc' + end + + def install + # This is a 3rd-party module that handles push notifications for Colloquy on the iPhone + # it's off by default, but annoying to compile if you don't do it while the source is available + system "curl -Ls -o modules/colloquy.cpp http://github.com/wired/colloquypush/raw/e678ca8ba9b3515dc8bfabeb7a6f258e6b8665e8/znc/colloquy.cpp" + + # Apparently Snow Leopard's libperl is at /System/Library/Perl/lib/5.10/libperl.dylib + # but I don't know how to tell znc that. Perl is only used for user plugins, anyway. + system "./configure", "--prefix=#{prefix}", "--disable-perl" + system "make install" + end +end |
