aboutsummaryrefslogtreecommitdiffstats
path: root/main/php/APKBUILD
diff options
context:
space:
mode:
authorCameron Banta <cbanta@gmail.com>2010-12-08 16:44:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-10 20:08:59 +0000
commit2ba1cf2bf964f3b3a768bb0441a5696ddabe1047 (patch)
treed8fadc85c3f586d1e0758f7c720656237dc2eec6 /main/php/APKBUILD
parentb70d422361400cc6a43c322e9f446dc2b3791504 (diff)
downloadaports-2ba1cf2bf964f3b3a768bb0441a5696ddabe1047.tar.bz2
aports-2ba1cf2bf964f3b3a768bb0441a5696ddabe1047.tar.xz
main/php: update to compile fpm support
Diffstat (limited to 'main/php/APKBUILD')
-rw-r--r--main/php/APKBUILD20
1 files changed, 16 insertions, 4 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index 1980f668fc..cc66599f4e 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -3,7 +3,7 @@
pkgname=php
pkgver=5.3.3
_suhosinver=${pkgver}-0.9.10
-pkgrel=4
+pkgrel=5
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
license="PHP-3"
@@ -14,8 +14,8 @@ makedepends="pcre-dev libxml2-dev libiconv-dev openssl-dev zlib-dev bzip2-dev
sqlite-dev libtool libltdl postgresql-dev db-dev unixodbc-dev icu-dev
gd-dev gmp-dev gettext-dev imap-dev aspell-dev
net-snmp-dev libxslt-dev cyrus-sasl-dev openldap-dev pkgconfig
- libgcrypt-dev apache2-dev apr-dev apr-util-dev"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-cli $pkgname-pear
+ libgcrypt-dev apache2-dev apr-dev apr-util-dev libevent-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-cli $pkgname-fpm $pkgname-pear
$pkgname-apache2
$pkgname-bcmath
$pkgname-bz2
@@ -66,6 +66,7 @@ source="http://www.php.net/distributions/${pkgname}-${pkgver}.tar.bz2
http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz
php-install-pear-xml.patch
php-uclibc.patch
+ php-fpm.init
"
_extdir="/usr/lib/php/20090626"
@@ -228,6 +229,7 @@ build() {
--enable-fastcgi \
--enable-cgi \
--enable-cli \
+ --enable-fpm \
--enable-discard-path \
--enable-force-cgi-redirect \
--with-pic \
@@ -289,6 +291,15 @@ cli() {
mv "$pkgdir"/usr/bin/php "$subpkgdir"/usr/bin/
}
+fpm() {
+ pkgdesc="PHP Fast Process Manager (FPM) interface"
+ mkdir -p "$subpkgdir"/usr/bin
+ mkdir -p "$subpkgdir"/etc/php
+ mv "$pkgdir"/usr/sbin/php-fpm "$subpkgdir"/usr/bin/php-fpm
+ mv "$pkgdir"/etc/php/php-fpm.conf.default "$subpkgdir"/etc/php/php-fpm.conf
+ install -D -m755 "$srcdir"/php-fpm.init "$subpkgdir"/etc/init.d/php-fpm
+}
+
pear() {
depends="php php-cli"
mkdir -p "$subpkgdir"/usr/bin
@@ -366,4 +377,5 @@ dev() {
md5sums="21ceeeb232813c10283a5ca1b4c87b48 php-5.3.3.tar.bz2
b66b27c43b1332400ef8982944c3b95b suhosin-patch-5.3.3-0.9.10.patch.gz
5111e3be06d391f8772587c675240fab php-install-pear-xml.patch
-26adfe0e744ec05fa9e368bbdee83176 php-uclibc.patch"
+26adfe0e744ec05fa9e368bbdee83176 php-uclibc.patch
+8f2bb2b744a2de50025842cb51fb6a3a php-fpm.init"