From de49812990871e1705b64051c35161d5e6400269 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 24 Dec 2018 14:11:38 +0000 Subject: gentoo resync : 24.12.2018 --- net-analyzer/nagvis/Manifest | 5 -- .../nagvis/files/nagvis-1.6.6-base-path.patch | 13 ---- .../files/nagvis-1.6.6-global-definitions.patch | 30 -------- net-analyzer/nagvis/metadata.xml | 11 --- net-analyzer/nagvis/nagvis-1.6.6.ebuild | 90 ---------------------- 5 files changed, 149 deletions(-) delete mode 100644 net-analyzer/nagvis/Manifest delete mode 100644 net-analyzer/nagvis/files/nagvis-1.6.6-base-path.patch delete mode 100644 net-analyzer/nagvis/files/nagvis-1.6.6-global-definitions.patch delete mode 100644 net-analyzer/nagvis/metadata.xml delete mode 100644 net-analyzer/nagvis/nagvis-1.6.6.ebuild (limited to 'net-analyzer/nagvis') diff --git a/net-analyzer/nagvis/Manifest b/net-analyzer/nagvis/Manifest deleted file mode 100644 index de96a5dec116..000000000000 --- a/net-analyzer/nagvis/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX nagvis-1.6.6-base-path.patch 799 BLAKE2B a9e226ea8103952ca17eb4956b73e5fb3a9903da6fbbee127fc92f3e13157b063d280caba12cc73b0800458d25a3f8c27eceb98ede8f1a17480f57956543ee68 SHA512 54476998b1bf0b8ce25691fff558e3faa0aefaa4c1ba5d9804e809ae862f79cb96ea87fb7368a1100282bbc8d1f89902f8b4bca397df1ea24a840996889de1e0 -AUX nagvis-1.6.6-global-definitions.patch 1177 BLAKE2B cae158eaed43f312a5abdec47b49535843661e6136dbfe85b257ae4e139352d9cf653dd89143b8c372c1aad1a0fff57881180174d0cd0e1855eedcc4f4ea12d2 SHA512 26d53a48852082010c660280ffef786a8713a02ba675b4b455de48c65136816772c8012ead282bd8da879b1696bf811e4ef091765cc3014d5b2fb1445166c79d -DIST nagvis-1.6.6.tar.gz 3430714 BLAKE2B af932327b91f64b1d146d6937f45f94ff9826728126c19254abc4ba57883fce18380e36f99a205532df93b4a1b9225ad34140a90d3d80e2203581353c0915ea1 SHA512 e5858b185dd5d31fc8d414df5b3464941769249ce582b10e155e89ba7aa0c45724550c44de9d7bfb23b96caa737e519f320e45050126feb94593cca2bfc583cb -EBUILD nagvis-1.6.6.ebuild 2768 BLAKE2B 36e0e64c1b9a0132fcf97ab051bd41af366ffd377a486dd6f836f9b6851040c5a565260abf47dc69b95b66115ff81b86a9ef54d102347650b68126272c320458 SHA512 25566b1c0bcf9a097614001652588b174c88312aa12fec7b47be1171be5e08a095387fab6da7f250cfc31791be3e124ded3aa9d84a3330b2073608138e7ce24f -MISC metadata.xml 365 BLAKE2B dfc8368f1c2baf8905ed90fa4371d2bcc13adddd9c61efb0721adcd9587af43f84432e834b543e390f90f48f88b803cb7e88a91b96c516c658be770e6efbdc59 SHA512 3c0b10ae339027a59540557329d0a0316d6f82c791a6f915d06e6b19f7c12e26145e08845b9eb901d5fb2ca460953c6625978a701b552bc559f30a7eca0e18fd 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 deleted file mode 100644 index 771076c4eaa7..000000000000 --- a/net-analyzer/nagvis/files/nagvis-1.6.6-base-path.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/share/server/core/classes/GlobalMainCfg.php 2012-05-31 11:14:23.000000000 -0400 -+++ b/share/server/core/classes/GlobalMainCfg.php 2012-05-31 11:17:10.000000000 -0400 -@@ -1215,8 +1215,8 @@ - * @author Roman Kyrylych - */ - private function getBasePath() { -- // Go 3 levels up from nagvis/share/nagvis to nagvis base path -- return realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../../..') . '/'; -+ // Go 2 levels up from share/nagvis to nagvis base path -+ return realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../..') . '/'; - // Note: the method below causes problems when /nagvis is a symlink to /share - // return realpath(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])))).'/'; - } 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 deleted file mode 100644 index 9786b970179f..000000000000 --- a/net-analyzer/nagvis/files/nagvis-1.6.6-global-definitions.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/share/server/core/defines/global.php 2012-05-13 05:44:27.000000000 -0400 -+++ b/share/server/core/defines/global.php 2012-05-31 11:20:39.000000000 -0400 -@@ -64,7 +64,7 @@ - define('DEBUGLEVEL', 6); - - // Path to the debug file --define('DEBUGFILE', '../../../var/nagvis-debug.log'); -+define('DEBUGFILE', '../../var/nagvis-debug.log'); - - // It is possible to define a conf.d directory for splitting the main - // configuration in several files. Only the values defined in the CONST_MAINCFG -@@ -78,14 +78,14 @@ - // The last value wins. - // - // Path to the main configuration file --define('CONST_MAINCFG', '../../../etc/nagvis.ini.php'); --define('CONST_MAINCFG_CACHE', '../../../var/nagvis-conf'); -+define('CONST_MAINCFG', '../../etc/nagvis.ini.php'); -+define('CONST_MAINCFG_CACHE', '../../var/nagvis-conf'); - - // Path to the main configuration conf.d directory --define('CONST_MAINCFG_DIR', '../../../etc/conf.d'); -+define('CONST_MAINCFG_DIR', '../../etc/conf.d'); - - // The directory below the NagVis root which is shared by the webserver --define('HTDOCS_DIR', 'share'); -+define('HTDOCS_DIR', ''); - - // Needed minimal PHP version - define('CONST_NEEDED_PHP_VERSION', '5.0'); diff --git a/net-analyzer/nagvis/metadata.xml b/net-analyzer/nagvis/metadata.xml deleted file mode 100644 index 03cfbae2f915..000000000000 --- a/net-analyzer/nagvis/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Enable automated map generation using media-gfx/graphviz - - - nagvis - - diff --git a/net-analyzer/nagvis/nagvis-1.6.6.ebuild b/net-analyzer/nagvis/nagvis-1.6.6.ebuild deleted file mode 100644 index 19ce16533ff7..000000000000 --- a/net-analyzer/nagvis/nagvis-1.6.6.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils depend.apache - -DESCRIPTION="Visualization addon for the network managment system Nagios" -HOMEPAGE="http://www.nagvis.org/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="apache2 automap" - -DEPEND="virtual/httpd-php" -RDEPEND="|| ( net-analyzer/nagios net-analyzer/icinga ) - automap? ( >=media-gfx/graphviz-2.14 ) - apache2? ( dev-lang/php[apache2] ) - net-analyzer/mk-livestatus - dev-lang/php[gd,nls,json,session,pdo,sqlite,sockets,mysql,unicode,xml] - virtual/httpd-php:*" - -want_apache2 - -pkg_setup() { - depend.apache_pkg_setup -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-base-path.patch - epatch "${FILESDIR}"/${P}-global-definitions.patch - grep -Rl "/usr/local" "${S}"/* | xargs sed -i s:/usr/local:/usr:g ||die - sed -i s:@NAGVIS_WEB@:/nagvis:g "${S}"/etc/apache2-nagvis.conf-sample ||die - sed -i s:@NAGVIS_PATH@:/usr/share/nagvis/:g "${S}"/etc/apache2-nagvis.conf-sample ||die - sed -i s:/usr/nagios/var/rw/live:/var/nagios/rw/live:g "${S}"/etc/nagvis.ini.php-sample ||die -} - -src_install() { - dodoc README INSTALL - - insinto /usr/share/nagvis - doins -r share/{config.php,index.php,frontend,netmap,server,userfiles} - doins -r docs - - diropts -o apache -g root - dodir /var/nagvis/tmpl/{cache,compile} - diropts - dosym /var/nagvis /usr/share/nagvis/var - - if use apache2 ; then - insinto "${APACHE_MODULES_CONFDIR}" - newins etc/apache2-nagvis.conf-sample 98_${PN}.conf - fi - - insinto /etc/nagvis - doins -r etc/{conf.d,automaps,geomap,.htaccess,nagvis.ini.php-sample} - fowners apache:root /etc/nagvis - fperms 0664 /etc/nagvis/nagvis.ini.php-sample - dosym /etc/nagvis /usr/share/nagvis/etc - - diropts -o apache -g root -m0775 - insopts -o apache -g root -m0664 - doins -r etc/maps - diropts - insopts - - # move image maps dir from usr to var and symlink it back - dodir /var/nagvis/userfiles/images - mv "${D}"/usr/share/nagvis/userfiles/images/maps "${D}"/var/nagvis/userfiles/images/ ||die - fowners apache:root /var/nagvis/userfiles/images/maps - dosym /var/nagvis/userfiles/images/maps /usr/share/nagvis/userfiles/images/maps -} - -pkg_postinst() { - elog "Before running NagVis for the first time, you will need to set up" - elog "/etc/nagvis/nagvis.ini.php" - elog "A sample is in" - elog "/etc/nagvis/nagvis.ini.php-sample" - if use apache2 ; then - elog - elog "For web interface make sure to add -D NAGVIS to APACHE2_OPTS in" - elog "/etc/conf.d/apache2 and to restart apache2. A default configuration" - elog "has been placed at /etc/apache2/modules.d/98_${PN}.conf" - fi - elog "" - elog "Default user/password are: nagiosadmin/nagiosadmin" - elog " guest/guest" -} -- cgit v1.2.3