Commit Graph

680 Commits

Author SHA1 Message Date
Robert Adam
406ce93b47 MAINT: Use separate directory for auxiliary files 2022-09-10 17:28:34 +02:00
Robert Adam
1670056362 MAINT: Delete example RPC scripts
Scripts like these should be maintained in
https://github.com/mumble-voip/mumble-scripts and not in the main repo.
Since these scripts have not been touched in ages, it is assumed that
they are mostly outdated anyway.
2022-09-10 17:28:34 +02:00
Robert Adam
f2399b05b9 MAINT: Delete murmur.init
This appears to be the attempt at a hand-crafted system to start, stop
and monitor a Mumble server. However, on modern systems this is taken
care of by systems like systemd, so we probably don't need this script
anymore.
2022-09-10 17:28:34 +02:00
Robert Adam
5d41669834 MAINT: Delete mumble.protocol
After researching on this, I can't find what this file is actually good
for. The apparent use of registering Mumble as a protocol handler for
mumble:// URLs seems to be superseded by our .desktop file, which seems
to be the more modern approach to this.
2022-09-10 17:28:34 +02:00
Robert Adam
66c7ff6b4d MAINT: Replace mklic.pl with Python script 2022-09-10 17:28:32 +02:00
Robert Adam
fad11bc963 MAINT: Make sign_macOS.py executable 2022-09-10 17:10:14 +02:00
Robert Adam
17502ba03c MAINT: Delete rcc-depend.py 2022-09-10 17:10:14 +02:00
Robert Adam
a9b52a6ff4 MAINT: Delete release.pl 2022-09-10 17:10:14 +02:00
Robert Adam
48c8a7a375 MAINT: Delete transtate.py 2022-09-10 17:10:14 +02:00
Robert Adam
4d175635d4 MAINT: Delete mkini scripts 2022-09-10 17:10:14 +02:00
Robert Adam
4a18246158 MAINT: Update mkflags.py 2022-09-10 17:10:14 +02:00
Robert Adam
51b0a26799 MAINT: Deleted git2cl.pl 2022-09-10 17:10:14 +02:00
Robert Adam
6b65b11178 MAINT: Delete generate-qrc.py
This script seems to not be used in recent time.
2022-09-10 17:10:14 +02:00
Robert Adam
42e6377c25 MAINT: Update generate-mumble_qt-qrc.py
Adapted script to work with Python3 and to use proper argument parsing
2022-09-10 17:10:14 +02:00
Robert Adam
c2ff587173 MAINT: Update generate-ffdhe.py
Updates the script to use proper argument parsing and to using Python3
2022-09-10 17:10:14 +02:00
Robert Adam
90a21f4fba MAINT: Use arg parsing in ApplicationPalette generation script 2022-09-10 17:10:14 +02:00
Robert Adam
04e3d4c635 MAINT: Update extract-emojione-flags.py
The script now uses proper Python3
2022-09-10 17:10:14 +02:00
Robert Adam
81bb8f709d MAINT: Delete docker-compose.yml
All Docker-related things are now contained in
https://github.com/mumble-voip/mumble-docker
2022-09-10 17:10:14 +02:00
Robert Adam
374d9afe6d MAINT: Create Python script for .ico creation
Previously we were using a cpp application for generating the mumble.ico
file. However, this should really be a script's job, which is why we
replaced the cpp code with a corresponding Python implementation.
2022-09-10 17:10:14 +02:00
Jonah Brüchert
a1aa0ff895
BUILD(appstream): Include release date
Flathub requires this now.

This is done in the same way as the build number.
2022-08-26 13:18:46 +02:00
Robert Adam
459087e13f MAINT: Extend changelog script
Sometimes backport commits still have a "Merged PR xxx" part in them,
which we have to strip before processing the message. This is exactly
what this commit adds to the existing changelog script.
2022-08-21 20:37:43 +02:00
DarkOK
5618dd1cc7
DOCS: Fix typo in murmur.ini
Default, not deault
2022-08-17 14:28:41 +01:00
Robert Adam
08ee2ab856 MAINT: Fix mumble-build-number.py script
Previously the script would assemble the query URL by taking the
individual parameters literally. However, for certain inputs this could
lead to an invalid URL, resulting in an error 400 (Bad Request) when
attempting to make this query to the server.

