Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
050c598
chore(license): restore upstream licence text before the 9.4 terms
juliusknorr Nov 11, 2026
5118f8e
chore(license): update LICENSE with restructured AGPLv3 additional terms
trofim24 May 6, 2026
6a7b4d0
chore(license): use en Upīša -> Upisha
trofim24 May 13, 2026
8f3678d
chore(exe): generate the Windows installer licence from LICENSE
juliusknorr Nov 11, 2026
bd9e063
chore(license): add REUSE.toml annotations
juliusknorr Nov 20, 2026
ddbc7d6
feat(package): ship a combined MODIFICATIONS.txt next to NOTICE
juliusknorr Nov 20, 2026
9b6689e
test(package): check the 9.4 additional terms in debian/copyright
juliusknorr Nov 20, 2026
ffd23c1
feat(package): ship core's third-party list and licence texts
juliusknorr Nov 21, 2026
8d233f7
fix(package): name the additional terms and the CC BY-SA URL in NOTICE
juliusknorr Nov 21, 2026
19a2099
chore(license): add our notice to changed upstream files the stamp ca…
juliusknorr Nov 21, 2026
d5a2bb6
ci: check the licence notices on pull requests
juliusknorr Nov 21, 2026
b0e2773
fix(license): drop the Section 7(a) warranty clause from debian/copyr…
juliusknorr Nov 21, 2026
07adeb6
fix(license): give our logos their own stanza in debian/copyright
juliusknorr Nov 21, 2026
70dac5b
fix(license): cover the welcome and AdminPanel logos in debian/copyright
juliusknorr Nov 21, 2026
14d99b5
fix(license): use the copyright format's lower-case 'and' for the log…
juliusknorr Nov 21, 2026
ff188cf
ci: run the licence metadata test on packaging changes
juliusknorr Nov 21, 2026
b59c14f
ci(licence): drop the removed token input
juliusknorr Nov 21, 2026
6cddbd9
fix(license): say which builds carry the full modification record
juliusknorr Nov 21, 2026
9772ed3
feat(license): ship LICENSE as web-apps/LICENSE.txt for the editors' …
juliusknorr Nov 21, 2026
36cfa89
build(license): ship the third-party lists of web-apps, sdkjs and the…
juliusknorr Nov 21, 2026
c9c986e
fix(license): point the third-party lists to the licence texts' insta…
juliusknorr Nov 21, 2026
121355c
test(package): accept the Linux DS_ROOT without a trailing slash
juliusknorr Dec 3, 2026
4773339
docs: name the ONLYOFFICE origin and the licence terms in the README
juliusknorr Dec 3, 2026
2e63cf7
feat(license): combine DocumentServer's own modification record
juliusknorr Dec 3, 2026
9dd492c
chore(license): add Euro-Office notices to files we changed
juliusknorr Dec 3, 2026
d025538
chore(license): add MODIFICATIONS.txt
juliusknorr Dec 3, 2026
5478ff4
ci(licence): run the licence gate on GitHub-hosted runners
juliusknorr Dec 3, 2026
2e1d3ce
feat(notice): name the exact source commits of the build
juliusknorr Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/licence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow is provided via the organization template repository
#
# https://github.com/Euro-Office/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# Checks the ONLYOFFICE licence notices (upstream headers, our block on
# upstream files we changed, the SPDX pair on new files, the licence files)
# with the header gates of licence-modification-tooling, on pull requests to
# and pushes of the default branch only (older stable branches predate the
# notices), forks included. Only for the component repositories listed in its
# relicence.conf.
# Details:
# https://github.com/Euro-Office/.github/blob/main/actions/licence/action.yml
#
# SPDX-FileCopyrightText: 2026 Euro-Office contributors
# SPDX-License-Identifier: MIT

name: Licence notices

on:
pull_request:
branches: [main]
push:
branches: [main]

permissions:
contents: read

concurrency:
group: licence-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
licence:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: Euro-Office/.github/actions/licence@main # zizmor: ignore[unpinned-uses] organization action, pins the tooling itself
41 changes: 41 additions & 0 deletions .github/workflows/package-licence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SPDX-FileCopyrightText: Euro-Office contributors
# SPDX-License-Identifier: AGPL-3.0-only

name: Package licence metadata

