diff options
author | Juraj Lutter <otis@FreeBSD.org> | 2023-08-29 11:01:18 +0000 |
---|---|---|
committer | Juraj Lutter <otis@FreeBSD.org> | 2023-09-04 09:56:06 +0000 |
commit | 34212762f08d5fbd37e184176f420970daa967f2 (patch) | |
tree | 904381b96c45f444587825bc941f73ad34282669 | |
parent | bef3678c407f0bb2d443e74cd28ca4f6f4cf606b (diff) |
php.mk: Create php extension ini files as sample
Create php extension ini files with .sample extension
to prevent subsequent upgrades from clobbering the, possibly,
user-modified .ini files.
Reviewed by: ale, bofh, portmgr
Approved by: bofh
Differential Revision: https://reviews.freebsd.org/D41630
-rw-r--r-- | Mk/Uses/php.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index 330d58c8226c..fa474064b649 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -321,7 +321,7 @@ PHP_MOD_PRIO= 30 PHP_MOD_PRIO= 20 . endif . endif -PHP_EXT_INI_FILE= etc/php/ext-${PHP_MOD_PRIO}-${PHP_MODNAME}.ini +PHP_EXT_INI_FILE= etc/php/ext-${PHP_MOD_PRIO}-${PHP_MODNAME}.ini.sample do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} @@ -356,7 +356,7 @@ add-plist-phpext: >> ${TMPPLIST} @${ECHO_CMD} "@preunexec ${RM} %D/include/php/ext/php_config.h.orig" \ >> ${TMPPLIST} - @${ECHO_CMD} "${PHP_EXT_INI_FILE}" \ + @${ECHO_CMD} "@sample ${PHP_EXT_INI_FILE}" \ >> ${TMPPLIST} @${ECHO_CMD} "[" > ${PHP_EXT_PKGMESSAGE} @${ECHO_CMD} "{" >> ${PHP_EXT_PKGMESSAGE} |