Browse Source

[community-testing] -> [community] 'rabbitmq-3.10.1-1' move

master
Nathan Owens 2 months ago
parent
commit
38f9e4ca28
Signed by: ndowens
GPG Key ID: DC5A6F8092641E2D
  1. 85
      x86_64/community-testing/PKGBUILD
  2. 3
      x86_64/community-testing/rabbitmq-env.conf
  3. 9
      x86_64/community-testing/rabbitmq.install
  4. 6
      x86_64/community-testing/rabbitmq.logrotate
  5. 1
      x86_64/community-testing/rabbitmq.sysusers
  6. 2
      x86_64/community-testing/rabbitmq.tmpfiles
  7. 4
      x86_64/community/PKGBUILD

85
x86_64/community-testing/PKGBUILD

@ -1,85 +0,0 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Marcello "mereghost" Rocha <marcello.rocha@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@gmail.com>
# Contributor: Christopher Grebs <cg@webshox.org>
# Contributor: mutantmonkey
pkgbase=rabbitmq
pkgname=(rabbitmq rabbitmqadmin)
pkgver=3.10.1
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' 'udev' '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-env.conf
rabbitmq.sysusers
rabbitmq.tmpfiles
rabbitmq.logrotate)
sha512sums=('201078011cf002526af4723130fbce5173cb6f2df5726ffa6f1e79c2beb1ba3361c4369228e46dcfd2a62f323fd372a5624e3db8c6c90f83f48d32195622f3c4'
'SKIP'
'8b841e28fa0a1424dd9e57c0988e015f3cd4cccef0f73ccdb7c7b66d11ca62ba8ef3a59c7ca5e5f0c9c9d8003ac72bf53785985d98aae867961787003286e179'
'17d33e7104172bc265d97821fec58f1402ad3103f1ea4b1f6bbabcf0dd840685708a1bdc808b48c1a60726c5c0aa7b6479395afd9360d3116b812c143c432423'
'5cbef5497029ff227050c6f18c4fcc35b3922747408d01b7590f096253af82a8a8f16008efcc8ea21f970ce87244de62e2e375f65c49e407e53440eada5d7114'
'f2a6aaa38e575e7c947191a7c67add1434beb768c50acb16d5faa5dd83d390a9a5ec7c153487add4ac26de058a02bbb5c3a7d6377e91a1d0cbcca3c1d6797b02')
validpgpkeys=('0A9AF2115F4687BD29803A206B73A36E6026DFCA') # RabbitMQ Release Signing Key <info@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
}
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 "${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:

3
x86_64/community-testing/rabbitmq-env.conf

@ -1,3 +0,0 @@
NODENAME=rabbit
NODE_IP_ADDRESS=0.0.0.0
NODE_PORT=5672

9
x86_64/community-testing/rabbitmq.install

@ -1,9 +0,0 @@
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:

6
x86_64/community-testing/rabbitmq.logrotate

@ -1,6 +0,0 @@
/var/log/rabbitmq/*.log {
missingok
notifempty
compress
create 640 rabbitmq rabbitmq
}

1
x86_64/community-testing/rabbitmq.sysusers

@ -1 +0,0 @@
u rabbitmq 197 "RabbitMQ user" /var/lib/rabbitmq

2
x86_64/community-testing/rabbitmq.tmpfiles

@ -1,2 +0,0 @@
d /var/lib/rabbitmq 0750 rabbitmq rabbitmq - -
d /var/log/rabbitmq 0750 rabbitmq rabbitmq - -

4
x86_64/community/PKGBUILD

@ -9,7 +9,7 @@
pkgbase=rabbitmq
pkgname=(rabbitmq rabbitmqadmin)
pkgver=3.8.22
pkgver=3.10.1
pkgrel=1
pkgdesc='Highly reliable and performant enterprise messaging implementation of AMQP written in Erlang/OTP'
url='https://rabbitmq.com'
@ -25,7 +25,7 @@ source=(https://github.com/rabbitmq/rabbitmq-server/releases/download/v${pkgver}
rabbitmq.sysusers
rabbitmq.tmpfiles
rabbitmq.logrotate)
sha512sums=('0852223e1202c1428cebcaf6830481a89f1cb061ab8eeeed7cddef67403b53acafbcd662b72c92da9d7c4eeadf86356277a210007687b3e07876b7d21d1a6c14'
sha512sums=('201078011cf002526af4723130fbce5173cb6f2df5726ffa6f1e79c2beb1ba3361c4369228e46dcfd2a62f323fd372a5624e3db8c6c90f83f48d32195622f3c4'
'SKIP'
'8b841e28fa0a1424dd9e57c0988e015f3cd4cccef0f73ccdb7c7b66d11ca62ba8ef3a59c7ca5e5f0c9c9d8003ac72bf53785985d98aae867961787003286e179'
'17d33e7104172bc265d97821fec58f1402ad3103f1ea4b1f6bbabcf0dd840685708a1bdc808b48c1a60726c5c0aa7b6479395afd9360d3116b812c143c432423'

Loading…
Cancel
Save