aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2013-11-11 19:48:43 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-11 15:13:30 -0600
commit7ef28ffab84e96b17a88afd33ec1b7b8d1be985c (patch)
treef1b263da9e398fef06b0877d46d4ac78dc7f2a54
parent422c31f20b9d1cc1f15e727cf90ff90144263f89 (diff)
libraries/php-pgsql: Updated for version 5.4.20 and add pdo_pgsql.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
-rw-r--r--libraries/php-pgsql/doinst.sh1
-rw-r--r--libraries/php-pgsql/pdo_pgsql.ini2
-rw-r--r--libraries/php-pgsql/pgsql.ini2
-rw-r--r--libraries/php-pgsql/php-pgsql.SlackBuild38
-rw-r--r--libraries/php-pgsql/php-pgsql.info6
5 files changed, 39 insertions, 10 deletions
diff --git a/libraries/php-pgsql/doinst.sh b/libraries/php-pgsql/doinst.sh
index 1e20fdfdda3e1..a27ba5dba69b2 100644
--- a/libraries/php-pgsql/doinst.sh
+++ b/libraries/php-pgsql/doinst.sh
@@ -12,4 +12,5 @@ config() {
}
config etc/php/pgsql.ini.new
+config etc/php/pdo_pgsql.ini.new
diff --git a/libraries/php-pgsql/pdo_pgsql.ini b/libraries/php-pgsql/pdo_pgsql.ini
new file mode 100644
index 0000000000000..f56e175e32d33
--- /dev/null
+++ b/libraries/php-pgsql/pdo_pgsql.ini
@@ -0,0 +1,2 @@
+; Enable pdo_pgsql extension module
+; extension=pdo_pgsql.so
diff --git a/libraries/php-pgsql/pgsql.ini b/libraries/php-pgsql/pgsql.ini
index d5fc809ef2b2d..017cd7fbc93b8 100644
--- a/libraries/php-pgsql/pgsql.ini
+++ b/libraries/php-pgsql/pgsql.ini
@@ -1,4 +1,4 @@
-; Enable intl extension module
+; Enable pgsql extension module
; extension=pgsql.so
; Whether to allow persistent Postgres connections.
diff --git a/libraries/php-pgsql/php-pgsql.SlackBuild b/libraries/php-pgsql/php-pgsql.SlackBuild
index e7df477031b00..1a270f85fdc3e 100644
--- a/libraries/php-pgsql/php-pgsql.SlackBuild
+++ b/libraries/php-pgsql/php-pgsql.SlackBuild
@@ -24,7 +24,7 @@
SRCNAM=php
PRGNAM=php-pgsql
-VERSION=5.4.6
+VERSION=5.4.20
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,9 +70,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-cd ext/pgsql/
-
PHP_CONFIG=/usr/bin/php-config
+EXTENSION_DIR="$PKG/$($PHP_CONFIG --extension-dir)"
+
+cd ext/pgsql/
/usr/bin/phpize
@@ -90,18 +91,43 @@ CXXFLAGS="$SLKCFLAGS" \
make
-EXTENSION_DIR="$PKG/$($PHP_CONFIG --extension-dir)"
mkdir -p $EXTENSION_DIR $PKG/etc/php
make install DESTDIR=$PKG EXTENSION_DIR=$EXTENSION_DIR
+cd -
+
+cd ext/pdo_pgsql
+
+/usr/bin/phpize
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --with-php-config=$PHP_CONFIG \
+ --build=$ARCH-slackware-linux
+
+make
+
+make install DESTDIR=$PKG EXTENSION_DIR=$EXTENSION_DIR
+
+cd -
+
install -m 644 $CWD/pgsql.ini $PKG/etc/php/pgsql.ini.new
+install -m 644 $CWD/pdo_pgsql.ini $PKG/etc/php/pdo_pgsql.ini.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp CREDITS README $PKG/usr/doc/$PRGNAM-$VERSION/
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{pgsql,pdo_pgsql}
+cp ext/pgsql/{CREDITS,README} $PKG/usr/doc/$PRGNAM-$VERSION/pgsql/
+cp ext/pdo_pgsql/CREDITS $PKG/usr/doc/$PRGNAM-$VERSION/pdo_pgsql/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/php-pgsql/php-pgsql.info b/libraries/php-pgsql/php-pgsql.info
index 3bc3358fc49ba..01d26254ba1bb 100644
--- a/libraries/php-pgsql/php-pgsql.info
+++ b/libraries/php-pgsql/php-pgsql.info
@@ -1,8 +1,8 @@
PRGNAM="php-pgsql"
-VERSION="5.4.6"
+VERSION="5.4.20"
HOMEPAGE="http://php.net/manual/en/book.pgsql.php"
-DOWNLOAD="http://www.php.net/distributions/php-5.4.6.tar.bz2"
-MD5SUM="c9aa0f4996d1b91ee9e45afcfaeb5d2e"
+DOWNLOAD="http://www.php.net/distributions/php-5.4.20.tar.bz2"
+MD5SUM="e25db5592ed14842b4239be9d990cce8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="postgresql"