From 3ca4421dbfa59c805e21dcd4e94c771fdedc295a Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Thu, 2 Dec 2021 12:05:46 -0500 Subject: [PATCH] New package: dendrite-0.6 --- .../files/dendrite-monolith-server/log/run | 1 + .../files/dendrite-monolith-server/run | 5 + .../dendrite-polylith-appservice/log/run | 1 + .../files/dendrite-polylith-appservice/run | 5 + .../files/dendrite-polylith-clientapi/log/run | 1 + .../files/dendrite-polylith-clientapi/run | 5 + .../files/dendrite-polylith-eduserver/log/run | 1 + .../files/dendrite-polylith-eduserver/run | 5 + .../dendrite-polylith-federationapi/log/run | 1 + .../files/dendrite-polylith-federationapi/run | 5 + .../log/run | 1 + .../dendrite-polylith-federationsender/run | 5 + .../files/dendrite-polylith-keyserver/log/run | 1 + .../files/dendrite-polylith-keyserver/run | 5 + .../files/dendrite-polylith-mediaapi/log/run | 1 + .../files/dendrite-polylith-mediaapi/run | 5 + .../dendrite-polylith-roomserver/log/run | 1 + .../files/dendrite-polylith-roomserver/run | 5 + .../log/run | 1 + .../dendrite-polylith-signingkeyserver/run | 5 + .../files/dendrite-polylith-syncapi/log/run | 1 + .../files/dendrite-polylith-syncapi/run | 5 + .../files/dendrite-polylith-userapi/log/run | 1 + .../files/dendrite-polylith-userapi/run | 5 + .../patches/update-sarama-for-32bit.patch | 156 ++++++++++++++++++ srcpkgs/dendrite/template | 45 +++++ 26 files changed, 273 insertions(+) create mode 120000 srcpkgs/dendrite/files/dendrite-monolith-server/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-monolith-server/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-appservice/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-appservice/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-clientapi/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-clientapi/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-eduserver/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-eduserver/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-federationapi/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-federationapi/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-federationsender/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-federationsender/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-keyserver/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-keyserver/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-mediaapi/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-mediaapi/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-roomserver/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-roomserver/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-syncapi/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-syncapi/run create mode 120000 srcpkgs/dendrite/files/dendrite-polylith-userapi/log/run create mode 100755 srcpkgs/dendrite/files/dendrite-polylith-userapi/run create mode 100644 srcpkgs/dendrite/patches/update-sarama-for-32bit.patch create mode 100644 srcpkgs/dendrite/template diff --git a/srcpkgs/dendrite/files/dendrite-monolith-server/log/run b/srcpkgs/dendrite/files/dendrite-monolith-server/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-monolith-server/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-monolith-server/run b/srcpkgs/dendrite/files/dendrite-monolith-server/run new file mode 100755 index 000000000000..e54c91c3bcee --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-monolith-server/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-monolith-server \ + --config /etc/dendrite/dendrite.yaml diff --git a/srcpkgs/dendrite/files/dendrite-polylith-appservice/log/run b/srcpkgs/dendrite/files/dendrite-polylith-appservice/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-appservice/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-appservice/run b/srcpkgs/dendrite/files/dendrite-polylith-appservice/run new file mode 100755 index 000000000000..82d12b7a9c00 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-appservice/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml appservice diff --git a/srcpkgs/dendrite/files/dendrite-polylith-clientapi/log/run b/srcpkgs/dendrite/files/dendrite-polylith-clientapi/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-clientapi/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-clientapi/run b/srcpkgs/dendrite/files/dendrite-polylith-clientapi/run new file mode 100755 index 000000000000..4407645fcff6 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-clientapi/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml clientapi diff --git a/srcpkgs/dendrite/files/dendrite-polylith-eduserver/log/run b/srcpkgs/dendrite/files/dendrite-polylith-eduserver/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-eduserver/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-eduserver/run b/srcpkgs/dendrite/files/dendrite-polylith-eduserver/run new file mode 100755 index 000000000000..0ad5ceec923f --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-eduserver/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml eduserver diff --git a/srcpkgs/dendrite/files/dendrite-polylith-federationapi/log/run b/srcpkgs/dendrite/files/dendrite-polylith-federationapi/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-federationapi/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-federationapi/run b/srcpkgs/dendrite/files/dendrite-polylith-federationapi/run new file mode 100755 index 000000000000..478f1bb44ccf --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-federationapi/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml federationapi diff --git a/srcpkgs/dendrite/files/dendrite-polylith-federationsender/log/run b/srcpkgs/dendrite/files/dendrite-polylith-federationsender/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-federationsender/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-federationsender/run b/srcpkgs/dendrite/files/dendrite-polylith-federationsender/run new file mode 100755 index 000000000000..b23e534b1257 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-federationsender/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml federationsender diff --git a/srcpkgs/dendrite/files/dendrite-polylith-keyserver/log/run b/srcpkgs/dendrite/files/dendrite-polylith-keyserver/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-keyserver/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-keyserver/run b/srcpkgs/dendrite/files/dendrite-polylith-keyserver/run new file mode 100755 index 000000000000..c6f299533402 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-keyserver/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml keyserver diff --git a/srcpkgs/dendrite/files/dendrite-polylith-mediaapi/log/run b/srcpkgs/dendrite/files/dendrite-polylith-mediaapi/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-mediaapi/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-mediaapi/run b/srcpkgs/dendrite/files/dendrite-polylith-mediaapi/run new file mode 100755 index 000000000000..67f271cc77b3 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-mediaapi/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml mediaapi diff --git a/srcpkgs/dendrite/files/dendrite-polylith-roomserver/log/run b/srcpkgs/dendrite/files/dendrite-polylith-roomserver/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-roomserver/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-roomserver/run b/srcpkgs/dendrite/files/dendrite-polylith-roomserver/run new file mode 100755 index 000000000000..b0197ce5b328 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-roomserver/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml roomserver diff --git a/srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/log/run b/srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/run b/srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/run new file mode 100755 index 000000000000..95e4f68fc5f6 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-signingkeyserver/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml signingkeyserver diff --git a/srcpkgs/dendrite/files/dendrite-polylith-syncapi/log/run b/srcpkgs/dendrite/files/dendrite-polylith-syncapi/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-syncapi/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-syncapi/run b/srcpkgs/dendrite/files/dendrite-polylith-syncapi/run new file mode 100755 index 000000000000..3a0348c957ae --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-syncapi/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml syncapi diff --git a/srcpkgs/dendrite/files/dendrite-polylith-userapi/log/run b/srcpkgs/dendrite/files/dendrite-polylith-userapi/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-userapi/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/dendrite/files/dendrite-polylith-userapi/run b/srcpkgs/dendrite/files/dendrite-polylith-userapi/run new file mode 100755 index 000000000000..3cf98cf06c44 --- /dev/null +++ b/srcpkgs/dendrite/files/dendrite-polylith-userapi/run @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/lib/dendrite +exec 2>&1 +exec chpst -u _dendrite:_dendrite dendrite-polylith-multi \ + --config /etc/dendrite/dendrite.yaml userapi diff --git a/srcpkgs/dendrite/patches/update-sarama-for-32bit.patch b/srcpkgs/dendrite/patches/update-sarama-for-32bit.patch new file mode 100644 index 000000000000..51f4df060d45 --- /dev/null +++ b/srcpkgs/dendrite/patches/update-sarama-for-32bit.patch @@ -0,0 +1,156 @@ +From 4281976df9d08c87d367707e6bba437bc0e72745 Mon Sep 17 00:00:00 2001 +From: Neil Alexander +Date: Fri, 28 Jan 2022 17:31:54 +0000 +Subject: [PATCH] Update Sarama to fix 32-bit builds (#2120) + +--- + go.mod | 2 +- + go.sum | 30 ++++++++++++++++++++++++------ + 2 files changed, 25 insertions(+), 7 deletions(-) + +diff --git a/go.mod b/go.mod +index 5ddcf980b0..01cff763ce 100644 +--- a/go.mod ++++ b/go.mod +@@ -12,7 +12,7 @@ require ( + github.com/MFAshby/stdemuxerhook v1.0.0 + github.com/Masterminds/semver/v3 v3.1.1 + github.com/S7evinK/saramajetstream v0.0.0-20210709110708-de6efc8c4a32 +- github.com/Shopify/sarama v1.29.0 ++ github.com/Shopify/sarama v1.31.0 + github.com/codeclysm/extract v2.2.0+incompatible + github.com/containerd/containerd v1.5.9 // indirect + github.com/docker/docker v20.10.12+incompatible +diff --git a/go.sum b/go.sum +index 3ef5a54aa4..f047542958 100644 +--- a/go.sum ++++ b/go.sum +@@ -104,10 +104,13 @@ github.com/S7evinK/saramajetstream v0.0.0-20210709110708-de6efc8c4a32 h1:i3fOph9 + github.com/S7evinK/saramajetstream v0.0.0-20210709110708-de6efc8c4a32/go.mod h1:ne+jkLlzafIzaE4Q0Ze81T27dNgXe1wxovVEoAtSHTc= + github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= + github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ= +-github.com/Shopify/sarama v1.29.0 h1:ARid8o8oieau9XrHI55f/L3EoRAhm9px6sonbD7yuUE= + github.com/Shopify/sarama v1.29.0/go.mod h1:2QpgD79wpdAESqNQMxNc0KYMkycd4slxGdV3TWSVqrU= ++github.com/Shopify/sarama v1.31.0 h1:gObk7jCPutDxf+E6GA5G21noAZsi1SvP9ftCQYqpzus= ++github.com/Shopify/sarama v1.31.0/go.mod h1:BeW3gXRc/CxgAsrSly2RE9nIXUfC9ezb7QHBPVhvzjI= + github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= + github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= ++github.com/Shopify/toxiproxy/v2 v2.3.0 h1:62YkpiP4bzdhKMH+6uC5E95y608k3zDwdzuBMsnn3uQ= ++github.com/Shopify/toxiproxy/v2 v2.3.0/go.mod h1:KvQTtB6RjCJY4zqNJn7C7JDFgsG5uoHYDirfUfpIm0c= + github.com/VividCortex/ewma v1.1.1/go.mod h1:2Tkkvm3sRDVXaiyucHiACn4cqf7DpdyLvmxzcbUokwA= + github.com/VividCortex/ewma v1.2.0/go.mod h1:nz4BbCtbLyFDeC9SUHbtcT5644juEuWfUAUnGx7j5l4= + github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= +@@ -381,8 +384,9 @@ github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHqu + github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= + github.com/frankban/quicktest v1.0.0/go.mod h1:R98jIehRai+d1/3Hv2//jOVCTJhW1VBavT6B6CuGq2k= + github.com/frankban/quicktest v1.7.2/go.mod h1:jaStnuzAqU1AJdCO0l53JDCJrVDKcS03DbaAcR7Ks/o= +-github.com/frankban/quicktest v1.11.3 h1:8sXhOn0uLys67V8EsXLc6eszDs8VXWxL3iRvebPhedY= + github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= ++github.com/frankban/quicktest v1.14.0 h1:+cqqvzZV87b4adx/5ayVOaYZ2CrvM4ejQvUdBzPPUss= ++github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= + github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= + github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= + github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +@@ -494,8 +498,9 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS + github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= + github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= + github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +-github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA= + github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= ++github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= ++github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= + github.com/gologme/log v1.2.0/go.mod h1:gq31gQ8wEHkR+WekdWsqDuf8pXTUZA9BnnzTuPz1Y9U= + github.com/gologme/log v1.3.0 h1:l781G4dE+pbigClDSDzSaaYKtiueHCILUa/qSDsmHAo= + github.com/gologme/log v1.3.0/go.mod h1:yKT+DvIPdDdDoPtqFrFxheooyVmoqi0BAsw+erN3wA4= +@@ -512,8 +517,9 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ + github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= + github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= + github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +-github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= + github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= ++github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= ++github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= + github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= + github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= + github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +@@ -747,6 +753,7 @@ github.com/klauspost/compress v1.11.13/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdY + github.com/klauspost/compress v1.12.2/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= + github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= + github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= ++github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= + github.com/klauspost/compress v1.14.2 h1:S0OHlFk/Gbon/yauFJ4FfJJF5V0fc5HbBTJazi28pRw= + github.com/klauspost/compress v1.14.2/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= + github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +@@ -758,8 +765,9 @@ github.com/koron/go-ssdp v0.0.0-20191105050749-2e1c40ed0b5d/go.mod h1:5Ky9EC2xfo + github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= + github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= + github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +-github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= + github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= ++github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= ++github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= + github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= + github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= + github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= +@@ -1246,8 +1254,9 @@ github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/9 + github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= + github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= + github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= +-github.com/pierrec/lz4 v2.6.0+incompatible h1:Ix9yFKn1nSPBLFl/yZknTp8TU5G4Ps0JDmguYK6iH1A= + github.com/pierrec/lz4 v2.6.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= ++github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= ++github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= + github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= + github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= + github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +@@ -1307,6 +1316,8 @@ github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJ + github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= + github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= + github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= ++github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= ++github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= + github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= + github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= + github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +@@ -1426,6 +1437,7 @@ github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ + github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= + github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= + github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= ++github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= + github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= + github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= + github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w= +@@ -1456,6 +1468,9 @@ github.com/willf/bitset v1.1.9/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPyS + github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= + github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= + github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= ++github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= ++github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= ++github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= + github.com/xdg/scram v1.0.3/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= + github.com/xdg/stringprep v1.0.3/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= + github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= +@@ -1655,6 +1670,7 @@ golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qx + golang.org/x/net v0.0.0-20210927181540-4e4d966f7476/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= + golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= + golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= ++golang.org/x/net v0.0.0-20220105145211-5b0dc2dfae98/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= + golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk= + golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= + golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +@@ -1788,6 +1804,7 @@ golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3 + golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= + golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= + golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= ++golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= + golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= + golang.org/x/text v0.3.7-0.20210503195748-5c7c50ebbd4f/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= + golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +@@ -2025,6 +2042,7 @@ gopkg.in/yaml.v2 v2.0.0-20170712054546-1be3d31502d6/go.mod h1:JAlM8MvJe8wmxCU4Bl + gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= + gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= + gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= ++gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= + gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= + gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= + gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/srcpkgs/dendrite/template b/srcpkgs/dendrite/template new file mode 100644 index 000000000000..861513472454 --- /dev/null +++ b/srcpkgs/dendrite/template @@ -0,0 +1,45 @@ +# Template file for 'dendrite' +pkgname=dendrite +version=0.6 +revision=1 +build_style=go +go_import_path="github.com/matrix-org/dendrite" +go_package="./cmd/create-account ./cmd/dendrite-monolith-server + ./cmd/dendrite-polylith-multi ./cmd/generate-config ./cmd/generate-keys" +short_desc="Dendrite is a second-generation Matrix homeserver written in Go" +maintainer="Joel Beckmeyer " +license="Apache-2.0" +homepage="https://matrix.org/docs/projects/server/dendrite" +distfiles="https://github.com/matrix-org/dendrite/archive/v${version}.tar.gz" +checksum=3c7ce45cdb6ec9e03ef2d1514ed0e2d585e387e43bc7dc61d277207a5f4f7e15 + +system_accounts="_dendrite" +_dendrite_homedir="/var/lib/dendrite" + +make_dirs=" + /var/lib/dendrite 0700 _dendrite _dendrite + /var/log/dendrite 0755 _dendrite _dendrite + /etc/dendrite 0755 _dendrite _dendrite" + +pre_configure() { + vsed -e 's,\./logs,/var/log/dendrite,' \ + -e 's,: matrix_key.pem,: /etc/dendrite/matrix_key.pem,' \ + -i dendrite-config.yaml +} + +post_install() { + vsconf dendrite-config.yaml dendrite.yaml + + vsv dendrite-monolith-server + vsv dendrite-polylith-appservice + vsv dendrite-polylith-clientapi + vsv dendrite-polylith-eduserver + vsv dendrite-polylith-federationapi + vsv dendrite-polylith-federationsender + vsv dendrite-polylith-keyserver + vsv dendrite-polylith-mediaapi + vsv dendrite-polylith-roomserver + vsv dendrite-polylith-signingkeyserver + vsv dendrite-polylith-syncapi + vsv dendrite-polylith-userapi +}