Here it is. Notice, I did not chane the pkgrel!

Am Sonntag, 6. August 2006 16:11 schrieb Leif Thande:
> I know it may be easy to do, but could you send the modified version
> of the PKGBUILD to apply that patch, I'm not really familiar with
> that. Could save some time for the maintainer also.
>
> _______________________________________________
> arch mailing list
> [email protected]
> http://www.archlinux.org/mailman/listinfo/arch

-- 
http://www.archlinux.de
# $Id: PKGBUILD,v 1.80 2006/05/29 10:09:55 tpowa Exp $
# Maintainer: dorphell <[EMAIL PROTECTED]>
pkgname=php
pkgver=5.1.4
pkgrel=4
pkgdesc="A high-level scripting language"
arch=(i686 x86_64)
url="http://www.php.net";
backup=(etc/php.ini)
depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam' \
         'gdbm' 'libxml2' 'openldap' 'ncurses' 'curl' 'libxslt')
makedepends=('apache>=2.0.55-1' 'mysql>=5.0.15' 'imap' 'postgresql' 'bzip2' \
             'smtp-server' 'gd' 'sqlite3' 'unixodbc')
source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz php.ini \
        http://www.hardened-php.net/$pkgname-$pkgver-security-fix-5.patch.gz)
md5sums=('7c846aa09ec1fe0f54a57c8ba030d9f8' 'ac837bdeafa7fdef33e70fc3d7753164' 
'4b035d6e519ac7062ea37a0e9b80fbdb')

build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -p 1 -i ../$pkgname-$pkgver-security-fix-5.patch
  ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc \
    --with-layout=PHP \
    --with-ttf --enable-mailparse --with-config-file-scan-dir=/etc \
    --enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared \
    --enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared \
    --enable-session --enable-shared --enable-shmop=shared --enable-pdo=shared \
    --enable-sqlite-utf8 --enable-sockets=shared --enable-xml\
    --enable-sysvsem=shared --enable-sysvshm=shared --enable-sysvmsg=shared \
    --enable-track-vars --enable-trans-sid --enable-safe-mode \
    --with-imap --with-imap-ssl --with-ncurses --with-readline \
    --with-bz2=shared --with-curl --with-mime-magic \
    --with-freetype-dir=/usr --with-gd=shared --enable-exif 
--with-jpeg-dir=/usr \
    --enable-dba --without-db2 --without-db3 --with-inifile --with-flatfile \
    --with-gdbm --with-ldap=shared --with-openssl --with-gettext \
    --with-unixODBC=shared,/usr --with-pdo-odbc=shared,unixODBC,/usr \
    --with-mysqli=shared --with-mysql-sock=/tmp/mysql.sock \
    --with-pdo-mysql=shared,/usr --with-mysql=shared,/usr \
    --with-pgsql=shared --with-pgsql-sock=/tmp/pgsql.sock 
--with-pdo-pgsql=shared,/usr \
    --with-sqlite=shared --with-pdo-sqlite=shared,/usr \
    --with-pear=/usr/share/pear --with-dom --with-dom-xslt --with-xsl \
    --with-png-dir=/usr --with-regex=php --with-zlib \
    --enable-mbstring=all --enable-mbregex
  # fixes a build error in sqlite support
  ln -s main/php_config.h ./config.h
  make -j1 || return 1
  mkdir -p $startdir/pkg/usr/lib/apache
#  cp config_vars.mk config_vars.old
#  sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S 
LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" 
config_vars.old >config_vars.mk
  sed -i "s|-i -a -n php5|-i -n php5|g" Makefile
  make INSTALL_ROOT=$startdir/pkg install
  cp ../php.ini $startdir/pkg/etc

  #FS #3395
  cd $startdir/pkg/usr/lib/php/extensions && ln -s * php

  ############## Ugly fix for FS #3563 and #3577
  cd $startdir/pkg
  sed "s|$PWD||g" -i 
usr/share/pear/{peclcmd.php,pearcmd.php,PEAR/Command/Package.php} 
usr/bin/{pear,peardev,pecl}

  sed 's#:\([0-9]*\):\"'$PWD'#:$((\1-'`echo -n $PWD|wc -c`')):\"#g;  
s#\"#\\"#g;  s#.*#echo "&"#g' \
    etc/pear.conf |sh > etc/pear.conf.tmp
  mv etc/pear.conf.tmp etc/pear.conf

  sed 's#:\([0-9]*\):\"'$PWD'#:$((\1-'`echo -n $PWD|wc -c`')):\"#g;  
s#\"#\\"#g;  s#.*#echo "&"#g' \
    usr/share/pear/.registry/console_getopt.reg |sh > 
usr/share/pear/.registry/console_getopt.reg.tmp
  mv usr/share/pear/.registry/console_getopt.reg.tmp 
usr/share/pear/.registry/console_getopt.reg

  sed 's#:\([0-9]*\):\"'$PWD'#:$((\1-'`echo -n $PWD|wc -c`')):\"#g;  
s#\"#\\"#g;  s#.*#echo "&"#g' \
    usr/share/pear/.registry/archive_tar.reg |sh > 
usr/share/pear/.registry/archive_tar.reg.tmp
  mv usr/share/pear/.registry/archive_tar.reg.tmp 
usr/share/pear/.registry/archive_tar.reg

  sed 's#:\([0-9]*\):\"'$PWD'#:$((\1-'`echo -n $PWD|wc -c`')):\"#g;  
s#\"#\\"#g;  s#.*#echo "&"#g' \
    usr/share/pear/.registry/pear.reg |sh > 
usr/share/pear/.registry/pear.reg.tmp
  mv usr/share/pear/.registry/pear.reg.tmp usr/share/pear/.registry/pear.reg
  ##############
}
_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to