1 |
commit: cffe3bf5c60c0e0725b860ebea3179976aa04d1a |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 15 23:03:52 2018 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 16 11:42:53 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cffe3bf5 |
7 |
|
8 |
net-analyzer/nagios-icinga-openvpn: new package to monitor OpenVPN. |
9 |
|
10 |
This package is intended to be a full-featured replacement for the |
11 |
existing net-analyzer/nagios-check_openvpn-simple plugin. The "simple" |
12 |
version lacked several important features, the most important of which |
13 |
was the ability to use a TLS-auth key in the default UDP configuration. |
14 |
|
15 |
The new plugin is largely a drop-in replacement, but the executable |
16 |
name is different, so your configuration will need to be updated. |
17 |
|
18 |
Bug: https://bugs.gentoo.org/663774 |
19 |
Package-Manager: Portage-2.3.44, Repoman-2.3.9 |
20 |
|
21 |
net-analyzer/nagios-icinga-openvpn/Manifest | 1 + |
22 |
net-analyzer/nagios-icinga-openvpn/metadata.xml | 8 +++++ |
23 |
.../nagios-icinga-openvpn-0.0.1.ebuild | 37 ++++++++++++++++++++++ |
24 |
3 files changed, 46 insertions(+) |
25 |
|
26 |
diff --git a/net-analyzer/nagios-icinga-openvpn/Manifest b/net-analyzer/nagios-icinga-openvpn/Manifest |
27 |
new file mode 100644 |
28 |
index 00000000000..6e9b6cd78f7 |
29 |
--- /dev/null |
30 |
+++ b/net-analyzer/nagios-icinga-openvpn/Manifest |
31 |
@@ -0,0 +1 @@ |
32 |
+DIST nagios-icinga-openvpn-0.0.1.tar.gz 4637 BLAKE2B 365b6450cccd5f7f25348583eae45c0b15932ec1e858d375171911e4108dd2b7fc133559a35399ece8d2a349f05b2f51897cf9e271f498b6bbaa2c6bba3551a9 SHA512 0dae6c2df71a20e287720767aa4ba41d0568f3cd4bd2a6eb252f86d810d3de265ddc38397df15bb1b115ba35ac68aa6e18345dc4432d4d13b08b500483ffbb11 |
33 |
|
34 |
diff --git a/net-analyzer/nagios-icinga-openvpn/metadata.xml b/net-analyzer/nagios-icinga-openvpn/metadata.xml |
35 |
new file mode 100644 |
36 |
index 00000000000..45125b9b6e9 |
37 |
--- /dev/null |
38 |
+++ b/net-analyzer/nagios-icinga-openvpn/metadata.xml |
39 |
@@ -0,0 +1,8 @@ |
40 |
+<?xml version="1.0" encoding="UTF-8"?> |
41 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
42 |
+<pkgmetadata> |
43 |
+ <maintainer type="person"> |
44 |
+ <email>mjo@g.o</email> |
45 |
+ <name>Michael Orlitzky</name> |
46 |
+ </maintainer> |
47 |
+</pkgmetadata> |
48 |
|
49 |
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 |
50 |
new file mode 100644 |
51 |
index 00000000000..e8e112ffe2f |
52 |
--- /dev/null |
53 |
+++ b/net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1.ebuild |
54 |
@@ -0,0 +1,37 @@ |
55 |
+# Copyright 1999-2018 Gentoo Foundation |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=6 |
59 |
+ |
60 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+MY_PN="check_openvpn" |
64 |
+DESCRIPTION="A Nagios plugin to check whether an OpenVPN server is alive" |
65 |
+HOMEPAGE="https://github.com/liquidat/${PN}" |
66 |
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
67 |
+ |
68 |
+LICENSE="MIT" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64" |
71 |
+IUSE="" |
72 |
+ |
73 |
+src_install() { |
74 |
+ distutils-r1_src_install |
75 |
+ |
76 |
+ local nagiosplugindir="/usr/$(get_libdir)/nagios/plugins" |
77 |
+ dodir "${nagiosplugindir}" |
78 |
+ |
79 |
+ # Create a symlink from the nagios plugin directory to the /usr/bin |
80 |
+ # location. The "binary" in /usr/bin should also be a symlink, since |
81 |
+ # the python machinery allows the user to switch out the |
82 |
+ # interpreter. We don't want to mess with any of that, so we just |
83 |
+ # point to whatever the system would use if the user executed |
84 |
+ # ${MY_PN}. |
85 |
+ # |
86 |
+ # The relative symlink is preferred so that if the package is |
87 |
+ # installed e.g. while in a chroot, the symlink will never point |
88 |
+ # outside of that chroot. |
89 |
+ # |
90 |
+ dosym "../../../bin/${MY_PN}" "${nagiosplugindir}/${MY_PN}" |
91 |
+} |