summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2012-04-23 18:27:00 +0000
committerPacho Ramos <pacho@gentoo.org>2012-04-23 18:27:00 +0000
commite627a5af411f1e7b2c1f00aab9bdecceb6da2462 (patch)
tree444d99494e4817b9031d96902862fef751597e37 /net-analyzer
parentPackage removal. (diff)
downloadhistorical-e627a5af411f1e7b2c1f00aab9bdecceb6da2462.tar.gz
historical-e627a5af411f1e7b2c1f00aab9bdecceb6da2462.tar.bz2
historical-e627a5af411f1e7b2c1f00aab9bdecceb6da2462.zip
Package removal.
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/midas-nms/ChangeLog57
-rw-r--r--net-analyzer/midas-nms/Manifest18
-rw-r--r--net-analyzer/midas-nms/files/install.php456
-rw-r--r--net-analyzer/midas-nms/files/midas-nms-2.2f-sysconfdir.patch112
-rw-r--r--net-analyzer/midas-nms/files/midas-nms.conf9
-rw-r--r--net-analyzer/midas-nms/files/midas-nms.init71
-rw-r--r--net-analyzer/midas-nms/metadata.xml10
-rw-r--r--net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild82
8 files changed, 0 insertions, 815 deletions
diff --git a/net-analyzer/midas-nms/ChangeLog b/net-analyzer/midas-nms/ChangeLog
deleted file mode 100644
index 68d3919fa956..000000000000
--- a/net-analyzer/midas-nms/ChangeLog
+++ /dev/null
@@ -1,57 +0,0 @@
-# ChangeLog for net-analyzer/midas-nms
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/midas-nms/ChangeLog,v 1.15 2012/03/18 19:20:19 pacho Exp $
-
- 18 Mar 2012; Pacho Ramos <pacho@gentoo.org> metadata.xml:
- Drop maintainer due retirement, bug #391429.
-
- 02 Apr 2011; Samuli Suominen <ssuominen@gentoo.org> midas-nms-2.2f-r1.ebuild:
- Use net-libs/libpcap instead of virtual/libpcap wrt #358835.
-
- 05 Feb 2008; Benedikt Böhm <hollow@gentoo.org> midas-nms-2.2f-r1.ebuild:
- fix depend.apache usage wrt #208584
-
-*midas-nms-2.2f-r1 (06 Sep 2007)
-
- 06 Sep 2007; Markus Ullmann <jokey@gentoo.org>
- +files/midas-nms-2.2f-sysconfdir.patch, -midas-nms-2.2f.ebuild,
- +midas-nms-2.2f-r1.ebuild:
- Fix for correct configfile path wrt bug #101846 thanks to Tomoyuki Sakurai
-
- 29 Jul 2007; Christian Heim <phreak@gentoo.org> midas-nms-2.2f.ebuild:
- Fixing the DEPEND/RDEPEND for the move of net-www/apache to
- www-servers/apache (#78622).
-
- 01 May 2007; Marius Mauch <genone@gentoo.org> midas-nms-2.2f.ebuild:
- Replacing einfo with elog
-
- 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> midas-nms-2.2f.ebuild:
- dev-db/mysql => virtual/mysql
-
- 04 Mar 2006; Luca Longinotti <chtekk@gentoo.org> midas-nms-2.2f.ebuild:
- Fix bug #102839.
-
- 20 Nov 2005; Stuart Herbert <stuart@gentoo.org> midas-nms-2.2f.ebuild:
- Fixed broken DEPEND
-
- 19 Jul 2005; David Holm <dholm@gentoo.org> midas-nms-2.2f.ebuild:
- Added to ~ppc.
-
- 12 Apr 2005; Jason Wever <weeve@gentoo.org> :
- Added ~sparc keyword.
-
- 29 Jan 2005; Daniel Black <dragonheart@gentoo.org> midas-nms-2.2f.ebuild:
- changed net-libs/libpcap depend to virtual/libcap
-
-*midas-nms-2.2f (20 Oct 2004)
-
- 20 Oct 2004; Jose Alberto Suarez Lopez <bass@gentoo.org> midas-nms-2.2f.ebuild:
- Fixed ebuild command.
-
- 20 Oct 2004; Jose Alberto Suarez Lopez <bass@gentoo.org> +files/midas-nms.conf,
- +files/midas-nms.init, midas-nms-2.2f.ebuild:
- Added init scripts.
-
- 20 Oct 2004; Jose Alberto Suarez Lopez <bass@gentoo.org> +midas-nms-2.2f.ebuild:
- New ebuild.
-
diff --git a/net-analyzer/midas-nms/Manifest b/net-analyzer/midas-nms/Manifest
deleted file mode 100644
index 4188e05039e2..000000000000
--- a/net-analyzer/midas-nms/Manifest
+++ /dev/null
@@ -1,18 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX install.php 19473 RMD160 9c023343a33f82e5f01b83fbae2cec69403aaa58 SHA1 bd9e3f44ee6e3e8b32e74f19ae893b3d1cd309f2 SHA256 5d9edbd325504b77d523487939fe8f6f956765766c676db998d0d6a9a4d78601
-AUX midas-nms-2.2f-sysconfdir.patch 4599 RMD160 ca01116b3208dd584b968b1aab4ccd3371719fe5 SHA1 6662a5bbc9b9cc035dff3ab3ae0cfe1715e2546f SHA256 068e1f4dec8e9560d80c7ffd0d31b30cbeb3ca0e819563cc7d2433bb183cdd9a
-AUX midas-nms.conf 115 RMD160 7ee56ab859a87525ff0ce04b1831647b80d904d3 SHA1 409de614a6b57ece91a09572797e75a726083d70 SHA256 507d63f510064c0457ae3578cbddf6eda6a53c2e82c5214a1d48b42e8164124f
-AUX midas-nms.init 1971 RMD160 77979d4f005dd3ee0ac5aa1ed251a664846a734b SHA1 31925c4187b8b1229a85e0f5ca506cadb2641a25 SHA256 0285b3792eba76f6c2f1968b7731e85bce0d7ccf108e97f9fb237909dcc12ecd
-DIST MIDAS-2.2f.tar.gz 1245707 RMD160 088fc9be0d6a81463182b8603bc25bae9af5990e SHA1 f067f7b4379d9a3ad51756b34212f4673a1d37a3 SHA256 8b177a533b2bb5885f0ec38dafec6f707a2c0e43bd2dd919400fd31138ed6cf6
-EBUILD midas-nms-2.2f-r1.ebuild 1904 RMD160 c264921938f398e4e06d9ccfef9cc1141e134ca0 SHA1 c23efa6fdcc4900a14d6ec789c04912acb6e034c SHA256 a2179347584717802efed848671f469ed6afe4bb8c380852731e55fcfc281c32
-MISC ChangeLog 2081 RMD160 493c09e2bc711c71307f424670e461df65d4c995 SHA1 e55ec28582a71132818edb46e4d1da13c11b2ee1 SHA256 bea0e8bbd5948f1e397f68577bb7a9160230b21fe08f0656596c397810dc1eaa
-MISC metadata.xml 445 RMD160 854c118f57b592cf7d6ef447f29533c5b91abe55 SHA1 984ffa79fd980765bba4f0c42288eb9cb5aba049 SHA256 90007268c8971a9cae31969244de4cfc93533285913e8a3c18bf16e1bbfd0c0f
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
-
-iEYEARECAAYFAk9mNXgACgkQCaWpQKGI+9QX8QCeJ2AT2dmsFinMdjG4PiP4q6Yt
-tfkAmgNfnWlB45SQHFwDzlEKbtp326QL
-=7uXv
------END PGP SIGNATURE-----
diff --git a/net-analyzer/midas-nms/files/install.php b/net-analyzer/midas-nms/files/install.php
deleted file mode 100644
index b7fa68c25e11..000000000000
--- a/net-analyzer/midas-nms/files/install.php
+++ /dev/null
@@ -1,456 +0,0 @@
-<?
-/********************************************************************
-Copyright (c) 2003 Jason Sessler
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation files
-(the "Software"), to deal in the Software without restriction,
-including without limitation the rights to use, copy, modify, merge,
-publish, distribute, sublicense, and/or sell copies of the Software,
-and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-********************************************************************/
-
-/********************************************************************
- Changelog:
- 01/11/2004 - Changed how the MIDAS version is loaded to variable.
- 12/15/2003 - Version was incorrect
- - Cleaned a few non-problematic typos
- - Added check for MySQL Support in PHP
-
- 12/02/2003 - Added set_time_limit()
-
- 11/27/2003 - Added on/off toggle for creating the
- inc/config/config.php file.
-
-********************************************************************/
-
-// Needed for sql statements. When updating large MIDAS DBs, the
-// process takes a lot longer than the php default time_limit
-@set_time_limit(0);
-
-define(_DOC_ROOT, "../");
-define("_APPNAME", "MIDAS WebView Installer");
-
-include _DOC_ROOT . "inc/version.php";
-include _DOC_ROOT . "lib/mysql.inc.php";
-include _DOC_ROOT . "lib/html.inc.php";
-include _DOC_ROOT . "themes/plain_blue.php";
-
-include "install.inc.php";
-
-printf("<HTML>\n");
-printf("<HEAD>\n");
-printf("<TITLE>%s %s</TITLE>\n", _APPNAME, _VERSION);
-printf("</HEAD>\n");
-printf("<LINK rel=stylesheet href='%s' type=text/css>\n", $color['css']);
-
-printf("<BODY bgcolor=%s topmargin=10 leftmargin=10>\n", $color[3]);
-
-$DIR = _DOC_ROOT . "inc/config";
-$IMGDIR = _DOC_ROOT . "php-graph";
-$CONFIG = $DIR . "/config.php";
-$TEMPLATE = $DIR . "/config.template";
-
-if($_POST['LOC'] == "") {
- $info = null;
- $error = FALSE;
-
- if(@is_readable($CONFIG)) {
- $schk .= html_tag("TR",
- html_tag("TD", "Site Config Exists", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "WARNING", $color[1], "class=blacksmall align=center"),
- "", "");
- } else {
- $schk .= html_tag("TR",
- html_tag("TD", "Site Config Exists", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
-
- if(@is_readable($TEMPLATE)) {
- $schk .= html_tag("TR",
- html_tag("TD", "Site Config Template Exists", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- } else {
- $schk .= html_tag("TR",
- html_tag("TD", "Site Config Template Exists", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- $error = TRUE;
- }
-
- if(@!is_writeable($DIR)) {
- $schk .= html_tag("TR",
- html_tag("TD", "/inc/config directory is Writable", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- $error = TRUE;
- } else {
- $schk .= html_tag("TR",
- html_tag("TD", "/inc/config directory is Writable", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
-
- if(@!is_writeable($IMGDIR)) {
- $schk .= html_tag("TR",
- html_tag("TD", "/php-graph directory is Writable", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- $error = TRUE;
- } else {
- $schk .= html_tag("TR",
- html_tag("TD", "/php-graph directory is Writable", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
- if(@!function_exists(mysql_connect)) {
- $schk .= html_tag("TR",
- html_tag("TD", "PHP with MySQL support", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- $error = TRUE;
- } else {
- $schk .= html_tag("TR",
- html_tag("TD", "PHP with MySQL support", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
- if(@!function_exists(imagepng)) {
- $schk .= html_tag("TR",
- html_tag("TD", "PHP with GD+PNG support", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "WARNING", $color[1], "class=blacksmall align=center"),
- "", "");
- } else {
- $schk .= html_tag("TR",
- html_tag("TD", "PHP with GD+PNG support", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
-
- $conf = html_tag("TR",
- html_tag("TD", "Absolute directory\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=ABS_ROOT value='/var/www/localhost/htdocs/midas-nms' size=30>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "URL Directory\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=DOC_ROOT value='/midas-nms' size=20>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- sprintf("<input type=hidden name=RRD_ROOT value='/php-graph'>\n") .
- html_tag("TR",
- html_tag("TD", "PHP Graphics URL Location\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "/php-graph\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MySQL Server\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=SERVER value='localhost' size=20>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MySQL user\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=USER value='root' size=15>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MySQL passwd\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=password name=PASSWD value='' size=10>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MySQL dB\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=DB value='MIDAS2' size=15>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MIDAS MySQL allowed hosts\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name='ALLOWED_HOSTS' value='localhost' size=25>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MIDAS MySQL user\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=MIDAS_USER value='midas' size=15>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MIDAS MySQL passwd\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=MIDAS_PASSWD value='password' size=10>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "MIDAS dB SQL file\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=MIDAS_SQL value='/usr/share/midas-nms/sql/MIDAS.sql' size=55>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "SNORT Default Rules SQL file\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=textbox name=SNORT_SQL value='/usr/share/midas-nms/sql/DefaultSnortRules.sql' size=55>\n", $color[3], "class=blacksmall align=left"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "Create inc/config/config.php file\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=checkbox name=CREATE_CONFIG_FILE value='1' checked>\n", $color[3], "class=blacksmall align=center"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "Create MIDAS dB user\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=checkbox name=CREATE_MIDAS_USER value='1' checked>\n", $color[3], "class=blacksmall align=center"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "Install MIDAS SQL\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=checkbox name=INSTALL_MIDAS_SQL value='1' checked>\n", $color[3], "class=blacksmall align=center"),
- "", "") .
- html_tag("TR",
- html_tag("TD", "Install SNORT Default Rules SQL file\n", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "<input type=checkbox name=INSTALL_SNORT_SQL value='1' checked>\n", $color[3], "class=blacksmall align=center"),
- "", "");
-
- $info = html_tag("TABLE",
- html_tag("TR",
- html_tag("TD", "<b>Site Configuration Sanity Checks</b>", $color[9], "colspan=2 class=blacksmall align=center"),
- "", "") .
- $schk,
- $color[10], "width=50% cellspacing=1 cellpadding=2") .
- "<br>" .
- ((!$error) ?
- html_tag("TABLE",
- html_tag("TR",
- sprintf("<FORM method=post action='install.php'>\n") .
- html_tag("TD", "<b>Site Configuration</b>", $color[9], "colspan=2 class=blacksmall align=center"),
- "", "") .
- $conf .
- html_tag("TR",
- html_tag("TD", "<input type=submit name=LOC value=INSTALL>\n", $color[3], "colspan=2 class=blacksmall align=center") .
- sprintf("</FORM>\n"),
- "", ""),
- $color[10], "width=50% cellspacing=1 cellpadding=2") :
- "The above error(s) must be fixed before continuing!\n");
-} else if($_POST['LOC'] == "INSTALL") {
- // Building /inc/config/config.php
- if($_POST['CREATE_CONFIG_FILE']) {
- if($tp = @fopen($TEMPLATE, "r")) {
- if($fp = @fopen($CONFIG, "w+")) {
- while(!@feof($tp)) {
- $line = @fgets($tp, 1024);
- $pattern = null;
- $replace = null;
- $x = 0;
- $sPOS = 0;
- $ePOS = 0;
- while(($sPOS = strpos($line, "$[", $ePOS)) !== FALSE) {
- if(($ePOS = strpos($line, "]$", $sPOS)) !== FALSE) {
- $pattern[$x] = substr($line, $sPOS, $ePOS-($sPOS-2));
- $replace[$x] = $_POST[str_replace(Array("$[", "]$"), Array("", ""), $pattern[$x])];
- $x++;
- } else {
- $ePOS = $sPOS;
- }
- }
- fputs($fp, str_replace($pattern, $replace, $line));
- }
- fclose($fp);
- } else {
- $inst = html_tag("TR",
- html_tag("TD", "config.php created", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- fclose($tp);
- if(is_null($inst)) {
- $inst = html_tag("TR",
- html_tag("TD", "config.php created", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
- } else {
- $inst = html_tag("TR",
- html_tag("TD", "config.php created", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- }
-
- // SQL install (If applicable)
- $credentials['mySQL']['server'] = $_POST['SERVER'];
- $credentials['mySQL']['user'] = $_POST['USER'];
- $credentials['mySQL']['passwd'] = $_POST['PASSWD'];
- $db = new conn_mySQL($credentials);
-
- $db->db_new_conn();
-
- if($_POST['CREATE_MIDAS_USER']) {
- $db->db = "mysql";
- $hostList = explode(",", $_POST['ALLOWED_HOSTS']);
- for($x=0;$x<sizeof($hostList);$x++) {
- $db->add_table("user");
- $db->add_data("Host", $hostList[$x]);
- $db->add_data("User", $_POST['MIDAS_USER']);
- $db->add_data("Password", sprintf("PASSWORD('%s')", $_POST['MIDAS_PASSWD']), FALSE);
- $ret = $db->compile_query("INSERT");
- if($ret['return']) {
- $db->run_query();
- $inst .= html_tag("TR",
- html_tag("TD", sprintf("MIDAS User created (%s)", $hostList[$x]), $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- $db->clear_res();
-
- $db->add_table("db");
- $db->add_data("Host", $hostList[$x]);
- $db->add_data("Db", $_POST['DB']);
- $db->add_data("User", $_POST['MIDAS_USER']);
- $db->add_data("Select_priv", "Y");
- $db->add_data("Insert_priv", "Y");
- $db->add_data("Update_priv", "Y");
- $db->add_data("Delete_priv", "Y");
- $db->add_data("Create_priv", "Y");
- $db->add_data("Drop_priv", "Y");
- $db->add_data("Grant_priv", "Y");
- $db->add_data("References_priv", "Y");
- $db->add_data("Index_priv", "Y");
- $db->add_data("Alter_priv", "Y");
- $ret = $db->compile_query("INSERT");
- if($ret['return']) {
- $db->run_query();
- $inst .= html_tag("TR",
- html_tag("TD", sprintf("MIDAS User dB privileges (%s)", $hostList[$x]), $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", sprintf("MIDAS User dB privileges (%s)", $hostList[$x]), $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", sprintf("MIDAS User created (%s)", $hostList[$x]), $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- $db->clear_res();
- }
-
- $db->db = null;
- $db->run_query("FLUSH PRIVILEGES");
- if($db->sqlResults) {
- $inst .= html_tag("TR",
- html_tag("TD", "Flushing privileges", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", "Flushing privileges", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- }
-
- $db->clear_res();
- $db->db = null;
-
- if($_POST['INSTALL_MIDAS_SQL'] || $_POST['INSTALL_SNORT_SQL']) {
- $db->run_query(sprintf("CREATE DATABASE IF NOT EXISTS %s", $_POST['DB']));
- if($db->sqlResults) {
- $inst .= html_tag("TR",
- html_tag("TD", "MIDAS dB created", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- $db->clear_res();
- if($_POST['INSTALL_MIDAS_SQL']) {
- if($SQL = parseSQL($_POST['MIDAS_SQL'])) {
- $ERROR = FALSE;
- $db->db = $_POST['DB'];
- @reset($SQL);
- while(!is_null($key = @key($SQL))) {
- $db->run_query($SQL[$key]);
- if(!$db->sqlResults) {
- $ERROR = TRUE;
- }
- @next($SQL);
- }
- if($ERROR) {
- $inst .= html_tag("TR",
- html_tag("TD", "MIDAS SQL Import", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", "MIDAS SQL Import", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", "MIDAS SQL Import", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- }
-
- if($_POST['INSTALL_SNORT_SQL']) {
- if($SQL = parseSQL($_POST['SNORT_SQL'])) {
- $ERROR = FALSE;
- $db->db = $_POST['DB'];
- @reset($SQL);
- while(!is_null($key = @key($SQL))) {
- $db->run_query($SQL[$key]);
- if(!$db->sqlResults) {
- $ERROR = TRUE;
- }
- @next($SQL);
- }
- if($ERROR) {
- $inst .= html_tag("TR",
- html_tag("TD", "SNORT SQL Import", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", "SNORT SQL Import", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "OK", $color[12], "class=blacksmall align=center"),
- "", "");
- }
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", "SNORT SQL Import", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- }
- } else {
- $inst .= html_tag("TR",
- html_tag("TD", "MIDAS dB created", $color[0], "class=blacksmall align=left") .
- html_tag("TD", "ERROR", $color[2], "class=blacksmall align=center"),
- "", "");
- }
- }
-
- $info = html_tag("TABLE",
- html_tag("TR",
- html_tag("TD", "<b>Site Installation Results</b>", $color[9], "colspan=2 class=blacksmall align=center"),
- "", "") .
- $inst .
- html_tag("TR",
- html_tag("TD", sprintf("Click <A HREF='../index.php'>here</A> to access the logon screen\n"),
- $color[12], "colspan=2 class=blacksmall align=center"),
- "", ""),
- $color[10], "width=50% cellspacing=1 cellpadding=1 align=center");
-}
-
- echo html_tag("TABLE",
- html_tag("TR",
- html_tag("TD",
- sprintf("<SPAN class='titlelarge'>%s %s</SPAN><br><br>\n", _APPNAME, _VERSION), $color[4], "height=50 align=right valign=center"),
- "", "") .
- html_tag("TR",
- html_tag("TD", $info, $color[12], "width=100% height=100% align=center valign=center"),
- "", ""),
- $color[10], "width=100% height=100% align=center valign=center");
-
-printf("</BODY>\n");
-printf("</HTML>\n");
-?>
diff --git a/net-analyzer/midas-nms/files/midas-nms-2.2f-sysconfdir.patch b/net-analyzer/midas-nms/files/midas-nms-2.2f-sysconfdir.patch
deleted file mode 100644
index ee0a49245a6a..000000000000
--- a/net-analyzer/midas-nms/files/midas-nms-2.2f-sysconfdir.patch
+++ /dev/null
@@ -1,112 +0,0 @@
-diff -Nru MIDAS-2.2f.orig/MIDASa/MIDASa.c MIDAS-2.2f/MIDASa/MIDASa.c
---- MIDAS-2.2f.orig/MIDASa/MIDASa.c 2004-03-01 03:19:31.000000000 +0900
-+++ MIDAS-2.2f/MIDASa/MIDASa.c 2005-08-09 08:22:22.000000000 +0900
-@@ -78,7 +78,7 @@
- (void) signal(SIGKILL, CatchSignal);
- (void) signal(SIGTERM, CatchSignal);
-
-- CFGPATH = dsprintf(CFGPATH, "%s/etc/MIDASa.cf", APPROOT);
-+ CFGPATH = dsprintf(CFGPATH, "%s/MIDASa.cf", SYSCONFDIR);
- ConfigXMLTree = FileToXMLTree(CFGPATH);
-
- if(!ConfigXMLTree)
-diff -Nru MIDAS-2.2f.orig/MIDASb/MIDASb.c MIDAS-2.2f/MIDASb/MIDASb.c
---- MIDAS-2.2f.orig/MIDASb/MIDASb.c 2004-03-01 03:19:34.000000000 +0900
-+++ MIDAS-2.2f/MIDASb/MIDASb.c 2005-08-09 08:22:22.000000000 +0900
-@@ -81,7 +81,7 @@
- (void) signal(SIGKILL, CatchSignal);
- (void) signal(SIGTERM, CatchSignal);
-
-- CFGPATH = dsprintf(CFGPATH, "%s/etc/MIDASb.cf", APPROOT);
-+ CFGPATH = dsprintf(CFGPATH, "%s/MIDASb.cf", SYSCONFDIR);
- ConfigXMLTree = FileToXMLTree(CFGPATH);
-
- if(!ConfigXMLTree)
-diff -Nru MIDAS-2.2f.orig/MIDASc/MIDASc.c MIDAS-2.2f/MIDASc/MIDASc.c
---- MIDAS-2.2f.orig/MIDASc/MIDASc.c 2004-03-01 03:19:37.000000000 +0900
-+++ MIDAS-2.2f/MIDASc/MIDASc.c 2005-08-09 08:22:22.000000000 +0900
-@@ -93,7 +93,7 @@
- (void) signal(SIGKILL, CatchSignal);
- (void) signal(SIGTERM, CatchSignal);
-
-- CFGPATH = dsprintf(CFGPATH, "%s/etc/MIDASc.cf", APPROOT);
-+ CFGPATH = dsprintf(CFGPATH, "%s/MIDASc.cf", SYSCONFDIR);
- ConfigXMLTree = FileToXMLTree(CFGPATH);
-
- if(!ConfigXMLTree)
-diff -Nru MIDAS-2.2f.orig/MIDASd/MIDASd.c MIDAS-2.2f/MIDASd/MIDASd.c
---- MIDAS-2.2f.orig/MIDASd/MIDASd.c 2004-03-01 03:37:21.000000000 +0900
-+++ MIDAS-2.2f/MIDASd/MIDASd.c 2005-08-09 08:22:22.000000000 +0900
-@@ -91,7 +91,7 @@
- (void) signal(SIGKILL, CatchSignal);
- (void) signal(SIGTERM, CatchSignal);
-
-- CFGPATH = dsprintf(CFGPATH, "%s/etc/MIDASd.cf", APPROOT);
-+ CFGPATH = dsprintf(CFGPATH, "%s/MIDASd.cf", SYSCONFDIR);
- ConfigXMLTree = FileToXMLTree(CFGPATH);
- if(!ConfigXMLTree)
- {
-diff -Nru MIDAS-2.2f.orig/MIDASn/MIDASn.c MIDAS-2.2f/MIDASn/MIDASn.c
---- MIDAS-2.2f.orig/MIDASn/MIDASn.c 2004-03-01 03:19:44.000000000 +0900
-+++ MIDAS-2.2f/MIDASn/MIDASn.c 2005-08-09 08:22:23.000000000 +0900
-@@ -88,7 +88,7 @@
- (void) signal(SIGHUP, CatchSignal);
- (void) signal(SIGTERM, CatchSignal);
-
-- CFGPATH = dsprintf(CFGPATH, "%s/etc/MIDASn.cf", APPROOT);
-+ CFGPATH = dsprintf(CFGPATH, "%s/MIDASn.cf", SYSCONFDIR);
- ConfigXMLTree = FileToXMLTree(CFGPATH);
-
- if(!ConfigXMLTree)
-diff -Nru MIDAS-2.2f.orig/MIDASs/MIDASs.c MIDAS-2.2f/MIDASs/MIDASs.c
---- MIDAS-2.2f.orig/MIDASs/MIDASs.c 2004-03-01 03:19:48.000000000 +0900
-+++ MIDAS-2.2f/MIDASs/MIDASs.c 2005-08-09 08:22:23.000000000 +0900
-@@ -73,7 +73,7 @@
- (void) signal(SIGKILL, CatchSignal);
- (void) signal(SIGTERM, CatchSignal);
-
-- CFGPATH = dsprintf(CFGPATH, "%s/etc/MIDASs.cf", APPROOT);
-+ CFGPATH = dsprintf(CFGPATH, "%s/MIDASs.cf", SYSCONFDIR);
- ConfigXMLTree = FileToXMLTree(CFGPATH);
-
- if(!ConfigXMLTree)
-diff -Nru MIDAS-2.2f.orig/Makefile MIDAS-2.2f/Makefile
---- MIDAS-2.2f.orig/Makefile 2004-03-13 07:43:46.000000000 +0900
-+++ MIDAS-2.2f/Makefile 2005-08-09 08:22:23.000000000 +0900
-@@ -24,6 +24,7 @@
- # value is /usr/local/MIDAS
- #
- APPROOT = -DAPPROOT=\"/usr/local/MIDAS\"
-+SYSCONFDIR = -DSYSCONFDIR=\"/etc/midas\"
-
- #
- # CC
-@@ -149,7 +150,7 @@
- #
- # CFLAG declare
- #
--CFLAGS = -Wall $(DMALLOC) $(MIDAS_VER) $(GETLOADAVG) $(UPTIMECMD) $(NEEDATOLL) $(NEEDSTRSEP) $(HAVEMYSQL) $(HAVEPCAP) $(NEEDGETTIMEOFDAY) $(NEEDGETLOADAVG) $(APPROOT) $(NODEBUG) -o $@
-+CFLAGS = -Wall $(DMALLOC) $(MIDAS_VER) $(GETLOADAVG) $(UPTIMECMD) $(NEEDATOLL) $(NEEDSTRSEP) $(HAVEMYSQL) $(HAVEPCAP) $(NEEDGETTIMEOFDAY) $(NEEDGETLOADAVG) $(APPROOT) $(SYSCONFDIR) $(NODEBUG) -o $@
- LDFLAGS = -O3 $(SOLARIS_LDFLAGS)
-
- #
-diff -Nru MIDAS-2.2f.orig/Makefile.in MIDAS-2.2f/Makefile.in
---- MIDAS-2.2f.orig/Makefile.in 2004-03-13 07:37:45.000000000 +0900
-+++ MIDAS-2.2f/Makefile.in 2005-08-09 08:22:23.000000000 +0900
-@@ -24,6 +24,7 @@
- # value is /usr/local/MIDAS
- #
- APPROOT = -DAPPROOT=\"@prefix@\"
-+SYSCONFDIR = -DSYSCONFDIR=\"@sysconfdir@\"
-
- #
- # CC
-@@ -149,7 +150,7 @@
- #
- # CFLAG declare
- #
--CFLAGS = -Wall $(DMALLOC) $(MIDAS_VER) $(GETLOADAVG) $(UPTIMECMD) $(NEEDATOLL) $(NEEDSTRSEP) $(HAVEMYSQL) $(HAVEPCAP) $(NEEDGETTIMEOFDAY) $(NEEDGETLOADAVG) $(APPROOT) $(NODEBUG) @CFLAG_OUTPUT@
-+CFLAGS = -Wall $(DMALLOC) $(MIDAS_VER) $(GETLOADAVG) $(UPTIMECMD) $(NEEDATOLL) $(NEEDSTRSEP) $(HAVEMYSQL) $(HAVEPCAP) $(NEEDGETTIMEOFDAY) $(NEEDGETLOADAVG) $(APPROOT) $(SYSCONFDIR) $(NODEBUG) @CFLAG_OUTPUT@
- LDFLAGS = -O3 $(SOLARIS_LDFLAGS)
-
- #
diff --git a/net-analyzer/midas-nms/files/midas-nms.conf b/net-analyzer/midas-nms/files/midas-nms.conf
deleted file mode 100644
index f27d9fe597dd..000000000000
--- a/net-analyzer/midas-nms/files/midas-nms.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-# Uncomment the daemons that you want to init
-
-MIDASa=yes
-MIDASb=yes
-MIDASc=yes
-MIDASd=yes
-MIDASn=yes
-#MIDASs=yes
-
diff --git a/net-analyzer/midas-nms/files/midas-nms.init b/net-analyzer/midas-nms/files/midas-nms.init
deleted file mode 100644
index 880a4895891a..000000000000
--- a/net-analyzer/midas-nms/files/midas-nms.init
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/sbin/runscript
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/midas-nms/files/midas-nms.init,v 1.1 2004/10/20 15:17:45 bass Exp $
-
-depend() {
- if [ "$MIDASs" ] ; then
- snort
- fi
-}
-
-start() {
- if [ "$MIDASc" ] ; then
- ebegin "Starting Midas-c"
- start-stop-daemon --start --quiet --exec /usr/bin/MIDASc
- pidof MIDASc > /var/run/MIDASc
- eend ${?}
- fi
- if [ "$MIDASa" ] ; then
- ebegin "Starting Midas-a"
- start-stop-daemon --start --quiet --exec /usr/bin/MIDASa
- pidof MIDASa > /var/run/MIDASa
- eend ${?}
- fi
- if [ "$MIDASn" ] ; then
- ebegin "Starting Midas-n"
- start-stop-daemon --start --quiet --exec /usr/bin/MIDASn
- pidof MIDASn > /var/run/MIDASn
- eend ${?}
- fi
- if [ "$MIDASs" ] ; then
- ebegin "Starting Midas-s"
- start-stop-daemon --start --quiet --exec /usr/bin/MIDASs
- pidof MIDASs > /var/run/MIDASs
- eend ${?}
- fi
- if [ "$MIDASd" ] ; then
- ebegin "Starting Midas-d"
- start-stop-daemon --start --quiet --exec /usr/bin/MIDASd
- einfo "Wait 5 seconds...."
- sleep 5
- pidof MIDASd > /var/run/MIDASd
- eend ${?}
- fi
-}
-
-stop() {
- if [ "$MIDASs" ] ; then
- ebegin "Stopping Midas-s"
- start-stop-daemon --stop --quiet --pidfile /var/run/MIDASs
- eend ${?}
- fi
- if [ "$MIDASn" ] ; then
- ebegin "Stopping Midas-n"
- start-stop-daemon --stop --quiet --pidfile /var/run/MIDASn
- eend ${?}
- fi
- if [ "$MIDASa" ] ; then
- ebegin "Stopping Midas-a"
- start-stop-daemon --stop --quiet --pidfile /var/run/MIDASa
- eend ${?}
- fi
- if [ "$MIDASc" ] ; then
- ebegin "Stopping Midas-c"
- start-stop-daemon --stop --quiet --pidfile /var/run/MIDASc
- eend ${?}
- fi
- if [ "$MIDASd" ] ; then
- ebegin "Stopping Midas-d"
- start-stop-daemon --stop --quiet --pidfile /var/run/MIDASd
- eend ${?}
- fi
-}
diff --git a/net-analyzer/midas-nms/metadata.xml b/net-analyzer/midas-nms/metadata.xml
deleted file mode 100644
index b71036f53e7c..000000000000
--- a/net-analyzer/midas-nms/metadata.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer>
- <email>maintainer-needed@gentoo.org</email>
-</maintainer>
-<longdescription>
-MIDAS is a cross platform Monitoring and NIDS server. The goal of this project is to build a robust and complete network/system monitoring suite that is capable of scaling to very large networks.
-</longdescription>
-</pkgmetadata>
diff --git a/net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild b/net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild
deleted file mode 100644
index 3d70bac4d2ca..000000000000
--- a/net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild,v 1.3 2011/04/02 12:53:17 ssuominen Exp $
-
-inherit webapp depend.apache
-
-DESCRIPTION="Monitoring, Intrusion Detection, Administration System"
-SRC_URI="mirror://sourceforge/midas-nms/MIDAS-${PV}.tar.gz"
-HOMEPAGE="http://midas-nms.sf.net"
-
-LICENSE="MIT"
-KEYWORDS="~ppc ~x86"
-
-DEPEND="virtual/mysql
- net-libs/libpcap
- media-libs/gd"
-RDEPEND="virtual/httpd-php"
-
-need_apache
-
-S="${WORKDIR}/MIDAS-${PV}"
-
-pkg_setup() {
- webapp_pkg_setup
-}
-
-src_compile() {
- econf --sysconfdir=/etc/midas-nms || die "./configure failed"
- emake || die
-}
-
-src_install () {
- webapp_src_preinst
-
-# make DESTDIR=${D} install || die
-
- insinto /etc/midas-nms
- doins MIDASa/MIDASa.cf.dist
- doins MIDASb/MIDASb.cf.dist
- doins MIDASc/MIDASc.cf.dist
- doins MIDASd/MIDASd.cf.dist
- doins MIDASs/MIDASs.cf.dist
- doins MIDASn/MIDASn.cf.dist
-
- for each in a b c d n s
- do
- dobin MIDAS${each}/MIDAS${each}
- done
-
- dodir /usr/share/midas-nms
- dodir /usr/share/midas-nms/sql
- insinto /usr/share/midas-nms/sql
- doins sql/* /usr/share/midas-nms/sql/
-
- # web
- doins -r MIDAS/* ${MY_HTDOCSDIR}
- webapp_serverowned ${MY_HTDOCSDIR}
- webapp_src_install
-
- # Install documentation.
- dodoc docs/CHANGELOG
- dodoc docs/INSTALL.txt
-
- # Init files
- newconfd "${FILESDIR}"/midas-nms.conf midas-nms
- newinitd "${FILESDIR}"/midas-nms.init midas-nms
-}
-
-pkg_postinst() {
- webapp_pkg_postinst
-
- elog
- elog "To install the web interface setup the app and copy"
- elog "${FILESDIR}/install.php to (adapt to your install root):"
- elog "http://localhost/midas-nms/install/install.php"
- elog
- elog "The conf files are located in /usr/etc/MIDAS*.cf.dist"
- elog "Please read INSTALL.txt for more info."
- elog
- elog "To use the sniffer and IDS you need install snort too."
- elog
-}