public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-icinga-openvpn/
Date: Thu, 16 Aug 2018 11:45:21 +0000 (UTC)	[thread overview]
Message-ID: <1534419773.cffe3bf5c60c0e0725b860ebea3179976aa04d1a.mjo@gentoo> (raw)

commit:     cffe3bf5c60c0e0725b860ebea3179976aa04d1a
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 15 23:03:52 2018 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Aug 16 11:42:53 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cffe3bf5

net-analyzer/nagios-icinga-openvpn: new package to monitor OpenVPN.

This package is intended to be a full-featured replacement for the
existing net-analyzer/nagios-check_openvpn-simple plugin. The "simple"
version lacked several important features, the most important of which
was the ability to use a TLS-auth key in the default UDP configuration.

The new plugin is largely a drop-in replacement, but the executable
name is different, so your configuration will need to be updated.

Bug: https://bugs.gentoo.org/663774
Package-Manager: Portage-2.3.44, Repoman-2.3.9

 net-analyzer/nagios-icinga-openvpn/Manifest        |  1 +
 net-analyzer/nagios-icinga-openvpn/metadata.xml    |  8 +++++
 .../nagios-icinga-openvpn-0.0.1.ebuild             | 37 ++++++++++++++++++++++
 3 files changed, 46 insertions(+)

diff --git a/net-analyzer/nagios-icinga-openvpn/Manifest b/net-analyzer/nagios-icinga-openvpn/Manifest
new file mode 100644
index 00000000000..6e9b6cd78f7
--- /dev/null
+++ b/net-analyzer/nagios-icinga-openvpn/Manifest
@@ -0,0 +1 @@
+DIST nagios-icinga-openvpn-0.0.1.tar.gz 4637 BLAKE2B 365b6450cccd5f7f25348583eae45c0b15932ec1e858d375171911e4108dd2b7fc133559a35399ece8d2a349f05b2f51897cf9e271f498b6bbaa2c6bba3551a9 SHA512 0dae6c2df71a20e287720767aa4ba41d0568f3cd4bd2a6eb252f86d810d3de265ddc38397df15bb1b115ba35ac68aa6e18345dc4432d4d13b08b500483ffbb11

diff --git a/net-analyzer/nagios-icinga-openvpn/metadata.xml b/net-analyzer/nagios-icinga-openvpn/metadata.xml
new file mode 100644
index 00000000000..45125b9b6e9
--- /dev/null
+++ b/net-analyzer/nagios-icinga-openvpn/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>mjo@gentoo.org</email>
+    <name>Michael Orlitzky</name>
+  </maintainer>
+</pkgmetadata>

diff --git a/net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1.ebuild b/net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1.ebuild
new file mode 100644
index 00000000000..e8e112ffe2f
--- /dev/null
+++ b/net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+inherit distutils-r1
+
+MY_PN="check_openvpn"
+DESCRIPTION="A Nagios plugin to check whether an OpenVPN server is alive"
+HOMEPAGE="https://github.com/liquidat/${PN}"
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+src_install() {
+	distutils-r1_src_install
+
+	local nagiosplugindir="/usr/$(get_libdir)/nagios/plugins"
+	dodir "${nagiosplugindir}"
+
+	# Create a symlink from the nagios plugin directory to the /usr/bin
+	# location. The "binary" in /usr/bin should also be a symlink, since
+	# the python machinery allows the user to switch out the
+	# interpreter. We don't want to mess with any of that, so we just
+	# point to whatever the system would use if the user executed
+	# ${MY_PN}.
+	#
+	# The relative symlink is preferred so that if the package is
+	# installed e.g. while in a chroot, the symlink will never point
+	# outside of that chroot.
+	#
+	dosym "../../../bin/${MY_PN}" "${nagiosplugindir}/${MY_PN}"
+}


             reply	other threads:[~2018-08-16 11:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-16 11:45 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-05-07  0:31 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-icinga-openvpn/ Michael Orlitzky
2020-02-08 18:55 David Seifert
2020-02-11 12:16 Michał Górny
2020-04-20 13:26 Michael Orlitzky
2020-05-13 13:32 Michael Orlitzky
2020-05-13 13:32 Michael Orlitzky
2021-07-30  1:09 Michael Orlitzky
2021-07-30  3:21 Sam James
2021-09-26  5:01 Sam James
2021-09-28 14:07 Michael Orlitzky
2023-02-25 17:41 Michael Orlitzky
2023-02-25 17:41 Michael Orlitzky
2023-04-19 12:35 Michael Orlitzky
2023-04-19 12:35 Michael Orlitzky
2024-04-14 11:43 Michael Orlitzky

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=1534419773.cffe3bf5c60c0e0725b860ebea3179976aa04d1a.mjo@gentoo \
    --to=mjo@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