[arch-commits] Commit in matterbridge/repos/community-x86_64 (4 files)

Bruno Pagani archange at archlinux.org
Thu Jan 31 15:22:11 UTC 2019


    Date: Thursday, January 31, 2019 @ 15:22:04
  Author: archange
Revision: 428743

archrelease: copy trunk to community-x86_64

Added:
  matterbridge/repos/community-x86_64/PKGBUILD
    (from rev 428742, matterbridge/trunk/PKGBUILD)
  matterbridge/repos/community-x86_64/matterbridge.service
    (from rev 428742, matterbridge/trunk/matterbridge.service)
Deleted:
  matterbridge/repos/community-x86_64/PKGBUILD
  matterbridge/repos/community-x86_64/matterbridge.service

----------------------+
 PKGBUILD             |   76 ++++++++++++++++++++++++++-----------------------
 matterbridge.service |   39 +++++++++++++++++--------
 2 files changed, 68 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-31 15:21:50 UTC (rev 428742)
+++ PKGBUILD	2019-01-31 15:22:04 UTC (rev 428743)
@@ -1,35 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-pkgname=matterbridge
-pkgver=1.12.3
-pkgrel=1
-pkgdesc="Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge"
-arch=('x86_64')
-url="https://github.com/42wim/matterbridge"
-license=('Apache')
-depends=('glibc')
-makedepends=('go-pie' 'git')
-backup=('etc/matterbridge.toml')
-source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz"
-        ${pkgname}-${pkgver}.tar.gz.asc::"${url}/releases/download/v${pkgver}/v${pkgver}.tar.gz.asc"
-        'matterbridge.service')
-sha256sums=('240a76ea0c6d1cd4e671edf2684a606d052236e1140ce3c45582831f01d3ae12'
-            'SKIP'
-            'afb424b918f7108f5efae39afbed5d23d9a2c36710c6e0adbb96c7e5c7835aa3')
-validpgpkeys=('CC7D978417C1AEA1E4CDD7240E41AB4BF4C610B4') # wim <wim at 42.be>
-
-build() {
-  cd ${pkgname}-${pkgver}
-  go build -v \
-    -gcflags "all=-trimpath=${PWD}" \
-    -asmflags "all=-trimpath=${PWD}" \
-    -ldflags "-extldflags ${LDFLAGS}" \
-    -o ${pkgname} .
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  install -Dm755 ${pkgname} -t "${pkgdir}"/usr/bin/
-  install -Dm644 matterbridge.toml.sample "${pkgdir}"/etc/matterbridge.toml
-  install -Dm644 ../${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
-}

Copied: matterbridge/repos/community-x86_64/PKGBUILD (from rev 428742, matterbridge/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-01-31 15:22:04 UTC (rev 428743)
@@ -0,0 +1,41 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=matterbridge
+pkgver=1.13.0
+pkgrel=1
+pkgdesc="Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge"
+arch=('x86_64')
+url="https://github.com/42wim/matterbridge"
+license=('Apache')
+depends=('glibc')
+makedepends=('go-pie' 'git')
+backup=('etc/matterbridge.toml')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz"
+        ${pkgname}-${pkgver}.tar.gz.asc::"${url}/releases/download/v${pkgver}/v${pkgver}.tar.gz.asc"
+        'matterbridge.service')
+sha256sums=('6f66b562035d2cf1f9bb9fe2cacb36327326bb483673c4ddf8a2c7438b2487c9'
+            'SKIP'
+            '89e52388054d3c83199ccbfe8f2dc02a6ae02ec1a2d024460b11464324a1fb9b')
+validpgpkeys=('CC7D978417C1AEA1E4CDD7240E41AB4BF4C610B4') # wim <wim at 42.be>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # https://github.com/golang/go/issues/29278
+  sed -i 's:9PfxPUmasKzeJor9uQTaXLT6WUG/r+vSTmvXxvv3JO4:Y3vG4kINVWNQN8Y6Jdur8uLat7fSLV5n5yLE8n+JbF4:' go.sum
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  go build -v \
+    -gcflags "all=-trimpath=${PWD}" \
+    -asmflags "all=-trimpath=${PWD}" \
+    -ldflags "-extldflags ${LDFLAGS}" \
+    -o ${pkgname} .
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm755 ${pkgname} -t "${pkgdir}"/usr/bin/
+  install -Dm644 matterbridge.toml.sample "${pkgdir}"/etc/matterbridge.toml
+  install -Dm644 ../${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
+}

Deleted: matterbridge.service
===================================================================
--- matterbridge.service	2019-01-31 15:21:50 UTC (rev 428742)
+++ matterbridge.service	2019-01-31 15:22:04 UTC (rev 428743)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Multi-protocols bridge for online communications
-After=network.target
-
-[Service]
-User=nobody
-Group=nobody
-ExecStart=/usr/bin/matterbridge -conf /etc/matterbridge.toml
-Type=simple
-
-[Install]
-WantedBy=multi-user.target

Copied: matterbridge/repos/community-x86_64/matterbridge.service (from rev 428742, matterbridge/trunk/matterbridge.service)
===================================================================
--- matterbridge.service	                        (rev 0)
+++ matterbridge.service	2019-01-31 15:22:04 UTC (rev 428743)
@@ -0,0 +1,27 @@
+[Unit]
+Description=Multi-protocols bridge for online communications
+After=network.target
+
+[Service]
+User=matterbridge
+DynamicUser=yes
+ExecStart=/usr/bin/matterbridge -conf /etc/matterbridge.toml
+Type=simple
+CapabilityBoundingSet=
+NoNewPrivileges=True
+PrivateUsers=true
+PrivateDevices=true
+PrivateTmp=true
+ProtectHome=true
+ProtectSystem=strict
+ProtectControlGroups=yes
+ProtectKernelTunables=true
+ProtectKernelModules=yes
+LockPersonality=true
+MemoryDenyWriteExecute=true
+RestrictRealtime=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list