142 lines
3.8 KiB
Ruby
142 lines
3.8 KiB
Ruby
class Trafficserver < Formula
|
|
homepage "http://trafficserver.apache.org/"
|
|
url "http://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-5.1.2.tar.bz2"
|
|
mirror "http://archive.apache.org/dist/trafficserver/trafficserver-5.1.2.tar.bz2"
|
|
sha1 "907edeebd3a10d4787ad550e735ea196f03deb04"
|
|
|
|
bottle do
|
|
sha1 "325ab9eb8e222bbe5ef940506ff9b08b70290f49" => :yosemite
|
|
sha1 "290456e3c321683b93552c4cc718a85456fed663" => :mavericks
|
|
sha1 "4c46bba84d3dc150b1cfd841d6c2d4e6f7c39950" => :mountain_lion
|
|
end
|
|
|
|
depends_on "openssl"
|
|
depends_on "pcre"
|
|
|
|
# remove some amd64 compiler options that fail on Snow Leopard
|
|
patch :DATA if MacOS.version == :snow_leopard
|
|
|
|
def install
|
|
# Needed for correct ./configure detections.
|
|
ENV.enable_warnings
|
|
# Needed for OpenSSL headers on Lion.
|
|
ENV.append_to_cflags "-Wno-deprecated-declarations"
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--mandir=#{man}",
|
|
"--with-user=#{ENV["USER"]}",
|
|
"--with-group=admin"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/trafficserver", "status"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/configure b/configure
|
|
index 49add2a..e478b34 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -24109,48 +24109,6 @@ $as_echo "yes" >&6; }
|
|
|
|
else
|
|
|
|
-
|
|
- if test "x$CXXFLAGS" = "x"; then
|
|
- test "x$verbose" = "xyes" && echo " setting CXXFLAGS to \"-mcx16\""
|
|
- CXXFLAGS="-mcx16"
|
|
- else
|
|
- ats_addto_bugger="-mcx16"
|
|
- for i in $ats_addto_bugger; do
|
|
- ats_addto_duplicate="0"
|
|
- for j in $CXXFLAGS; do
|
|
- if test "x$i" = "x$j"; then
|
|
- ats_addto_duplicate="1"
|
|
- break
|
|
- fi
|
|
- done
|
|
- if test $ats_addto_duplicate = "0"; then
|
|
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CXXFLAGS"
|
|
- CXXFLAGS="$CXXFLAGS $i"
|
|
- fi
|
|
- done
|
|
- fi
|
|
-
|
|
-
|
|
- if test "x$CFLAGS" = "x"; then
|
|
- test "x$verbose" = "xyes" && echo " setting CFLAGS to \"-mcx16\""
|
|
- CFLAGS="-mcx16"
|
|
- else
|
|
- ats_addto_bugger="-mcx16"
|
|
- for i in $ats_addto_bugger; do
|
|
- ats_addto_duplicate="0"
|
|
- for j in $CFLAGS; do
|
|
- if test "x$i" = "x$j"; then
|
|
- ats_addto_duplicate="1"
|
|
- break
|
|
- fi
|
|
- done
|
|
- if test $ats_addto_duplicate = "0"; then
|
|
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CFLAGS"
|
|
- CFLAGS="$CFLAGS $i"
|
|
- fi
|
|
- done
|
|
- fi
|
|
-
|
|
ats_save_CFLAGS=$CFLAGS
|
|
CFLAGS="$CFLAGS $CFLAGS_WARN"
|
|
if test "$ac_cv_c_compiler_gnu" = "yes"; then
|
|
@@ -24204,52 +24162,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
-if test "x$has_128bit_cas" = "x1"; then :
|
|
-
|
|
-
|
|
- if test "x$CFLAGS" = "x"; then
|
|
- test "x$verbose" = "xyes" && echo " setting CFLAGS to \"-mcx16\""
|
|
- CFLAGS="-mcx16"
|
|
- else
|
|
- ats_addto_bugger="-mcx16"
|
|
- for i in $ats_addto_bugger; do
|
|
- ats_addto_duplicate="0"
|
|
- for j in $CFLAGS; do
|
|
- if test "x$i" = "x$j"; then
|
|
- ats_addto_duplicate="1"
|
|
- break
|
|
- fi
|
|
- done
|
|
- if test $ats_addto_duplicate = "0"; then
|
|
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CFLAGS"
|
|
- CFLAGS="$CFLAGS $i"
|
|
- fi
|
|
- done
|
|
- fi
|
|
-
|
|
-
|
|
- if test "x$CXXFLAGS" = "x"; then
|
|
- test "x$verbose" = "xyes" && echo " setting CXXFLAGS to \"-mcx16\""
|
|
- CXXFLAGS="-mcx16"
|
|
- else
|
|
- ats_addto_bugger="-mcx16"
|
|
- for i in $ats_addto_bugger; do
|
|
- ats_addto_duplicate="0"
|
|
- for j in $CXXFLAGS; do
|
|
- if test "x$i" = "x$j"; then
|
|
- ats_addto_duplicate="1"
|
|
- break
|
|
- fi
|
|
- done
|
|
- if test $ats_addto_duplicate = "0"; then
|
|
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CXXFLAGS"
|
|
- CXXFLAGS="$CXXFLAGS $i"
|
|
- fi
|
|
- done
|
|
- fi
|
|
-
|
|
-
|
|
-fi
|
|
|
|
# Check for POSIX capabilities library.
|
|
# If we don't find it, disable checking for header.
|