Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Maildir server on OsX #16354

Closed
wants to merge 10 commits into from
18 changes: 18 additions & 0 deletions Library/Formula/courier-authlib.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'formula'

class CourierAuthlib < Formula
homepage 'http://www.courier-mta.org/'
url 'http://downloads.sourceforge.net/project/courier/authlib/0.65.0/courier-authlib-0.65.0.tar.bz2'
md5 'e9287e33b0e70ea3745517b4d719948d'

depends_on 'libtool'

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--without-authmysql",
"--prefix=#{prefix}"
system "make install"
system "make install-configure"
end

end
17 changes: 17 additions & 0 deletions Library/Formula/courier-imap.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'formula'

class CourierImap < Formula
homepage 'http://www.courier-mta.org/'
url 'http://downloads.sourceforge.net/project/courier/imap/4.11.0/courier-imap-4.11.0.tar.bz2'
md5 '6aa9a3487e1c255d1826833af362d1f7'

depends_on 'courier-authlib'

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
system "make install-configure"
end

end
21 changes: 4 additions & 17 deletions Library/Formula/hadoop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,14 @@

class Hadoop < Formula
homepage 'http://hadoop.apache.org/common/'
url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.1/hadoop-1.1.1.tar.gz'
sha1 '3b7f226e437a30bb8eee12093179c81ae94e7896'
url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-2.0.2-alpha/hadoop-2.0.2-alpha.tar.gz'
sha1 '44206b2d4b657a8efa47dbe78725c58233e17a9d'
version '2.0.2'

def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin conf lib webapps contrib]
libexec.install Dir['*.jar']
libexec.install %w[bin lib libexec share]
bin.write_exec_script Dir["#{libexec}/bin/*"]
# But don't make rcc visible, it conflicts with Qt
(bin/'rcc').unlink

inreplace "#{libexec}/conf/hadoop-env.sh",
"# export JAVA_HOME=/usr/lib/j2sdk1.5-sun",
"export JAVA_HOME=\"$(/usr/libexec/java_home)\""
end

def caveats; <<-EOS.undent
In Hadoop's config file:
#{libexec}/conf/hadoop-env.sh
$JAVA_HOME has been set to be the output of:
/usr/libexec/java_home
EOS
end
end