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

Jelle van der Waa jelle at archlinux.org
Mon Aug 22 18:06:44 UTC 2016


    Date: Monday, August 22, 2016 @ 18:06:43
  Author: jelle
Revision: 187325

archrelease: copy trunk to community-i686, community-x86_64

Added:
  mosquitto/repos/community-i686/
  mosquitto/repos/community-i686/PKGBUILD
    (from rev 187324, mosquitto/trunk/PKGBUILD)
  mosquitto/repos/community-i686/mosquitto.install
    (from rev 187324, mosquitto/trunk/mosquitto.install)
  mosquitto/repos/community-i686/mosquitto.service
    (from rev 187324, mosquitto/trunk/mosquitto.service)
  mosquitto/repos/community-x86_64/
  mosquitto/repos/community-x86_64/PKGBUILD
    (from rev 187324, mosquitto/trunk/PKGBUILD)
  mosquitto/repos/community-x86_64/mosquitto.install
    (from rev 187324, mosquitto/trunk/mosquitto.install)
  mosquitto/repos/community-x86_64/mosquitto.service
    (from rev 187324, mosquitto/trunk/mosquitto.service)

------------------------------------+
 community-i686/PKGBUILD            |   40 +++++++++++++++++++++++++++++++++++
 community-i686/mosquitto.install   |    4 +++
 community-i686/mosquitto.service   |   12 ++++++++++
 community-x86_64/PKGBUILD          |   40 +++++++++++++++++++++++++++++++++++
 community-x86_64/mosquitto.install |    4 +++
 community-x86_64/mosquitto.service |   12 ++++++++++
 6 files changed, 112 insertions(+)

Copied: mosquitto/repos/community-i686/PKGBUILD (from rev 187324, mosquitto/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-08-22 18:06:43 UTC (rev 187325)
@@ -0,0 +1,40 @@
+# 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.4.10
+pkgrel=1
+pkgdesc="An Open Source MQTT v3.1/v3.1.1 Broker"
+arch=('i686' 'x86_64')
+url="http://mosquitto.org/"
+depends=('openssl' 'c-ares' 'libwebsockets')
+makedepends=('python' 'docbook-xsl' 'c-ares')
+license=('BSD')
+source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc} "$pkgname.service" "$pkgname.install")
+install=$pkgname.install
+backup=("etc/$pkgname/$pkgname.conf")
+sha256sums=('437648d68a4a781dd8d913814cd5451f59ab4a5fcf84cccaf7c36e6a07459770'
+            'SKIP'
+            '3480aa1a9da543230fbbb0e7e11cde9db2736e486cd024fbd505f927188fa3a2'
+            '43e65aef96a8cab33b62e66bdaa18c071ad20d9654f9e6a4af5716e4f4daabe6')
+validpgpkeys=('A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7')
+
+build() {
+  cd "$pkgname-$pkgver"
+  # FIX upstream by making SBINDIR=foo or use CMAKE
+  sed -i 's|/sbin|/bin|g' src/Makefile
+  make WITH_WEBSOCKETS=yes
+}
+
+package() {
+  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"
+}

Copied: mosquitto/repos/community-i686/mosquitto.install (from rev 187324, mosquitto/trunk/mosquitto.install)
===================================================================
--- community-i686/mosquitto.install	                        (rev 0)
+++ community-i686/mosquitto.install	2016-08-22 18:06:43 UTC (rev 187325)
@@ -0,0 +1,4 @@
+post_install() {
+  getent group mosquitto &> /dev/null || groupadd -g 567 mosquitto > /dev/null
+  getent passwd mosquitto &> /dev/null || useradd -u 567 -c 'Mosquitto MQTT Broker daemon' -d /etc/mosquitto -s /bin/false -g mosquitto mosquitto > /dev/null
+}

Copied: mosquitto/repos/community-i686/mosquitto.service (from rev 187324, mosquitto/trunk/mosquitto.service)
===================================================================
--- community-i686/mosquitto.service	                        (rev 0)
+++ community-i686/mosquitto.service	2016-08-22 18:06:43 UTC (rev 187325)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Mosquitto MQTT Broker daemon
+Requires=network.target
+
+[Service]
+ExecStart=/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.conf
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+

Copied: mosquitto/repos/community-x86_64/PKGBUILD (from rev 187324, mosquitto/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-08-22 18:06:43 UTC (rev 187325)
@@ -0,0 +1,40 @@
+# 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.4.10
+pkgrel=1
+pkgdesc="An Open Source MQTT v3.1/v3.1.1 Broker"
+arch=('i686' 'x86_64')
+url="http://mosquitto.org/"
+depends=('openssl' 'c-ares' 'libwebsockets')
+makedepends=('python' 'docbook-xsl' 'c-ares')
+license=('BSD')
+source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc} "$pkgname.service" "$pkgname.install")
+install=$pkgname.install
+backup=("etc/$pkgname/$pkgname.conf")
+sha256sums=('437648d68a4a781dd8d913814cd5451f59ab4a5fcf84cccaf7c36e6a07459770'
+            'SKIP'
+            '3480aa1a9da543230fbbb0e7e11cde9db2736e486cd024fbd505f927188fa3a2'
+            '43e65aef96a8cab33b62e66bdaa18c071ad20d9654f9e6a4af5716e4f4daabe6')
+validpgpkeys=('A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7')
+
+build() {
+  cd "$pkgname-$pkgver"
+  # FIX upstream by making SBINDIR=foo or use CMAKE
+  sed -i 's|/sbin|/bin|g' src/Makefile
+  make WITH_WEBSOCKETS=yes
+}
+
+package() {
+  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"
+}

Copied: mosquitto/repos/community-x86_64/mosquitto.install (from rev 187324, mosquitto/trunk/mosquitto.install)
===================================================================
--- community-x86_64/mosquitto.install	                        (rev 0)
+++ community-x86_64/mosquitto.install	2016-08-22 18:06:43 UTC (rev 187325)
@@ -0,0 +1,4 @@
+post_install() {
+  getent group mosquitto &> /dev/null || groupadd -g 567 mosquitto > /dev/null
+  getent passwd mosquitto &> /dev/null || useradd -u 567 -c 'Mosquitto MQTT Broker daemon' -d /etc/mosquitto -s /bin/false -g mosquitto mosquitto > /dev/null
+}

Copied: mosquitto/repos/community-x86_64/mosquitto.service (from rev 187324, mosquitto/trunk/mosquitto.service)
===================================================================
--- community-x86_64/mosquitto.service	                        (rev 0)
+++ community-x86_64/mosquitto.service	2016-08-22 18:06:43 UTC (rev 187325)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Mosquitto MQTT Broker daemon
+Requires=network.target
+
+[Service]
+ExecStart=/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.conf
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+



More information about the arch-commits mailing list