diff options
author | 2007-09-06 12:00:53 +0000 | |
---|---|---|
committer | 2007-09-06 12:00:53 +0000 | |
commit | a8d854863395ac561245f25fdcbd8c9a6a2278f5 (patch) | |
tree | 565969d35745fb2022196db8a0860701fc15b165 /net-analyzer/midas-nms/midas-nms-2.2f-r1.ebuild | |
parent | x86 stable wrt #190135 (diff) | |
download | gentoo-2-a8d854863395ac561245f25fdcbd8c9a6a2278f5.tar.gz gentoo-2-a8d854863395ac561245f25fdcbd8c9a6a2278f5.tar.bz2 gentoo-2-a8d854863395ac561245f25fdcbd8c9a6a2278f5.zip |
Fix for correct configfile path wrt bug #101846 thanks to Tomoyuki Sakurai
(Portage version: 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.ebuild | 82 |
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 +} |