on:
pull_request:
paths:
- 'Makefile'
- '*.m4'
- 'combine-modifications.sh'
- 'deb/**'
- 'exe/**'
- 'test/**'
- 'LICENSE*'
- '.github/workflows/package-licence.yml'
push:
branches:
- main
paths:
- 'Makefile'
- '*.m4'
- 'combine-modifications.sh'
- 'deb/**'
- 'exe/**'
- 'test/**'
- 'LICENSE*'
- '.github/workflows/package-licence.yml'

permissions:
contents: read

jobs:
check:
runs-on: [self-hosted, ubuntu-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Render debian/copyright and NOTICE and check the licence notices
run: test/licence-metadata.sh
75 changes: 69 additions & 6 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

ONLYOFFICE Docs Community Edition
Copyright (C) 2010-2026 Ascensio System SIA
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
Expand All @@ -645,10 +645,6 @@ the "copyright" line and a pointer to where the full notice is found.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

The interactive user interfaces in modified source and object code
version of the Program must display Appropriate Legal Notices, as required
under Section 5 of the GNU AGPL version 3.

Also add information on how to contact you by electronic and paper mail.

If your software can interact with users remotely through a computer
Expand All @@ -663,3 +659,70 @@ specific requirements.
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

Copyright (C) 2009-2026 Ascensio System SIA

This Program is licensed under the GNU Affero General Public
License v3.0 (AGPLv3), as supplemented by the terms set forth below. These
terms form an integral part of this License and shall be included in all
copies and distributions of the Program. They define conditions for the
exercise of rights granted under the License, including use, modification,
and distribution of the Program.
Pursuant to Section 7 of the License, the following terms supplement and
clarify the application of these conditions. Failure to comply with these
terms constitutes a violation of the License and may result in termination
of rights under Section 8 of the License.

Additional Terms

1. Retention of Notices and Attribution.
Pursuant to Sections 4, 5, and 7(b) of the License, you must retain all
applicable copyright notices, license notices, warranty disclaimers, and
attribution or origin notices included in the Program.

2. Modification Notice Requirement.

Modified versions of the Program must carry prominent notices stating that
they have been modified, including the date (or dates) of such modification,
and must clearly indicate that they are based on the original ONLYOFFICE
software developed by Ascensio System SIA.

3. Appropriate Legal Notices in User Interfaces.
Where the Program, or any modified version thereof, includes interactive
user interfaces, the required notices shall be displayed through a clearly
accessible and prominently visible user interface feature, in accordance
with the requirement to present Appropriate Legal Notices under Section 5
of the License. Such notices must enable users to:

(i) identify ONLYOFFICE as the original developer;

(ii) understand that the version in use may be a modified version; and

(iii) access the applicable license information.

4. No Trademark License.

In accordance with Section 7(e) this License does not grant any rights to
use the trademarks, service marks, trade names, logos, or branding of the
Licensor. Any use of such trademarks is governed by the Licensor's
Trademark Policy, available at:
<https://www.onlyoffice.com/trademark-policy>

5. Non-Code Content Licensing.

Certain non-code elements included in the Program or its distribution,
including but not limited to illustrations, icon sets, and technical writing
or documentation content, are licensed under the Creative Commons
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). For the
avoidance of doubt, this license applies solely to such non-code content
and does not modify or replace the licensing terms applicable to the
Program's source code, which remains subject to the GNU Affero General
Public License v3.0 (AGPLv3). Nothing in this section limits any
obligation to retain copyright notices, attribution, origin information, or
Appropriate Legal Notices under the AGPLv3 and the additional terms
applicable to the Program. The full license text is available at:
<https://creativecommons.org/licenses/by-sa/4.0/legalcode>

You can contact Ascensio System SIA by electronic mail at:
info@onlyoffice.com and by postal mail at: 20A-6 Ernesta Birznieka-Upisha
Street, Riga, LV-1050, Latvia, European Union.
7 changes: 7 additions & 0 deletions MODIFICATIONS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This program is based on the original ONLYOFFICE software developed by Ascensio System SIA.
See LICENSE for the licence terms.

Modifications to document-server-package
The modifications made by the Euro-Office contributors are listed, with their dates, in the
git history: https://github.com/Euro-Office/document-server-package/commits
Release packages ship the full dated record as MODIFICATIONS.txt.
35 changes: 33 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Euro-Office contributors
# Modified by Euro-Office contributors, see MODIFICATIONS.txt

