diff options
-rw-r--r-- | Mk/bsd.php.mk | 4 |
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" \ |