In order to avoid these situations, the parameters are now properly
encoded (quoted) before being inserted into the query URL. Thus, we
ensure to always produce valid URLs.
2022-08-14 23:03:21 +02:00
Robert Adam
20155f2269 DOCS: Document missing option in murmur.ini
The example murmur.ini file was missing a few options which were added
by this commit.

Fixes #5732
2022-07-22 08:13:37 +02:00
Matthias Mailänder
4bf72492c8 MAINT: Avoid Windows screenshots in FreeDesktop AppData 2022-05-20 10:45:54 +02:00
Davide Beatrici
32c8de9d83 MAINT(vcpkg): Install protobuf
It probably used to be a dependency of at least another package we install.
2022-05-11 00:40:58 +02:00
Davide Beatrici
f999081ab8 MAINT(vcpkg): Install Qt's MySQL and PostgreSQL plugins
Otherwise the backends are not available.
2022-04-28 00:36:56 +02:00
Nik Reist
4a533fa64e MAINT(build): Modify helper folder and scripts to use custom zeroc-ice port 2022-04-15 08:29:24 -04:00
Robert Adam
74faaba32e
Merge PR #5594: CHANGE: Use Protobuf for UDP messages
Previously Mumble was using a custom binary format for transmitting data
via UDP (mainly audio). This has worked for a long time but besides
being inconvenient for 3rdParty implementors (they had to manually
re-implement encoding and decoding support for this format) this format
was not very flexible and changes to the data format were very hard.

In order to improve on this situation, this commit introduces changes
that allow to use Protobuf for the UDP messages as well (it's already
used for TCP). With that it should be relatively easy to extend/change
the UDP packet formats in the future and 3rdParty implementors can now
simply use Protobuf to handle decoding/encoding packets for them (much
less work and much less prone to errors).

Since the new Protobuf format is incompatible with the old UDP format,
this commit also includes support for dealing with older clients or
servers that don't recognize the new protocol yet. That way the new
protocol format is only used if both the client and the server are
recent enough to have it implemented (assumed to be the case >=1.5.0).

Note also that the server will make sure that clients using the old and
the new format can seamlessly communicate with one another.

Therefore, on the surface it should not be noticeable to the user which
protocol is currently used.

Note also that the new protocol format only supports Opus as an audio
codec. If one of the legacy codecs is to be used, the legacy packet
format has to be used as well. However, all codecs except for Opus will
be removed from Mumble in the future anyway.

Fixes #4350

NOTE: When this gets merged, all clients and servers claiming to support the protocol version 1.5.0 that do not include these changes, will become incompatible with the ones that do integrate these changes. This is important for everyone closely following our upstream master branch. A simple update to the latest code changes (including the changes from this PR) should be enough to restore full compatibility.
All servers and clients of version < 1.5.0 will be not affected by this as this PR is completely backwards compatible with those clients.
2022-03-27 18:57:54 +02:00
Robert Adam
8500655d12 MAINT: Don't try to format files in build dirs
This speeds up the invocation of runClangFormat.sh dramatically.
2022-03-27 09:49:59 +02:00
Robert Adam
1017dab5c2 CHANGE(server): Enforce Opus by default
Previously the opusthreshold config option had a default value of 100
meaning that the first non-Opus client would cause everyone to fall back
to one of the legacy codecs.

Since Opus has been implemented for ages now and we eventually want to
get rid of the legacy codecs, this commit changes the default value of
this config option to be zero, meaning that the server will always
enforce the use of the Opus codec (regardless of what clients are
connected).
2022-03-27 09:49:59 +02:00
Robert Adam
677de63f98
Merge PR #5428: MAINT: Add script to sign macOS binaries and packages
ght now we are using osxdist.py to generate a DMG package from scratch.
The script also takes care of signing the content.

However, our mumble-releng repository has had a dedicated script called sign-dmg.py since 2013.
In fact, that's what we have always been using to sign the app bundle.

As we're planning to eventually ditch osxdist.py in favor of CPack's generator, we decided to complete sign-dmg.py.
The script now:

    Takes care of signing all binaries in the bundle in addition to it, effectively replacing osxdist.py.
    Supports single binaries, replacing sign-mach-o.py (which only called codesign() from sign-dmg.py).
    Supports PKG packages.
    Provides a --config option to specify the path to the configuration file. Default: $HOME/.sign_macOS.cfg.
    Provides a --entitlements option to specify the path to the plist file containing the requested capabilities.
    This is mandatory for notarization to succeed. More specifically, the --options runtime codesign parameter is.
    The parameter is not passed if this option is not used because it would cause Mumble to crash upon audio input use.

