mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
www/onlyoffice-documentserver: Update to 7.4.0
Changes: https://github.com/ONLYOFFICE/DocumentServer/blob/v7.4.0/CHANGELOG.md
This commit is contained in:
parent
22543f0cf5
commit
bebb90bffa
@ -1,7 +1,6 @@
|
||||
PORTNAME= onlyoffice-documentserver
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 7.3.3.49
|
||||
PORTREVISION= 4
|
||||
DISTVERSION= 7.4.0.163
|
||||
CATEGORIES= www
|
||||
MASTER_SITES+= LOCAL/mikael/v8/:source1 \
|
||||
LOCAL/mikael/onlyoffice/:source2 \
|
||||
@ -27,7 +26,8 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \
|
||||
gn:devel/gn \
|
||||
java:java/openjdk11 \
|
||||
ninja:devel/ninja \
|
||||
npm:www/npm-node16
|
||||
npm:www/npm-node16 \
|
||||
${LOCALBASE}/lib/libcrypto.a:security/openssl30
|
||||
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \
|
||||
libcurl.so:ftp/curl \
|
||||
libharfbuzz.so:print/harfbuzz \
|
||||
@ -59,7 +59,7 @@ GH_TUPLE= ONLYOFFICE:core:v${DISTVERSION}:core/core \
|
||||
ONLYOFFICE:DocumentBuilder:626d1e44db3d06ceb8298215a67ef0475912d89a:document_builder/DocumentBuilder \
|
||||
ONLYOFFICE:onlyoffice.github.io:b26d001664d771df4f663d2d3ba7dd4a188b6cab:sdkjs_plugins_v1/onlyoffice.github.io \
|
||||
ONLYOFFICE:document-server-package:v${DISTVERSION}:dsp/document-server-package \
|
||||
hackers-painters:katana-parser:499118d3:hackers_painters_katana/core/Common/3dParty/html/katana-parser \
|
||||
jasenhuang:katana-parser:be6df45:jasenhuang_katana/core/Common/3dParty/html/katana-parser \
|
||||
google:gumbo-parser:aa91b27:google_gumbo/core/Common/3dParty/html/gumbo-parser
|
||||
|
||||
OPTIONS_SINGLE= DB
|
||||
@ -107,7 +107,7 @@ DOS2UNIX_FILES= document-server-package/common/documentserver/nginx/includes/htt
|
||||
CONFLICTS_BUILD=devel/googletest
|
||||
|
||||
post-extract:
|
||||
@${MV} ${WRKDIR}/v8 ${WRKSRC}/core/Common/3dParty/v8
|
||||
@${MV} ${WRKDIR}/v8 ${WRKSRC}/core/Common/3dParty/v8_89
|
||||
|
||||
@${MKDIR} ${WRKDIR}/.pkg-cache/node
|
||||
@${CP} ${DISTDIR}/node-v${NODE_VERSION_PKGFETCH}.tar.gz ${WRKDIR}/.pkg-cache/node
|
||||
@ -127,13 +127,23 @@ post-extract:
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
||||
${WRKSRC}/build_tools/tools/freebsd/automate.py \
|
||||
${WRKSRC}/core/Common/3dParty/boost/boost.pri \
|
||||
${WRKSRC}/core/Common/3dParty/icu/icu.pri \
|
||||
${WRKSRC}/core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni \
|
||||
${WRKSRC}/core/Common/3dParty/v8/v8/buildtools/third_party/libc++/BUILD.gn \
|
||||
${WRKSRC}/core/Common/3dParty/openssl/openssl.pri \
|
||||
${WRKSRC}/core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni \
|
||||
${WRKSRC}/core/Common/3dParty/v8_89/v8/buildtools/third_party/libc++/BUILD.gn \
|
||||
${WRKSRC}/core/DesktopEditor/fontengine/ApplicationFonts.cpp \
|
||||
${WRKSRC}/build_tools/tools/freebsd/automate.py
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-pluginsmanager.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-converter.conf \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-docservice.conf \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-metrics.conf
|
||||
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|' -e 's|%%CXX%%|${CXX}|' \
|
||||
${WRKSRC}/core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni \
|
||||
${WRKSRC}/core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni \
|
||||
${WRKSRC}/core/Common/base.pri
|
||||
@${REINPLACE_CMD} 's|%%WRKDIR%%|${WRKDIR}|' \
|
||||
${WRKSRC}/document-server-package/Makefile
|
||||
@ -141,40 +151,20 @@ post-patch:
|
||||
${WRKSRC}/build_tools/scripts/build_js.py \
|
||||
${WRKSRC}/build_tools/scripts/build_server.py \
|
||||
${WRKSRC}/document-server-package/Makefile
|
||||
@${REINPLACE_CMD} -e 's|linux|freebsd|' -e 's|/etc|${LOCALBASE}/etc|' \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-docservice.conf \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-converter.conf \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4
|
||||
@${REINPLACE_CMD} 's|/var/www|${LOCALBASE}/www|' \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-converter.conf \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-docservice.conf \
|
||||
${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-metrics.conf \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4
|
||||
@${REINPLACE_CMD} -e 's|/var/lib|/var/db|' -e 's|/var/www|${LOCALBASE}/www|' \
|
||||
-e 's|/usr/share|${LOCALBASE}/share|' -e 's|/etc|${LOCALBASE}/etc|' \
|
||||
${WRKSRC}/server/Common/config/production-freebsd.json \
|
||||
${WRKSRC}/server/Common/config/development-freebsd.json
|
||||
@${REINPLACE_CMD} -e 's|bash|sh|' -e 's|sed|gsed|' \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4
|
||||
@${REINPLACE_CMD} 's|%%DISTDIR%%|${DISTDIR}|' \
|
||||
${WRKSRC}/web-apps/build/patches/optipng-bin+5.1.0.patch
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' -e 's|%%ETCDIR%%|${ETCDIR}|' \
|
||||
${WRKSRC}/document-server-package/Makefile
|
||||
@${REINPLACE_CMD} 's#ds:ds#${DS_USERNAME}:${DS_GROUPNAME}#' \
|
||||
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4
|
||||
@${RM} ${WRKSRC}/web-apps/build/patches/optipng-bin+5.1.0.patch.orig
|
||||
|
||||
@${FIND} ${WRKSRC}/server -type f -name npm-shrinkwrap.json -delete
|
||||
|
||||
@${ECHO} "# Generated from 'DEPS'" > ${WRKSRC}/core/Common/3dParty/v8/v8/build/config/gclient_args.gni
|
||||
@${ECHO} "checkout_google_benchmark = false" >> ${WRKSRC}/core/Common/3dParty/v8/v8/build/config/gclient_args.gni
|
||||
@${ECHO} "# Generated from 'DEPS'" > ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/config/gclient_args.gni
|
||||
@${ECHO} "checkout_google_benchmark = false" >> ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/config/gclient_args.gni
|
||||
|
||||
do-build:
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/npm ${BINARY_LINKDIR}/npm
|
||||
@ -204,6 +194,7 @@ do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/tools/all* ${STAGEDIR}${WWWDIR}/documentserver/server/tools
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/x2t ${STAGEDIR}${WWWDIR}/documentserver/server/FileConverter/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/docbuilder ${STAGEDIR}${WWWDIR}/documentserver/server/FileConverter/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/tools/pluginsmanager ${STAGEDIR}${WWWDIR}/documentserver/server/tools
|
||||
${INSTALL_DATA} ${WRKSRC}/document-server-package/common/documentserver/home/npm/json ${STAGEDIR}${WWWDIR}/documentserver/npm
|
||||
${INSTALL_LIB} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/*.so ${STAGEDIR}${PREFIX}/lib
|
||||
${RM} ${STAGEDIR}${PREFIX}/bin/documentserver-letsencrypt.sh
|
||||
@ -236,7 +227,7 @@ do-install:
|
||||
|
||||
create-caches-tarball:
|
||||
# do some cleanup first
|
||||
${RM} -r ${WRKDIR}/.npm/_logs ${WRKDIR}/.npm/_update-notifier-last-checked ${WRKDIR}/.cache/yarn/v6/.tmp
|
||||
${RM} -r ${WRKDIR}/.npm/_logs ${WRKDIR}/.npm/_update-notifier-last-checked ${WRKDIR}/.cache/yarn/v6/.tmp ${WRKDIR}/.cache/node-gyp
|
||||
${FIND} ${WRKDIR}/.cache -type f -perm 755 -exec file {} \; | ${EGREP} "ELF|PE32+|Mach-O" | ${AWK} -F ':' '{print $$1}' | ${XARGS} ${RM}
|
||||
${FIND} ${WRKDIR}/.pkg-cache -type f -perm 755 -exec file {} \; | ${EGREP} "ELF|PE32+|Mach-O" | ${AWK} -F ':' '{print $$1}' | ${XARGS} ${RM}
|
||||
|
||||
|
@ -1,39 +1,39 @@
|
||||
TIMESTAMP = 1689784075
|
||||
TIMESTAMP = 1689842471
|
||||
SHA256 (v8-8.9.255.25_all.tar.gz) = 54853ef93accc063a82a0dc29457b25c9b6d88315431d62e06ab1f84797c5f80
|
||||
SIZE (v8-8.9.255.25_all.tar.gz) = 72818814
|
||||
SHA256 (node-v16.13.0.tar.gz) = 9c00e5b6024cfcbc9105f9c58cf160762e78659a345d100c5bd80a7fb38c684f
|
||||
SIZE (node-v16.13.0.tar.gz) = 63735070
|
||||
SHA256 (optipng-0.7.7.tar.gz) = 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
|
||||
SIZE (optipng-0.7.7.tar.gz) = 2329555
|
||||
SHA256 (onlyoffice-documentserver-7.3.3.49-npm-cache.tar.gz) = e1611fe023c2ac5eacae097c4f9605710f8d5de34b600f6301b282872db3fe1d
|
||||
SIZE (onlyoffice-documentserver-7.3.3.49-npm-cache.tar.gz) = 234604012
|
||||
SHA256 (ONLYOFFICE-DocumentServer-v7.3.3.49-v7.3.3_GH0.tar.gz) = 7eb5d59aea3211fd56d17379c29bf680939fab88e1eb25d0cd6aa32c64e86a4c
|
||||
SIZE (ONLYOFFICE-DocumentServer-v7.3.3.49-v7.3.3_GH0.tar.gz) = 63957
|
||||
SHA256 (ONLYOFFICE-core-v7.3.3.49_GH0.tar.gz) = 7cb74cd2027d051ddf66129df9efc78e3d646af189c18d50e33018d50a356904
|
||||
SIZE (ONLYOFFICE-core-v7.3.3.49_GH0.tar.gz) = 88430975
|
||||
SHA256 (ONLYOFFICE-core-fonts-v7.3.3.49_GH0.tar.gz) = 3f726b0e5344eabf501e22d566554bbfbc343625360699bbe23536a4d02b73fb
|
||||
SIZE (ONLYOFFICE-core-fonts-v7.3.3.49_GH0.tar.gz) = 95253256
|
||||
SHA256 (ONLYOFFICE-dictionaries-v7.3.3.49_GH0.tar.gz) = 8434d8aad8c7acd571e2d8a751dcbb4e13a750ccf37188455d747f85d2ba4df4
|
||||
SIZE (ONLYOFFICE-dictionaries-v7.3.3.49_GH0.tar.gz) = 41115358
|
||||
SHA256 (ONLYOFFICE-document-server-integration-v7.3.3.49_GH0.tar.gz) = 9ed80d4f3fba3d98a7cb0e528d856a9ac46ff56233d96f46ce2cd62aa4a17306
|
||||
SIZE (ONLYOFFICE-document-server-integration-v7.3.3.49_GH0.tar.gz) = 5344109
|
||||
SHA256 (ONLYOFFICE-document-templates-v7.3.3.49_GH0.tar.gz) = e04fdff908953049781c67c74c7d643bd3f2f42f3bd1af4cdcfff45bd4145e8e
|
||||
SIZE (ONLYOFFICE-document-templates-v7.3.3.49_GH0.tar.gz) = 2152326
|
||||
SHA256 (ONLYOFFICE-sdkjs-v7.3.3.49_GH0.tar.gz) = 4e0b68f43cd3338b25e06bbacf69399fee9d69a1d9e6e073c6d971d35bc96e19
|
||||
SIZE (ONLYOFFICE-sdkjs-v7.3.3.49_GH0.tar.gz) = 25674391
|
||||
SHA256 (ONLYOFFICE-server-v7.3.3.49_GH0.tar.gz) = 6d54baed81b5723c53e55598a5f0a716c18a2bf78047605a725b51a8d0d312ba
|
||||
SIZE (ONLYOFFICE-server-v7.3.3.49_GH0.tar.gz) = 258896
|
||||
SHA256 (ONLYOFFICE-web-apps-v7.3.3.49_GH0.tar.gz) = 90ae7a0e27487d503d681bfdfe84d395baa1139385ca40179956baece9eb2abb
|
||||
SIZE (ONLYOFFICE-web-apps-v7.3.3.49_GH0.tar.gz) = 281994064
|
||||
SHA256 (ONLYOFFICE-build_tools-v7.3.3.49_GH0.tar.gz) = 58607e40cc757d29bfb60bdb1ee687965e812f6219a265ab26ff585f0779b8e8
|
||||
SIZE (ONLYOFFICE-build_tools-v7.3.3.49_GH0.tar.gz) = 4588736
|
||||
SHA256 (onlyoffice-documentserver-7.4.0.163-npm-cache.tar.gz) = 13c6a5c314a7619473260b2d7fb1161d7d2178e0da3ab6973981b7bfddae82b3
|
||||
SIZE (onlyoffice-documentserver-7.4.0.163-npm-cache.tar.gz) = 275714693
|
||||
SHA256 (ONLYOFFICE-DocumentServer-v7.4.0.163-v7.4.0_GH0.tar.gz) = ceaa39fcb9373a22f652c02c760f32961d02c49b14af3acb2412b422972fe0bb
|
||||
SIZE (ONLYOFFICE-DocumentServer-v7.4.0.163-v7.4.0_GH0.tar.gz) = 65484
|
||||
SHA256 (ONLYOFFICE-core-v7.4.0.163_GH0.tar.gz) = d6fbd0acd244cfa3e48afe98942720aed0463afb34d12c257bf233f91e919891
|
||||
SIZE (ONLYOFFICE-core-v7.4.0.163_GH0.tar.gz) = 88380222
|
||||
SHA256 (ONLYOFFICE-core-fonts-v7.4.0.163_GH0.tar.gz) = dc829e15f7fc7f08be31de53d2eb9842c840a2d5a95afd9d99cd0c482c60d277
|
||||
SIZE (ONLYOFFICE-core-fonts-v7.4.0.163_GH0.tar.gz) = 95366415
|
||||
SHA256 (ONLYOFFICE-dictionaries-v7.4.0.163_GH0.tar.gz) = a6247152990493aa5cf43d22c11d754ecdc2d9740b60b26cbdb955fa1938dbaa
|
||||
SIZE (ONLYOFFICE-dictionaries-v7.4.0.163_GH0.tar.gz) = 41115736
|
||||
SHA256 (ONLYOFFICE-document-server-integration-v7.4.0.163_GH0.tar.gz) = d57cda65a2c3aa8468c665cd789cc59ccbd833c8c13de2247e811a665adb0ec5
|
||||
SIZE (ONLYOFFICE-document-server-integration-v7.4.0.163_GH0.tar.gz) = 5118132
|
||||
SHA256 (ONLYOFFICE-document-templates-v7.4.0.163_GH0.tar.gz) = 41dcff925754f5ac57ac06fa116e3318ac2d6bcb35a38ca866182477caa858eb
|
||||
SIZE (ONLYOFFICE-document-templates-v7.4.0.163_GH0.tar.gz) = 2538820
|
||||
SHA256 (ONLYOFFICE-sdkjs-v7.4.0.163_GH0.tar.gz) = 411c2b89d46fa3e0af08b4e081ba79366ddc33f5971df8d5963cd36f8046e364
|
||||
SIZE (ONLYOFFICE-sdkjs-v7.4.0.163_GH0.tar.gz) = 25997019
|
||||
SHA256 (ONLYOFFICE-server-v7.4.0.163_GH0.tar.gz) = cd0df0e1745e0d3944b508d1019669a72f748e7da3b0ff3560d58bd855de9cd4
|
||||
SIZE (ONLYOFFICE-server-v7.4.0.163_GH0.tar.gz) = 267471
|
||||
SHA256 (ONLYOFFICE-web-apps-v7.4.0.163_GH0.tar.gz) = 74edc2cbeda649251df8f1cf0e34ce48372a1f9a35541abfb70617552a6b18e6
|
||||
SIZE (ONLYOFFICE-web-apps-v7.4.0.163_GH0.tar.gz) = 348597216
|
||||
SHA256 (ONLYOFFICE-build_tools-v7.4.0.163_GH0.tar.gz) = 048cc71c124dd27a399feb960e540eed555f3935d5272aeb67bdedc030bbdace
|
||||
SIZE (ONLYOFFICE-build_tools-v7.4.0.163_GH0.tar.gz) = 6656908
|
||||
SHA256 (ONLYOFFICE-DocumentBuilder-626d1e44db3d06ceb8298215a67ef0475912d89a_GH0.tar.gz) = 275c3a8c993528fa56c69aedb11dd74a6fba9c3bd372874004584ae9cbb190b5
|
||||
SIZE (ONLYOFFICE-DocumentBuilder-626d1e44db3d06ceb8298215a67ef0475912d89a_GH0.tar.gz) = 31659
|
||||
SHA256 (ONLYOFFICE-onlyoffice.github.io-b26d001664d771df4f663d2d3ba7dd4a188b6cab_GH0.tar.gz) = 347b8f1d3c21b1f61a3f1fcae86f402b27ce4f8b826e18158834251046d83cf5
|
||||
SIZE (ONLYOFFICE-onlyoffice.github.io-b26d001664d771df4f663d2d3ba7dd4a188b6cab_GH0.tar.gz) = 17009005
|
||||
SHA256 (ONLYOFFICE-document-server-package-v7.3.3.49_GH0.tar.gz) = 1d441f347851055356ded52ad038ee3ebe65d03806f9155c6221a3a0c4491a5b
|
||||
SIZE (ONLYOFFICE-document-server-package-v7.3.3.49_GH0.tar.gz) = 154588
|
||||
SHA256 (hackers-painters-katana-parser-499118d3_GH0.tar.gz) = ed83020cbe07877c7323d475491803797fac12ce4086966011c81023b9852c4b
|
||||
SIZE (hackers-painters-katana-parser-499118d3_GH0.tar.gz) = 97209
|
||||
SHA256 (ONLYOFFICE-document-server-package-v7.4.0.163_GH0.tar.gz) = d9fb262e19ecbbd9a13bbc9f1e2d40f7fcef1ee1548302f4f09c2410a7abae01
|
||||
SIZE (ONLYOFFICE-document-server-package-v7.4.0.163_GH0.tar.gz) = 155522
|
||||
SHA256 (jasenhuang-katana-parser-be6df45_GH0.tar.gz) = 363ede45ba6d125fdb7323c43d34acd3d0ae9028ac18aec632eb6a623160f09a
|
||||
SIZE (jasenhuang-katana-parser-be6df45_GH0.tar.gz) = 97712
|
||||
SHA256 (google-gumbo-parser-aa91b27_GH0.tar.gz) = 1360f85c02fb2573a10f00abcddebc8f1ff277a16f66553439193af93afae335
|
||||
SIZE (google-gumbo-parser-aa91b27_GH0.tar.gz) = 2119417
|
||||
|
@ -1,8 +1,8 @@
|
||||
[program:converter]
|
||||
command=/var/www/onlyoffice/documentserver/server/FileConverter/converter
|
||||
directory=/var/www/onlyoffice/documentserver/server/FileConverter
|
||||
command=%%LOCALBASE%%/www/onlyoffice/documentserver/server/FileConverter/converter
|
||||
directory=%%LOCALBASE%%/www/onlyoffice/documentserver/server/FileConverter
|
||||
user=onlyoffice
|
||||
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1,APPLICATION_NAME=M4_COMPANY_NAME
|
||||
environment=NODE_ENV=production-freebsd,NODE_CONFIG_DIR=%%LOCALBASE%%/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1,APPLICATION_NAME=M4_COMPANY_NAME
|
||||
stdout_logfile=/var/log/onlyoffice/documentserver/converter/out.log
|
||||
stdout_logfile_backups=0
|
||||
stdout_logfile_maxbytes=0
|
||||
|
@ -1,8 +1,8 @@
|
||||
[program:docservice]
|
||||
command=/var/www/onlyoffice/documentserver/server/DocService/docservice
|
||||
directory=/var/www/onlyoffice/documentserver/server/DocService
|
||||
command=%%LOCALBASE%%/www/onlyoffice/documentserver/server/DocService/docservice
|
||||
directory=%%LOCALBASE%%/www/onlyoffice/documentserver/server/DocService
|
||||
user=onlyoffice
|
||||
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1
|
||||
environment=NODE_ENV=production-freebsd,NODE_CONFIG_DIR=%%LOCALBASE%%/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1
|
||||
stdout_logfile=/var/log/onlyoffice/documentserver/docservice/out.log
|
||||
stdout_logfile_backups=0
|
||||
stdout_logfile_maxbytes=0
|
||||
|
@ -1,6 +1,6 @@
|
||||
[program:metrics]
|
||||
command=/var/www/onlyoffice/documentserver/server/Metrics/metrics ./config/config.js
|
||||
directory=/var/www/onlyoffice/documentserver/server/Metrics
|
||||
command=%%LOCALBASE%%/www/onlyoffice/documentserver/server/Metrics/metrics ./config/config.js
|
||||
directory=%%LOCALBASE%%/www/onlyoffice/documentserver/server/Metrics
|
||||
user=onlyoffice
|
||||
environment=NODE_DISABLE_COLORS=1
|
||||
stdout_logfile=/var/log/onlyoffice/documentserver/metrics/out.log
|
||||
|
@ -4,7 +4,31 @@ https://github.com/vercel/pkg-fetch/blob/main/patches/node.v16.14.2.cpp.patch
|
||||
|
||||
--- server/node_modules/pkg-fetch/patches/node.v16.13.0.cpp.patch.orig 2021-12-30 20:04:18.203959000 +0100
|
||||
+++ server/node_modules/pkg-fetch/patches/node.v16.13.0.cpp.patch 2021-12-30 20:09:53.210319000 +0100
|
||||
@@ -521,3 +521,171 @@ index 0000000000..fb2d47f52b
|
||||
@@ -1,5 +1,5 @@
|
||||
---- node/common.gypi
|
||||
-+++ node/common.gypi
|
||||
+--- common.gypi.orig 2021-10-26 14:00:54.000000000 +0200
|
||||
++++ common.gypi 2023-07-18 12:52:05.744323000 +0200
|
||||
@@ -171,7 +171,7 @@
|
||||
'MSVC_runtimeType': 2 # MultiThreadedDLL (/MD)
|
||||
}],
|
||||
@@ -9,6 +9,15 @@ + 'lto': ' -flto=4 -ffat-lto-objects ', #
|
||||
}, {
|
||||
'lto': ' -flto ', # Clang
|
||||
}],
|
||||
+@@ -386,7 +386,7 @@
|
||||
+ }],
|
||||
+ [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
|
||||
+ 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
||||
+- 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
|
||||
++ 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14', '-Wno-error=enum-constexpr-conversion' ],
|
||||
+ 'defines': [ '__STDC_FORMAT_MACROS' ],
|
||||
+ 'ldflags': [ '-rdynamic' ],
|
||||
+ 'target_conditions': [
|
||||
--- node/deps/v8/include/v8.h
|
||||
+++ node/deps/v8/include/v8.h
|
||||
@@ -10092,6 +10092,10 @@ class V8_EXPORT V8 {
|
||||
@@ -521,6 +530,174 @@ + 'cflags_cc': [ '-frtti', '-fno-lto' ],
|
||||
'cflags_cc!': [ '-fno-rtti' ],
|
||||
}],
|
||||
[ 'OS == "mac" or OS == "ios"', {
|
||||
@ -176,3 +200,6 @@ https://github.com/vercel/pkg-fetch/blob/main/patches/node.v16.14.2.cpp.patch
|
||||
+
|
||||
+ namespace node {
|
||||
+ namespace cares_wrap {
|
||||
--- node/deps/openssl/config/archs/linux-elf/no-asm/openssl-cl.gypi.orig 2019-08-06 20:46:23 UTC
|
||||
+++ node/deps/openssl/config/archs/linux-elf/no-asm/openssl-cl.gypi
|
||||
@@ -12,7 +12,7 @@
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- build_tools/scripts/base.py.orig 2021-11-16 08:07:24 UTC
|
||||
+++ build_tools/scripts/base.py
|
||||
@@ -1144,9 +1144,15 @@ def support_old_versions_plugins(out_dir):
|
||||
@@ -1186,9 +1186,15 @@ def support_old_versions_plugins(out_dir):
|
||||
def support_old_versions_plugins(out_dir):
|
||||
if is_file(out_dir + "/pluginBase.js"):
|
||||
return
|
||||
@ -19,12 +19,12 @@
|
||||
content_plugin_base = ""
|
||||
with open(get_path(out_dir + "/plugins.js"), "r") as file:
|
||||
content_plugin_base += file.read()
|
||||
@@ -1282,7 +1288,7 @@ def clone_marketplace_plugin(out_dir, is_name_as_guid=
|
||||
def clone_marketplace_plugin(out_dir, is_name_as_guid=False):
|
||||
@@ -1331,7 +1337,7 @@ def clone_marketplace_plugin(out_dir, is_name_as_guid=
|
||||
def clone_marketplace_plugin(out_dir, is_name_as_guid=False, is_replace_paths=False, is_delete_git_dir=True, git_owner=""):
|
||||
old_cur = os.getcwd()
|
||||
os.chdir(out_dir)
|
||||
- git_update("onlyoffice.github.io", False, True)
|
||||
+# git_update("onlyoffice.github.io", False, True)
|
||||
- git_update("onlyoffice.github.io", False, True, git_owner)
|
||||
+# git_update("onlyoffice.github.io", False, True, git_owner)
|
||||
os.chdir(old_cur)
|
||||
|
||||
dst_dir_name = "marketplace"
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- build_tools/scripts/core_common/make_common.py.orig 2021-11-16 07:07:24 UTC
|
||||
+++ build_tools/scripts/core_common/make_common.py
|
||||
@@ -8,18 +8,18 @@ import glob
|
||||
@@ -8,19 +8,19 @@ import glob
|
||||
import base
|
||||
import glob
|
||||
|
||||
@ -21,11 +21,13 @@
|
||||
import glew
|
||||
import harfbuzz
|
||||
-import hyphen
|
||||
-import googletest
|
||||
+#import hyphen
|
||||
+#import googletest
|
||||
|
||||
def check_android_ndk_macos_arm(dir):
|
||||
if base.is_dir(dir + "/darwin-x86_64") and not base.is_dir(dir + "/darwin-arm64"):
|
||||
@@ -34,16 +34,16 @@ def make():
|
||||
@@ -35,17 +35,17 @@ def make():
|
||||
if base.is_dir(toolchain):
|
||||
check_android_ndk_macos_arm(toolchain + "/prebuilt")
|
||||
|
||||
@ -44,8 +46,10 @@
|
||||
+# hunspell.make(False)
|
||||
+# harfbuzz.make()
|
||||
glew.make()
|
||||
- hyphen.make()
|
||||
+# hyphen.make()
|
||||
- hyphen.make()
|
||||
- googletest.make()
|
||||
+# hyphen.make()
|
||||
+# googletest.make()
|
||||
|
||||
if config.check_option("module", "mobile"):
|
||||
if (config.check_option("platform", "android")):
|
||||
|
@ -0,0 +1,87 @@
|
||||
--- build_tools/scripts/core_common/modules/v8_89.py.orig 2023-06-14 09:52:10.504034000 +0200
|
||||
+++ build_tools/scripts/core_common/modules/v8_89.py 2023-06-14 11:18:31.776490000 +0200
|
||||
@@ -83,39 +83,41 @@ def make():
|
||||
base.create_dir(base_dir)
|
||||
|
||||
os.chdir(base_dir)
|
||||
- if not base.is_dir("depot_tools"):
|
||||
- base.cmd("git", ["clone", "https://chromium.googlesource.com/chromium/tools/depot_tools.git"])
|
||||
+# if not base.is_dir("depot_tools"):
|
||||
+# base.cmd("git", ["clone", "https://chromium.googlesource.com/chromium/tools/depot_tools.git"])
|
||||
+#
|
||||
+# os.environ["PATH"] = base_dir + "/depot_tools" + os.pathsep + os.environ["PATH"]
|
||||
+#
|
||||
+# if ("windows" == base.host_platform()):
|
||||
+# base.set_env("DEPOT_TOOLS_WIN_TOOLCHAIN", "0")
|
||||
+# base.set_env("GYP_MSVS_VERSION", config.option("vs-version"))
|
||||
+#
|
||||
+# if not base.is_dir("v8"):
|
||||
+# base.cmd("./depot_tools/fetch", ["v8"], True)
|
||||
+# base.copy_dir("./v8/third_party", "./v8/third_party_new")
|
||||
+# if ("windows" == base.host_platform()):
|
||||
+# os.chdir("v8")
|
||||
+# base.cmd("git", ["config", "--system", "core.longpaths", "true"])
|
||||
+# os.chdir("../")
|
||||
+# v8_branch_version = "remotes/branch-heads/8.9"
|
||||
+# if ("mac" == base.host_platform()):
|
||||
+# v8_branch_version = "remotes/branch-heads/9.9"
|
||||
+# base.cmd("./depot_tools/gclient", ["sync", "-r", v8_branch_version], True)
|
||||
+# base.cmd("gclient", ["sync", "--force"], True)
|
||||
+# base.copy_dir("./v8/third_party_new/ninja", "./v8/third_party/ninja")
|
||||
+#
|
||||
+# if ("windows" == base.host_platform()):
|
||||
+# base.replaceInFile("v8/build/config/win/BUILD.gn", ":static_crt", ":dynamic_crt")
|
||||
+#
|
||||
+# if not base.is_file("v8/src/base/platform/wrappers.cc"):
|
||||
+# base.writeFile("v8/src/base/platform/wrappers.cc", "#include \"src/base/platform/wrappers.h\"\n")
|
||||
+#
|
||||
+# if not base.is_file("v8/third_party/jinja2/tests.py.bak"):
|
||||
+# base.copy_file("v8/third_party/jinja2/tests.py", "v8/third_party/jinja2/tests.py.bak")
|
||||
+# base.replaceInFile("v8/third_party/jinja2/tests.py", "from collections import Mapping", "try:\n from collections.abc import Mapping\nexcept ImportError:\n from collections import Mapping")
|
||||
|
||||
- os.environ["PATH"] = base_dir + "/depot_tools" + os.pathsep + os.environ["PATH"]
|
||||
-
|
||||
- if ("windows" == base.host_platform()):
|
||||
- base.set_env("DEPOT_TOOLS_WIN_TOOLCHAIN", "0")
|
||||
- base.set_env("GYP_MSVS_VERSION", config.option("vs-version"))
|
||||
-
|
||||
- if not base.is_dir("v8"):
|
||||
- base.cmd("./depot_tools/fetch", ["v8"], True)
|
||||
- base.copy_dir("./v8/third_party", "./v8/third_party_new")
|
||||
- if ("windows" == base.host_platform()):
|
||||
- os.chdir("v8")
|
||||
- base.cmd("git", ["config", "--system", "core.longpaths", "true"])
|
||||
- os.chdir("../")
|
||||
- v8_branch_version = "remotes/branch-heads/8.9"
|
||||
- if ("mac" == base.host_platform()):
|
||||
- v8_branch_version = "remotes/branch-heads/9.9"
|
||||
- base.cmd("./depot_tools/gclient", ["sync", "-r", v8_branch_version], True)
|
||||
- base.cmd("gclient", ["sync", "--force"], True)
|
||||
- base.copy_dir("./v8/third_party_new/ninja", "./v8/third_party/ninja")
|
||||
-
|
||||
- if ("windows" == base.host_platform()):
|
||||
- base.replaceInFile("v8/build/config/win/BUILD.gn", ":static_crt", ":dynamic_crt")
|
||||
-
|
||||
- if not base.is_file("v8/src/base/platform/wrappers.cc"):
|
||||
- base.writeFile("v8/src/base/platform/wrappers.cc", "#include \"src/base/platform/wrappers.h\"\n")
|
||||
-
|
||||
- if not base.is_file("v8/third_party/jinja2/tests.py.bak"):
|
||||
- base.copy_file("v8/third_party/jinja2/tests.py", "v8/third_party/jinja2/tests.py.bak")
|
||||
- base.replaceInFile("v8/third_party/jinja2/tests.py", "from collections import Mapping", "try:\n from collections.abc import Mapping\nexcept ImportError:\n from collections import Mapping")
|
||||
-
|
||||
+# ~/onlyoffice-documentserver-ports/work/DocumentServer-7.4.0/core/Common/3dParty/v8_89_89
|
||||
+ print(base_dir)
|
||||
os.chdir("v8")
|
||||
|
||||
gn_args = ["v8_static_library=true",
|
||||
@@ -124,6 +126,10 @@ def make():
|
||||
"v8_use_external_startup_data=false",
|
||||
"use_custom_libcxx=false",
|
||||
"treat_warnings_as_errors=false"]
|
||||
+
|
||||
+ if config.check_option("platform", "freebsd_64"):
|
||||
+ base.cmd2("gn", ["gen", "out.gn/freebsd_64", "--args=\"v8_monolithic=true is_debug=false v8_static_library=true is_component_build=false is_clang=true use_sysroot=false treat_warnings_as_errors=false clang_use_chrome_plugins=false use_lld=true use_custom_libcxx=false v8_use_external_startup_data=false is_component_build=false\""])
|
||||
+ base.cmd("ninja", ["-C", "out.gn/freebsd_64"])
|
||||
|
||||
if config.check_option("platform", "linux_64"):
|
||||
base.cmd2("gn", ["gen", "out.gn/linux_64", make_args(gn_args, "linux")])
|
@ -0,0 +1,13 @@
|
||||
--- core/Common/3dParty/openssl/openssl.pri.orig 2023-06-14 14:31:26.960051000 +0200
|
||||
+++ core/Common/3dParty/openssl/openssl.pri 2023-06-14 14:31:00.960232000 +0200
|
||||
@@ -41,8 +41,8 @@ core_windows {
|
||||
LIBS += $$OPENSSL_LIBS_DIRECTORY/libssl.lib
|
||||
LIBS += $$OPENSSL_LIBS_DIRECTORY/libcrypto.lib
|
||||
} else {
|
||||
- LIBS += $$OPENSSL_LIBS_DIRECTORY/libssl.a
|
||||
- LIBS += $$OPENSSL_LIBS_DIRECTORY/libcrypto.a
|
||||
+ LIBS += %%LOCALBASE%%/lib/libssl.a
|
||||
+ LIBS += %%LOCALBASE%%/lib/libcrypto.a
|
||||
}
|
||||
|
||||
INCLUDEPATH += $$OPENSSL_LIBS_DIRECTORY/../include
|
@ -0,0 +1,11 @@
|
||||
Fix build with llvm16
|
||||
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/clang/BUILD.gn.orig 2023-07-17 10:46:22.246271000 +0200
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/clang/BUILD.gn 2023-07-17 10:46:59.136940000 +0200
|
||||
@@ -38,5 +38,6 @@ config("extra_warnings") {
|
||||
"-Wstring-conversion",
|
||||
|
||||
"-Wtautological-overlap-compare",
|
||||
+ "-Wno-error=enum-constexpr-conversion",
|
||||
]
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/BUILD.gn.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8/v8/BUILD.gn
|
||||
--- core/Common/3dParty/v8_89/v8/BUILD.gn.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/BUILD.gn
|
||||
@@ -5229,7 +5229,7 @@ v8_component("v8_libbase") {
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/BUILD.gn.orig 2022-04-04 20:12:26 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/BUILD.gn
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/BUILD.gn.orig 2022-04-04 20:12:26 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/BUILD.gn
|
||||
@@ -121,7 +121,7 @@ config("debug") {
|
||||
# builds, and we have to tell it to turn it off.
|
||||
defines += [ "_HAS_ITERATOR_DEBUGGING=0" ]
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/BUILDCONFIG.gn.orig 2021-11-15 18:52:18 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/BUILDCONFIG.gn
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/BUILDCONFIG.gn.orig 2021-11-15 18:52:18 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/BUILDCONFIG.gn
|
||||
@@ -130,8 +130,11 @@ declare_args() {
|
||||
# separate flags.
|
||||
is_official_build = false
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/compiler/BUILD.gn.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/compiler/BUILD.gn
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/compiler/BUILD.gn.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/compiler/BUILD.gn
|
||||
@@ -132,7 +132,7 @@ declare_args() {
|
||||
#
|
||||
# TODO(crbug.com/977230): Enabling this when 'use_xcode_clang' is true may
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/compiler/compiler.gni.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/compiler/compiler.gni
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/compiler/compiler.gni.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/compiler/compiler.gni
|
||||
@@ -225,7 +225,7 @@ declare_args() {
|
||||
|
||||
declare_args() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/features.gni.orig 2020-09-19 19:50:44 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/features.gni
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/features.gni.orig 2020-09-19 19:50:44 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/features.gni
|
||||
@@ -26,7 +26,7 @@ declare_args() {
|
||||
proprietary_codecs = is_chrome_branded || is_chromecast
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/freetype/freetype.gni.orig 2019-03-18 08:59:45 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/freetype/freetype.gni
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/freetype/freetype.gni.orig 2019-03-18 08:59:45 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/freetype/freetype.gni
|
||||
@@ -10,5 +10,5 @@ declare_args() {
|
||||
# than version 2.7.1 and have color bitmap support compiled in. WARNING:
|
||||
# System FreeType configurations other than as described WILL INTRODUCE TEXT
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/linux/BUILD.gn.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/linux/BUILD.gn
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/linux/BUILD.gn.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/linux/BUILD.gn
|
||||
@@ -42,7 +42,7 @@ config("runtime_library") {
|
||||
|
||||
if ((!(is_chromeos_ash || is_chromeos_lacros) ||
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/linux/pkg-config.py.orig 2019-07-24 18:58:02 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/linux/pkg-config.py
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/linux/pkg-config.py.orig 2019-07-24 18:58:02 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/linux/pkg-config.py
|
||||
@@ -59,8 +59,12 @@ def SetConfigPath(options):
|
||||
print("You must specify an architecture via -a if using a sysroot.")
|
||||
sys.exit(1)
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/config/sysroot.gni.orig 2020-05-13 18:39:36 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/config/sysroot.gni
|
||||
--- core/Common/3dParty/v8_89/v8/build/config/sysroot.gni.orig 2020-05-13 18:39:36 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/config/sysroot.gni
|
||||
@@ -21,9 +21,9 @@ declare_args() {
|
||||
|
||||
# Controls default is_linux sysroot. If set to true, and sysroot
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/detect_host_arch.py.orig 2019-07-24 18:58:02 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/detect_host_arch.py
|
||||
--- core/Common/3dParty/v8_89/v8/build/detect_host_arch.py.orig 2019-07-24 18:58:02 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/detect_host_arch.py
|
||||
@@ -21,6 +21,8 @@ def HostArch():
|
||||
host_arch = 'ia32'
|
||||
elif host_arch in ['x86_64', 'amd64']:
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/gn_run_binary.py.orig 2019-07-24 18:58:02 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/gn_run_binary.py
|
||||
--- core/Common/3dParty/v8_89/v8/build/gn_run_binary.py.orig 2019-07-24 18:58:02 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/gn_run_binary.py
|
||||
@@ -24,7 +24,7 @@ if not os.path.isabs(path):
|
||||
# The rest of the arguments are passed directly to the executable.
|
||||
args = [path] + sys.argv[2:]
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/linux/chrome.map.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/linux/chrome.map
|
||||
--- core/Common/3dParty/v8_89/v8/build/linux/chrome.map.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/linux/chrome.map
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
+local:
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/linux/libpci/BUILD.gn.orig 2019-03-11 22:00:52 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/linux/libpci/BUILD.gn
|
||||
--- core/Common/3dParty/v8_89/v8/build/linux/libpci/BUILD.gn.orig 2019-03-11 22:00:52 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/linux/libpci/BUILD.gn
|
||||
@@ -3,20 +3,36 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/linux/unbundle/libusb.gn.orig 2019-03-17 01:47:13 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/linux/unbundle/libusb.gn
|
||||
--- core/Common/3dParty/v8_89/v8/build/linux/unbundle/libusb.gn.orig 2019-03-17 01:47:13 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/linux/unbundle/libusb.gn
|
||||
@@ -0,0 +1,24 @@
|
||||
+# Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
+# Use of this source code is governed by a BSD-style license that can be
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/linux/unbundle/replace_gn_files.py.orig 2021-11-15 18:52:18 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/linux/unbundle/replace_gn_files.py
|
||||
--- core/Common/3dParty/v8_89/v8/build/linux/unbundle/replace_gn_files.py.orig 2021-11-15 18:52:18 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/linux/unbundle/replace_gn_files.py
|
||||
@@ -25,6 +25,7 @@ REPLACEMENTS = {
|
||||
'libevent': 'base/third_party/libevent/BUILD.gn',
|
||||
'libjpeg': 'third_party/libjpeg.gni',
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni
|
||||
--- core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni
|
||||
@@ -51,6 +51,11 @@ if (enable_resource_allowlist_generation) {
|
||||
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/build/toolchain/get_concurrent_links.py.orig 2021-05-01 21:15:31 UTC
|
||||
+++ core/Common/3dParty/v8/v8/build/toolchain/get_concurrent_links.py
|
||||
--- core/Common/3dParty/v8_89/v8/build/toolchain/get_concurrent_links.py.orig 2021-05-01 21:15:31 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/build/toolchain/get_concurrent_links.py
|
||||
@@ -53,6 +53,14 @@ def _GetTotalMemoryInBytes():
|
||||
return int(subprocess.check_output(['sysctl', '-n', 'hw.memsize']))
|
||||
except Exception:
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/buildtools/third_party/libc++/BUILD.gn.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8/v8/buildtools/third_party/libc++/BUILD.gn
|
||||
--- core/Common/3dParty/v8_89/v8/buildtools/third_party/libc++/BUILD.gn.orig 2022-04-04 20:12:27 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/buildtools/third_party/libc++/BUILD.gn
|
||||
@@ -14,7 +14,7 @@ config("config") {
|
||||
# its implementation.
|
||||
cflags += [ "-Wno-macro-redefined" ]
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/include/v8config.h.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8/v8/include/v8config.h
|
||||
--- core/Common/3dParty/v8_89/v8/include/v8config.h.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/include/v8config.h
|
||||
@@ -344,7 +344,18 @@ path. Add it with -I<path> to the command line
|
||||
# define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
|
||||
(V8_HAS_CPP_ATTRIBUTE(no_unique_address))
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/src/api/api.cc.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8/v8/src/api/api.cc
|
||||
--- core/Common/3dParty/v8_89/v8/src/api/api.cc.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/src/api/api.cc
|
||||
@@ -5894,7 +5894,7 @@ bool v8::V8::Initialize(const int build_config) {
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/src/base/cpu.cc.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8/v8/src/base/cpu.cc
|
||||
--- core/Common/3dParty/v8_89/v8/src/base/cpu.cc.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/src/base/cpu.cc
|
||||
@@ -581,6 +581,7 @@ CPU::CPU()
|
||||
|
||||
#if V8_OS_LINUX
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/src/base/platform/platform-freebsd.cc.orig 2021-04-22 15:00:28 UTC
|
||||
+++ core/Common/3dParty/v8/v8/src/base/platform/platform-freebsd.cc
|
||||
--- core/Common/3dParty/v8_89/v8/src/base/platform/platform-freebsd.cc.orig 2021-04-22 15:00:28 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/src/base/platform/platform-freebsd.cc
|
||||
@@ -82,8 +82,8 @@ std::vector<OS::SharedLibraryAddress> OS::GetSharedLib
|
||||
lib_name = std::string(path);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/src/base/platform/platform-posix.cc.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8/v8/src/base/platform/platform-posix.cc
|
||||
--- core/Common/3dParty/v8_89/v8/src/base/platform/platform-posix.cc.orig 2022-03-17 10:34:15 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/src/base/platform/platform-posix.cc
|
||||
@@ -464,7 +464,7 @@ bool OS::HasLazyCommits() {
|
||||
|
||||
// static
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/src/d8/d8-posix.cc.orig 2020-06-13 18:02:18 UTC
|
||||
+++ core/Common/3dParty/v8/v8/src/d8/d8-posix.cc
|
||||
--- core/Common/3dParty/v8_89/v8/src/d8/d8-posix.cc.orig 2020-06-13 18:02:18 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/src/d8/d8-posix.cc
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/testing/gmock/BUILD.gn.orig 2022-05-13 18:53:22.198863000 +0200
|
||||
+++ core/Common/3dParty/v8/v8/testing/gmock/BUILD.gn 2022-05-13 18:53:05.169357000 +0200
|
||||
--- core/Common/3dParty/v8_89/v8/testing/gmock/BUILD.gn.orig 2022-05-13 18:53:22.198863000 +0200
|
||||
+++ core/Common/3dParty/v8_89/v8/testing/gmock/BUILD.gn 2022-05-13 18:53:05.169357000 +0200
|
||||
@@ -15,12 +15,13 @@ source_set("gmock") {
|
||||
"include/gmock/gmock-matchers.h",
|
||||
"include/gmock/gmock.h",
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/third_party/zlib/BUILD.gn.orig 2020-11-16 13:31:04 UTC
|
||||
+++ core/Common/3dParty/v8/v8/third_party/zlib/BUILD.gn
|
||||
--- core/Common/3dParty/v8_89/v8/third_party/zlib/BUILD.gn.orig 2020-11-16 13:31:04 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/third_party/zlib/BUILD.gn
|
||||
@@ -108,6 +108,8 @@ if (use_arm_neon_optimizations) {
|
||||
defines = [ "CRC32_ARMV8_CRC32" ]
|
||||
if (is_android) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- core/Common/3dParty/v8/v8/third_party/zlib/cpu_features.c.orig 2020-11-16 13:31:04 UTC
|
||||
+++ core/Common/3dParty/v8/v8/third_party/zlib/cpu_features.c
|
||||
--- core/Common/3dParty/v8_89/v8/third_party/zlib/cpu_features.c.orig 2020-11-16 13:31:04 UTC
|
||||
+++ core/Common/3dParty/v8_89/v8/third_party/zlib/cpu_features.c
|
||||
@@ -31,11 +31,20 @@ int ZLIB_INTERNAL x86_cpu_enable_simd = 0;
|
||||
|
||||
#ifndef CPU_NO_SIMD
|
||||
|
@ -1,13 +1,13 @@
|
||||
--- core/DesktopEditor/doctrenderer/doctrenderer.pro.orig 2021-09-30 12:13:32 UTC
|
||||
+++ core/DesktopEditor/doctrenderer/doctrenderer.pro
|
||||
@@ -65,6 +65,10 @@ SOURCES += \
|
||||
embed/NativeControlEmbed.cpp \
|
||||
embed/NativeBuilderEmbed.cpp
|
||||
+++ core/DesktopEditor/doctrenderer/doctrenderer.pro 2021-09-30 12:13:32 UTC
|
||||
@@ -18,6 +18,10 @@ core_android:DEFINES += DISABLE_MEMORY_LIMITATION
|
||||
#CONFIG += build_xp
|
||||
core_android:DEFINES += DISABLE_MEMORY_LIMITATION
|
||||
|
||||
+core_freebsd {
|
||||
+ LIBS += -lexecinfo
|
||||
+}
|
||||
+
|
||||
core_mac {
|
||||
!use_v8:CONFIG += use_javascript_core
|
||||
}
|
||||
HEADERS += \
|
||||
config.h \
|
||||
doctrenderer.h \
|
||||
|
@ -0,0 +1,67 @@
|
||||
--- core/DesktopEditor/doctrenderer/hash.cpp.orig 2023-06-14 12:14:26.656325000 +0200
|
||||
+++ core/DesktopEditor/doctrenderer/hash.cpp 2023-06-14 14:23:39.149523000 +0200
|
||||
@@ -4,12 +4,12 @@
|
||||
#include "../common/Base64.h"
|
||||
#endif
|
||||
|
||||
-#include "openssl/sha.h"
|
||||
-#include "openssl/md2.h"
|
||||
-#include "openssl/md4.h"
|
||||
-#include "openssl/md5.h"
|
||||
-#include "openssl/whrlpool.h"
|
||||
-#include "openssl/ripemd.h"
|
||||
+#include <openssl/sha.h>
|
||||
+#include <openssl/md2.h>
|
||||
+#include <openssl/md4.h>
|
||||
+#include <openssl/md5.h>
|
||||
+#include <openssl/whrlpool.h>
|
||||
+#include <openssl/ripemd.h>
|
||||
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
@@ -37,6 +37,7 @@ unsigned char* CHash::hash(const unsigned char* data,
|
||||
|
||||
switch (alg)
|
||||
{
|
||||
+#if 0
|
||||
case haMD2:
|
||||
{
|
||||
nBufLen = 16;
|
||||
@@ -44,6 +45,7 @@ unsigned char* CHash::hash(const unsigned char* data,
|
||||
MD2(data, d, pBufData);
|
||||
break;
|
||||
}
|
||||
+#endif
|
||||
case haMD4:
|
||||
{
|
||||
nBufLen = 16;
|
||||
@@ -246,11 +248,13 @@ void hash_iteration(unsigned char*& input, int iter, u
|
||||
|
||||
switch (alg)
|
||||
{
|
||||
+#if 0
|
||||
case CHash::haMD2:
|
||||
{
|
||||
MD2(input, alg_size + 4, tmp);
|
||||
break;
|
||||
}
|
||||
+#endif
|
||||
case CHash::haMD4:
|
||||
{
|
||||
MD4(input, alg_size + 4, tmp);
|
||||
@@ -319,6 +323,7 @@ unsigned char* CHash::hash2(const char* password, cons
|
||||
unsigned char* pBuffer1 = NULL;
|
||||
switch (alg)
|
||||
{
|
||||
+#if 0
|
||||
case haMD2:
|
||||
{
|
||||
alg_size = 16;
|
||||
@@ -326,6 +331,7 @@ unsigned char* CHash::hash2(const char* password, cons
|
||||
MD2(inputData, inputDataLen, pBuffer1);
|
||||
break;
|
||||
}
|
||||
+#endif
|
||||
case haMD4:
|
||||
{
|
||||
alg_size = 16;
|
@ -0,0 +1,20 @@
|
||||
--- core/DesktopEditor/pluginsmanager/main.cpp.orig 2023-06-19 10:50:14.262222000 +0200
|
||||
+++ core/DesktopEditor/pluginsmanager/main.cpp 2023-06-19 10:50:48.083404000 +0200
|
||||
@@ -52,7 +52,7 @@
|
||||
#undef GetTempPath
|
||||
#endif
|
||||
|
||||
-#ifdef LINUX
|
||||
+#if defined(LINUX) || defined(__FreeBSD__)
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
@@ -270,7 +270,7 @@ class CPluginsManager (public)
|
||||
|
||||
m_sSettingsDir = NSSystemUtils::GetAppDataDir() + L"/pluginsmanager";
|
||||
|
||||
-#ifdef LINUX
|
||||
+#if defined(LINUX) || defined(__FreeBSD__)
|
||||
// GetAppDataDir creates folder with ONLYOFFICE on Linux
|
||||
// as result - two folders in lower/upper case, working with the correct folder
|
||||
NSStringUtils::string_replace(m_sSettingsDir, L"ONLYOFFICE", L"onlyoffice");
|
@ -1,13 +0,0 @@
|
||||
--- core/DesktopEditor/xmlsec/test/OpenSSL_gui_test/OpenSSL_gui_test.pro.orig 2021-09-30 12:13:32 UTC
|
||||
+++ core/DesktopEditor/xmlsec/test/OpenSSL_gui_test/OpenSSL_gui_test.pro
|
||||
@@ -19,6 +19,10 @@ CORE_ROOT_DIR = $$PWD/../../../..
|
||||
PWD_ROOT_DIR = $$PWD
|
||||
include($$CORE_ROOT_DIR/Common/base.pri)
|
||||
|
||||
+core_freebsd {
|
||||
+ QMAKE_LFLAGS += -Wl,--rpath=./
|
||||
+}
|
||||
+
|
||||
core_linux {
|
||||
QMAKE_LFLAGS += -Wl,--rpath=./
|
||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
@ -1,11 +0,0 @@
|
||||
--- core/MsBinaryFile/Common/Vml/PPTShape/BinaryReader.h.orig 2023-02-13 15:04:35.201745000 +0100
|
||||
+++ core/MsBinaryFile/Common/Vml/PPTShape/BinaryReader.h 2023-02-13 15:04:55.225670000 +0100
|
||||
@@ -30,7 +30,7 @@
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
-#include "../../../../../../DesktopEditor/common/Types.h"
|
||||
+#include "../../../../DesktopEditor/common/Types.h"
|
||||
|
||||
namespace ODRAW
|
||||
{
|
@ -0,0 +1,11 @@
|
||||
--- core/OOXML/Binary/Sheets/Reader/ChartFromToBinary.cpp.orig 2023-06-14 14:53:55.376306000 +0200
|
||||
+++ core/OOXML/Binary/Sheets/Reader/ChartFromToBinary.cpp 2023-06-14 14:54:16.425588000 +0200
|
||||
@@ -10010,7 +10010,7 @@ namespace BinXlsxRW
|
||||
WriteCT_String(*oVal.m_gapDepth);
|
||||
m_oBcw.WriteItemEnd(nCurPos);
|
||||
}
|
||||
- if (NULL != oVal.m_shape.IsInit())
|
||||
+ if (0 != oVal.m_shape.IsInit())
|
||||
{
|
||||
int nCurPos = m_oBcw.WriteItemStart(c_oserct_bar3dchartSHAPE);
|
||||
WriteCT_Shape(*oVal.m_shape);
|
@ -0,0 +1,16 @@
|
||||
--- core/OOXML/PPTXFormat/DrawingConverter/ASCOfficeDrawingConverter.cpp.orig 2023-06-14 14:39:19.258894000 +0200
|
||||
+++ core/OOXML/PPTXFormat/DrawingConverter/ASCOfficeDrawingConverter.cpp 2023-06-14 14:49:20.247098000 +0200
|
||||
@@ -1928,11 +1928,11 @@ bool CDrawingConverter::ParceObject(const std::wstring
|
||||
{
|
||||
XmlUtils::CXmlNode oMainNode;
|
||||
if (!oMainNode.FromXmlString(strXml))
|
||||
- return NULL;
|
||||
+ return 0;
|
||||
|
||||
XmlUtils::CXmlNodes oNodes;
|
||||
if (!oMainNode.GetNodes(L"*", oNodes))
|
||||
- return NULL;
|
||||
+ return 0;
|
||||
|
||||
m_pBinaryWriter->StartRecord(0);
|
||||
m_pBinaryWriter->ClearCurShapePositionAndSizes();
|
@ -0,0 +1,11 @@
|
||||
--- core/OOXML/XlsxFormat/Chart/ChartSerialize.cpp.orig 2023-06-14 14:33:42.265435000 +0200
|
||||
+++ core/OOXML/XlsxFormat/Chart/ChartSerialize.cpp 2023-06-14 14:33:54.354616000 +0200
|
||||
@@ -1282,7 +1282,7 @@ xmlns:c16r2=\"http://schemas.microsoft.com/office/draw
|
||||
{
|
||||
writer.WriteString(L"<");
|
||||
writer.WriteString(sNodeName);
|
||||
- if (NULL != m_l.IsInit())
|
||||
+ if (0 != m_l.IsInit())
|
||||
{
|
||||
WritingStringAttrDouble(L"l", *m_l);
|
||||
}
|
@ -1,5 +1,14 @@
|
||||
--- document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4.orig 2022-01-19 20:22:54 UTC
|
||||
--- document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4.orig 2023-06-20 13:47:11 UTC
|
||||
+++ document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4
|
||||
@@ -5,7 +5,7 @@ fi
|
||||
ONLYOFFICE_DATA_CONTAINER=$1
|
||||
fi
|
||||
|
||||
-DIR="/var/www/M4_DS_PREFIX"
|
||||
+DIR="%%LOCALBASE%%/www/M4_DS_PREFIX"
|
||||
|
||||
#Start generate AllFonts.js, font thumbnails and font_selection.bin
|
||||
echo -n Generating AllFonts.js, please wait...
|
||||
@@ -49,11 +49,6 @@ echo Done
|
||||
|
||||
echo Done
|
||||
@ -12,3 +21,15 @@
|
||||
#Remove gzipped files
|
||||
rm -f \
|
||||
$DIR/fonts/*.gz \
|
||||
@@ -62,10 +57,7 @@ if [ "$ONLYOFFICE_DATA_CONTAINER" != "true" ]; then
|
||||
|
||||
#Restart web-site and converter
|
||||
if [ "$ONLYOFFICE_DATA_CONTAINER" != "true" ]; then
|
||||
- if pgrep -x ""systemd"" >/dev/null; then
|
||||
- systemctl restart ds-docservice
|
||||
- systemctl restart ds-converter
|
||||
- elif pgrep -x ""supervisord"" >/dev/null; then
|
||||
+ if pgrep -f "supervisord" >/dev/null; then
|
||||
supervisorctl restart ds:docservice
|
||||
supervisorctl restart ds:converter
|
||||
fi
|
||||
|
@ -0,0 +1,39 @@
|
||||
--- document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4.orig 2023-06-20 13:37:09 UTC
|
||||
+++ document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4
|
||||
@@ -1,27 +1,27 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
|
||||
-[ $(id -u) -ne 0 ] && { echo "Root privileges required"; exit 1; }
|
||||
+[ "$(id -u)" -ne 0 ] && { echo "Root privileges required"; exit 1; }
|
||||
|
||||
-CONF_DIR="/etc/M4_DS_PREFIX"
|
||||
-DIR="/var/www/M4_DS_PREFIX"
|
||||
+CONF_DIR="%%LOCALBASE%%/etc/M4_DS_PREFIX"
|
||||
+DIR="%%LOCALBASE%%/www/M4_DS_PREFIX"
|
||||
|
||||
LOCAL_CONFIG="${CONF_DIR}/local.json"
|
||||
DEFAULT_CONFIG="${CONF_DIR}/default.json"
|
||||
-Configs=("$LOCAL_CONFIG" "$DEFAULT_CONFIG")
|
||||
+Configs="$LOCAL_CONFIG $DEFAULT_CONFIG"
|
||||
|
||||
JSON_BIN="$DIR/npm/json"
|
||||
|
||||
-for i in "${!Configs[@]}";
|
||||
+for i in ${Configs};
|
||||
do
|
||||
- if [ -f ${Configs[$i]} ]; then
|
||||
- JSON="$JSON_BIN -f ${Configs[$i]}"
|
||||
+ if [ -f "${i}" ]; then
|
||||
+ JSON="$JSON_BIN -f ${i}"
|
||||
JWT_ENABLED=$($JSON "services.CoAuthoring.token.enable.request.inbox")
|
||||
JWT_SECRET=$($JSON "services.CoAuthoring.secret.inbox.string")
|
||||
JWT_HEADER=$($JSON "services.CoAuthoring.token.inbox.header")
|
||||
if [ -n "$JWT_ENABLED" ]; then
|
||||
echo "Your JWT settings:"
|
||||
echo "JWT enabled - $JWT_ENABLED"
|
||||
- if [ $JWT_ENABLED = "true" ]; then
|
||||
+ if [ "${JWT_ENABLED}" = "true" ]; then
|
||||
echo "JWT secret - $JWT_SECRET"
|
||||
echo "JWT header - $JWT_HEADER"
|
||||
fi
|
@ -0,0 +1,50 @@
|
||||
--- document-server-package/common/documentserver/bin/documentserver-pluginsmanager.sh.m4.orig 2023-06-20 13:51:11 UTC
|
||||
+++ document-server-package/common/documentserver/bin/documentserver-pluginsmanager.sh.m4
|
||||
@@ -1,33 +1,32 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
|
||||
-[ $(id -u) -ne 0 ] && { echo "Root privileges required"; exit 1; }
|
||||
+[ "$(id -u)" -ne 0 ] && { echo "Root privileges required"; exit 1; }
|
||||
|
||||
-while [ "$1" != "" ]; do
|
||||
+while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
-
|
||||
-r | --restart )
|
||||
- if [ "$2" != "" ]; then
|
||||
+ if [ "$2" = "true" ] || [ "$2" = "false" ]; then
|
||||
RESTART_CONDITION=$2
|
||||
shift
|
||||
fi
|
||||
+ shift
|
||||
;;
|
||||
-
|
||||
- * ) args+=("$1");
|
||||
+
|
||||
+ *)
|
||||
+ break
|
||||
+ ;;
|
||||
esac
|
||||
- shift
|
||||
done
|
||||
|
||||
-PLUGIN_MANAGER="/var/www/M4_DS_PREFIX/server/tools/pluginsmanager"
|
||||
-PLUGIN_DIR="/var/www/M4_DS_PREFIX/sdkjs-plugins/"
|
||||
+PLUGIN_MANAGER="%%LOCALBASE%%/www/M4_DS_PREFIX/server/tools/pluginsmanager"
|
||||
+PLUGIN_DIR="%%LOCALBASE%%/www/M4_DS_PREFIX/sdkjs-plugins/"
|
||||
|
||||
-"${PLUGIN_MANAGER}" --directory=\"${PLUGIN_DIR}\" "${args[@]}"
|
||||
+"${PLUGIN_MANAGER}" --directory=\"${PLUGIN_DIR}\" "$@"
|
||||
|
||||
-chown -R ds:ds "${PLUGIN_DIR}"
|
||||
+chown -R onlyoffice:onlyoffice "${PLUGIN_DIR}"
|
||||
|
||||
if [ "$RESTART_CONDITION" != "false" ]; then
|
||||
- if pgrep -x ""systemd"" >/dev/null; then
|
||||
- systemctl restart ds-docservice
|
||||
- elif pgrep -x ""supervisord"" >/dev/null; then
|
||||
+ if pgrep -f "supervisord" >/dev/null; then
|
||||
supervisorctl restart ds:docservice
|
||||
fi
|
||||
fi
|
@ -0,0 +1,28 @@
|
||||
--- document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4.orig 2023-06-20 13:45:17 UTC
|
||||
+++ document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4
|
||||
@@ -1,18 +1,18 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
|
||||
-DIR="/var/www/M4_DS_PREFIX"
|
||||
-NGINX_ONLYOFFICE_PATH="/etc/M4_DS_PREFIX/nginx"
|
||||
+DIR="%%LOCALBASE%%/www/M4_DS_PREFIX"
|
||||
+NGINX_ONLYOFFICE_PATH="%%LOCALBASE%%/etc/M4_DS_PREFIX/nginx"
|
||||
|
||||
-cd ${DIR}
|
||||
+cd ${DIR} || exit 1
|
||||
# Make gziped scripts
|
||||
-find ./sdkjs ./web-apps ./sdkjs-plugins -type f \( -name *.js -o -name *.json -o -name *.htm -o -name *.html -o -name *.css \) -exec gzip -kf9 {} \;
|
||||
+find ./sdkjs ./web-apps ./sdkjs-plugins -type f \( -name "*.js" -o -name "*.json" -o -name "*.htm" -o -name "*.html" -o -name "*.css" \) -exec gzip -kf9 {} \;
|
||||
|
||||
# Make gziped fonts
|
||||
find ./fonts -type f ! -name "*.*" -exec gzip -kf9 {} \;
|
||||
|
||||
# Turn on static gzip for nginx
|
||||
-sed 's/#*\s*\(gzip_static\).*/\1 on;/g' \
|
||||
+gsed 's/#*\s*\(gzip_static\).*/\1 on;/g' \
|
||||
-i ${NGINX_ONLYOFFICE_PATH}/includes/ds-docservice.conf
|
||||
|
||||
# Reload nginx config
|
||||
-[ $(pgrep -x ""systemd"" | wc -l) -gt 0 ] && systemctl reload nginx || service nginx reload
|
||||
+service nginx reload
|
@ -0,0 +1,65 @@
|
||||
--- document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4.orig 2023-06-20 13:50:40 UTC
|
||||
+++ document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4
|
||||
@@ -1,24 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
-while [ "$1" != "" ]; do
|
||||
+while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
-
|
||||
-s | --secure_link_secret )
|
||||
if [ "$2" != "" ]; then
|
||||
SECURE_LINK_SECRET=$2
|
||||
shift
|
||||
fi
|
||||
+ shift
|
||||
;;
|
||||
|
||||
-r | --restart )
|
||||
- if [ "$2" != "" ]; then
|
||||
+ if [ "$2" = "true" ] || [ "$2" = "false" ]; then
|
||||
RESTART_CONDITION=$2
|
||||
shift
|
||||
fi
|
||||
+ shift
|
||||
;;
|
||||
|
||||
-
|
||||
- -? | -h | --help )
|
||||
+ -h | --help )
|
||||
echo " Usage $0 [PARAMETER] [[PARAMETER], ...]"
|
||||
echo " Parameters:"
|
||||
echo " -s, --secure_link_secret setting for secret string "
|
||||
@@ -26,26 +26,21 @@ while [ "$1" != "" ]; do
|
||||
echo
|
||||
exit 0
|
||||
;;
|
||||
-
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
-NGINX_CONF=/etc/M4_DS_PREFIX/nginx/ds.conf
|
||||
-LOCAL_CONF=/etc/M4_DS_PREFIX/local.json
|
||||
-JSON="/var/www/M4_DS_PREFIX/npm/json -q -f ${LOCAL_CONF}"
|
||||
+NGINX_CONF=%%LOCALBASE%%/etc/M4_DS_PREFIX/nginx/ds.conf
|
||||
+LOCAL_CONF=%%LOCALBASE%%/etc/M4_DS_PREFIX/local.json
|
||||
+JSON="%%LOCALBASE%%/www/M4_DS_PREFIX/npm/json -q -f ${LOCAL_CONF}"
|
||||
|
||||
SECURE_LINK_SECRET=${SECURE_LINK_SECRET:-$(pwgen -s 20)}
|
||||
|
||||
-sed "s,\(set \+\$secure_link_secret\).*,\1 "${SECURE_LINK_SECRET}";," -i ${NGINX_CONF}
|
||||
-${JSON} -I -e 'this.storage={fs: {secretString: "'${SECURE_LINK_SECRET}'" }}' && chown ds:ds $LOCAL_CONF
|
||||
+gsed "s,\(set \+\$secure_link_secret\).*,\1 ""${SECURE_LINK_SECRET}"";," -i ${NGINX_CONF}
|
||||
+${JSON} -I -e 'this.storage={fs: {secretString: "'${SECURE_LINK_SECRET}'" }}' && chown onlyoffice:onlyoffice $LOCAL_CONF
|
||||
|
||||
if [ "$RESTART_CONDITION" != "false" ]; then
|
||||
- if pgrep -x ""systemd"" >/dev/null; then
|
||||
- systemctl restart ds-docservice
|
||||
- systemctl restart ds-converter
|
||||
- systemctl reload nginx
|
||||
- elif pgrep -x ""supervisord"" >/dev/null; then
|
||||
+ if pgrep -f "supervisord" >/dev/null; then
|
||||
supervisorctl restart ds:docservice
|
||||
supervisorctl restart ds:converter
|
||||
service nginx reload
|
@ -62,7 +62,10 @@ files = %%ETCDIR%%/documentserver/supervisor/*.conf
|
||||
6. Follow the following doc If you want to use Onlyoffice with Nextcloud:
|
||||
- https://api.onlyoffice.com/editors/nextcloud
|
||||
|
||||
7. Enjoy.
|
||||
7. Install OnlyOffice plugins (you'll need internet):
|
||||
# /usr/local/bin/documentserver-pluginsmanager.sh --update=/usr/local/www/onlyoffice/documentserver/sdkjs-plugins/plugin-list-default.json
|
||||
|
||||
8. Enjoy.
|
||||
EOM
|
||||
}
|
||||
{ type: upgrade
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user