public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matthew Smith" <matthew@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/gns3-server/files/, net-misc/gns3-server/
Date: Sat, 13 Aug 2022 07:59:18 +0000 (UTC)	[thread overview]
Message-ID: <1660377510.51d0088624a07a93ba146e1ec2d66098d9a44fa0.matthew@gentoo> (raw)

commit:     51d0088624a07a93ba146e1ec2d66098d9a44fa0
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Mon Aug  8 17:38:24 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sat Aug 13 07:58:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d00886

net-misc/gns3-server: fix openrc to be POSIX complaint

Closes: https://bugs.gentoo.org/863776
Signed-off-by: Michael Mair-Keimberger <mmk <AT> 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 <AT> gentoo.org>

 ...ns3-server-2.2.33.1-openrc-posix-complaint.patch | 21 +++++++++++++++++++++
 ...3.1-r1.ebuild => gns3-server-2.2.33.1-r2.ebuild} |  4 ++++
 2 files changed, 25 insertions(+)

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
similarity index 97%
rename from net-misc/gns3-server/gns3-server-2.2.33.1-r1.ebuild
rename to 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() {


             reply	other threads:[~2022-08-13  7:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-13  7:59 Matthew Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-01 12:03 [gentoo-commits] repo/gentoo:master commit in: net-misc/gns3-server/files/, net-misc/gns3-server/ Ionen Wolkens
2018-07-12 21:59 Louis Sautier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1660377510.51d0088624a07a93ba146e1ec2d66098d9a44fa0.matthew@gentoo \
    --to=matthew@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox