Github messages for voidlinux
 help / color / mirror / Atom feed
From: altosys <altosys@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] consul: add service
Date: Tue, 23 May 2023 09:15:22 +0200	[thread overview]
Message-ID: <20230523071522.XAqXgH4czj4GoxgBhoQ7Qp1BR2VHk2-zzqd_2KyJVGM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44037@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

There is an updated pull request by altosys against master on the void-packages repository

https://github.com/altosys/void-packages consul-add-service
https://github.com/void-linux/void-packages/pull/44037

consul: add service
This adds a bundled service file to the consul package, similar to [nomad](https://github.com/void-linux/void-packages/tree/master/srcpkgs/nomad).

#### Testing the changes
- I tested the changes in this PR: **YES**

@iaroki 

A patch file from https://github.com/void-linux/void-packages/pull/44037.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-consul-add-service-44037.patch --]
[-- Type: text/x-diff, Size: 1203 bytes --]

From bbda751b576d3ddcea208478680faa193b60c457 Mon Sep 17 00:00:00 2001
From: Tommy Alatalo <tommy.alatalo@gmail.com>
Date: Tue, 23 May 2023 09:01:19 +0200
Subject: [PATCH] consul: add service

---
 srcpkgs/consul/files/consul/run | 4 ++++
 srcpkgs/consul/template         | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/consul/files/consul/run

diff --git a/srcpkgs/consul/files/consul/run b/srcpkgs/consul/files/consul/run
new file mode 100644
index 000000000000..ece1efba0ce4
--- /dev/null
+++ b/srcpkgs/consul/files/consul/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec 2>&1
+exec consul agent -config-dir=/etc/consul.d
diff --git a/srcpkgs/consul/template b/srcpkgs/consul/template
index ed5683591ac2..189ef2eaf55b 100644
--- a/srcpkgs/consul/template
+++ b/srcpkgs/consul/template
@@ -1,7 +1,7 @@
 # Template file for 'consul'
 pkgname=consul
 version=1.15.1
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/hashicorp/consul"
 _git_commit=7c04b6a0dd433619e788617434a4c236b7d4f892
@@ -15,4 +15,5 @@ checksum=3f5f698aad0343642949d1c442e6e8bbcd835e3c173e4ee8ebb087758d1e31a4
 
 post_install() {
 	vlicense LICENSE
+	vsv consul
 }

  parent reply	other threads:[~2023-05-23  7:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23  7:11 [PR PATCH] " altosys
2023-05-23  7:12 ` [PR PATCH] [Updated] " altosys
2023-05-23  7:15 ` altosys [this message]
2023-05-24 18:28 ` [PR REVIEW] " Vaelatern
2023-05-24 19:16 ` altosys
2023-05-25  2:34 ` [PR PATCH] [Merged]: " Vaelatern
2023-05-25  2:34 ` [PR REVIEW] " Vaelatern

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=20230523071522.XAqXgH4czj4GoxgBhoQ7Qp1BR2VHk2-zzqd_2KyJVGM@z \
    --to=altosys@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).