Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: smokeping_prober 0.7.1
@ 2024-01-09 16:10 zdykstra
  2024-02-28 17:30 ` zdykstra
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zdykstra @ 2024-01-09 16:10 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: New package: smokeping_prober 0.7.1
  2024-01-09 16:10 [PR PATCH] New package: smokeping_prober 0.7.1 zdykstra
@ 2024-02-28 17:30 ` zdykstra
  2024-05-06 18:13 ` zdykstra
  2024-05-06 18:13 ` [PR PATCH] [Closed]: " zdykstra
  2 siblings, 0 replies; 4+ messages in thread
From: zdykstra @ 2024-02-28 17:30 UTC (permalink / raw)
  To: ml

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

New comment by zdykstra on void-packages repository

https://github.com/void-linux/void-packages/pull/48139#issuecomment-1969493213

Comment:
I've been running this successfully since I opened the PR.  This is stable and good to go.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: New package: smokeping_prober 0.7.1
  2024-01-09 16:10 [PR PATCH] New package: smokeping_prober 0.7.1 zdykstra
  2024-02-28 17:30 ` zdykstra
@ 2024-05-06 18:13 ` zdykstra
  2024-05-06 18:13 ` [PR PATCH] [Closed]: " zdykstra
  2 siblings, 0 replies; 4+ messages in thread
From: zdykstra @ 2024-05-06 18:13 UTC (permalink / raw)
  To: ml

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

New comment by zdykstra on void-packages repository

https://github.com/void-linux/void-packages/pull/48139#issuecomment-2096631860

Comment:
Closing this, as I'm abandoning using it. The data appears to be flawed over a multi-month timeline.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Closed]: New package: smokeping_prober 0.7.1
  2024-01-09 16:10 [PR PATCH] New package: smokeping_prober 0.7.1 zdykstra
  2024-02-28 17:30 ` zdykstra
  2024-05-06 18:13 ` zdykstra
@ 2024-05-06 18:13 ` zdykstra
  2 siblings, 0 replies; 4+ messages in thread
From: zdykstra @ 2024-05-06 18:13 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New package: smokeping_prober 0.7.1
https://github.com/void-linux/void-packages/pull/48139

Description:
<!-- 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**

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-06 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 16:10 [PR PATCH] New package: smokeping_prober 0.7.1 zdykstra
2024-02-28 17:30 ` zdykstra
2024-05-06 18:13 ` zdykstra
2024-05-06 18:13 ` [PR PATCH] [Closed]: " zdykstra

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).