summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-09-06 12:00:53 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-09-06 12:00:53 +0000
commitc898eb2bf54a65d6a65cbb0920c470b32d517719 (patch)
tree4fac674bed3b6f71561549edd6d1329346039653 /net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild
parentx86 stable wrt #190135 (diff)
downloadhistorical-c898eb2bf54a65d6a65cbb0920c470b32d517719.tar.gz
historical-c898eb2bf54a65d6a65cbb0920c470b32d517719.tar.bz2
historical-c898eb2bf54a65d6a65cbb0920c470b32d517719.zip
Fix for correct configfile path wrt bug #101846 thanks to Tomoyuki Sakurai
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild')
-rw-r--r--net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild82
1 files changed, 82 insertions, 0 deletions
diff --git a/net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild b/net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild
new file mode 100644
index 000000000000..cb7f437d4c5c
--- /dev/null
+++ b/net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2007 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.1 2007/09/06 12:00:53 jokey Exp $
+
+inherit webapp
+
+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
+ virtual/libpcap
+ media-libs/gd"
+RDEPEND="www-servers/apache
+ virtual/httpd-php"
+
+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 COPYING
+ 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
+}