Add debian packaging dir for rabbitmq-server

Add debian packaging directory to build rabbitmq-server for Debian os.

Story: 2009101
Task: 43362
Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
Change-Id: Ie9bde6f8f85c482487b5007bf7b654ec1f2e37cb
This commit is contained in:
Fabricio Henrique Ramos 2021-09-17 17:39:06 -03:00
parent 2918318417
commit b2e2f6cbd5
4 changed files with 39 additions and 0 deletions

1
debian_pkg_dirs Normal file
View File

@ -0,0 +1 @@
openstack/rabbitmq-server

View File

@ -0,0 +1,27 @@
From d684a3b6c57273a78e64c77798c6f6f9eb606862 Mon Sep 17 00:00:00 2001
From: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
Date: Mon, 27 Sep 2021 11:24:06 -0300
Subject: [PATCH] WRS: Allow-rabbitmqctl-to-run-as-root-and-set-root-home.patch
---
debian/rabbitmq-script-wrapper | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/rabbitmq-script-wrapper b/debian/rabbitmq-script-wrapper
index a622ae2..418d4a1 100755
--- a/debian/rabbitmq-script-wrapper
+++ b/debian/rabbitmq-script-wrapper
@@ -37,7 +37,9 @@ elif [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then
fi
/usr/lib/rabbitmq/bin/${SCRIPT} "$@"
elif [ `id -u` = 0 ] ; then
- su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
+ # WRS. Allow to run as root
+ export HOME=${HOME:-/root}
+ /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
else
/usr/lib/rabbitmq/bin/${SCRIPT}
echo
--
2.17.1

View File

@ -0,0 +1 @@
0001-WRS-Allow-rabbitmqctl-to-run-as-root-and-set-root-ho.patch

View File

@ -0,0 +1,10 @@
---
debname: rabbitmq-server
debver: 3.8.9-3
dl_path:
name: rabbitmq-server-debian-3.8.9-3.tar.gz
url: https://salsa.debian.org/openstack-team/third-party/rabbitmq-server/-/archive/debian/3.8.9-3/rabbitmq-server-debian-3.8.9-3.tar.gz
md5sum: 1c4dea34094984e01c7b87b63e83ba2f
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true