aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorMatt Smith <mcs@darkregion.net>2010-12-30 15:57:31 -0600
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-31 08:13:06 +0000
commit01773274eaff18408737aa5bbad49358fc6826c3 (patch)
tree17bc1f9ab119e16546e8892431caf985efae5ec0 /main
parentfe5b95b92e7d47dc14eb1205eb3be0b6ec163150 (diff)
downloadaports-01773274eaff18408737aa5bbad49358fc6826c3.tar.bz2
aports-01773274eaff18408737aa5bbad49358fc6826c3.tar.xz
main/php: enabled some defaults for php-fpm
I enabled some defaults for php-fpm so that it will start without configuration. Let me know what you think.
Diffstat (limited to 'main')
-rw-r--r--main/php/APKBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index 35df4927cf..2cbaf0c8f6 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -3,7 +3,7 @@
pkgname=php
pkgver=5.3.4
_suhosinver=5.3.4-0.9.10
-pkgrel=0
+pkgrel=1
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
arch="x86 x86_64"
@@ -298,6 +298,12 @@ fpm() {
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
+
+ # enable some defaults
+ sed -ri "s/^;(pm.start_servers)/\1/" "$subpkgdir"/etc/php/php-fpm.conf
+ sed -ri "s/^;(pm.min_spare_servers)/\1/" "$subpkgdir"/etc/php/php-fpm.conf
+ sed -ri "s/^;(pm.max_spare_servers)/\1/" "$subpkgdir"/etc/php/php-fpm.conf
+
install -D -m755 "$srcdir"/php-fpm.init "$subpkgdir"/etc/init.d/php-fpm
}