[arch-commits] Commit in matterbridge/repos/community-x86_64 (5 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Mon Aug 22 11:29:37 UTC 2022
Date: Monday, August 22, 2022 @ 11:29:37
Author: alerque
Revision: 1274668
archrelease: copy trunk to community-x86_64
Added:
matterbridge/repos/community-x86_64/PKGBUILD
(from rev 1274667, matterbridge/trunk/PKGBUILD)
matterbridge/repos/community-x86_64/keys/
matterbridge/repos/community-x86_64/matterbridge.service
(from rev 1274667, matterbridge/trunk/matterbridge.service)
Deleted:
matterbridge/repos/community-x86_64/PKGBUILD
matterbridge/repos/community-x86_64/matterbridge.service
----------------------+
PKGBUILD | 94 +++++++++++++++++++++++++------------------------
matterbridge.service | 78 ++++++++++++++++++++--------------------
2 files changed, 87 insertions(+), 85 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-22 11:29:25 UTC (rev 1274667)
+++ PKGBUILD 2022-08-22 11:29:37 UTC (rev 1274668)
@@ -1,46 +0,0 @@
-# Maintainer: Caleb Macalennan <caleb at alerque.com>
-# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
-# Contributor: Bruno Pagani <archange at archlinux.org>
-
-pkgname=matterbridge
-pkgver=1.25.2
-pkgrel=1
-pkgdesc='Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge'
-arch=(x86_64)
-url="https://github.com/42wim/$pkgname"
-license=(Apache GPL3)
-depends=(glibc
- gcc-libs)
-makedepends=(go
- git)
-backup=("etc/$pkgname.toml")
-_archive="$pkgname-$pkgver"
-source=("$url/archive/v$pkgver/$_archive.tar.gz"
- "$_archive.tar.gz.asc::$url/releases/download/v$pkgver/v$pkgver.tar.gz.asc"
- "$pkgname.service")
-sha256sums=('e078a4776b1082230ea0b8146613679c23d3b0d322706c987261df987a04bfc5'
- 'SKIP'
- '338171f409a0e55589b86959e37871d61d21dc89cec6b212b552eaf4e516e069')
-validpgpkeys=(CC7D978417C1AEA1E4CDD7240E41AB4BF4C610B4) # wim <wim at 42.be>
-
-prepare() {
- cd "$_archive"
- go mod vendor
-}
-
-build() {
- cd "$_archive"
- export CGO_CPPFLAGS="$CPPFLAGS"
- export CGO_CFLAGS="$CFLAGS"
- export CGO_CXXFLAGS="$CXXFLAGS"
- export CGO_LDFLAGS="$LDFLAGS"
- export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"
- go build -tags whatsappmulti -v -o "$pkgname" .
-}
-
-package() {
- cd "$_archive"
- install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
- install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" "../$pkgname.service"
- install -Dm0600 matterbridge.toml.sample "$pkgdir/etc/$pkgname.toml"
-}
Copied: matterbridge/repos/community-x86_64/PKGBUILD (from rev 1274667, matterbridge/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-22 11:29:37 UTC (rev 1274668)
@@ -0,0 +1,48 @@
+# Maintainer: Caleb Macalennan <caleb at alerque.com>
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+# Contributor: Bruno Pagani <archange at archlinux.org>
+
+pkgname=matterbridge
+pkgver=1.25.2
+pkgrel=2
+pkgdesc='Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge'
+arch=(x86_64)
+url="https://github.com/42wim/$pkgname"
+license=(Apache GPL3)
+depends=(glibc
+ gcc-libs)
+makedepends=(go
+ git)
+backup=("etc/$pkgname.toml")
+_archive="$pkgname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz"
+ "$_archive.tar.gz.asc::$url/releases/download/v$pkgver/v$pkgver.tar.gz.asc"
+ "$pkgname.service")
+sha256sums=('e078a4776b1082230ea0b8146613679c23d3b0d322706c987261df987a04bfc5'
+ 'SKIP'
+ '338171f409a0e55589b86959e37871d61d21dc89cec6b212b552eaf4e516e069')
+validpgpkeys=(CC7D978417C1AEA1E4CDD7240E41AB4BF4C610B4) # wim <wim at 42.be>
+
+prepare() {
+ cd "$_archive"
+ go mod vendor
+}
+
+build() {
+ cd "$_archive"
+ export CGO_CPPFLAGS="$CPPFLAGS"
+ export CGO_CFLAGS="$CFLAGS"
+ export CGO_CXXFLAGS="$CXXFLAGS"
+ # export CGO_LDFLAGS="$LDFLAGS"
+ # See https://bugs.archlinux.org/task/75560
+ export CGO_LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"
+ go build -tags whatsappmulti -v -o "$pkgname" .
+}
+
+package() {
+ cd "$_archive"
+ install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
+ install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" "../$pkgname.service"
+ install -Dm0600 matterbridge.toml.sample "$pkgdir/etc/$pkgname.toml"
+}
Deleted: matterbridge.service
===================================================================
--- matterbridge.service 2022-08-22 11:29:25 UTC (rev 1274667)
+++ matterbridge.service 2022-08-22 11:29:37 UTC (rev 1274668)
@@ -1,39 +0,0 @@
-[Unit]
-Description=Multi-protocols bridge for online communications
-After=network-online.target
-
-[Service]
-User=matterbridge
-DynamicUser=yes
-StateDirectory=matterbridge
-ExecStartPre=+/usr/bin/install --owner=matterbridge --mode=400 -T /etc/matterbridge.toml %S/matterbridge/matterbridge.toml
-ExecStart=/usr/bin/matterbridge -conf %S/matterbridge/matterbridge.toml
-Restart=on-failure
-RestartSec=5s
-Type=simple
-CapabilityBoundingSet=
-AmbientCapabilities=
-NoNewPrivileges=true
-#SecureBits=
-ProtectSystem=strict
-ProtectHome=true
-PrivateTmp=true
-PrivateDevices=true
-PrivateNetwork=false
-PrivateUsers=true
-ProtectHostname=true
-ProtectClock=true
-ProtectKernelTunables=true
-ProtectKernelModules=true
-ProtectKernelLogs=true
-ProtectControlGroups=true
-RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
-RestrictNamespaces=true
-LockPersonality=true
-RestrictRealtime=true
-RestrictSUIDSGID=true
-SystemCallFilter=@system-service
-SystemCallArchitectures=native
-
-[Install]
-WantedBy=multi-user.target
Copied: matterbridge/repos/community-x86_64/matterbridge.service (from rev 1274667, matterbridge/trunk/matterbridge.service)
===================================================================
--- matterbridge.service (rev 0)
+++ matterbridge.service 2022-08-22 11:29:37 UTC (rev 1274668)
@@ -0,0 +1,39 @@
+[Unit]
+Description=Multi-protocols bridge for online communications
+After=network-online.target
+
+[Service]
+User=matterbridge
+DynamicUser=yes
+StateDirectory=matterbridge
+ExecStartPre=+/usr/bin/install --owner=matterbridge --mode=400 -T /etc/matterbridge.toml %S/matterbridge/matterbridge.toml
+ExecStart=/usr/bin/matterbridge -conf %S/matterbridge/matterbridge.toml
+Restart=on-failure
+RestartSec=5s
+Type=simple
+CapabilityBoundingSet=
+AmbientCapabilities=
+NoNewPrivileges=true
+#SecureBits=
+ProtectSystem=strict
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+PrivateNetwork=false
+PrivateUsers=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+RestrictNamespaces=true
+LockPersonality=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallFilter=@system-service
+SystemCallArchitectures=native
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list