PWD := $(shell pwd)
CURL := curl -s -L -o
TOUCH := touch
Expand Down Expand Up @@ -67,6 +70,12 @@ DOCUMENTSERVER_FILES += $(DOCUMENTSERVER)/sdkjs-plugins
3RD_PARTY_LICENSE_FILES += $(DOCUMENTSERVER)/server/3rd-Party.txt
3RD_PARTY_LICENSE_FILES += $(DOCUMENTSERVER)/server/license

# Records of the repos whose code the documentserver bundle ships, in the
# DocumentServer checkout layout (SOURCE_ROOT is DocumentServer itself and holds
# the sibling submodules).
SOURCE_ROOT ?= ..
MODIFICATIONS_PARTS ?= $(foreach repo,core sdkjs web-apps server sdkjs-forms,$(SOURCE_ROOT)/$(repo)/MODIFICATIONS.txt) $(SOURCE_ROOT)/MODIFICATIONS.txt MODIFICATIONS.txt

LICENSE_FILE := $(firstword $(wildcard $(BRANDING_DIR)/common/documentserver/license/$(PACKAGE_NAME)/LICENSE.txt) LICENSE)
HTMLFILEINTERNAL = $(DOCUMENTSERVER)/server/FileConverter/bin/HtmlFileInternal/HtmlFileInternal

Expand Down Expand Up @@ -298,7 +307,13 @@ M4_PARAMS += -D M4_DEV_NULL='$(DEV_NULL)'
M4_PARAMS += -D M4_PACKAGE_SERVICES='$(PACKAGE_SERVICES)'
CURRENT_YEAR := $(shell date +"%Y")
M4_PARAMS += -D M4_CURRENT_YEAR=$(CURRENT_YEAR)
M4_PARAMS += -D M4_CONTRIBUTORS_YEARS=$(if $(filter 2026,$(CURRENT_YEAR)),2026,2026-$(CURRENT_YEAR))
M4_PARAMS += -D M4_CONTRIBUTORS_YEARS=2025-$(CURRENT_YEAR)

# The commits of this build, product repo first, e.g.
# "DocumentServer=<sha> core=<sha> ...". Without them NOTICE names the org.
SOURCE_COMMITS = $(subst =, ,$(BUILD_COMMITS))
NOTICE_PARAMS = -D M4_SOURCE_REPO='$(word 1,$(SOURCE_COMMITS))' -D M4_SOURCE_COMMIT='$(word 2,$(SOURCE_COMMITS))' \
-D M4_COMPONENT_COMMITS="$$(printf '%s %s\n' $(wordlist 3,$(words $(SOURCE_COMMITS)),$(SOURCE_COMMITS)))"

RPMBUILD_BINARY_PAYLOAD ?= w9T$(shell nproc).xzdio

Expand Down Expand Up @@ -397,8 +412,24 @@ ifeq ($(PLATFORM),win)
cat exe/license/3rd-Party.txt >> $(DOCUMENTSERVER)/3rd-Party.txt
endif

