Github messages for voidlinux
 help / color / mirror / Atom feed
From: zdykstra <zdykstra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: smokeping_prober 0.7.1
Date: Tue, 09 Jan 2024 17:10:05 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48139@inbox.vuxu.org> (raw)

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

There is a new pull request by zdykstra against master on the void-packages repository

https://github.com/zdykstra/void-packages smokeping_prober
https://github.com/void-linux/void-packages/pull/48139

New package: smokeping_prober 0.7.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-smokeping_prober-48139.patch --]
[-- Type: text/x-diff, Size: 2767 bytes --]

From 802b724ea7b625f0d563494a0df962e7f50d6337 Mon Sep 17 00:00:00 2001
From: Zach Dykstra <dykstra.zachary@gmail.com>
Date: Tue, 9 Jan 2024 10:06:35 -0600
Subject: [PATCH] New package: smokeping_prober 0.7.1

---
 srcpkgs/smokeping_prober/INSTALL              |  5 ++++
 .../files/smokeping_prober/run                | 12 +++++++++
 srcpkgs/smokeping_prober/template             | 25 +++++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 srcpkgs/smokeping_prober/INSTALL
 create mode 100755 srcpkgs/smokeping_prober/files/smokeping_prober/run
 create mode 100644 srcpkgs/smokeping_prober/template

diff --git a/srcpkgs/smokeping_prober/INSTALL b/srcpkgs/smokeping_prober/INSTALL
new file mode 100644
index 0000000000000..787ee63ae772d
--- /dev/null
+++ b/srcpkgs/smokeping_prober/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+	setcap cap_net_raw+ep usr/bin/smokeping_prober
+	;;
+esac
diff --git a/srcpkgs/smokeping_prober/files/smokeping_prober/run b/srcpkgs/smokeping_prober/files/smokeping_prober/run
new file mode 100755
index 0000000000000..c0ebeca9df5e2
--- /dev/null
+++ b/srcpkgs/smokeping_prober/files/smokeping_prober/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+exec 2>&1
+
+# Add $ARGS for more arguments to smokeping_prober 
+# $CONF_FILE is the location of the configuration file.
+
+[ -f ./conf ] && . ./conf || exit 1;
+[ -z "$CONF_FILE" ] && exit 2;
+
+: ${USER:=_smokeping_prober}
+
+exec chpst -u $USER smokeping_prober --config.file "${CONF_FILE}" ${ARGS}
diff --git a/srcpkgs/smokeping_prober/template b/srcpkgs/smokeping_prober/template
new file mode 100644
index 0000000000000..0e610f794389b
--- /dev/null
+++ b/srcpkgs/smokeping_prober/template
@@ -0,0 +1,25 @@
+# Template file for 'smokeping_prober'
+pkgname=smokeping_prober
+version=0.7.1
+revision=1
+build_style=go
+go_import_path="github.com/superq/smokeping_prober"
+go_ldflags="-X github.com/prometheus/common/version.Version=${version}
+ -X github.com/prometheus/common/version.Revision=${version}
+ -X github.com/prometheus/common/version.Branch=${version}
+ -X github.com/prometheus/common/version.BuildDate=$(date --date "@$SOURCE_DATE_EPOCH" "+%Y%m%d-%H:%M:%S")
+ -X github.com/prometheus/common/version.BuildUser=VoidLinux"
+short_desc="Smokeping style prober for Prometheus"
+maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
+license="Apache-2.0"
+homepage="https://github.com/SuperQ/smokeping_prober"
+changelog="https://github.com/SuperQ/smokeping_prober/blob/master/CHANGELOG.md"
+distfiles="https://github.com/SuperQ/smokeping_prober/archive/v${version}.tar.gz"
+checksum=70f5f7af0c1fb4ad158300e6b9c94eb00a29494b85914ce9b60fc7fa435ebcec
+
+system_accounts="_smokeping_prober"
+
+post_install() {
+	vsconf smokeping_prober.yml
+	vsv smokeping_prober
+}

             reply	other threads:[~2024-01-09 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-09 16:10 zdykstra [this message]
2024-02-28 17:30 ` zdykstra
2024-05-06 18:13 ` [PR PATCH] [Closed]: " zdykstra
2024-05-06 18:13 ` zdykstra

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48139@inbox.vuxu.org \
    --to=zdykstra@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).