[arch-commits] Commit in mosquitto/repos (4 files)
David Runge
dvzrv at archlinux.org
Fri Sep 11 12:55:26 UTC 2020
Date: Friday, September 11, 2020 @ 12:55:25
Author: dvzrv
Revision: 702791
archrelease: copy trunk to community-staging-x86_64
Added:
mosquitto/repos/community-staging-x86_64/
mosquitto/repos/community-staging-x86_64/PKGBUILD
(from rev 702790, mosquitto/trunk/PKGBUILD)
mosquitto/repos/community-staging-x86_64/mosquitto.service
(from rev 702790, mosquitto/trunk/mosquitto.service)
mosquitto/repos/community-staging-x86_64/sysusers_mosquitto.conf
(from rev 702790, 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 702790, mosquitto/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-09-11 12:55:25 UTC (rev 702791)
@@ -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=1.6.11
+pkgrel=2
+pkgdesc="An Open Source MQTT v3.1/v3.1.1 Broker"
+arch=('x86_64')
+url="https://mosquitto.org/"
+depends=('openssl' 'c-ares' 'libutil-linux')
+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=('b934f5442a588688dccd8459bfe86f6d4eac77934b0eadb3fba14c8a028d233af2136b6694ad9fa4de37ab4ab56671f4ab787f2cd631e1790064254529745b4a'
+ '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 702790, mosquitto/trunk/mosquitto.service)
===================================================================
--- community-staging-x86_64/mosquitto.service (rev 0)
+++ community-staging-x86_64/mosquitto.service 2020-09-11 12:55:25 UTC (rev 702791)
@@ -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 702790, mosquitto/trunk/sysusers_mosquitto.conf)
===================================================================
--- community-staging-x86_64/sysusers_mosquitto.conf (rev 0)
+++ community-staging-x86_64/sysusers_mosquitto.conf 2020-09-11 12:55:25 UTC (rev 702791)
@@ -0,0 +1 @@
+u mosquitto - "Mosquitto MQTT Broker" /var/empty
More information about the arch-commits
mailing list