Created
August 22, 2014 18:29
-
-
Save ahmedammar/1651f9e62f1556cfcf5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 35974cdefdfe8922e7e055891ef1fed8751821fe Mon Sep 17 00:00:00 2001 | |
From: Ahmed Ammar <aammar@genesi-usa.com> | |
Date: Fri, 22 Aug 2014 21:26:18 +0300 | |
Subject: [PATCH 1/1] Fixes for 10.10 | |
--- | |
Formula/abstract-php.rb | 9 ++++++++- | |
1 file changed, 8 insertions(+), 1 deletion(-) | |
diff --git a/Formula/abstract-php.rb b/Formula/abstract-php.rb | |
index 439901d..0ad38ac 100644 | |
--- a/Formula/abstract-php.rb | |
+++ b/Formula/abstract-php.rb | |
@@ -90,6 +90,7 @@ class AbstractPhp < Formula | |
option 'without-pcntl', 'Build without Process Control support' | |
option 'disable-opcache', 'Build without Opcache extension' | |
option 'disable-zend-multibyte', 'Disable auto-detection of Unicode encoded scripts (PHP 5.2 and 5.3 only)' | |
+ option 'without-snmp', 'Disable SNMP' | |
end | |
# Fixes the pear .lock permissions issue that keeps it from operating correctly. | |
@@ -219,7 +220,6 @@ INFO | |
"--with-jpeg-dir=#{Formula['jpeg'].opt_prefix}", | |
"--with-png-dir=#{Formula['libpng'].opt_prefix}", | |
"--with-gettext=#{Formula['gettext'].opt_prefix}", | |
- "--with-snmp=/usr", | |
"--with-libedit", | |
"--with-unixODBC=#{Formula['unixodbc'].opt_prefix}", | |
"--with-pdo-odbc=unixODBC,#{Formula['unixodbc'].opt_prefix}", | |
@@ -249,6 +249,7 @@ INFO | |
if build.with? 'homebrew-openssl' | |
args << "--with-openssl=" + Formula['openssl'].opt_prefix.to_s | |
+ args << "--with-openssl-dir=" + Formula['openssl'].opt_prefix.to_s | |
else | |
args << "--with-openssl=/usr" | |
end | |
@@ -259,6 +260,12 @@ INFO | |
args << "--with-xsl=/usr" | |
end | |
+ if build.with? 'snmp' | |
+ args << "--with-snmp" | |
+ else | |
+ args << "--without-snmp" | |
+ end | |
+ | |
if build.with? 'fpm' | |
args << "--enable-fastcgi" | |
args << "--enable-fpm" | |
-- | |
1.9.3 (Apple Git-50) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment