summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-09-27 15:43:00 +0200
committerJeroen Roovers <jer@gentoo.org>2020-09-27 15:47:17 +0200
commitc78b7ad4cf91fb8c321cf5467ee9e086ad2382e4 (patch)
tree5d4148922f74264ce078d1adac41290604f2ae66 /net-analyzer
parentnet-firewall/shorewall: Version 5.2.8 (diff)
downloadgentoo-c78b7ad4cf91fb8c321cf5467ee9e086ad2382e4.tar.gz
gentoo-c78b7ad4cf91fb8c321cf5467ee9e086ad2382e4.tar.bz2
gentoo-c78b7ad4cf91fb8c321cf5467ee9e086ad2382e4.zip
net-analyzer/sancp: Old
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/sancp/sancp-1.6.1-r4.ebuild69
1 files changed, 0 insertions, 69 deletions
diff --git a/net-analyzer/sancp/sancp-1.6.1-r4.ebuild b/net-analyzer/sancp/sancp-1.6.1-r4.ebuild
deleted file mode 100644
index 686e16f2ea80..000000000000
--- a/net-analyzer/sancp/sancp-1.6.1-r4.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils toolchain-funcs user
-
-DESCRIPTION="collect network traffic statistics and store them in pcap format"
-HOMEPAGE="https://sourceforge.net/projects/sancp/"
-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 GPL-2"
-
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE="sguil"
-
-RDEPEND="net-libs/libpcap"
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
- enewgroup sancp
- enewuser sancp -1 -1 /dev/null sancp
-}
-
-src_prepare() {
- 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
- epatch "${FILESDIR}"/${P}-compiler.patch
- epatch "${FILESDIR}"/${P}-gcc6.patch
-
- tc-export CXX CC
-}
-
-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
-
- dobin 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
-}