1 |
commit: 160a88adcc626c622152c184aa537508e5af9d67 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 1 18:19:19 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 1 18:19:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160a88ad |
7 |
|
8 |
net-analyzer/nagvis: Remove last-rited pkg |
9 |
|
10 |
Closes: https://bugs.gentoo.org/477742 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/nagvis/Manifest | 1 - |
14 |
.../nagvis/files/nagvis-1.6.6-base-path.patch | 13 ---- |
15 |
.../files/nagvis-1.6.6-global-definitions.patch | 30 -------- |
16 |
net-analyzer/nagvis/metadata.xml | 11 --- |
17 |
net-analyzer/nagvis/nagvis-1.6.6.ebuild | 90 ---------------------- |
18 |
profiles/package.mask | 5 -- |
19 |
6 files changed, 150 deletions(-) |
20 |
|
21 |
diff --git a/net-analyzer/nagvis/Manifest b/net-analyzer/nagvis/Manifest |
22 |
deleted file mode 100644 |
23 |
index 71c63ecf82b..00000000000 |
24 |
--- a/net-analyzer/nagvis/Manifest |
25 |
+++ /dev/null |
26 |
@@ -1 +0,0 @@ |
27 |
-DIST nagvis-1.6.6.tar.gz 3430714 BLAKE2B af932327b91f64b1d146d6937f45f94ff9826728126c19254abc4ba57883fce18380e36f99a205532df93b4a1b9225ad34140a90d3d80e2203581353c0915ea1 SHA512 e5858b185dd5d31fc8d414df5b3464941769249ce582b10e155e89ba7aa0c45724550c44de9d7bfb23b96caa737e519f320e45050126feb94593cca2bfc583cb |
28 |
|
29 |
diff --git a/net-analyzer/nagvis/files/nagvis-1.6.6-base-path.patch b/net-analyzer/nagvis/files/nagvis-1.6.6-base-path.patch |
30 |
deleted file mode 100644 |
31 |
index 771076c4eaa..00000000000 |
32 |
--- a/net-analyzer/nagvis/files/nagvis-1.6.6-base-path.patch |
33 |
+++ /dev/null |
34 |
@@ -1,13 +0,0 @@ |
35 |
---- a/share/server/core/classes/GlobalMainCfg.php 2012-05-31 11:14:23.000000000 -0400 |
36 |
-+++ b/share/server/core/classes/GlobalMainCfg.php 2012-05-31 11:17:10.000000000 -0400 |
37 |
-@@ -1215,8 +1215,8 @@ |
38 |
- * @author Roman Kyrylych <rkyrylych@×××.com> |
39 |
- */ |
40 |
- private function getBasePath() { |
41 |
-- // Go 3 levels up from nagvis/share/nagvis to nagvis base path |
42 |
-- return realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../../..') . '/'; |
43 |
-+ // Go 2 levels up from share/nagvis to nagvis base path |
44 |
-+ return realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../..') . '/'; |
45 |
- // Note: the method below causes problems when <docroot>/nagvis is a symlink to <nagvis-base>/share |
46 |
- // return realpath(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])))).'/'; |
47 |
- } |
48 |
|
49 |
diff --git a/net-analyzer/nagvis/files/nagvis-1.6.6-global-definitions.patch b/net-analyzer/nagvis/files/nagvis-1.6.6-global-definitions.patch |
50 |
deleted file mode 100644 |
51 |
index 9786b970179..00000000000 |
52 |
--- a/net-analyzer/nagvis/files/nagvis-1.6.6-global-definitions.patch |
53 |
+++ /dev/null |
54 |
@@ -1,30 +0,0 @@ |
55 |
---- a/share/server/core/defines/global.php 2012-05-13 05:44:27.000000000 -0400 |
56 |
-+++ b/share/server/core/defines/global.php 2012-05-31 11:20:39.000000000 -0400 |
57 |
-@@ -64,7 +64,7 @@ |
58 |
- define('DEBUGLEVEL', 6); |
59 |
- |
60 |
- // Path to the debug file |
61 |
--define('DEBUGFILE', '../../../var/nagvis-debug.log'); |
62 |
-+define('DEBUGFILE', '../../var/nagvis-debug.log'); |
63 |
- |
64 |
- // It is possible to define a conf.d directory for splitting the main |
65 |
- // configuration in several files. Only the values defined in the CONST_MAINCFG |
66 |
-@@ -78,14 +78,14 @@ |
67 |
- // The last value wins. |
68 |
- // |
69 |
- // Path to the main configuration file |
70 |
--define('CONST_MAINCFG', '../../../etc/nagvis.ini.php'); |
71 |
--define('CONST_MAINCFG_CACHE', '../../../var/nagvis-conf'); |
72 |
-+define('CONST_MAINCFG', '../../etc/nagvis.ini.php'); |
73 |
-+define('CONST_MAINCFG_CACHE', '../../var/nagvis-conf'); |
74 |
- |
75 |
- // Path to the main configuration conf.d directory |
76 |
--define('CONST_MAINCFG_DIR', '../../../etc/conf.d'); |
77 |
-+define('CONST_MAINCFG_DIR', '../../etc/conf.d'); |
78 |
- |
79 |
- // The directory below the NagVis root which is shared by the webserver |
80 |
--define('HTDOCS_DIR', 'share'); |
81 |
-+define('HTDOCS_DIR', ''); |
82 |
- |
83 |
- // Needed minimal PHP version |
84 |
- define('CONST_NEEDED_PHP_VERSION', '5.0'); |
85 |
|
86 |
diff --git a/net-analyzer/nagvis/metadata.xml b/net-analyzer/nagvis/metadata.xml |
87 |
deleted file mode 100644 |
88 |
index 03cfbae2f91..00000000000 |
89 |
--- a/net-analyzer/nagvis/metadata.xml |
90 |
+++ /dev/null |
91 |
@@ -1,11 +0,0 @@ |
92 |
-<?xml version="1.0" encoding="UTF-8"?> |
93 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
94 |
-<pkgmetadata> |
95 |
- <!-- maintainer-needed --> |
96 |
- <use> |
97 |
- <flag name="automap">Enable automated map generation using <pkg>media-gfx/graphviz</pkg></flag> |
98 |
- </use> |
99 |
- <upstream> |
100 |
- <remote-id type="sourceforge">nagvis</remote-id> |
101 |
- </upstream> |
102 |
-</pkgmetadata> |
103 |
|
104 |
diff --git a/net-analyzer/nagvis/nagvis-1.6.6.ebuild b/net-analyzer/nagvis/nagvis-1.6.6.ebuild |
105 |
deleted file mode 100644 |
106 |
index 19ce16533ff..00000000000 |
107 |
--- a/net-analyzer/nagvis/nagvis-1.6.6.ebuild |
108 |
+++ /dev/null |
109 |
@@ -1,90 +0,0 @@ |
110 |
-# Copyright 1999-2017 Gentoo Foundation |
111 |
-# Distributed under the terms of the GNU General Public License v2 |
112 |
- |
113 |
-EAPI=5 |
114 |
- |
115 |
-inherit eutils depend.apache |
116 |
- |
117 |
-DESCRIPTION="Visualization addon for the network managment system Nagios" |
118 |
-HOMEPAGE="http://www.nagvis.org/" |
119 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
120 |
- |
121 |
-LICENSE="GPL-2" |
122 |
-SLOT="0" |
123 |
-KEYWORDS="~amd64 ~ppc ~x86" |
124 |
-IUSE="apache2 automap" |
125 |
- |
126 |
-DEPEND="virtual/httpd-php" |
127 |
-RDEPEND="|| ( net-analyzer/nagios net-analyzer/icinga ) |
128 |
- automap? ( >=media-gfx/graphviz-2.14 ) |
129 |
- apache2? ( dev-lang/php[apache2] ) |
130 |
- net-analyzer/mk-livestatus |
131 |
- dev-lang/php[gd,nls,json,session,pdo,sqlite,sockets,mysql,unicode,xml] |
132 |
- virtual/httpd-php:*" |
133 |
- |
134 |
-want_apache2 |
135 |
- |
136 |
-pkg_setup() { |
137 |
- depend.apache_pkg_setup |
138 |
-} |
139 |
- |
140 |
-src_prepare() { |
141 |
- epatch "${FILESDIR}"/${P}-base-path.patch |
142 |
- epatch "${FILESDIR}"/${P}-global-definitions.patch |
143 |
- grep -Rl "/usr/local" "${S}"/* | xargs sed -i s:/usr/local:/usr:g ||die |
144 |
- sed -i s:@NAGVIS_WEB@:/nagvis:g "${S}"/etc/apache2-nagvis.conf-sample ||die |
145 |
- sed -i s:@NAGVIS_PATH@:/usr/share/nagvis/:g "${S}"/etc/apache2-nagvis.conf-sample ||die |
146 |
- sed -i s:/usr/nagios/var/rw/live:/var/nagios/rw/live:g "${S}"/etc/nagvis.ini.php-sample ||die |
147 |
-} |
148 |
- |
149 |
-src_install() { |
150 |
- dodoc README INSTALL |
151 |
- |
152 |
- insinto /usr/share/nagvis |
153 |
- doins -r share/{config.php,index.php,frontend,netmap,server,userfiles} |
154 |
- doins -r docs |
155 |
- |
156 |
- diropts -o apache -g root |
157 |
- dodir /var/nagvis/tmpl/{cache,compile} |
158 |
- diropts |
159 |
- dosym /var/nagvis /usr/share/nagvis/var |
160 |
- |
161 |
- if use apache2 ; then |
162 |
- insinto "${APACHE_MODULES_CONFDIR}" |
163 |
- newins etc/apache2-nagvis.conf-sample 98_${PN}.conf |
164 |
- fi |
165 |
- |
166 |
- insinto /etc/nagvis |
167 |
- doins -r etc/{conf.d,automaps,geomap,.htaccess,nagvis.ini.php-sample} |
168 |
- fowners apache:root /etc/nagvis |
169 |
- fperms 0664 /etc/nagvis/nagvis.ini.php-sample |
170 |
- dosym /etc/nagvis /usr/share/nagvis/etc |
171 |
- |
172 |
- diropts -o apache -g root -m0775 |
173 |
- insopts -o apache -g root -m0664 |
174 |
- doins -r etc/maps |
175 |
- diropts |
176 |
- insopts |
177 |
- |
178 |
- # move image maps dir from usr to var and symlink it back |
179 |
- dodir /var/nagvis/userfiles/images |
180 |
- mv "${D}"/usr/share/nagvis/userfiles/images/maps "${D}"/var/nagvis/userfiles/images/ ||die |
181 |
- fowners apache:root /var/nagvis/userfiles/images/maps |
182 |
- dosym /var/nagvis/userfiles/images/maps /usr/share/nagvis/userfiles/images/maps |
183 |
-} |
184 |
- |
185 |
-pkg_postinst() { |
186 |
- elog "Before running NagVis for the first time, you will need to set up" |
187 |
- elog "/etc/nagvis/nagvis.ini.php" |
188 |
- elog "A sample is in" |
189 |
- elog "/etc/nagvis/nagvis.ini.php-sample" |
190 |
- if use apache2 ; then |
191 |
- elog |
192 |
- elog "For web interface make sure to add -D NAGVIS to APACHE2_OPTS in" |
193 |
- elog "/etc/conf.d/apache2 and to restart apache2. A default configuration" |
194 |
- elog "has been placed at /etc/apache2/modules.d/98_${PN}.conf" |
195 |
- fi |
196 |
- elog "" |
197 |
- elog "Default user/password are: nagiosadmin/nagiosadmin" |
198 |
- elog " guest/guest" |
199 |
-} |
200 |
|
201 |
diff --git a/profiles/package.mask b/profiles/package.mask |
202 |
index fca9aa450f8..74764243f25 100644 |
203 |
--- a/profiles/package.mask |
204 |
+++ b/profiles/package.mask |
205 |
@@ -475,11 +475,6 @@ www-apps/lxr |
206 |
# /dev (#452248), ignores CFLAGS (#452244). Removal in a month. |
207 |
app-misc/iguanaIR |
208 |
|
209 |
-# Pacho Ramos <pacho@g.o> (01 Nov 2018) |
210 |
-# Needs a major version bump to a version that is security audited |
211 |
-# (#477742). Removal in a month. |
212 |
-net-analyzer/nagvis |
213 |
- |
214 |
# Pacho Ramos <pacho@g.o> (01 Nov 2018) |
215 |
# All this packages are broken and need major version bumps to fix them. See |
216 |
# bug #504114, #486510, #510550, #511096, #517260, #551784, #616490, # |