From 610f1d4c7b272ad5e6fd42c8f97188262c2a85d2 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 3 Oct 2020 17:29:35 +0200 Subject: net-analyzer/sancp: [QA] Port to GLEP 81 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: David Seifert --- net-analyzer/sancp/sancp-1.6.1-r5.ebuild | 73 -------------------------------- net-analyzer/sancp/sancp-1.6.1-r6.ebuild | 73 ++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 net-analyzer/sancp/sancp-1.6.1-r5.ebuild create mode 100644 net-analyzer/sancp/sancp-1.6.1-r6.ebuild (limited to 'net-analyzer/sancp') diff --git a/net-analyzer/sancp/sancp-1.6.1-r5.ebuild b/net-analyzer/sancp/sancp-1.6.1-r5.ebuild deleted file mode 100644 index 543e814ff1d0..000000000000 --- a/net-analyzer/sancp/sancp-1.6.1-r5.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit 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 -} -PATCHES=( - "${FILESDIR}"/${PN}-1.6.1-compiler.patch - "${FILESDIR}"/${PN}-1.6.1-gcc6.patch - "${FILESDIR}"/${PN}-1.6.1-extern.patch -) - -src_prepare() { - eapply "${DISTDIR}"/${PN}-1.6.1.fix200511.a.patch - eapply "${DISTDIR}"/${PN}-1.6.1.fix200511.b.patch - # bug 138337 - eapply "${DISTDIR}"/${PN}-1.6.1.fix200601.c.patch - eapply "${DISTDIR}"/${PN}-1.6.1.fix200606.d.patch - default -} - -src_compile() { - tc-export CC CXX - emake CFLAGS="${CXXFLAGS}" -} - -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 -} diff --git a/net-analyzer/sancp/sancp-1.6.1-r6.ebuild b/net-analyzer/sancp/sancp-1.6.1-r6.ebuild new file mode 100644 index 000000000000..be00f2204c5c --- /dev/null +++ b/net-analyzer/sancp/sancp-1.6.1-r6.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +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=" + acct-group/sancp + acct-user/sancp + net-libs/libpcap" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.6.1-compiler.patch + "${FILESDIR}"/${PN}-1.6.1-gcc6.patch + "${FILESDIR}"/${PN}-1.6.1-extern.patch +) + +src_prepare() { + eapply "${DISTDIR}"/${PN}-1.6.1.fix200511.a.patch + eapply "${DISTDIR}"/${PN}-1.6.1.fix200511.b.patch + # bug 138337 + eapply "${DISTDIR}"/${PN}-1.6.1.fix200601.c.patch + eapply "${DISTDIR}"/${PN}-1.6.1.fix200606.d.patch + default +} + +src_compile() { + tc-export CC CXX + emake CFLAGS="${CXXFLAGS}" +} + +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 +} -- cgit v1.2.3-65-gdbad