From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E77C5138335 for ; Thu, 16 Aug 2018 11:45:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8FC8E089D; Thu, 16 Aug 2018 11:45:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CACEE089D for ; Thu, 16 Aug 2018 11:45:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CF38F335C06 for ; Thu, 16 Aug 2018 11:45:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4890D39E for ; Thu, 16 Aug 2018 11:45:21 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1534419773.cffe3bf5c60c0e0725b860ebea3179976aa04d1a.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-icinga-openvpn/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/nagios-icinga-openvpn/Manifest net-analyzer/nagios-icinga-openvpn/metadata.xml net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1.ebuild X-VCS-Directories: net-analyzer/nagios-icinga-openvpn/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: cffe3bf5c60c0e0725b860ebea3179976aa04d1a X-VCS-Branch: master Date: Thu, 16 Aug 2018 11:45:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ffc6cc2b-37ed-40e4-b8ec-ecc1bffbb4ac X-Archives-Hash: ee376a18f2794f11036db4211fc31dae commit: cffe3bf5c60c0e0725b860ebea3179976aa04d1a Author: Michael Orlitzky gentoo org> AuthorDate: Wed Aug 15 23:03:52 2018 +0000 Commit: Michael Orlitzky gentoo 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 @@ + + + + + mjo@gentoo.org + Michael Orlitzky + + 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}" +}