aboutsummaryrefslogtreecommitdiff
path: root/development/php-xdebug/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-09-11 13:15:11 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-09-16 00:45:35 +0700
commitb850694736b59c4429d6ae24edb6a9f8cfce4848 (patch)
treecc31c8bf1f1289e5f6c5b5fdcd6139d3c211ba40 /development/php-xdebug/doinst.sh
parent0ba89653ce1f58ae009eeb5e4d3fb5fe72babc21 (diff)
downloadslackbuilds-b850694736b59c4429d6ae24edb6a9f8cfce4848.tar.xz
development/php-xdebug: Renamed from xdebug
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/php-xdebug/doinst.sh')
-rw-r--r--development/php-xdebug/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/development/php-xdebug/doinst.sh b/development/php-xdebug/doinst.sh
new file mode 100644
index 000000000000..d41438b85383
--- /dev/null
+++ b/development/php-xdebug/doinst.sh
@@ -0,0 +1,18 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/php.d/xdebug.ini.new
+
+/usr/bin/pecl install --nodeps --soft --force --register-only --nobuild \
+ usr/libLIBDIRSUFFIX/php/.pkgxml/xdebug.xml > /dev/null
+