The Synapse R2 plugin, the bridge patches and their build recipes are available under the licenses NOTICE.md gives for each (AGPL-3.0, MPL-2.0 or MIT), without warranty.
Pinned upstream sources (apply the published patches when building):