Portage is a package management system used by Gentoo Linux
# ChangeLog for net-analyzer/ipac-ng
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ChangeLog,v 1.28 2008/05/21 18:49:18 dev-zero Exp $
21 May 2008; Tiziano Müller
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server
28 Oct 2007; Christian Heim
Include virtual/logger in RDEPEND, as the initscript already specifies 'need
logger'.
01 Mar 2007;
+files/ipac-ng-1.31-lable-at-the-end-of-compound.patch,
ipac-ng-1.31-r2.ebuild:
Fixed compilation problem reported by Nick Soveiko
01 Nov 2006; Markus Ullmann
ipac-ng-1.31-r2.ebuild:
Fixing parallel make issue wrt bug #153249 and small cleanup
26 Feb 2006; Marcelo Goes
-ipac-ng-1.31-r1.ebuild, ipac-ng-1.31-r2.ebuild:
Mark 1.31-r2 x86 stable.
16 Jan 2006; Marcelo Goes
Use mirror://gentoo instead of my devspace.
12 Jan 2006; Marcelo Goes
Update patchset for bug 93915.
10 Jan 2006; Marcelo Goes
Add fetchcounter patch available from sourceforge, which seems to fix the 0
byte count problem. Thanks to Gilles Espinasse
for the suggestion.
*ipac-ng-1.31-r2 (25 Dec 2005)
25 Dec 2005; Marcelo Goes
Using patch from Ubuntu, attempting to fix problem with iptables-1.3.x. This
should fix bug 93915. 1.31-r2 is in package.mask at the moment.
01 Oct 2005; Simon Stelling
added ~amd64 keyword
07 Sep 2005; Benjamin Smee
Fixed typo relating to cron
29 Jul 2005; Daniel Black
removed die from epatch || die.
19 Jul 2005; David Holm
Added to ~ppc.
*ipac-ng-1.31-r1 (11 Mar 2005)
11 Mar 2005; Aaron Walker
Revision bump; added postgres support via USE=postgres for bug 84797. Thanks
to Wolfgang Frisch for the updated ebuild.
25 Feb 2005; Aaron Walker
Marked stable on x86.
*ipac-ng-1.31 (09 Jan 2005)
09 Jan 2005; Daniel Black
-files/ipac-ng.cron.1.27_p1-r2, -files/ipac-ng.rc,
-files/ipac-ng.rc.1.27_p1-r2, -files/ipac.conf, -files/ipac.conf.1.27_p1-r2,
-files/rules.conf, -files/rules.conf.1.27_p1-r2, -ipac-ng-1.27_p1-r1.ebuild,
-ipac-ng-1.27_p1-r2.ebuild, +ipac-ng-1.31.ebuild, +
/files/ipac-ng-1.31-iptables.patch:
Old version cleanout and version bump as per bug #75190. Thanks to Vanquirius
12 Oct 2004; Eldad Zack
ipac-ng-1.30.ebuild:
Provided config files fix. Closes #67065. Thanks to Oliver Noekel
24 Aug 2004; Eldad Zack
x86 stable
05 Aug 2004; Anders Rune Jensen
Depend on version 2 of sqlite.
27 Jul 2004; Eldad Zack
files/ipac-ng.rc.1.27_p1-r2, +files/ipac-ng.rc.1.30, +files/ipac.conf.1.30,
+files/rules.conf.1.30, ipac-ng-1.30.ebuild:
Fixed missing files in install. Closes #58437.
*ipac-ng-1.30 (25 Jul 2004)
25 Jul 2004; Eldad Zack
Version bump. Added sqlite support. Closes #54069.
11 Jul 2004; Eldad Zack
marked x86 stable
01 Jul 2004; Jon Hood
ipac-ng-1.27_p1-r2.ebuild:
change virtual/glibc to virtual/libc
*ipac-ng-1.27_p1-r2 (26 Jan 2004)
28 Feb 2004; Michael Boman
files/ipac-ng.cron.1.27_p1-r2, files/ipac-ng.rc.1.27_p1-r2,
files/ipac.conf.1.27_p1-r2, files/rules.conf.1.27_p1-r2:
Commited updated ebuild submitted by Philipp Lopaur
26 Jan 2004; Philipp Lopaur
Noticed that the default config files are not working with
ipac-ng-1.27_p1. Made new ipac.conf and rules.conf.
Updated /etc/init.d/ipac-ng for new iptables table names.
Updated the ebuild. Tested with vanilla 2.6.3 kernel.
*ipac-ng-1.27_p1-r1 (03 Nov 2003)
03 Nov 2003; Mike Frysinger
Install default ipac.conf and rules.conf to fix segfaults for people
who didnt setup their config files #30937.
*ipac-ng-1.27_p1 (28 Sep 2002)
28 Sep 2002; Mike Frysinger
Initial ebuild. Ebuild made by Philipp Lopaur
AUX ipac-ng-1.31-iptables.patch 389 RMD160 fd15e78a6e0f8477fb2f4a4e82a55e32777a8d4e SHA1 a4e1a11b7660b7012750089834fe225922386fad SHA256 3b4454f56388652805a511787486ece70cc1589e65a87415e5d3cb622b0caf78
AUX ipac-ng-1.31-lable-at-the-end-of-compound.patch 276 RMD160 03cfa6e064168c32e6fed47417648f39fc10e461 SHA1 4d25723c02f946a9d03655e38be8fed7f4c0d091 SHA256 404060df91c1201fd9651afad4806a15a4db446f458b4267e877c3ad1de09146
AUX ipac-ng.cron.1.30 216 RMD160 a34013742e76d77d0ca5cab75d96ead99ac04ae7 SHA1 e3cee763184634203e2dc68fcc499b8b24bd2e92 SHA256 fe741234fcc84fa9823ebc000bf7cab952b906dbbb9206432398b21569e580ec
AUX ipac-ng.rc.1.30 897 RMD160 6f8afec9d8a3a8065578a95152e5d6d931d5cc71 SHA1 87d4caf973f7f62bbe42dd908c3f8d1df82d7562 SHA256 6db10bc0c47267f79ac0fe438a45296e766b4c41b284f2dda7b850dc61eb9832
AUX ipac.conf.1.30 1820 RMD160 513e3e2d9bd9f9e281b68f3a27c717bbb0fe213a SHA1 a415aa4ccba62333b4942d08c21ab5f54b42140c SHA256 162c7e44c9c39341b0c8b1982cc190985c40441164fd7abd48b5e7318f8b05d6
AUX rules.conf.1.30 1046 RMD160 a1dffd63f1bcc8e2427775182f56b2bdfc69a869 SHA1 6d97977481aa45f845bf97085a8e6228359a8532 SHA256 714cea1d01128c630c9a53110188877ea3a77b028fb12900b6252e793cdaee5b
DIST ipac-ng-1.31-patches.tar.bz2 26731 RMD160 cf98e61056791f662e8f0b33f9aeee48137080dc SHA1 e0bf56f03df583aea0eb3eb2a3e5729163d9a60a SHA256 a836e32544b02eb8eb545e0b79a6739ed62911cfbdd02af46662bf0b40e22f94
DIST ipac-ng-1.31.tar.bz2 162843 RMD160 ddab09b9136d59fe74e9aafbc1278cce2b1622d1 SHA1 a69656d328616d1c6233ce2d94fbc94ddfbeba9c SHA256 333e09c8075b576d681932f48158f44419113b64081b110c7377499e02ceb7cd
EBUILD ipac-ng-1.31-r2.ebuild 2825 RMD160 9d8451bfe236cdd8b0a69ae19b8e60790f6a5e6f SHA1 cd6809f55d653b39246978a357afc34103192a58 SHA256 9c52d7f0f9a811933ac46495ebc1d398547f389968f06c5ee65261cd0612405d
MISC ChangeLog 5096 RMD160 88ae15e76874db57fafb89df74394698b73b0330 SHA1 b175431c48c7cae914a4399d62ed809c44446827 SHA256 454b289661e888217cf1fb0b06bca063cf776935dcbc056c7d0aa106a1438e22
MISC metadata.xml 286 RMD160 92f59ba848186619ed6753f6cbbfd8deb3052092 SHA1 f04be974c4bf21f3dad4a34abb3ef205726715ae SHA256 b68c20680aaf86f9886146aad86f532a115427854196c394aebf96725aa660a3
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ipac-ng-1.31-r2.ebuild,v 1.9 2008/05/21 18:49:18 dev-zero Exp $
inherit eutils
DESCRIPTION="ip accounting suite for 2.4 and 2.6 series kernels with text and PNG image output like mrtg"
HOMEPAGE="http://sourceforge.net/projects/ipac-ng/"
SRC_URI="mirror://sourceforge/ipac-ng/${P}.tar.bz2
mirror://gentoo/${P}-patches.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="gd sqlite postgres"
RDEPEND="postgres? ( virtual/postgresql-server )
!postgres? ( sqlite? ( =dev-db/sqlite-2* )
!sqlite? ( sys-libs/gdbm ) )"
DEPEND="${RDEPEND}
sys-devel/bison
sys-devel/flex"
RDEPEND="${RDEPEND}
net-firewall/iptables
virtual/cron
dev-lang/perl
gd? ( dev-perl/GD )
virtual/logger"
pkg_setup() {
if use sqlite && use postgres ; then
die "You have both sqlite and postgres in USE. Please choose one or the other."
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/${P}-iptables-1.3.1.patch
epatch "${WORKDIR}"/ipcop-${P}-fetchcounter.patch
epatch "${FILESDIR}"/${P}-lable-at-the-end-of-compound.patch
}
src_compile() {
local db="gdbm"
use sqlite && db="sqlite"
use postgres && db="postgres"
econf \
--enable-default-storage=${db} \
--enable-default-agent=iptables \
--enable-default-access=files \
--enable-classic=yes \
|| die "configure failed"
emake -j1 || die "make failed"
}
src_test() {
einfo "self test is broken"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodir /var/lib/ipac
insinto /etc/ipac-ng
newins "${FILESDIR}"/ipac.conf.1.30 ipac.conf
newins "${FILESDIR}"/rules.conf.1.30 rules.conf
newinitd "${FILESDIR}"/ipac-ng.rc.1.30 ipac-ng
exeinto /etc/cron.hourly
newexe "${FILESDIR}"/ipac-ng.cron.1.30 ipac-ng
dodoc README TODO doc/* CHANGELOG
}
pkg_postinst() {
ewarn
ewarn " W A R N I N G !"
ewarn "do not use \"/etc/init.d/iptables save\" when ipac-ng is running!"
ewarn "this WILL save ipac rules and can cause problems!"
ewarn "ipac-ng should be started AFTER iptables and shut down BEFORE iptables"
ewarn "use /etc/init.d/iptables save only when ipac rules are removed!"
ewarn
einfo "the accounting database is at /var/lib/ipac"
einfo "use /usr/sbin/ipacsum to get your ip acounting data"
einfo "use /usr/sbin/fetchipac to update the accounting at any time"
einfo "fetchipac is run by cron every hour by /etc/cron.hourly/ipac-ng"
einfo "after you changed rules.conf you have to run \"fetchipac -S\" or"
einfo "stop/start the service so your iptables gets updated"
einfo "if ipac is not working with the default configuration make"
einfo "rm /etc/ipac-ng/* and rm /var/lib/ipac/* and emerge again"
}