The name is changed to sign_macOS.py as the script does not only handle DMG packages anymore.
2022-03-26 15:00:16 +01:00
Robert Adam
b3dd3d3f79 CHANGE(server): Remove gRPC implementation
The gRPC implementation never left the experimental state and never
reached a properly stable state to the point where we would feel good
about enabling it by default. In addition to that, there has been no
further attempts at finding and fixing the encountered issues in the
implementation (except #3947 but that was discontinued).

As such we had an essentially unmaintained piece of code in our server
implementation that was known to be buggy and that nobody wanted to fix.
In addition to that the implementation itself could not be considered
very clean or elegant and therefore only represented a few smelly
corners in our code base.

For this reason, we decided to remove the gRPC support entirely from
Mumble (for now).

What we hope to gain by that is:
- Prevent people from building unstable server versions and then coming
to us complaining that it crashed/misbehaved
- Removing (essentially) dead code
- Reduce the RPC implementation complexity

That last piece is crucial: By removing gRPC support we reduce the
amount of supported RPC frameworks to only one (ignoring DBus for now).
Our future plans include a refactoring of how RPC is being handled and
implemented and only having to worry about maintaining compatibility
with one RPC system is much easier than having to worry about two (with
(slightly) different APIs).
Once the RPC implementation has been rewritten, more RPC backends may be
reintroduced and in that process we might investigate adding a proper
gRPC implementation to the code (that then hopefully is more stable than
the current one).

Fixes #4567
Fixes #4197
Fixes #3496
Fixes #3429
Fixes #3265
2022-03-16 08:23:38 +01:00
Robert Adam
f2c8c9a2a6 CHANGE(client): Don't use hard-coded cipher info
PR #1825 introduced a hard-coded list of cipher information in order to
be able to display extended information about the encryption details of
a connection. Keeping this information up-to-date had to be done by
means of a dedicated python script.

The problem with this approach is that
a) hard-coding something like this is never a good idea
b) the updating has been forgotten in the last several years, leading to
outdated information
c) the update script is currently not working anymore

Additionally, the current code only used the extended information to
query the perfect forward secrecy support anyway and that has been
implemented in a different way in
de7b02fb3c3c8756377fd789006465bf2bd86ffd.

The only other thing we used the extended info for, was to obtain the
RFC name of ciphers, but since the list was outdated anyway, we nowadays
probably used the fallback (using the name provided by Qt) more often
than not.

Therefore the hard-coded information has been removed and we now simply
always stick to the cipher name as reported by Qt. If someone
desperately requires the RFC names, they'll have to take it up with Qt
to expose this name in their API as curating a hard-coded list in our
code base is not a viable option.
2022-02-14 08:09:08 +01:00
Felix Singer
b4fe92dee0 MAINT(manpages): Replace murmur with mumble-server
The name `murmur` is deprecated and shouldn't be used anymore, as
decided by the Mumble project. While the server binary already uses the
"new" name, the man pages don't. Thus, rework the man pages so that its
successor `mumble-server` instead `murmur` is used and rename the
filenames of the man pages accordingly.

Also, rename the script `murmur-user-wrapper` to
`mumble-server-user-wrapper`, since also its man page is renamed.

This does not affect the configuration file `murmur.ini`.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2022-02-07 08:32:23 +01:00
Robert Adam
535c2b5c83
Merge PR #5514: CI: scripts/runClangFormat.sh: Use git-ls-files(1)
Current problems:

    bash(1) is not always installed (by default), /bin/sh is
    (Open)BSD find(1) requires at least one path argument, i.e. . which GNU
    find(1) implies
    (Open)BSD find(1) does not support -ipath

git-ls-files(1) benefits:

    gitignore(5) files are honored
    simpler/more powerful patterns (see gitglossary(7) wrt. pathspec)
    runClangFormat.sh can be run from git subdirectories to only format
    selected files (explicitl passing files could be easil implemented)
    works on every system with git(1), no portability issues (see above)

The one "drawback" with git-ls-files(1) is requiring git(1) working tree
rather than a release tarball, but active development requries git
anyway, so that does not seem like a blocker.

Only run xargs(1) if files were listed (-r), since we can now run the
script from subdirectories without source code.
2022-02-06 18:35:27 +01:00
Klemens Nanni
16c94a4dd0 CI: scripts/runClangFormat.sh: Use git-ls-files(1)
Current problems:
- bash(1) is not always installed (by default), /bin/sh is
- (Open)BSD find(1) requires at least one path argument, i.e. `.` which GNU
  find(1) implies