# The third-party lists of core, web-apps and sdkjs, linking the licence texts they ship
{ echo; sed 's|LICENSES/|license/core/|g' $(SOURCE_ROOT)/core/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt
mkdir -p $(DOCUMENTSERVER)/license/core
cp -f -t $(DOCUMENTSERVER)/license/core $(SOURCE_ROOT)/core/LICENSES/*
{ echo; sed 's|LICENSES/|license/web-apps/|g' $(SOURCE_ROOT)/web-apps/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt
mkdir -p $(DOCUMENTSERVER)/license/web-apps
cp -f -t $(DOCUMENTSERVER)/license/web-apps $(SOURCE_ROOT)/web-apps/LICENSES/*
{ echo; sed 's|LICENSES/|license/sdkjs/|g' $(SOURCE_ROOT)/sdkjs/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt
mkdir -p $(DOCUMENTSERVER)/license/sdkjs
cp -f -t $(DOCUMENTSERVER)/license/sdkjs $(SOURCE_ROOT)/sdkjs/LICENSES/*
# The npm packages in the server binaries: list and texts from the server build
{ echo; cat $(DOCUMENTSERVER)/license/server/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt

cp -f -t $(DOCUMENTSERVER) $(LICENSE_FILE) LICENSE-CC.txt
m4 $(M4_PARAMS) NOTICE.m4 > $(DOCUMENTSERVER)/NOTICE
# nginx serves web-apps/, so the editors' About links the licence offline
cp -f $(LICENSE_FILE) $(DOCUMENTSERVER)/web-apps/LICENSE.txt
m4 $(M4_PARAMS) $(NOTICE_PARAMS) NOTICE.m4 > $(DOCUMENTSERVER)/NOTICE
./combine-modifications.sh $(MODIFICATIONS_PARTS) > $(DOCUMENTSERVER)/MODIFICATIONS.txt

chmod u+x $(DOCUMENTSERVER)/server/FileConverter/bin/x2t$(EXEC_EXT)
#chmod u+x $(DOCUMENTSERVER)/server/FileConverter/bin/docbuilder$(EXEC_EXT)
Expand Down
24 changes: 20 additions & 4 deletions NOTICE.m4
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ Ascensio System SIA. M4_COMPANY_NAME is not affiliated with, endorsed by, or
sponsored by Ascensio System SIA. ONLYOFFICE is a trademark of Ascensio
System SIA.

The changes Euro-Office contributors made to the original software are
listed in MODIFICATIONS.txt: release builds carry the full dated record,
other builds point to the git history.

This program is free software, licensed under the GNU Affero General Public
License version 3 (AGPL-3.0-only), see the LICENSE file. Bundled third-party
components and their licences are listed in 3rd-Party.txt and license/.
License version 3 (AGPL-3.0-only) with the additional terms under its
Section 7: retention of notices and attribution, modification notices, legal
notices in user interfaces, no trademark licence, and CC BY-SA 4.0 for
non-code content. See the LICENSE file. Bundled third-party components and
their licences are listed in 3rd-Party.txt and license/.

Illustrations, icon sets and documentation content are licensed under the
Creative Commons Attribution-ShareAlike 4.0 International licence
(CC BY-SA 4.0), see LICENSE-CC.txt. Licensor: Ascensio System SIA, with
modifications by Euro-Office contributors.
(CC BY-SA 4.0), see LICENSE-CC.txt and
https://creativecommons.org/licenses/by-sa/4.0/legalcode. Licensor: Ascensio
System SIA, with modifications by Euro-Office contributors.

Fonts in core-fonts/ and dictionaries in dictionaries/ are third-party works
under their own licences, see the licence files in those directories where
Expand All @@ -23,5 +31,13 @@ favicon_eo.svg, footer_help_eo.svg and mobile-logo_eo.svg are Material
Symbols by Google, recoloured, licensed under the Apache License 2.0:
https://www.apache.org/licenses/LICENSE-2.0

ifelse(M4_SOURCE_COMMIT, `', `dnl
The complete corresponding source code is available at:
https://github.com/Euro-Office
', `dnl
The complete corresponding source code of this version, M4_PACKAGE_VERSION, is
commit M4_SOURCE_COMMIT of M4_SOURCE_REPO:
https://github.com/Euro-Office/M4_SOURCE_REPO/tree/M4_SOURCE_COMMIT
with its components at these commits:
M4_COMPONENT_COMMITS
')dnl
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

This repo contains packaging data for [Euro-Office Document Server](https://github.com/Euro-Office/DocumentServer).

This module is released under an GNU AGPL v3.0 license. See the LICENSE file for more information.
## Origin and licence

document-server-package is based on the original ONLYOFFICE software developed by Ascensio System SIA ([ONLYOFFICE/document-server-package](https://github.com/ONLYOFFICE/document-server-package)). Euro-Office is not affiliated with, endorsed by, or sponsored by Ascensio System SIA. ONLYOFFICE is a trademark of Ascensio System SIA.

document-server-package is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only) with the additional terms under its Section 7 in [LICENSE](LICENSE): retention of notices and attribution, modification notices, legal notices in user interfaces, no trademark licence, and CC BY-SA 4.0 for non-code content. The changes made by the Euro-Office contributors are tracked in the git history, see `MODIFICATIONS.txt`.
82 changes: 82 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: Euro-Office contributors

version = 1

# Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): unchanged upstream
[[annotations]]
path = [
"apt-rpm/bin/documentserver-configure.sh.m4",
"apt-rpm/package.spec.m4",
"apt-rpm/requires.spec",
"apt-rpm/vars.spec",
"common/documentserver-example/nginx/includes/ds-example.conf.m4",
"common/documentserver-example/systemd/ds-example.service.m4",
"common/documentserver/bin/documentserver-flush-cache.sh.m4",
"common/documentserver/bin/documentserver-jwt-status.sh.m4",
"common/documentserver/bin/documentserver-letsencrypt.ps1",
"common/documentserver/bin/documentserver-letsencrypt.sh.m4",
"common/documentserver/bin/documentserver-log-rotate.ps1",
"common/documentserver/bin/documentserver-pluginsmanager.sh.m4",
"common/documentserver/bin/documentserver-prepare4shutdown.ps1",
"common/documentserver/bin/documentserver-prepare4shutdown.sh.m4",
"common/documentserver/bin/documentserver-static-gzip.sh.m4",
"common/documentserver/bin/documentserver-update-securelink.sh.m4",
"common/documentserver/logrotate/ds.conf.m4",
"common/documentserver/nginx/ds-ssl.conf.tmpl.m4",
"common/documentserver/nginx/ds.conf.tmpl.m4",
"common/documentserver/nginx/includes/ds-adminpanel.conf.m4",
"common/documentserver/nginx/includes/ds-common.conf.m4",
"common/documentserver/nginx/includes/ds-letsencrypt.conf.m4",
"common/documentserver/nginx/includes/http-common.conf.m4",
"common/documentserver/systemd/ds-adminpanel.service.m4",
"common/documentserver/systemd/ds-converter.service.m4",
"common/documentserver/systemd/ds-docservice.service.m4",
"common/documentserver/systemd/ds-metrics.service.m4",
"deb/template/changelog.m4",
"deb/template/config.m4",
"deb/template/package.dirs.m4",
"deb/template/package.install.m4",
"deb/template/package.links.m4",
"deb/template/postrm.m4",
"deb/template/prerm.m4",
"deb/template/templates.m4",
"exe/admin.iss",
"exe/common.iss",
"exe/defines.iss",
"exe/example.iss",
"exe/prerequisites.iss",
"exe/products.iss",
"rpm/bin/documentserver-configure.sh.m4",
"rpm/vars.spec",
"variables.m4",
]
SPDX-FileCopyrightText = "Ascensio System SIA"
SPDX-License-Identifier = "AGPL-3.0-only"

# Upstream files the stamp has no comment style for (.m4, .spec): changed by us, our notice added by hand (`dnl`, `#`)
# aggregate: REUSE keeps Ascensio's copyright next to the in-file notice
[[annotations]]
path = [
"common/documentserver/bin/documentserver-generate-allfonts.sh.m4",
"common/documentserver/nginx/includes/ds-docservice.conf.m4",
"deb/template/control.m4",
"deb/template/copyright.m4",
"deb/template/postinst.m4",
"deb/template/rules.m4",
"rpm/common.spec",
"rpm/package.spec.m4",
"rpm/requires.spec",
]
SPDX-FileCopyrightText = ["Ascensio System SIA", "Euro-Office contributors"]
SPDX-License-Identifier = "AGPL-3.0-only"
precedence = "aggregate"

# Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): ours
[[annotations]]
path = [
"NOTICE.m4",
"common/documentserver/bin/documentserver-restart.sh.m4",
]
SPDX-FileCopyrightText = "Euro-Office contributors"
SPDX-License-Identifier = "AGPL-3.0-only"
15 changes: 15 additions & 0 deletions combine-modifications.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: Euro-Office contributors

# Prints one MODIFICATIONS.txt for a bundle: the preamble of the first part,
# then each part from its "Modifications to " line on, separated by a blank
# line. Fails if a part is missing or has no "Modifications to " line.
set -eu
first=1
for part in "$@"; do
grep -qs '^Modifications to ' "$part" || { echo "error: $part is missing or has no 'Modifications to' line" >&2; exit 1; }
if [ $first = 1 ]; then sed '/^Modifications to /,$d' "$part"; else echo; fi
sed -n '/^Modifications to /,$p' "$part"
first=0
done
Loading