[arch-commits] Commit in mosquitto/repos (4 files)

Jelle van der Waa jelle at archlinux.org
Sun Apr 25 21:12:11 UTC 2021


    Date: Sunday, April 25, 2021 @ 21:12:11
  Author: jelle
Revision: 924441

archrelease: copy trunk to community-staging-x86_64

Added:
  mosquitto/repos/community-staging-x86_64/
  mosquitto/repos/community-staging-x86_64/PKGBUILD
    (from rev 924440, mosquitto/trunk/PKGBUILD)
  mosquitto/repos/community-staging-x86_64/mosquitto.service
    (from rev 924440, mosquitto/trunk/mosquitto.service)
  mosquitto/repos/community-staging-x86_64/sysusers_mosquitto.conf
    (from rev 924440, mosquitto/trunk/sysusers_mosquitto.conf)

-------------------------+
 PKGBUILD                |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 mosquitto.service       |   18 +++++++++++++++++
 sysusers_mosquitto.conf |    1 
 3 files changed, 67 insertions(+)

Copied: mosquitto/repos/community-staging-x86_64/PKGBUILD (from rev 924440, mosquitto/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-04-25 21:12:11 UTC (rev 924441)
@@ -0,0 +1,48 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Radek Podgorny <radek at podgorny.cz>
+# Contributor: Dan Anderson <dan-anderson at cox dptnet>
+
+pkgname=mosquitto
+pkgver=2.0.10
+pkgrel=2
+pkgdesc="An Open Source MQTT Broker"
+arch=('x86_64')
+url="https://mosquitto.org/"
+depends=('openssl' 'c-ares' 'util-linux-libs' 'cjson')
+makedepends=('docbook-xsl' 'c-ares' 'libwebsockets')
+license=('BSD')
+source=(https://mosquitto.org/files/source/mosquitto-$pkgver.tar.gz{,.asc}
+        "$pkgname.service"
+        "sysusers_mosquitto.conf")
+backup=("etc/$pkgname/$pkgname.conf")
+sha512sums=('c356bfe5dc9317e1943cf14c20ae52af544aefc0138349abd3be5001032ce63579aa059dd62901a0802f08d059a9dc29b6fbcba852e3c4cd702189433ceac174'
+            'SKIP'
+            '7dd86bb454e6df45e609fc3cb53d3cae8cc1c36d459b1e23be9ab10c9770c7a406fbd34e47703b0db3056f4bc8550994666b8a398d4506f786bf274e4618b7e9'
+            '21848b890c2db258138795ec21a009e022b6a8369217eb31939f976ad434229dd9f61d33e8109ade7bc001e8668e9d42b59c1ab079753860417961e102356f0e')
+validpgpkeys=('A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # FIX upstream by making SBINDIR=foo or use CMAKE
+  sed -i 's|/sbin|/bin|g' src/Makefile
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  make WITH_WEBSOCKETS=yes
+}
+
+package() {
+  depends+=('libwebsockets.so')
+  cd "$pkgname-$pkgver"
+
+  make prefix=/usr DESTDIR="$pkgdir/" install
+
+  # Shipped in git.
+  install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  mv "$pkgdir/etc/$pkgname/$pkgname.conf.example" "$pkgdir/etc/$pkgname/$pkgname.conf"
+
+  install -D -m644 "${srcdir}"/sysusers_mosquitto.conf "${pkgdir}"/usr/lib/sysusers.d/mosquitto.conf
+}

Copied: mosquitto/repos/community-staging-x86_64/mosquitto.service (from rev 924440, mosquitto/trunk/mosquitto.service)
===================================================================
--- community-staging-x86_64/mosquitto.service	                        (rev 0)
+++ community-staging-x86_64/mosquitto.service	2021-04-25 21:12:11 UTC (rev 924441)
@@ -0,0 +1,18 @@
+[Unit]
+Description=Mosquitto MQTT Broker daemon
+Requires=network.target
+
+[Service]
+User=mosquitto
+ExecStart=/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.conf
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+
+NoNewPrivileges=yes
+ProtectSystem=full
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+
+[Install]
+WantedBy=multi-user.target

Copied: mosquitto/repos/community-staging-x86_64/sysusers_mosquitto.conf (from rev 924440, mosquitto/trunk/sysusers_mosquitto.conf)
===================================================================
--- community-staging-x86_64/sysusers_mosquitto.conf	                        (rev 0)
+++ community-staging-x86_64/sysusers_mosquitto.conf	2021-04-25 21:12:11 UTC (rev 924441)
@@ -0,0 +1 @@
+u mosquitto - "Mosquitto MQTT Broker" /var/empty



More information about the arch-commits mailing list