aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2007-02-16 08:53:33 +0000
committerAlex Dupre <ale@FreeBSD.org>2007-02-16 08:53:33 +0000
commit67c1c8ae7f9094ea0f9e79b49db8b61eb49412b8 (patch)
tree9aa5a5d58687f12dfef4b9322b71bdf5bbd8be41 /Mk
parentd0d3d51f0e78fc72585a2785858762e59b574452 (diff)
downloadports-67c1c8ae7f9094ea0f9e79b49db8b61eb49412b8.tar.gz
ports-67c1c8ae7f9094ea0f9e79b49db8b61eb49412b8.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.php.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.php.mk b/Mk/bsd.php.mk
index 90b70257781f..0d6d28ffbcbd 100644
--- a/Mk/bsd.php.mk
+++ b/Mk/bsd.php.mk
@@ -177,6 +177,8 @@ do-install:
@${MKDIR} ${PREFIX}/etc/php
@${ECHO_CMD} extension=${PHP_MODNAME}.so \
>> ${PREFIX}/etc/php/extensions.ini
+ @${SORT} -ruo ${PREFIX}/etc/php/extensions.ini \
+ ${PREFIX}/etc/php/extensions.ini
add-plist-info: add-plist-phpext
add-plist-phpext:
@@ -200,6 +202,8 @@ add-plist-phpext:
>> ${TMPPLIST}
@${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \
>> ${TMPPLIST}
+ @${ECHO_CMD} "@exec sort -ruo %D/etc/php/extensions.ini %D/etc/php/extensions.ini" \
+ >> ${TMPPLIST}
@${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \
>> ${TMPPLIST}
@${ECHO_CMD} "@unexec grep -v extension=${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \