summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2022-08-08 19:38:24 +0200
committerMatthew Smith <matthew@gentoo.org>2022-08-13 08:58:30 +0100
commit51d0088624a07a93ba146e1ec2d66098d9a44fa0 (patch)
tree9f52ccb1ff6ce017f77946ad5dc3834957a0431f /net-misc/gns3-server
parentnet-dns/knot: Bump to 3.1.9 (diff)
downloadgentoo-51d0088624a07a93ba146e1ec2d66098d9a44fa0.tar.gz
gentoo-51d0088624a07a93ba146e1ec2d66098d9a44fa0.tar.bz2
gentoo-51d0088624a07a93ba146e1ec2d66098d9a44fa0.zip
net-misc/gns3-server: fix openrc to be POSIX complaint
Closes: https://bugs.gentoo.org/863776 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Portage 3.0.34 / pkgdev 0.2.1 / pkgcheck 0.10.12 Closes: https://github.com/gentoo/gentoo/pull/26788 Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'net-misc/gns3-server')
-rw-r--r--net-misc/gns3-server/files/gns3-server-2.2.33.1-openrc-posix-complaint.patch21
-rw-r--r--net-misc/gns3-server/gns3-server-2.2.33.1-r2.ebuild (renamed from net-misc/gns3-server/gns3-server-2.2.33.1-r1.ebuild)4
2 files changed, 25 insertions, 0 deletions
diff --git a/net-misc/gns3-server/files/gns3-server-2.2.33.1-openrc-posix-complaint.patch b/net-misc/gns3-server/files/gns3-server-2.2.33.1-openrc-posix-complaint.patch
new file mode 100644
index 000000000000..9c263bd812f9
--- /dev/null
+++ b/net-misc/gns3-server/files/gns3-server-2.2.33.1-openrc-posix-complaint.patch
@@ -0,0 +1,21 @@
+commit 3b108563a0784df332791d44cf70bbba0fc81822
+Author: Michael Mair-Keimberger <mmk@levelnine.at>
+Date: Mon Aug 8 19:23:16 2022 +0200
+
+ gns3.service.openrc: make openrc script posix compliant
+
+diff --git a/init/gns3.service.openrc b/init/gns3.service.openrc
+index 8b0864cd..5a574fca 100755
+--- a/init/gns3.service.openrc
++++ b/init/gns3.service.openrc
+@@ -23,8 +23,8 @@ depend() {
+
+ checkconfig() {
+ if yesno "${GNS3_SERVER_LOG_ENABLED}" ; then
+- command_args+=" --log ${GNS3_SERVER_LOG}";
+- if [ "${command_user}" ] ; then
++ command_args="${command_args} --log ${GNS3_SERVER_LOG}";
++ if [ "${command_user}" ] ; then
+ checkpath --directory --mode 0700 --owner "${command_user}" "${GNS3_SERVER_LOG_PATH}";
+ else
+ unset command_user
diff --git a/net-misc/gns3-server/gns3-server-2.2.33.1-r1.ebuild b/net-misc/gns3-server/gns3-server-2.2.33.1-r2.ebuild
index 10e152413aaa..e991cd78ac09 100644
--- a/net-misc/gns3-server/gns3-server-2.2.33.1-r1.ebuild
+++ b/net-misc/gns3-server/gns3-server-2.2.33.1-r2.ebuild
@@ -39,6 +39,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}/${P}-openrc-posix-complaint.patch"
+ )
+
distutils_enable_tests pytest
src_prepare() {