aboutsummaryrefslogtreecommitdiffstats
path: root/main/php5
diff options
context:
space:
mode:
Diffstat (limited to 'main/php5')
-rw-r--r--main/php5/APKBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/php5/APKBUILD b/main/php5/APKBUILD
index 10e01917a6..c8a9289fe8 100644
--- a/main/php5/APKBUILD
+++ b/main/php5/APKBUILD
@@ -335,11 +335,14 @@ doc() {
common() {
pkgdesc="PHP Common Files"
depends=""
+
cd "$srcdir"/php-$pkgver
+
install -D -m644 php.ini-production "$subpkgdir"$_confdir/php.ini
- sed -i -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" "$subpkgdir"/etc/php/php.ini
- sed -ri 's/;(date.timezone =)/\1 UTC/' "$subpkgdir"$_confdir/php.ini
- sed -ri "s~^([;]*cgi\.rfc2616_headers.*)$~\1\n\n\; If this is enabled, the PHP CGI binary can safely be placed outside of the\n; web tree and people will not be able to circumvent .htaccess security.\ncgi\.discard_path = 1~" "$subpkgdir"$_confdir/php.ini
+ sed -ri -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" \
+ -e 's/;(date.timezone =)/\1 UTC/' \
+ -e "s~^([;]*cgi\.rfc2616_headers.*)$~\1\n\n\; If this is enabled, the PHP CGI binary can safely be placed outside of the\n; web tree and people will not be able to circumvent .htaccess security.\ncgi\.discard_path = 1~" \
+ "$subpkgdir"$_confdir/php.ini
}
cgi() {