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

Levente Polyak anthraxx at gemini.archlinux.org
Fri May 6 23:18:48 UTC 2022


    Date: Friday, May 6, 2022 @ 23:18:47
  Author: anthraxx
Revision: 1196091

archrelease: copy trunk to community-testing-any

Added:
  rabbitmq/repos/community-testing-any/
  rabbitmq/repos/community-testing-any/PKGBUILD
    (from rev 1196090, rabbitmq/trunk/PKGBUILD)
  rabbitmq/repos/community-testing-any/rabbitmq-customize-systemd-service.patch
    (from rev 1196090, rabbitmq/trunk/rabbitmq-customize-systemd-service.patch)
  rabbitmq/repos/community-testing-any/rabbitmq-env.conf
    (from rev 1196090, rabbitmq/trunk/rabbitmq-env.conf)
  rabbitmq/repos/community-testing-any/rabbitmq.install
    (from rev 1196090, rabbitmq/trunk/rabbitmq.install)
  rabbitmq/repos/community-testing-any/rabbitmq.logrotate
    (from rev 1196090, rabbitmq/trunk/rabbitmq.logrotate)
  rabbitmq/repos/community-testing-any/rabbitmq.sysusers
    (from rev 1196090, rabbitmq/trunk/rabbitmq.sysusers)
  rabbitmq/repos/community-testing-any/rabbitmq.tmpfiles
    (from rev 1196090, rabbitmq/trunk/rabbitmq.tmpfiles)

------------------------------------------+
 PKGBUILD                                 |   89 +++++++++++++++++++++++++++++
 rabbitmq-customize-systemd-service.patch |   53 +++++++++++++++++
 rabbitmq-env.conf                        |    3 
 rabbitmq.install                         |    9 ++
 rabbitmq.logrotate                       |    6 +
 rabbitmq.sysusers                        |    1 
 rabbitmq.tmpfiles                        |    2 
 7 files changed, 163 insertions(+)