- (Open)BSD find(1) does not support `-ipath`

git-ls-files(1) benefits:
- gitignore(5) files are honored
- simpler/more powerful patterns (see gitglossary(7) wrt. `pathspec`)
- `runClangFormat.sh` can be run from git subdirectories to only format
  selected files (explicitl passing files could be easil implemented)
- works on every system with git(1), no portability issues (see above)

The one "drawback" with git-ls-files(1) is requiring git(1) working tree
rather than a release tarball, but active development requries git
anyway, so that does not seem like a blocker.

Only run xargs(1) if files were listed (`-r`), since we can now run the
script from subdirectories without source code.

Avoid brace expansion (`'**/*'.{cpp,c,hpp,h,cxx,cc}`) to be compatible
with dash.
2022-01-25 11:19:19 +03:00
Robert Adam
d55bb99ce1
Merge PR #5458: MAINT: Remove AUTHORS & CHANGES files 2022-01-24 08:14:56 +01:00
Jonah Brüchert
36e6592603
FIX(client): Improve appstream metadata
This changes the appstream id to info.mumble.Mumble, which is correct in regards to the specification.

Fixes #5441
2022-01-19 19:23:28 +01:00
Robert Adam
e0890d5b04 MAINT: Remove CHANGES file
This file hasn't been updated in ages and is therefore removed.
Consequently the corresponding script is also removed.

The actual changes can be taken from the git commit history or (more
compact) in the changelogs published with out releases.
2022-01-18 12:14:40 +01:00
Robert Adam
1dcf678a68 MAINT: Remove AUTHORS file
This file is not used anymore, since GitHub has a dedicated tab of
listing all contributions. Therefore, we now remove the AUTHORS file in
favor of that.

As a consequence, we also remove the generate-AUTHORS.py script.
2022-01-18 12:12:41 +01:00
Davide Beatrici
e4c3959f36 MAINT: Add script to sign macOS binaries and packages
Right now we are using "osxdist.py" to generate a DMG package from scratch.
The script also takes care of signing the content.

However, our "mumble-releng" repository has had a dedicated script called "sign-dmg.py" since 2013.
In fact, that's what we have always been using to sign the app bundle.

As we're planning to eventually ditch "osxdist.py" in favor of CPack's generator, we decided to complete "sign-dmg.py".
The script now:

- Takes care of signing all binaries in the bundle in addition to it, effectively replacing "osxdist.py".
- Supports single binaries, replacing "sign-mach-o.py" (which only called codesign() from "sign-dmg.py").
- Supports PKG packages.
- Provides a "--config" option to specify the path to the configuration file. Default: "$HOME/.sign_macOS.cfg".
- Provides a "--entitlements" option to specify the path to the plist file containing the requested capabilities.
  This is mandatory for notarization to succeed. More specifically, the "--options runtime" codesign parameter is.
  The parameter is not passed if this option is not used because it would cause Mumble to crash upon audio input use.

The name is changed to "sign_macOS.py" as the script does not only handle DMG packages anymore.
2022-01-18 01:25:14 +01:00
pataquets
36fba0524c MAINT(docker): Set Docker Compose restart policy to 'unless-stopped'. 2022-01-17 13:41:13 +01:00
Robert Adam
c794aabd43 MAINT: Fix password use in build-number script
There were a few typos in the program's logic regarding the handling of
a provided password which rendered its use invalid.
2022-01-11 09:41:18 +01:00
Robert Adam
4f6c89b571 MAINT: Use python3 for mumble-version script 2022-01-09 19:54:49 +01:00
Robert Adam
6de094482d MAINT: Add script to fetch build number 2022-01-09 19:54:49 +01:00
Robert Adam
d100ff1467 MAINT: Update copyright to 2022 2022-01-04 20:17:33 +01:00
Robert Adam
6caa808e67 BUILD: Remove concept of an RELEASE_ID
Having a separate RELEASE_ID just unnecessarily complicates drafting
releases. Plus, now that we are using different build numbers for every
new build anyway, a separate release ID is really not necessary.
2022-01-01 20:38:40 +01:00
TheNamelessWonderer
a056a23f3a
MAINT(docker): Docker Compose UDP Support 2021-12-29 13:12:28 +00:00
TheNamelessWonderer
6fc2c88338 DOCS(docker): Docker compose 2021-12-21 10:36:10 +00:00