1 |
commit: 197613920abbf801a6f1e01f5d55f0764bfef66e |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 30 01:07:57 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 30 01:07:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19761392 |
7 |
|
8 |
net-analyzer/nagios-icinga-openvpn: revision for python-3.{9,10}. |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
12 |
|
13 |
.../nagios-icinga-openvpn-0.0.1-r2.ebuild | 38 ++++++++++++++++++++++ |
14 |
1 file changed, 38 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1-r2.ebuild b/net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..29216203671 |
19 |
--- /dev/null |
20 |
+++ b/net-analyzer/nagios-icinga-openvpn/nagios-icinga-openvpn-0.0.1-r2.ebuild |
21 |
@@ -0,0 +1,38 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_7 python3_8 python3_9 python3_10 ) |
28 |
+DISTUTILS_USE_SETUPTOOLS=no |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_PN="check_openvpn" |
32 |
+DESCRIPTION="A Nagios plugin to check whether an OpenVPN server is alive" |
33 |
+HOMEPAGE="https://github.com/liquidat/nagios-icinga-openvpn" |
34 |
+SRC_URI="https://github.com/liquidat/nagios-icinga-openvpn/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="MIT" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64" |
39 |
+IUSE="" |
40 |
+ |
41 |
+src_install() { |
42 |
+ distutils-r1_src_install |
43 |
+ |
44 |
+ local nagiosplugindir="/usr/$(get_libdir)/nagios/plugins" |
45 |
+ dodir "${nagiosplugindir}" |
46 |
+ |
47 |
+ # Create a symlink from the nagios plugin directory to the /usr/bin |
48 |
+ # location. The "binary" in /usr/bin should also be a symlink, since |
49 |
+ # the python machinery allows the user to switch out the |
50 |
+ # interpreter. We don't want to mess with any of that, so we just |
51 |
+ # point to whatever the system would use if the user executed |
52 |
+ # ${MY_PN}. |
53 |
+ # |
54 |
+ # The relative symlink is preferred so that if the package is |
55 |
+ # installed e.g. while in a chroot, the symlink will never point |
56 |
+ # outside of that chroot. |
57 |
+ # |
58 |
+ dosym "../../../bin/${MY_PN}" "${nagiosplugindir}/${MY_PN}" |
59 |
+} |