diff options
Diffstat (limited to 'net-analyzer/darkstat/darkstat-3.0.540-r1.ebuild')
-rw-r--r-- | net-analyzer/darkstat/darkstat-3.0.540-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-analyzer/darkstat/darkstat-3.0.540-r1.ebuild b/net-analyzer/darkstat/darkstat-3.0.540-r1.ebuild new file mode 100644 index 000000000000..546c3c6a75a4 --- /dev/null +++ b/net-analyzer/darkstat/darkstat-3.0.540-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.540-r1.ebuild,v 1.1 2006/10/31 13:31:00 pva Exp $ + +DESCRIPTION="darkstat is a network traffic analyzer" +HOMEPAGE="http://dmr.ath.cx/net/darkstat/" +SRC_URI="http://dmr.ath.cx/net/darkstat/${P}.tar.bz2" + +KEYWORDS="~amd64 ~ppc ~ppc-macos ~x86" +IUSE="nls" +LICENSE="GPL-2" +SLOT="0" + +DEPEND="net-libs/libpcap + nls? ( virtual/libintl )" + +src_compile() { + econf $(use_with nls) || die "./configure failed" + emake || die "compilation failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "installation failed." + + dodoc AUTHORS README THANKS + + newinitd "${FILESDIR}"/darkstat-init3 darkstat + newconfd "${FILESDIR}"/darkstat-confd3 darkstat +} + +pkg_postinst() { + ewarn "WARNING: the darkstat init script has changed" + elog "To start different darkstat instances which will listen on a different" + elog "interfaces create in /etc/init.d directory the 'darkstat.if' symlink to" + elog "darkstat script where 'if' is the name of the interface." + elog "Also in /etc/conf.d directory copy darkstat to darkstat.if" + elog "and edit it to change default values" +} |