* [gentoo-commits] gentoo-x86 commit in net-analyzer/ipband: ChangeLog ipband-0.8.1-r1.ebuild
@ 2014-07-12 17:34 Jeroen Roovers (jer)
0 siblings, 0 replies; only message in thread
From: Jeroen Roovers (jer) @ 2014-07-12 17:34 UTC (permalink / raw
To: gentoo-commits
jer 14/07/12 17:34:14
Modified: ChangeLog ipband-0.8.1-r1.ebuild
Log:
EAPI bump. Remove readme from pkg_postinst(). Convert sed script into patch.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Revision Changes Path
1.11 net-analyzer/ipband/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipband/ChangeLog?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipband/ChangeLog?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipband/ChangeLog?r1=1.10&r2=1.11
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ChangeLog,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ChangeLog 17 Jan 2012 18:21:16 -0000 1.10
+++ ChangeLog 12 Jul 2014 17:34:14 -0000 1.11
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/ipband
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ChangeLog,v 1.10 2012/01/17 18:21:16 jer Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ChangeLog,v 1.11 2014/07/12 17:34:14 jer Exp $
+
+ 12 Jul 2014; Jeroen Roovers <jer@gentoo.org> ipband-0.8.1-r1.ebuild,
+ files/ipband-0.8.1-gentoo.patch, +files/ipband-0.8.1-postfix.patch:
+ EAPI bump. Remove readme from pkg_postinst(). Convert sed script into patch.
17 Jan 2012; Jeroen Roovers <jer@gentoo.org> -ipband-0.8.ebuild:
Old.
1.3 net-analyzer/ipband/ipband-0.8.1-r1.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipband/ipband-0.8.1-r1.ebuild?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipband/ipband-0.8.1-r1.ebuild?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipband/ipband-0.8.1-r1.ebuild?r1=1.2&r2=1.3
Index: ipband-0.8.1-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ipband-0.8.1-r1.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ipband-0.8.1-r1.ebuild 15 Jan 2012 15:37:27 -0000 1.2
+++ ipband-0.8.1-r1.ebuild 12 Jul 2014 17:34:14 -0000 1.3
@@ -1,8 +1,8 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ipband-0.8.1-r1.ebuild,v 1.2 2012/01/15 15:37:27 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ipband-0.8.1-r1.ebuild,v 1.3 2014/07/12 17:34:14 jer Exp $
-EAPI="2"
+EAPI=5
inherit eutils toolchain-funcs
@@ -13,45 +13,25 @@
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
-IUSE=""
DEPEND=">=net-libs/libpcap-0.4"
RDEPEND="${DEPEND}"
src_prepare() {
- # Provide a postfix MTA string in the author's ipband.conf example
- sed -ri ipband.sample.conf \
- -e 's:(#mtastring.*):# Sendmail\n\1\n# Postfix\n#mtastring "/usr/sbin/sendmail -t":g' \
- || die "sed ipband.sample.conf"
+ epatch \
+ "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-postfix.patch
- # Do not strip, and do respect CC, LDFLAGS
- epatch "${FILESDIR}"/${P}-gentoo.patch
-}
-
-src_compile() {
tc-export CC
- emake || die "Compile problem"
}
src_install() {
+ dobin ipband
doman ipband.8
dodoc CHANGELOG README
- dobin ipband
+
newinitd "${FILESDIR}"/ipband-init ipband
- insinto /etc/ ; newins ipband.sample.conf ipband.conf
-}
-pkg_postinst() {
- ewarn "If you plan to use ipband as a service, you must edit"
- ewarn "/etc/ipband.conf"
- elog ""
- elog "The following command line example will:"
- elog " o Listen on eth0"
- elog " o Group results into a summary relative to 192.168.1.0/24"
- elog " o Average bandwidth every 5 seconds"
- elog " o Report when average bandwidth has exceeded 7 kB/sec"
- elog " over the previous 10 seconds. The report is written to"
- elog " stdout but can also be emailed or stored in a file."
- elog ""
- elog "ipband eth0 -L 192.168.1.0/24 -a 5 -r 10 -b 7 -o -"
+ insinto /etc/
+ newins ipband.sample.conf ipband.conf
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-12 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 17:34 [gentoo-commits] gentoo-x86 commit in net-analyzer/ipband: ChangeLog ipband-0.8.1-r1.ebuild Jeroen Roovers (jer)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox