aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-11-22 15:52:53 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-11-22 15:52:53 +0000
commitdbff2026980b443c3afa4f9af5122c52a6bc8e7c (patch)
treec11bae2281250df440f761618930b7f7ab010adb /patches
parent9e3dc4a716971ea420e3ae75e85b49d213654c48 (diff)
downloadslackbuilds-dbff2026980b443c3afa4f9af5122c52a6bc8e7c.tar.gz
slackbuilds-dbff2026980b443c3afa4f9af5122c52a6bc8e7c.tar.bz2
php: updating SlackBuilds
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1464 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'patches')
-rw-r--r--patches/php/conf/mod_php.conf.example (renamed from patches/php/mod_php.conf.example)0
-rw-r--r--patches/php/doinst.sh.gz (renamed from patches/php/patches/doinst.sh.gz)bin152 -> 152 bytes
-rwxr-xr-xpatches/php/php-pgsql.SlackBuild14
-rwxr-xr-xpatches/php/php.SlackBuild27
-rwxr-xr-xpatches/php/php4-snapshot.SlackBuild14
5 files changed, 30 insertions, 25 deletions
diff --git a/patches/php/mod_php.conf.example b/patches/php/conf/mod_php.conf.example
index 7adf6e0b..7adf6e0b 100644
--- a/patches/php/mod_php.conf.example
+++ b/patches/php/conf/mod_php.conf.example
diff --git a/patches/php/patches/doinst.sh.gz b/patches/php/doinst.sh.gz
index 67263cac..67263cac 100644
--- a/patches/php/patches/doinst.sh.gz
+++ b/patches/php/doinst.sh.gz
Binary files differ
diff --git a/patches/php/php-pgsql.SlackBuild b/patches/php/php-pgsql.SlackBuild
index bf3b5669..46ee2f91 100755
--- a/patches/php/php-pgsql.SlackBuild
+++ b/patches/php/php-pgsql.SlackBuild
@@ -235,8 +235,8 @@ cd php-$VERSION
if [ "$ARCH" == "x86_64" ]; then
# Fix lib64 - thanks SuSE
- echo patching with $CWD/php-with-_lib-$VERSION.diff.gz...
- zcat $CWD/php-with-_lib-$VERSION.diff.gz | patch -p1 --verbose || exit $ERROR_PATCH
+ echo patching with $CWD/patches/php-with-_lib-$VERSION.diff.gz...
+ zcat $CWD/patches/php-with-_lib-$VERSION.diff.gz | patch -p1 --verbose || exit $ERROR_PATCH
autoconf
fi
@@ -252,18 +252,18 @@ find . -name "*.orig" -exec rm {} \;
# Fix a UTF-8 parsing overflow:
if [[ `echo $VERSION | tr -dc '[[:digit:]]'` -lt 445 ]]; then
- zcat $CWD/php4.utf8.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php4.utf8.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
fi
# Patch ini files:
if [ "$ARCH" == "x86_64" ]; then
- zcat $CWD/php.ini-x86_64.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.ini-x86_64.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
# Fix an issue introduced in PHP 4.4.1 that breaks SquirrelMail and
# probably some other PHP applications:
- #zcat $CWD/php.squirrel.diff.gz | patch -p1 --verbose || exit
+ #zcat $CWD/patches/php.squirrel.diff.gz | patch -p1 --verbose || exit
else
- zcat $CWD/php.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
fi
# Make the Apache module version of PHP:
@@ -310,7 +310,7 @@ chown -R root.root $PKG/usr/doc/php-$VERSION
mkdir -p $PKG/etc/apache
cp -a php.ini-dist php.ini-recommended $PKG/etc/apache
-cp -a $CWD/mod_php.conf.example $PKG/etc/apache
+cp -a $CWD/conf/mod_php4.conf.example $PKG/etc/apache/mod_php.conf.example
chmod 644 $PKG/etc/apache/*
chown root.root $PKG/etc/apache/*
diff --git a/patches/php/php.SlackBuild b/patches/php/php.SlackBuild
index c4795d68..46b802ae 100755
--- a/patches/php/php.SlackBuild
+++ b/patches/php/php.SlackBuild
@@ -1,4 +1,5 @@
#!/bin/bash
+#
# Build and package mod_php on Slackware.
# by: David Cantrell <david@slackware.com>
# Modified for PHP 4-5 by volkerdi@slackware.com
@@ -201,8 +202,8 @@ fi
)
if [ "$ARCH" = "s390" ]; then
- if [ -f "$CWD/php.configure.s390.diff.gz" ]; then
- zcat $CWD/php.configure.s390.diff.gz | patch -p1 || exit
+ if [ -f "$CWD/patches/php.configure.s390.diff.gz" ]; then
+ zcat $CWD/patches/php.configure.s390.diff.gz | patch -p1 || exit
fi
fi
@@ -225,8 +226,8 @@ cd php-$VERSION
if [ "$ARCH" == "x86_64" ]; then
if [ "$PHP_SERIES" == "4" ]; then
# Fix lib64 - thanks SuSE
- echo patching with $CWD/php-with-_lib-$VERSION.diff.gz...
- zcat $CWD/php-with-_lib-$VERSION.diff.gz | patch -p1 --verbose || exit $ERROR_PATCH
+ echo patching with $CWD/patches/php-with-_lib-$VERSION.diff.gz...
+ zcat $CWD/patches/php-with-_lib-$VERSION.diff.gz | patch -p1 --verbose || exit $ERROR_PATCH
autoconf
fi
fi
@@ -253,21 +254,21 @@ find . -name "*.orig" -exec rm {} \;
# Fix a UTF-8 parsing overflow:
FULL_VERSION="`echo $VERSION | tr -dc '[[:digit:]]'`"
if [[ $FULL_VERSION -lt 445 ]]; then
- zcat $CWD/php4.utf8.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php4.utf8.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
elif [ "$FULL_VERSION" == "441" ]; then
# Fix an issue introduced in PHP 4.4.1 that breaks SquirrelMail and
# probably some other PHP applications:
- zcat $CWD/php.squirrel.diff.gz | patch -p1 --verbose || exit
+ zcat $CWD/patches/php.squirrel.diff.gz | patch -p1 --verbose || exit
fi
# Patch ini files:
if [ "$ARCH" == "x86_64" ]; then
- zcat $CWD/php.ini-x86_64.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
- zcat $CWD/php.recommended-x86_64.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.ini-x86_64.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.recommended-x86_64.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
else
- zcat $CWD/php.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
- zcat $CWD/php.recommended.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.recommended.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
fi
# Generic "kitchen sink" configure function, with as many things as possible (and
@@ -528,9 +529,13 @@ cp -a \
$PKG/usr/doc/php-$VERSION
chown -R root:root $PKG/usr/doc/php-$VERSION
+if [ -f "$PKG/etc/pear.conf" ]; then
+ mv $PKG/etc/pear.conf $PKG/etc/pear.conf.example
+fi
+
mkdir -p $PKG/etc/apache
cp -a php.ini-dist php.ini-recommended $PKG/etc/apache
-cp -a $CWD/mod_php.conf.example $PKG/etc/apache
+cp -a $CWD/mod_php$PHP_SERIES.conf.example $PKG/etc/apache/mod_php.conf.example
chmod 644 $PKG/etc/apache/*
chown root:root $PKG/etc/apache/*
diff --git a/patches/php/php4-snapshot.SlackBuild b/patches/php/php4-snapshot.SlackBuild
index db96b23e..0a807cbf 100755
--- a/patches/php/php4-snapshot.SlackBuild
+++ b/patches/php/php4-snapshot.SlackBuild
@@ -230,8 +230,8 @@ cd php4-STABLE-$SNAP_VERSION
if [ "$ARCH" == "x86_64" ]; then
# Fix lib64 - thanks SuSE
- echo patchin with $CWD/php-with-_lib-$VERSION.diff.gz...
- zcat $CWD/php-with-_lib-$VERSION.diff.gz | patch -p1 --verbose || exit $ERROR_PATCH
+ echo patching with $CWD/patches/php-with-_lib-$VERSION.diff.gz...
+ zcat $CWD/patches/php-with-_lib-$VERSION.diff.gz | patch -p1 --verbose || exit $ERROR_PATCH
autoconf
fi
@@ -246,17 +246,17 @@ find . -name "*.h" -exec chmod 644 {} \;
find . -name "*.orig" -exec rm {} \;
# Fix a UTF-8 parsing overflow:
-zcat $CWD/php4.utf8.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+zcat $CWD/patches/php4.utf8.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
# Patch ini files:
if [ "$ARCH" == "x86_64" ]; then
- zcat $CWD/php.ini-x86_64.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.ini-x86_64.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
# Fix an issue introduced in PHP 4.4.1 that breaks SquirrelMail and
# probably some other PHP applications:
- #zcat $CWD/php.squirrel.diff.gz | patch -p1 --verbose || exit
+ #zcat $CWD/patches/php.squirrel.diff.gz | patch -p1 --verbose || exit
else
- zcat $CWD/php.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
+ zcat $CWD/patches/php.ini.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit $ERROR_PATCH
fi
# Make the Apache module version of PHP:
@@ -303,7 +303,7 @@ chown -R root.root $PKG/usr/doc/php-$SNAP_VERSION
mkdir -p $PKG/etc/apache
cp -a php.ini-dist php.ini-recommended $PKG/etc/apache
-cp -a $CWD/mod_php.conf.example $PKG/etc/apache
+cp -a $CWD/mod_php4.conf.example $PKG/etc/apache/mod_php.conf.example
chmod 644 $PKG/etc/apache/*
chown root.root $PKG/etc/apache/*