summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-03-11 10:41:27 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-03-11 10:41:27 +0000
commit025ed8f4f25733e578a25dc1b8512d2ecb5aa158 (patch)
treeaa8f0a57591d23c8944900108e2727b99222d785 /net-analyzer/ipac-ng
parentRewrote bash completion. (diff)
downloadhistorical-025ed8f4f25733e578a25dc1b8512d2ecb5aa158.tar.gz
historical-025ed8f4f25733e578a25dc1b8512d2ecb5aa158.tar.bz2
historical-025ed8f4f25733e578a25dc1b8512d2ecb5aa158.zip
Revision bump; added postgres support via USE=postgres for bug 84797. Thanks to Wolfgang Frisch for the updated ebuild.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-analyzer/ipac-ng')
-rw-r--r--net-analyzer/ipac-ng/ChangeLog8
-rw-r--r--net-analyzer/ipac-ng/Manifest10
-rw-r--r--net-analyzer/ipac-ng/files/digest-ipac-ng-1.31-r11
-rw-r--r--net-analyzer/ipac-ng/ipac-ng-1.31-r1.ebuild94
4 files changed, 108 insertions, 5 deletions
diff --git a/net-analyzer/ipac-ng/ChangeLog b/net-analyzer/ipac-ng/ChangeLog
index fdd34cb828fe..3553be3ccae0 100644
--- a/net-analyzer/ipac-ng/ChangeLog
+++ b/net-analyzer/ipac-ng/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/ipac-ng
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ChangeLog,v 1.14 2005/02/25 13:10:35 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ChangeLog,v 1.15 2005/03/11 10:41:27 ka0ttic Exp $
+
+*ipac-ng-1.31-r1 (11 Mar 2005)
+
+ 11 Mar 2005; Aaron Walker <ka0ttic@gentoo.org> +ipac-ng-1.31-r1.ebuild:
+ Revision bump; added postgres support via USE=postgres for bug 84797. Thanks
+ to Wolfgang Frisch for the updated ebuild.
25 Feb 2005; Aaron Walker <ka0ttic@gentoo.org> ipac-ng-1.31.ebuild:
Marked stable on x86.
diff --git a/net-analyzer/ipac-ng/Manifest b/net-analyzer/ipac-ng/Manifest
index f1ee97c30f01..4a39df3f936d 100644
--- a/net-analyzer/ipac-ng/Manifest
+++ b/net-analyzer/ipac-ng/Manifest
@@ -2,11 +2,13 @@
Hash: SHA1
MD5 aee1a48f97b4806719b17d15a98c1d16 ipac-ng-1.30.ebuild 2452
-MD5 cf56e9a87aeac56dc42098755663ba80 ChangeLog 2811
+MD5 25f9bab976571d859ab637270c1bce63 ipac-ng-1.31-r1.ebuild 2677
+MD5 a3382c90b2408e33938e3460de5c52d5 ChangeLog 3042
MD5 d21717f5748c9774708f37fd538eca26 metadata.xml 286
MD5 7cb4d6c288d321e38309dc5049ee189e ipac-ng-1.31.ebuild 2597
MD5 b2016c3272e9dd9c2b48238bb07efa3a files/ipac-ng-1.31-iptables.patch 389
MD5 aff4fe032f6693f676350c45e7e78261 files/ipac.conf.1.30 1820
+MD5 39c34f5fc4e8f1edc81459ec0895f59d files/digest-ipac-ng-1.31-r1 65
MD5 c6fde5842858e98a063e78223644e191 files/digest-ipac-ng-1.30 65
MD5 39c34f5fc4e8f1edc81459ec0895f59d files/digest-ipac-ng-1.31 65
MD5 72162ed7957cc82168b4870d26cf66fe files/ipac-ng.cron.1.30 216
@@ -15,7 +17,7 @@ MD5 983ee78164ba492b7bc558418adb0739 files/ipac-ng.rc.1.30 897
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
-iD8DBQFCHyRZEZCkKN40op4RAjB/AJ9GhXWuAPy3mkXCv1C5d8yuOZ+ztACdGGHG
-WWbozj6JXnPtqWxQYDfh3iA=
-=/DN6
+iD8DBQFCMXXdEZCkKN40op4RAihoAJoCh5IMOIBlVF53wDeek5WPiNEJ4wCgoe98
+V9vaXOkLd0Y41B8bslD72xw=
+=zZHy
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/ipac-ng/files/digest-ipac-ng-1.31-r1 b/net-analyzer/ipac-ng/files/digest-ipac-ng-1.31-r1
new file mode 100644
index 000000000000..b1c81b970e22
--- /dev/null
+++ b/net-analyzer/ipac-ng/files/digest-ipac-ng-1.31-r1
@@ -0,0 +1 @@
+MD5 f9ed8a729145ae613b3cdc518f1750e3 ipac-ng-1.31.tar.bz2 162843
diff --git a/net-analyzer/ipac-ng/ipac-ng-1.31-r1.ebuild b/net-analyzer/ipac-ng/ipac-ng-1.31-r1.ebuild
new file mode 100644
index 000000000000..f56f7dcebaab
--- /dev/null
+++ b/net-analyzer/ipac-ng/ipac-ng-1.31-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2005 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-r1.ebuild,v 1.1 2005/03/11 10:41:27 ka0ttic 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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="gd sqlite postgres"
+
+RDEPEND="virtual/libc
+ sqlite? ( =dev-db/sqlite-2* )
+ !sqlite? ( !postgres? ( sys-libs/gdbm ) )
+ postgres? ( dev-db/postgresql )
+ !postgres? ( !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 )"
+
+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 ${FILESDIR}/${P}-iptables.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.daily/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"
+}