Port details on branch 2025Q3 |
- onlyoffice-documentserver Secure office and productivity apps
- 9.0.3.31 www
=0 9.0.3.31Version of this port present on the latest quarterly branch. - Maintainer: fsbruva@yahoo.com
 - Port Added: 2025-07-07 08:51:07
- Last Update: 2025-07-23 07:55:50
- Commit Hash: 850fed3
- License: AGPLv3
- WWW:
- https://www.onlyoffice.com/
- Description:
- ONLYOFFICE Document Server is an online office suite comprising viewers and
editors for texts, spreadsheets and presentations, fully compatible with
Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing
in real time.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- onlyoffice-documentserver>0:www/onlyoffice-documentserver
- Conflicts:
- CONFLICTS_BUILD:
- To install the port:
- cd /usr/ports/www/onlyoffice-documentserver/ && make install clean
- To add the package, run one of these commands:
- pkg install www/onlyoffice-documentserver
- pkg install onlyoffice-documentserver
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: onlyoffice-documentserver
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1753116846
SHA256 (v8-8.9.255.25_all.tar.gz) = 54853ef93accc063a82a0dc29457b25c9b6d88315431d62e06ab1f84797c5f80
SIZE (v8-8.9.255.25_all.tar.gz) = 72818814
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-Jinja2>=0 : devel/py-Jinja2@py311
- boost-libs>0 : devel/boost-libs
- glib>=2.54 : devel/glib20
- gn : devel/gn
- java : java/openjdk11
- ninja : devel/ninja
- npm : www/npm-node20
- libcrypto.a : security/openssl
- fakeroot : security/fakeroot
- gmake>=4.4.1 : devel/gmake
- node : www/node22
- pkgconf>=1.3.0_1 : devel/pkgconf
- python3.11 : lang/python311
- psql : databases/postgresql17-client
- autoconf>=2.72 : devel/autoconf
- automake>=1.17 : devel/automake
- qt5-qmake>=5.15 : devel/qt5-qmake
- Runtime dependencies:
-
- py311-supervisor>0 : sysutils/py-supervisor@py311
- ca-root-nss.crt : security/ca_root_nss
- gsed : textproc/gsed
- nginx : www/nginx
- pwgen : sysutils/pwgen
- rabbitmq>0 : net/rabbitmq
- webfonts>=0 : x11-fonts/webfonts
- psql : databases/postgresql17-client
- Library dependencies:
-
- libboost_regex.so : devel/boost-libs
- libetonyek-0.1.so : graphics/libetonyek01
- libcurl.so : ftp/curl
- libharfbuzz.so : print/harfbuzz
- libiconv.so : converters/libiconv
- libicutu.so : devel/icu
- libodfgen-0.1.so : textproc/libodfgen01
- librevenge-0.0.so : textproc/librevenge
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for onlyoffice-documentserver-9.0.3.31:
====> Options available for the single DB: you have to select exactly one of them
MYSQL=off: MySQL database support
PGSQL=on: PostgreSQL database support
===> Use 'make config' to modify these settings
- Options name:
- www_onlyoffice-documentserver
- USES:
- autoreconf:build dos2unix fakeroot gmake gnome iconv localbase nodejs:22,build pkgconfig python:3.9+,build qt:5 trigger pgsql
- pkg-message:
- For install:
- CONFIGURATION:
-------------
The configuration file can be found (or created) at the following path:
/usr/local/etc/onlyoffice/documentserver/local.json
The default values are available in the default.json configuration file,
which is available in the folders above. Please do not edit the contents of the
default.json file directly. The default values will be restored each time you
upgrade Document Server to a new version and all your changes will be lost.
1. Enable services at startup in the /etc/rc.conf file:
nginx_enable="YES"
rabbitmq_enable="YES"
supervisord_enable="YES"
Optionally in case of a jail with local IP and no internet access:
update /etc/hosts in order to resolve your nextcloud server to its local IP
2. Install a database server and set up the database (either PostgreSQL or MySQL):
For PostgreSQL (don't forget to change the password):
# service postgresql initdb
# service postgresql start
# psql -U postgres -c "CREATE DATABASE onlyoffice;"
# psql -U postgres -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
# psql -U postgres -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"
# psql -U postgres -c "ALTER DATABASE onlyoffice OWNER to onlyoffice;"
# psql -hlocalhost -Uonlyoffice -d onlyoffice -f /usr/local/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql
Optionally in case of a jail with local IP:
update /var/db/postgres/data13/pg_hba.conf accordingly
For MySQL don't forget to change the password):
# service mysql-server start
# mysql -u root -p -e "CREATE DATABASE onlyoffice DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;"
# mysql -u root -p -e "CREATE USER 'onlyoffice'@'localhost' IDENTIFIED BY 'onlyoffice';"
# mysql -u root -p -e "GRANT ALL privileges ON onlyoffice.* TO 'onlyoffice'@'localhost';"
# mysql -u onlyoffice -D onlyoffice -p < /usr/local/www/onlyoffice/documentserver/server/schema/mysql/createdb.sql
3. Create a new rabbitmq user for the ONLYOFFICE Document Server configuration (don't forget to change the password):
# service rabbitmq start
# rabbitmqctl --erlang-cookie `cat /var/db/rabbitmq/.erlang.cookie` add_user onlyoffice password
# rabbitmqctl --erlang-cookie `cat /var/db/rabbitmq/.erlang.cookie` set_user_tags onlyoffice administrator
# rabbitmqctl --erlang-cookie `cat /var/db/rabbitmq/.erlang.cookie` set_permissions -p / onlyoffice ".*" ".*" ".*"
and change it in /usr/local/etc/onlyoffice/documentserver/local.json accordingly.
4. Set up supervisord in order to execute documentserver services:
- let supervisord.conf load files contained in this directory by adding to
/usr/local/etc/supervisord.conf:
[include]
files = /usr/local/etc/onlyoffice/documentserver/supervisor/*.conf
- start supervisord:
# service supervisord start
5. Set up nginx:
- For HTTP include the following in your /usr/local/etc/nginx/nginx.conf file:
include /usr/local/etc/onlyoffice/documentserver/nginx/ds.conf;
NOTE: documentserver-update-securelink.sh will only update ./nginx/ds.conf and local.json under /usr/local/etc/onlyoffice/documentserver/!
- run documentserver-update-securelink.sh once for creationg a verysecretstring
- start nginx:
# service nginx start
6. Follow the following doc If you want to use Onlyoffice with Nextcloud:
- https://api.onlyoffice.com/editors/nextcloud
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.
- If upgrading from < 7.1.0.215:
- If you are upgrading onlyoffice-documentserver from a version prior to 7.1.0.215,
you need to update the database schema:
For PostgreSQL:
psql -U postgres -d onlyoffice -f /usr/local/www/onlyoffice/documentserver/server/schema/postgresql/upgrade/upgradev710.sql
For MySQL:
mysql -u onlyoffice -D onlyoffice -p < /usr/local/www/onlyoffice/documentserver/server/schema/mysql/upgrade/upgradev710.sql
- If upgrading from > 7.1.0.215 and < 7.2.1.34:
- If you are upgrading onlyoffice-documentserver from a version prior to 7.2.1.34,
you need to update the database schema:
For PostgreSQL:
psql -U postgres -d onlyoffice -f /usr/local/www/onlyoffice/documentserver/server/schema/postgresql/upgrade/upgradev720.sql
For MySQL:
mysql -u onlyoffice -D onlyoffice -p < /usr/local/www/onlyoffice/documentserver/server/schema/mysql/upgrade/upgradev720.sql
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
9.0.3.31 23 Jul 2025 07:55:50
    |
Mikael Urankar (mikael)  Author: Matt Kempe |
www/onlyoffice-documentserver: Update to 9.0.3.31
Upgrade port version to 9.0.3.31
Upgrade port to use yao-pkg 6.6.0
Upgrade port to use node 20.19.4
Fix Apple iwork file conversion error
Minor bugfixes
PR: 288374,287122
Signed-off-by: Matt Kempe <fsbruva@yahoo.com>
(cherry picked from commit 623860bda325bdeb50ce8c6af56ea007d51973b3) |
9.0.2.16 07 Jul 2025 08:47:53
    |
Mikael Urankar (mikael)  Author: Matt Kempe |
www/onlyoffice-documentserver: Update to 9.0.2.16
Upgrade port version to 9.0.2.16
Upgrade port to use yao-pkg 6.5.1
Revert port dependency to node20, to match upstream
Fix compile time errors on aarch64
Add additional cache cleanup steps in Makefile
Add timestamp based versioning for cache tarball
Shift pkg and npm caches to use github
Take port maintainership
PR: 287819
(cherry picked from commit b293e8710f76edd0b710df7b14f2e130639b76b9) |