2011-05-15 10:04:07 +00:00
|
|
|
class FreeradiusServer < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "High-performance and highly configurable RADIUS server"
|
2014-05-29 04:07:45 +00:00
|
|
|
homepage "http://freeradius.org/"
|
2015-09-06 00:07:36 +00:00
|
|
|
url "ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.9.tar.bz2"
|
|
|
|
mirror "http://ftp.cc.uoc.gr/mirrors/ftp.freeradius.org/freeradius-server-3.0.9.tar.bz2"
|
|
|
|
sha256 "030d9bfe5ef42d0fd4be94a1fe03a60af9dff35b7ee89e50b0a73ff78606f7e9"
|
2014-09-27 15:14:28 +00:00
|
|
|
|
2014-08-22 18:04:04 +00:00
|
|
|
bottle do
|
2015-09-06 08:08:19 +00:00
|
|
|
sha256 "2a7bd5d5c1f586759be42d466ea4b4f8eb4d6302080b3419b06f3f264e507b0f" => :yosemite
|
|
|
|
sha256 "321acc149270fba2040f3d248b0de7aceb07efc1abfe0a89cb44063886c9a135" => :mavericks
|
|
|
|
sha256 "d27bcb30a5d4ad39ab29b0faf2462163a2a177300817af8c324bab2c44593f65" => :mountain_lion
|
2014-08-22 18:04:04 +00:00
|
|
|
end
|
|
|
|
|
2014-09-27 17:32:29 +00:00
|
|
|
depends_on "openssl"
|
2015-09-06 00:07:36 +00:00
|
|
|
depends_on "talloc"
|
2014-09-27 17:32:29 +00:00
|
|
|
|
2011-05-15 10:04:07 +00:00
|
|
|
def install
|
2014-05-29 04:07:45 +00:00
|
|
|
ENV.deparallelize
|
2014-09-27 15:14:28 +00:00
|
|
|
|
2015-02-17 13:50:16 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--sbindir=#{bin}
|
|
|
|
--localstatedir=#{var}
|
|
|
|
--with-openssl-includes=#{Formula["openssl"].opt_include}
|
|
|
|
--with-openssl-libraries=#{Formula["openssl"].opt_lib}
|
2015-09-06 00:07:36 +00:00
|
|
|
--with-talloc-lib-dir=#{Formula["talloc"].opt_lib}
|
|
|
|
--with-talloc-include-dir=#{Formula["talloc"].opt_include}
|
2014-09-27 17:32:29 +00:00
|
|
|
]
|
|
|
|
|
2014-09-27 15:14:28 +00:00
|
|
|
system "./configure", *args
|
2011-05-15 10:04:07 +00:00
|
|
|
system "make"
|
2014-08-24 16:07:10 +00:00
|
|
|
system "make", "install"
|
2011-05-15 10:04:07 +00:00
|
|
|
end
|
2014-05-29 04:13:57 +00:00
|
|
|
|
|
|
|
def post_install
|
2014-05-29 04:17:02 +00:00
|
|
|
(var/"run/radiusd").mkpath
|
2014-05-29 04:13:57 +00:00
|
|
|
(var/"log/radius").mkpath
|
|
|
|
end
|
2012-10-16 20:09:03 +00:00
|
|
|
|
2015-02-17 13:50:16 +00:00
|
|
|
test do
|
|
|
|
assert_match /77C8009C912CFFCF3832C92FC614B7D1/, shell_output("#{bin}/smbencrypt homebrew")
|
|
|
|
end
|
|
|
|
end
|