1 |
commit: a41e1231f48bfe9c3835b356665ebb6bb76ad6c0 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 10:05:59 2022 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 10:05:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41e1231 |
7 |
|
8 |
net-analyzer/pnp4nagios: drop 0.6.26-r10 |
9 |
|
10 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
11 |
|
12 |
.../pnp4nagios/pnp4nagios-0.6.26-r10.ebuild | 100 --------------------- |
13 |
1 file changed, 100 deletions(-) |
14 |
|
15 |
diff --git a/net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r10.ebuild b/net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r10.ebuild |
16 |
deleted file mode 100644 |
17 |
index ab4a072f70b2..000000000000 |
18 |
--- a/net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r10.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,100 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-DESCRIPTION="A performance data analyzer for nagios" |
27 |
-HOMEPAGE="http://www.pnp4nagios.org/" |
28 |
-SRC_URI="mirror://sourceforge/${PN}/PNP-0.6/${P}.tar.gz" |
29 |
- |
30 |
-LICENSE="GPL-2" |
31 |
-SLOT="0" |
32 |
-IUSE="apache2 icinga +nagios" |
33 |
-KEYWORDS="amd64 ~ppc ppc64 ~sparc x86" |
34 |
- |
35 |
-REQUIRED_USE="^^ ( icinga nagios )" |
36 |
- |
37 |
-# Some things (sync mode, for one) are broken with nagios-4.x, but since |
38 |
-# nagios-3.x has been end-of-life'd, we don't have much choice here but |
39 |
-# to accept it. |
40 |
-DEPEND=" |
41 |
- dev-lang/php:*[filter,gd,json(+),simplexml,xml,zlib] |
42 |
- net-analyzer/rrdtool[graph,perl] |
43 |
- icinga? ( net-analyzer/icinga2 ) |
44 |
- nagios? ( net-analyzer/nagios-core )" |
45 |
- |
46 |
-# A list of modules used in our Apache config file. |
47 |
-APACHE_MODS="apache2_modules_alias," # "Alias" directive |
48 |
-APACHE_MODS+="apache2_modules_authz_core," # "Require" directive |
49 |
-APACHE_MODS+="apache2_modules_rewrite" # "RewriteEngine" and friends |
50 |
- |
51 |
-RDEPEND="${DEPEND} |
52 |
- virtual/perl-Getopt-Long |
53 |
- virtual/perl-Time-HiRes |
54 |
- media-fonts/dejavu |
55 |
- apache2? ( >=www-servers/apache-2.4[${APACHE_MODS}] )" |
56 |
- |
57 |
-PATCHES=( "${FILESDIR}/${PN}-0.6.14-makefile.patch" ) |
58 |
- |
59 |
-src_configure() { |
60 |
- local user_group=nagios |
61 |
- use icinga && user_group=icinga |
62 |
- |
63 |
- econf \ |
64 |
- --sysconfdir="${EPREFIX}"/etc/pnp \ |
65 |
- --datarootdir="${EPREFIX}"/usr/share/pnp \ |
66 |
- --localstatedir="${EPREFIX}"/var/lib/pnp \ |
67 |
- --with-nagios-user="${user_group}" \ |
68 |
- --with-nagios-group="${user_group}" \ |
69 |
- --with-perfdata-logfile="${EPREFIX}"/var/log/pnp/process_perfdata.log |
70 |
-} |
71 |
- |
72 |
-src_compile() { |
73 |
- # The default target just shows a help |
74 |
- emake all |
75 |
-} |
76 |
- |
77 |
-src_install() { |
78 |
- # Don't use INSTALL_OPTS because they set insecure permissions on |
79 |
- # all of /etc/pnp (https://github.com/lingej/pnp4nagios/issues/140). |
80 |
- emake INSTALL_OPTS="" DESTDIR="${D}" install install-config |
81 |
- einstalldocs |
82 |
- newinitd "${FILESDIR}"/npcd.initd npcd |
83 |
- rm "${ED%/}/usr/share/pnp/install.php" || \ |
84 |
- die "unable to remove ${ED%/}/usr/share/pnp/install.php" |
85 |
- |
86 |
- # Fix CVE-2012-3457 (Gentoo bug 430358) |
87 |
- fperms o-rwx /etc/pnp/process_perfdata.cfg |
88 |
- |
89 |
- if use apache2 ; then |
90 |
- insinto /etc/apache2/modules.d |
91 |
- newins "${FILESDIR}"/98_pnp4nagios-2.4.conf 98_pnp4nagios.conf |
92 |
- fi |
93 |
- |
94 |
- # The nagios or icinga user needs to write performance data to the |
95 |
- # perfdata-dir... |
96 |
- local user_group=nagios |
97 |
- use icinga && user_group=icinga |
98 |
- fowners ":${user_group}" /var/lib/pnp/{,perfdata,spool} |
99 |
- fperms g+rwx /var/lib/pnp/{,perfdata,spool} |
100 |
- |
101 |
- # and likewise for its logs... |
102 |
- dodir /var/log/pnp |
103 |
- fowners ":${user_group}" /var/log/pnp |
104 |
- fperms g+rwx /var/log/pnp |
105 |
- |
106 |
- # and its statistics. This one is arguably the responsibility of the |
107 |
- # build system, since process_perfdata.cfg refers to this location. |
108 |
- dodir /var/lib/pnp/stats |
109 |
- fowners ":${user_group}" /var/lib/pnp/stats |
110 |
- fperms g+rwx /var/lib/pnp/stats |
111 |
-} |
112 |
- |
113 |
-pkg_postinst() { |
114 |
- elog "To enable the pnp4nagios web front-end, please visit" |
115 |
- elog "${EROOT%/}/etc/conf.d/apache2 and add \"-D PNP -D PHP\"" |
116 |
- elog "to APACHE2_OPTS. Then pnp4nagios will be available at," |
117 |
- elog |
118 |
- elog " http://localhost/pnp4nagios" |
119 |
- elog |
120 |
-} |