1 |
commit: 68b248d93dd95048426be0ae9139a58b3f15e60b |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 1 13:51:19 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 1 13:51:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68b248d9 |
7 |
|
8 |
net-analyzer/nrpe: remove unused version 2.15-r2. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-analyzer/nrpe/nrpe-2.15-r2.ebuild | 128 ---------------------------------- |
13 |
1 file changed, 128 deletions(-) |
14 |
|
15 |
diff --git a/net-analyzer/nrpe/nrpe-2.15-r2.ebuild b/net-analyzer/nrpe/nrpe-2.15-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index d36cf25b13d..00000000000 |
18 |
--- a/net-analyzer/nrpe/nrpe-2.15-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,128 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=5 |
25 |
-inherit eutils systemd toolchain-funcs multilib user autotools |
26 |
- |
27 |
-DESCRIPTION="Nagios Remote Plugin Executor" |
28 |
-HOMEPAGE="http://www.nagios.org/" |
29 |
-SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz" |
30 |
- |
31 |
-LICENSE="GPL-2+" |
32 |
-SLOT="0" |
33 |
-KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86" |
34 |
-IUSE="command-args ssl tcpd minimal" |
35 |
- |
36 |
-DEPEND="ssl? ( dev-libs/openssl ) |
37 |
- !minimal? ( tcpd? ( sys-apps/tcp-wrappers ) )" |
38 |
-RDEPEND="${DEPEND} |
39 |
- !minimal? ( |
40 |
- || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins ) |
41 |
- )" |
42 |
- |
43 |
-pkg_setup() { |
44 |
- enewgroup nagios |
45 |
- enewuser nagios -1 /bin/bash /dev/null nagios |
46 |
- |
47 |
- elog "If you plan to use \"nrpe_check_control\" then you may want to specify" |
48 |
- elog "different command and services files. You can override the defaults" |
49 |
- elog "through the \"NAGIOS_COMMAND_FILE\" and \"NAGIOS_SERVICES_FILE\" environment variables." |
50 |
- elog "NAGIOS_COMMAND_FILE=${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}" |
51 |
- elog "NAGIOS_SERVICES_FILE=${NAGIOS_SERVICES_FILE:-/etc/services.cfg}" |
52 |
-} |
53 |
- |
54 |
-src_prepare() { |
55 |
- # Add support for large output, |
56 |
- # http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html |
57 |
- epatch "${FILESDIR}"/${PN}-2.14-multiline.patch |
58 |
- # fix configure, among others #326367, #397603 |
59 |
- epatch "${FILESDIR}"/${PN}-2.15-tcpd-et-al.patch |
60 |
- # otherwise autoconf will overwrite the custom include/config.h.in |
61 |
- epatch "${FILESDIR}"/${PN}-2.15-autoconf-header.patch |
62 |
- # improve handling of metachars for security |
63 |
- epatch "${FILESDIR}"/${PN}-2.15-metachar-security-fix.patch |
64 |
- |
65 |
- sed -i -e '/define \(COMMAND\|SERVICES\)_FILE/d' contrib/nrpe_check_control.c || die |
66 |
- |
67 |
- # change the default location of the pid file |
68 |
- sed -i -e '/pid_file/s:/var/run:/run:' sample-config/nrpe.cfg.in || die |
69 |
- |
70 |
- # fix TFU handling of autoheader |
71 |
- sed -i -e '/#undef/d' include/config.h.in || die |
72 |
- |
73 |
- eautoreconf |
74 |
-} |
75 |
- |
76 |
-src_configure() { |
77 |
- local myconf |
78 |
- if use minimal; then |
79 |
- myconf="--disable-tcp-wrapper --disable-command-args" |
80 |
- else |
81 |
- myconf="$(use_enable tcpd tcp-wrapper) $(use_enable command-args)" |
82 |
- fi |
83 |
- |
84 |
- econf \ |
85 |
- --libexecdir=/usr/$(get_libdir)/nagios/plugins \ |
86 |
- --localstatedir=/var/nagios \ |
87 |
- --sysconfdir=/etc/nagios \ |
88 |
- --with-nrpe-user=nagios \ |
89 |
- --with-nrpe-group=nagios \ |
90 |
- $(use_enable ssl) \ |
91 |
- ${myconf} |
92 |
-} |
93 |
- |
94 |
-src_compile() { |
95 |
- emake -C src check_nrpe $(use minimal || echo nrpe) |
96 |
- |
97 |
- # Add nifty nrpe check tool |
98 |
- $(tc-getCC) ${CPPFLAGS} ${CFLAGS} \ |
99 |
- -DCOMMAND_FILE=\"${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}\" \ |
100 |
- -DSERVICES_FILE=\"${NAGIOS_SERVICES_FILE:-/etc/services.cfg}\" \ |
101 |
- ${LDFLAGS} -o nrpe_check_control contrib/nrpe_check_control.c || die |
102 |
-} |
103 |
- |
104 |
-src_install() { |
105 |
- dodoc LEGAL Changelog README SECURITY \ |
106 |
- contrib/README.nrpe_check_control \ |
107 |
- $(use ssl && echo README.SSL) |
108 |
- |
109 |
- exeinto /usr/$(get_libdir)/nagios/plugins |
110 |
- doexe src/check_nrpe nrpe_check_control |
111 |
- |
112 |
- use minimal && return 0 |
113 |
- |
114 |
- ## NON-MINIMAL INSTALL FOLLOWS ## |
115 |
- |
116 |
- insinto /etc/nagios |
117 |
- newins sample-config/nrpe.cfg nrpe.cfg |
118 |
- fowners root:nagios /etc/nagios/nrpe.cfg |
119 |
- fperms 0640 /etc/nagios/nrpe.cfg |
120 |
- |
121 |
- exeinto /usr/libexec |
122 |
- doexe src/nrpe |
123 |
- |
124 |
- newinitd "${FILESDIR}"/nrpe.init nrpe |
125 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
126 |
- |
127 |
- insinto /etc/xinetd.d/ |
128 |
- newins "${FILESDIR}/nrpe.xinetd.2" nrpe |
129 |
- |
130 |
- if use tcpd; then |
131 |
- sed -i -e '/^reload()/, /^}/ d' -e '/extra_started_commands/s:reload::' \ |
132 |
- "${D}"/etc/init.d/nrpe |
133 |
- fi |
134 |
-} |
135 |
- |
136 |
-pkg_postinst() { |
137 |
- elog "If you are using the nrpe daemon, remember to edit" |
138 |
- elog "the config file /etc/nagios/nrpe.cfg" |
139 |
- |
140 |
- if use command-args ; then |
141 |
- ewarn "" |
142 |
- ewarn "You have enabled command-args for NRPE. This enables" |
143 |
- ewarn "the ability for clients to supply arguments to commands" |
144 |
- ewarn "which should be run. " |
145 |
- ewarn "THIS IS CONSIDERED A SECURITY RISK!" |
146 |
- ewarn "Please read /usr/share/doc/${PF}/SECURITY.bz2 for more info" |
147 |
- fi |
148 |
-} |