Copied: rabbitmq/repos/community-testing-any/PKGBUILD (from rev 1196090, rabbitmq/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-05-06 23:18:47 UTC (rev 1196091)
@@ -0,0 +1,89 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Marcello "mereghost" Rocha <marcello.rocha at gmail.com>
+# Contributor: Gianni Vialetto <gianni at rootcube dot net>
+# Contributor: Stefan J. Betz <info at stefan-betz dot net>
+# Contributor: p2k <Patrick dot Schneider at uni-ulm dot de>
+# Contributor: Jonathan Liu <net147 at gmail.com>
+# Contributor: Christopher Grebs <cg at webshox.org>
+# Contributor: mutantmonkey
+
+pkgbase=rabbitmq
+pkgname=(rabbitmq rabbitmqadmin)
+pkgver=3.10.0
+pkgrel=1
+pkgdesc='Highly reliable and performant enterprise messaging implementation of AMQP written in Erlang/OTP'
+url='https://rabbitmq.com'
+arch=('any')
+license=('MPL')
+makedepends=(
+  'zip' 'unzip' 'libxslt' 'xmlto' 'systemd' 'elixir' 'python' 'python-simplejson' 'rsync'
+  'util-linux' 'inetutils' 'erlang-nox' 'socat'
+)
+options=('!makeflags')
+source=(https://github.com/rabbitmq/rabbitmq-server/releases/download/v${pkgver}/rabbitmq-server-${pkgver}.tar.xz{,.asc}
+        rabbitmq-customize-systemd-service.patch
+        rabbitmq-env.conf
+        rabbitmq.sysusers
+        rabbitmq.tmpfiles
+        rabbitmq.logrotate)
+sha512sums=('ffccf973694bf75d2093974acdb8bc78a2cf1f2616b0f3810bf972a572f50f732d12adb3631028b5b5dde285ed286ffcf208a265c649f4d47225d4aed458fc3a'
+            'SKIP'
+            '4859e67725dc8467b43102200bf47bdf69e3f3b700da859e861327e2f01491bfaeed8e32da4fc2415d8a127037420b768ef321a42d535f181cab56945f83d2c2'
+            '8b841e28fa0a1424dd9e57c0988e015f3cd4cccef0f73ccdb7c7b66d11ca62ba8ef3a59c7ca5e5f0c9c9d8003ac72bf53785985d98aae867961787003286e179'
+            '17d33e7104172bc265d97821fec58f1402ad3103f1ea4b1f6bbabcf0dd840685708a1bdc808b48c1a60726c5c0aa7b6479395afd9360d3116b812c143c432423'
+            '5cbef5497029ff227050c6f18c4fcc35b3922747408d01b7590f096253af82a8a8f16008efcc8ea21f970ce87244de62e2e375f65c49e407e53440eada5d7114'
+            'f2a6aaa38e575e7c947191a7c67add1434beb768c50acb16d5faa5dd83d390a9a5ec7c153487add4ac26de058a02bbb5c3a7d6377e91a1d0cbcca3c1d6797b02')
+validpgpkeys=('0A9AF2115F4687BD29803A206B73A36E6026DFCA') # RabbitMQ Release Signing Key <info at rabbitmq.com>
+
+prepare() {
+  cd ${pkgbase}-server-${pkgver}
+  sed -E 's|^(SYS_PREFIX=).*$|\1""|' -i deps/rabbit/scripts/rabbitmq-defaults
+  sed -E 's|@RABBITMQ_USER@|rabbitmq|g' -i scripts/rabbitmq-script-wrapper
+  sed -E 's|@RABBITMQ_GROUP@|rabbitmq|g' -i scripts/rabbitmq-script-wrapper
+  sed -E 's|@STDOUT_STDERR_REDIRECTION@||g' -i scripts/rabbitmq-script-wrapper
+  sed -e "s|%%VSN%%|${pkgver}|" -i deps/rabbitmq_management/bin/rabbitmqadmin
+  patch -p1 < ../rabbitmq-customize-systemd-service.patch
+}
+
+build() {
+  cd ${pkgbase}-server-${pkgver}
+  make
+}
+
+package_rabbitmq() {
+  depends=('util-linux' 'inetutils' 'erlang-nox' 'socat')
+  optdepends=('rabbitmqadmin: CLI management tool'
+              'logrotate: rotate log files')
+  backup=('etc/rabbitmq/rabbitmq-env.conf')
+  install=rabbitmq.install
+  cd ${pkgbase}-server-${pkgver}
+  make DESTDIR="${pkgdir}" PREFIX=/usr RMQ_ROOTDIR=/usr/lib/rabbitmq \
+    install install-man install-bin
+
+  # using script wrapper for better bin handling
+  local libdir="${pkgdir}/usr/lib/rabbitmq/lib/rabbitmq_server-${pkgver}"
+  install -d "${pkgdir}/usr/bin"
+  install -Dm 755 scripts/rabbitmq-script-wrapper -t "${pkgdir}/usr/lib/rabbitmq/bin"
+  for script in "${libdir}"/sbin/rabbit*; do
+    ln -s /usr/lib/rabbitmq/bin/rabbitmq-script-wrapper "${pkgdir}/usr/bin/${script#${libdir}/sbin/}"
+  done
+
+  install -Dm 644 deps/rabbit/docs/rabbitmq-server.service.example "${pkgdir}/usr/lib/systemd/system/rabbitmq.service"
+  install -Dm 644 "${srcdir}/rabbitmq-env.conf" "${pkgdir}/etc/rabbitmq/rabbitmq-env.conf"
+  install -Dm 644 "${srcdir}/rabbitmq.sysusers" "${pkgdir}/usr/lib/sysusers.d/rabbitmq.conf"
+  install -Dm 644 "${srcdir}/rabbitmq.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/rabbitmq.conf"
+  install -Dm 644 "${srcdir}/rabbitmq.logrotate" "${pkgdir}/etc/logrotate.d/rabbitmq"
+
+  chown -R 197:0 "${pkgdir}/etc/rabbitmq"
+}
+
+package_rabbitmqadmin() {
+  pkgdesc='Command-line tool for managing RabbitMQ server (requires "management" plugin)'
+  url='https://www.rabbitmq.com/management-cli.html'
+  depends=('python')
+  cd ${pkgbase}-server-${pkgver}/deps/rabbitmq_management
+  install -Dm 755 bin/rabbitmqadmin -t "${pkgdir}/usr/bin"
+  install -Dm 644 LICENSE-MPL-RabbitMQ -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Copied: rabbitmq/repos/community-testing-any/rabbitmq-customize-systemd-service.patch (from rev 1196090, rabbitmq/trunk/rabbitmq-customize-systemd-service.patch)
===================================================================
--- community-testing-any/rabbitmq-customize-systemd-service.patch	                        (rev 0)
+++ community-testing-any/rabbitmq-customize-systemd-service.patch	2022-05-06 23:18:47 UTC (rev 1196091)
@@ -0,0 +1,53 @@
+From 6990cfa74ea4864b11000b955ae3e5ea26e2b3f7 Mon Sep 17 00:00:00 2001
+From: anthraxx <levente at leventepolyak.net>
+Date: Wed, 21 Feb 2018 15:26:12 +0100
+Subject: [PATCH] Customize systemd service file
+
+---
+ deps/rabbit/docs/rabbitmq-server.service.example | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/deps/rabbit/docs/rabbitmq-server.service.example b/deps/rabbit/docs/rabbitmq-server.service.example
+index f1ab926..9219394 100644
+--- a/deps/rabbit/docs/rabbitmq-server.service.example
++++ b/deps/rabbit/docs/rabbitmq-server.service.example
+@@ -1,4 +1,3 @@
+-# systemd unit example
+ [Unit]
+ Description=RabbitMQ broker
+ After=network.target epmd at 0.0.0.0.socket
+@@ -8,20 +7,29 @@ Wants=network.target epmd at 0.0.0.0.socket
+ Type=notify
+ User=rabbitmq
+ Group=rabbitmq
++SyslogIdentifier=rabbitmq
++EnvironmentFile=/etc/rabbitmq/rabbitmq-env.conf
++UMask=0027
+ NotifyAccess=all
+ TimeoutStartSec=3600
++# Un-comment this setting if you need to increase RabbitMQ's
++# open files limit
++# LimitNOFILE=16384
++#
+ # Note:
+ # You *may* wish to add the following to automatically restart RabbitMQ
+ # in the event of a failure. systemd service restarts are not a
+ # replacement for service monitoring. Please see
+ # https://www.rabbitmq.com/monitoring.html
+ #
+-# Restart=on-failure
+-# RestartSec=10
++Restart=on-failure
++RestartSec=10
+ WorkingDirectory=/var/lib/rabbitmq
+ ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server
+ ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop
+ ExecStop=/bin/sh -c "while ps -p $MAINPID >/dev/null 2>&1; do sleep 1; done"
++# rabbitmq/rabbitmq-server-release#51
++# SuccessExitStatus=69
+ 
+ [Install]
+ WantedBy=multi-user.target
+-- 
+2.16.2
+

Copied: rabbitmq/repos/community-testing-any/rabbitmq-env.conf (from rev 1196090, rabbitmq/trunk/rabbitmq-env.conf)
===================================================================
--- community-testing-any/rabbitmq-env.conf	                        (rev 0)
+++ community-testing-any/rabbitmq-env.conf	2022-05-06 23:18:47 UTC (rev 1196091)
@@ -0,0 +1,3 @@
+NODENAME=rabbit
+NODE_IP_ADDRESS=0.0.0.0
+NODE_PORT=5672

Copied: rabbitmq/repos/community-testing-any/rabbitmq.install (from rev 1196090, rabbitmq/trunk/rabbitmq.install)
===================================================================
--- community-testing-any/rabbitmq.install	                        (rev 0)
+++ community-testing-any/rabbitmq.install	2022-05-06 23:18:47 UTC (rev 1196091)
@@ -0,0 +1,9 @@
+post_install() {
+  sed -e "/NODENAME/s/rabbit$/rabbit@$(hostname -s)/" -i /etc/rabbitmq/rabbitmq-env.conf
+}
+
+post_upgrade() {
+  post_install
+}
+
+# vim: ts=2 sw=2 et:

Copied: rabbitmq/repos/community-testing-any/rabbitmq.logrotate (from rev 1196090, rabbitmq/trunk/rabbitmq.logrotate)
===================================================================
--- community-testing-any/rabbitmq.logrotate	                        (rev 0)
+++ community-testing-any/rabbitmq.logrotate	2022-05-06 23:18:47 UTC (rev 1196091)
@@ -0,0 +1,6 @@
+/var/log/rabbitmq/*.log {
+	missingok
+	notifempty
+	compress
+	create 640 rabbitmq rabbitmq
+}

Copied: rabbitmq/repos/community-testing-any/rabbitmq.sysusers (from rev 1196090, rabbitmq/trunk/rabbitmq.sysusers)
===================================================================
--- community-testing-any/rabbitmq.sysusers	                        (rev 0)
+++ community-testing-any/rabbitmq.sysusers	2022-05-06 23:18:47 UTC (rev 1196091)
@@ -0,0 +1 @@
+u rabbitmq 197 "RabbitMQ user" /var/lib/rabbitmq

Copied: rabbitmq/repos/community-testing-any/rabbitmq.tmpfiles (from rev 1196090, rabbitmq/trunk/rabbitmq.tmpfiles)
===================================================================
--- community-testing-any/rabbitmq.tmpfiles	                        (rev 0)
+++ community-testing-any/rabbitmq.tmpfiles	2022-05-06 23:18:47 UTC (rev 1196091)
@@ -0,0 +1,2 @@
+d /var/lib/rabbitmq 0750 rabbitmq rabbitmq - -
+d /var/log/rabbitmq 0750 rabbitmq rabbitmq - -



More information about the arch-commits mailing list