diff options
author | Johannes Schleifenbaum | 2015-06-12 07:25:13 +0200 |
---|---|---|
committer | Johannes Schleifenbaum | 2015-06-12 07:25:13 +0200 |
commit | 63cb9ffc006d4b6958aa1dd1be1fc5ad92d72623 (patch) | |
tree | b611c30914cc45535792dd691a3fa4ca836d5b16 | |
parent | e3d5862025de9db928f796fdd1348c219fd639b9 (diff) | |
download | aur-63cb9ffc006d4b6958aa1dd1be1fc5ad92d72623.tar.gz |
Check if phar is enabled and phar.readonly is Off
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | php-box.install | 9 |
3 files changed, 12 insertions, 3 deletions
@@ -1,14 +1,14 @@ pkgbase = php-box pkgdesc = An application for building and managing Phars pkgver = 2.5.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/box-project/box2 install = php-box.install arch = any license = MIT depends = php>=5.3.3 source = https://github.com/kherge-archive/Box/releases/download/2.5.2/box-2.5.2.phar - source = https://raw.github.com/box-project/box2/2.5.1/LICENSE + source = https://raw.github.com/box-project/box2/2.5.2/LICENSE sha256sums = 4df2f37906b5bbb124851d7b8359533b0a3bdd890c47ba14e82c4c07be22ce71 sha256sums = ba2dfc30b9659262549c839894838d9a1fe78ca533d0338cebc2f4f634b3bb12 @@ -4,7 +4,7 @@ pkgname=php-box pkgver=2.5.2 -pkgrel=1 +pkgrel=2 pkgdesc="An application for building and managing Phars" url="https://github.com/box-project/box2" license="MIT" diff --git a/php-box.install b/php-box.install index 5ebc8429be69..38706a87e50c 100644 --- a/php-box.install +++ b/php-box.install @@ -1,6 +1,15 @@ post_install() { echo echo "php-box is installed as executable 'php-box'." + if ! /usr/bin/php -i | grep Phar >/dev/null; then + echo + echo "[WARNING] the Phar extension of php must be enabled." + echo "[WARNING] check if the line extension=phar.so is commented out in your php.ini" + fi + if ! /usr/bin/php -i | grep 'phar.readonly.*Off.*' >/dev/null; then + echo + echo "[WARNING] the phar.readonly option of php must be set to 'Off'." + fi } post_upgrade() { |