diff options
author | Marcelo Góes <vanquirius@gentoo.org> | 2006-07-27 02:58:31 +0000 |
---|---|---|
committer | Marcelo Góes <vanquirius@gentoo.org> | 2006-07-27 02:58:31 +0000 |
commit | 800b7d0674bc505b772b358df8cd75b1ba5a580b (patch) | |
tree | 2d72e5f97f0c4b2e7864393f8f17911e0a23a9ca /net-analyzer/sancp/sancp-1.6.1-r2.ebuild | |
parent | Force ebuild to fail if both ssl and gnutls USE flags are set. Fixes bug 1417... (diff) | |
download | gentoo-2-800b7d0674bc505b772b358df8cd75b1ba5a580b.tar.gz gentoo-2-800b7d0674bc505b772b358df8cd75b1ba5a580b.tar.bz2 gentoo-2-800b7d0674bc505b772b358df8cd75b1ba5a580b.zip |
Add two patches from upstream, fixing compile issues on amd64 and 100% CPU utilization bug. Fixes bug 138337, thanks to Clemente Aguiar <caguiar at madeiratecnopolo dot pt>.
(Portage version: 2.1-r1)
Diffstat (limited to 'net-analyzer/sancp/sancp-1.6.1-r2.ebuild')
-rw-r--r-- | net-analyzer/sancp/sancp-1.6.1-r2.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/net-analyzer/sancp/sancp-1.6.1-r2.ebuild b/net-analyzer/sancp/sancp-1.6.1-r2.ebuild new file mode 100644 index 000000000000..e511bf416bdd --- /dev/null +++ b/net-analyzer/sancp/sancp-1.6.1-r2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sancp/sancp-1.6.1-r2.ebuild,v 1.1 2006/07/27 02:58:31 vanquirius Exp $ + +inherit eutils + +DESCRIPTION="SANCP is a network security tool designed to collect statistical \ + information regarding network traffic and collect the traffic itself in pcap format." +HOMEPAGE="http://www.metre.net/sancp.html" +SRC_URI="http://www.metre.net/files/${P}.tar.gz + http://sancp.sourceforge.net/${PN}-1.6.1.fix200511.a.patch + http://sancp.sourceforge.net/${PN}-1.6.1.fix200511.b.patch + http://sancp.sourceforge.net/${PN}-1.6.1.fix200601.c.patch + http://sancp.sourceforge.net/${PN}-1.6.1.fix200606.d.patch" + +LICENSE="QPL" + +SLOT="0" +KEYWORDS="~x86" + +IUSE="sguil" + +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND}" + +pkg_setup() { + enewgroup sancp + enewuser sancp -1 -1 /dev/null sancp +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${DISTDIR}"/${PN}-1.6.1.fix200511.a.patch + epatch "${DISTDIR}"/${PN}-1.6.1.fix200511.b.patch + # bug 138337 + epatch "${DISTDIR}"/${PN}-1.6.1.fix200601.c.patch + epatch "${DISTDIR}"/${PN}-1.6.1.fix200606.d.patch +} + +src_install() { + keepdir /var/log/sancp/ + dodoc docs/CHANGES docs/fields.LIST docs/README docs/SETUP \ + "${FILESDIR}"/sguil_sancp.conf etc/sancp/sancp.conf + + insinto /etc/sancp + if use sguil ; then + newins "${FILESDIR}"/sguil_sancp.conf sancp.conf + else + doins etc/sancp/sancp.conf + fi + + exeinto /usr/bin + doexe sancp + + newinitd "${FILESDIR}"/sancp.rc1 sancp + newconfd "${FILESDIR}"/sancp.confd sancp + if use sguil ; then + sed -i -e /^SANCP_OPTS/s:'sancp':"sguil":g \ + -e s:'-d $LOGDIR/today':"-d /var/lib/sguil/$(hostname)/sancp": \ + "${D}/etc/conf.d/sancp" + fi + + fowners sancp:sancp /var/log/sancp + fperms 0770 /var/log/sancp +} + +pkg_postinst() { + einfo + einfo "Please modify /etc/sancp/sancp.conf to suit your environment" + einfo +} |