From c0713a8a1b174ed93a145ca666d963f931add8ae Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 15 Apr 2015 13:58:06 +0000
Subject: php: php.ini uncomment extension=pdo_mysql.so for zoneminder

---
 abs/core/php/PKGBUILD      | 4 ++--
 abs/core/php/php.ini.patch | 4 ++--
 abs/core/php/php.install   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/abs/core/php/PKGBUILD b/abs/core/php/PKGBUILD
index b092e71..d20dc55 100644
--- a/abs/core/php/PKGBUILD
+++ b/abs/core/php/PKGBUILD
@@ -23,7 +23,7 @@ pkgname=('php'
          'php-tidy'
          'php-xsl')
 pkgver=5.6.3
-pkgrel=1
+pkgrel=3
 arch=('i686' 'x86_64')
 license=('PHP')
 url='http://www.php.net'
@@ -384,7 +384,7 @@ package_php-xsl() {
 }
 md5sums=('7635f344145a4edd7dff6ecec795aaea'
          'SKIP'
-         '8768a43f8e435e9bbe56ef714214f9b6'
+         'b1088bdc55787f55019a2853e28dff84'
          'dec2cbaad64e3abf4f0ec70e1de4e8e9'
          '6bc1fc4ceee039d21ff3b56aa845cc5a'
          '25bc67ad828e8147a817410b68d8016c'
diff --git a/abs/core/php/php.ini.patch b/abs/core/php/php.ini.patch
index 78f51d4..920553e 100644
--- a/abs/core/php/php.ini.patch
+++ b/abs/core/php/php.ini.patch
@@ -1,5 +1,5 @@
 --- php.ini-production.orig	2014-12-08 15:38:39.686053082 +0000
-+++ php.ini-production	2014-12-08 15:45:54.966578982 +0000
++++ php.ini-production	2015-04-15 12:09:34.685705719 +0000
 @@ -199,7 +199,7 @@
  ; Development Value: Off
  ; Production Value: Off
@@ -114,7 +114,7 @@
 +;extension=odbc.so
 +;zend_extension=opcache.so
 +extension=openssl.so
-+;extension=pdo_mysql.so
++extension=pdo_mysql.so
 +;extension=pdo_odbc.so
 +;extension=pdo_pgsql.so
 +;extension=pdo_sqlite.so
diff --git a/abs/core/php/php.install b/abs/core/php/php.install
index 772c0ea..49fe408 100755
--- a/abs/core/php/php.install
+++ b/abs/core/php/php.install
@@ -4,7 +4,7 @@ post_install() {
         . /etc/systemconfig
         if [ -f /etc/php/php.ini ]
         then
-            sed -i 's|^.*date.timezone.*$|date.timezone='${timezone}'|' /etc/php/php.ini
+            sed -i 's|^.*date.timezone.*=.*$|date.timezone='${timezone}'|' /etc/php/php.ini
         fi
     fi
 }
-- 
cgit v0.12

