X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from smtp191.dfw.emailsrvr.com (smtp191.dfw.emailsrvr.com [67.192.241.191]) by lists.alpinelinux.org (Postfix) with ESMTP id D89F31EBFEF for ; Thu, 30 Dec 2010 21:57:38 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp19.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 3E83D3C8170; Thu, 30 Dec 2010 16:57:38 -0500 (EST) X-Virus-Scanned: OK Received: by smtp19.relay.dfw1a.emailsrvr.com (Authenticated sender: mcs-AT-darkregion.net) with ESMTPSA id 8F60A3C81DB; Thu, 30 Dec 2010 16:57:37 -0500 (EST) From: Matt Smith To: alpine-devel@lists.alpinelinux.org Cc: Matt Smith Subject: [alpine-devel] [PATCH] main/php: enabled some defaults for php-fpm Date: Thu, 30 Dec 2010 15:57:31 -0600 Message-Id: <1293746251-2108-1-git-send-email-mcs@darkregion.net> X-Mailer: git-send-email 1.7.3.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: I enabled some defaults for php-fpm so that it will start without configuration. Let me know what you think. --- main/php/APKBUILD | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/main/php/APKBUILD b/main/php/APKBUILD index 35df492..2cbaf0c 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 } -- 1.7.3.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---