summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2011-11-14 23:27:44 (GMT)
committerBritney Fransen <brfransen@gmail.com>2011-11-14 23:27:44 (GMT)
commit344751f81a18533524e3f945ac8e33fa0243d606 (patch)
tree7cb9c9010d7b589fb5d67648a94869d18c592130 /abs/core
parente9de2b12b35f77ce67204c6e1964a5345bb15b6c (diff)
downloadlinhes_pkgbuild-344751f81a18533524e3f945ac8e33fa0243d606.zip
linhes_pkgbuild-344751f81a18533524e3f945ac8e33fa0243d606.tar.gz
linhes_pkgbuild-344751f81a18533524e3f945ac8e33fa0243d606.tar.bz2
php: change mysql.default_socket for existing php.ini
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/php/PKGBUILD4
-rw-r--r--abs/core/php/__changelog2
-rw-r--r--abs/core/php/php.install2
3 files changed, 6 insertions, 2 deletions
diff --git a/abs/core/php/PKGBUILD b/abs/core/php/PKGBUILD
index 28bd83f..394f495 100644
--- a/abs/core/php/PKGBUILD
+++ b/abs/core/php/PKGBUILD
@@ -1,7 +1,7 @@
pkgbase=php
pkgname=('php' 'php-cgi' 'php-pear')
pkgver=5.3.3
-pkgrel=7
+pkgrel=8
_suhosinver=${pkgver}-0.9.10
pkgdesc='A high-level scripting language'
arch=('i686' 'x86_64')
@@ -19,7 +19,7 @@ makedepends=('mysql' 'libpng' 'libjpeg' 'sqlite3' 'libmcrypt' 'libtool' \
'freetype2' 'libjpeg' 'curl' 'libxslt' 'pam' 'openssl' 'bzip2' \
'gdbm' 'db>=4.8.26')
options=('emptydirs')
-source=("http://www.php.net/distributions/${pkgname}-${pkgver}.tar.bz2" \
+source=("http://museum.php.net/php5/${pkgname}-${pkgver}.tar.bz2" \
"http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz" \
'php.ini' 'apache.conf')
diff --git a/abs/core/php/__changelog b/abs/core/php/__changelog
index 592eff9..754dc7c 100644
--- a/abs/core/php/__changelog
+++ b/abs/core/php/__changelog
@@ -11,3 +11,5 @@ split package into "php" "php-cgi" and "php-pear" -mh
php-pear replaces PearLog -mh
php.ini: mysql.default_socket = /var/run/mysqld/mysqld.sock Ref #753 -mh
+
+php.install: Change mysql.default_socket
diff --git a/abs/core/php/php.install b/abs/core/php/php.install
index fb543f3..b040032 100644
--- a/abs/core/php/php.install
+++ b/abs/core/php/php.install
@@ -1,4 +1,6 @@
post_install() {
+ # change mysql.default_socket for mythweb
+ sed -i 's/^mysql.default_socket.*$/mysql.default_socket = \/var\/run\/mysqld\/mysqld.sock/g' /etc/php/php.ini
if [ -f /etc/systemconfig ]
then
. /etc/systemconfig