FreeBSD Bugzilla – Attachment 190701 Details for
Bug 225959
www/nextcloud: Add OpCode cache menu, optional OpCache dependency w/config
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
CORRECTION: Add opcode menu
nextcloud_opcache.diff (text/plain), 4.96 KB, created by
fsbruva
on 2018-02-16 20:31:16 UTC
(
hide
)
Description:
CORRECTION: Add opcode menu
Filename:
MIME Type:
Creator:
fsbruva
Created:
2018-02-16 20:31:16 UTC
Size:
4.96 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 462030) >+++ Makefile (working copy) >@@ -28,8 +28,17 @@ > OPTIONS_DEFINE= EXIF LDAP SMB SSL > OPTIONS_MULTI= DB > OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE >-OPTIONS_DEFAULT= EXIF LDAP MYSQL SMB SSL >+OPTIONS_DEFAULT= EXIF LDAP MYSQL SMB SSL NOCACHE >+OPTIONS_RADIO= CACHE >+OPTIONS_RADIO_CACHE = NOCACHE OPCACHE OPCACHE_INI > >+NOCACHE_DESC= Do not use any OpCode cache >+OPCACHE_DESC= Zend OpCache support >+OPCACHE_INI_DESC= Install NextCloud OpCache config file (implies OPCACHE) >+OPCACHE_USE= PHP=opcache >+OPCACHE_INI_USE= PHP=opcache >+OPTIONS_SUB= yes >+ > EXIF_DESC= Image rotation support > > EXIF_USE= PHP=exif >@@ -48,9 +57,21 @@ > EXTRA_PATCHES= ${FILESDIR}/extra-patch-PostgreSQL-10 > .endif > >+.if ${PORT_OPTIONS:MOPCACHE_INI} >+PLIST_SUB+= OPCACHE_SAMPLE="@sample " >+.else >+PLIST_SUB+= OPCACHE_SAMPLE="@comment " >+.endif >+ > post-patch: > @${REINPLACE_CMD} -e 's|/var/www/|${WWWDIR}|' ${WRKSRC}/config/config.sample.php > >+post-stage-OPCACHE-on: >+ @${CAT} ${FILESDIR}/nextcloud_opcache.msg >> ${WRKDIR}/pkg-message >+ >+post-stage-OPCACHE_INI-on: >+ @${SED} 's|PHP_DIR|${PHPBASE}/etc/php|' ${FILESDIR}/nextcloud_opcache_sample.msg >> ${WRKDIR}/pkg-message >+ > do-install: > @${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR} > @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} >@@ -57,4 +78,8 @@ > @${RM} ${STAGEDIR}${WWWDIR}/updater/updater.phar > @${MKDIR} ${STAGEDIR}${WWWDIR}/data > >+do-install-OPCACHE_INI-on: >+ @${MKDIR} ${STAGEDIR}${PHPBASE}/etc/php >+ @${CP} ${FILESDIR}/www_nextcloud_opcache.ini.sample ${STAGEDIR}${PHPBASE}/etc/php/ >+ > .include <bsd.port.post.mk> >Index: files/nextcloud_opcache.msg >=================================================================== >--- files/nextcloud_opcache.msg (nonexistent) >+++ files/nextcloud_opcache.msg (working copy) >@@ -0,0 +1,18 @@ >+ >+*********************************************************************** >+* NEXTCLOUD OPCACHE CONFIG * >+*********************************************************************** >+ >+NextCloud recommends the following minimum settings for OpCache: >+ >+opcache.enable=1 >+opcache.enable_cli=1 >+opcache.interned_strings_buffer=8 >+opcache.max_accelerated_files=10000 >+opcache.memory_consumption=128 >+opcache.save_comments=1 >+opcache.revalidate_freq=1 >+ >+These can be added to your php.ini, or by reinstalling the port with >+the "OPCACHE_INI" option set. >+ > >Property changes on: files/nextcloud_opcache.msg >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/nextcloud_opcache_sample.msg >=================================================================== >--- files/nextcloud_opcache_sample.msg (nonexistent) >+++ files/nextcloud_opcache_sample.msg (working copy) >@@ -0,0 +1,11 @@ >+ >+*********************************************************************** >+* NEXTCLOUD OPCACHE CONFIG * >+*********************************************************************** >+ >+This port has installed the following PHP OpCache config file: >+ >+ * PHP_DIR/www_nextcloud_opcache.ini >+ >+Ensure the supplied configuration options do not conflict with your >+existing php.ini options. > >Property changes on: files/nextcloud_opcache_sample.msg >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/www_nextcloud_opcache.ini.sample >=================================================================== >--- files/www_nextcloud_opcache.ini.sample (nonexistent) >+++ files/www_nextcloud_opcache.ini.sample (working copy) >@@ -0,0 +1,10 @@ >+@comment This file gets moved to the php extensions directory >+; Minimum OPCache settings, per Nextcloud Admin Manual: >+; https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html?highlight=opcache >+opcache.enable=1 >+opcache.enable_cli=1 >+opcache.interned_strings_buffer=8 >+opcache.max_accelerated_files=10000 >+opcache.memory_consumption=128 >+opcache.save_comments=1 >+opcache.revalidate_freq=1 > >Property changes on: files/www_nextcloud_opcache.ini.sample >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 462030) >+++ pkg-plist (working copy) >@@ -12985,3 +12985,4 @@ > @dir(%%NEXTCLOUD_USERNAME%%,%%NEXTCLOUD_GROUPNAME%%,) %%WWWDIR%%/apps > @dir(%%NEXTCLOUD_USERNAME%%,%%NEXTCLOUD_GROUPNAME%%,) %%WWWDIR%%/config > @dir(%%NEXTCLOUD_USERNAME%%,%%NEXTCLOUD_GROUPNAME%%,) %%WWWDIR%%/data >+%%OPCACHE_SAMPLE%%etc/php/www_nextcloud_opcache.ini.sample
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225959
:
190699
|
190700
|
190701
|
191680
|
192006