freeradius-server: use autogen.sh, add openssl dep
This commit is contained in:
parent
14feb68f15
commit
7fa2483cfe
1 changed files with 15 additions and 10 deletions
|
@ -1,24 +1,29 @@
|
|||
require 'formula'
|
||||
require "formula"
|
||||
|
||||
class FreeradiusServer < Formula
|
||||
homepage 'http://freeradius.org/'
|
||||
url 'ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.5.tar.gz'
|
||||
sha1 '4d18ed8ff3fde4a29112ecc07f175b774ed5f702'
|
||||
homepage "http://freeradius.org/"
|
||||
url "ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.5.tar.gz"
|
||||
sha1 "4d18ed8ff3fde4a29112ecc07f175b774ed5f702"
|
||||
|
||||
depends_on 'autoconf' => :build
|
||||
depends_on 'automake' => :build
|
||||
depends_on 'libtool' => :build
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libtool" => :build
|
||||
depends_on "openssl"
|
||||
|
||||
# libtool is glibtool on OS X
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
openssl = Formula["openssl"]
|
||||
|
||||
system "autoreconf", "-fvi"
|
||||
ENV.deparallelize
|
||||
inreplace "autogen.sh", "libtool", "glibtool"
|
||||
system "./autogen.sh"
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--with-system-libtool",
|
||||
"--with-system-libltdl"
|
||||
"--with-system-libltdl",
|
||||
"--with-openssl-includes=#{openssl.opt_include}",
|
||||
"--with-openssl-libraries=#{openssl.opt_lib}"
|
||||
system "make"
|
||||
system "make install"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue