summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2010-05-09 19:29:28 +0000
committerPeter Volkov <pva@gentoo.org>2010-05-09 19:29:28 +0000
commit02e6a790f4fabff894e57a085d318579ebb0c654 (patch)
tree3b82a8f821bac693c738e7168cd3e40ec2880c8c /net-analyzer
parentnet-libs/libnetdude, net-analyzer/netdude: version bump, fix known issues. Bu... (diff)
downloadpva-02e6a790f4fabff894e57a085d318579ebb0c654.tar.gz
pva-02e6a790f4fabff894e57a085d318579ebb0c654.tar.bz2
pva-02e6a790f4fabff894e57a085d318579ebb0c654.zip
net-analyzer/ipac-ng: version bump. This package crashs on start, bug 319085.
svn path=/; revision=416
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/ipac-ng/ChangeLog131
-rw-r--r--net-analyzer/ipac-ng/Manifest10
-rw-r--r--net-analyzer/ipac-ng/README37
-rw-r--r--net-analyzer/ipac-ng/files/ipac-ng-1.33-as-needed.patch40
-rw-r--r--net-analyzer/ipac-ng/files/ipac-ng.cron.1.308
-rwxr-xr-xnet-analyzer/ipac-ng/files/ipac-ng.rc.1.3042
-rw-r--r--net-analyzer/ipac-ng/files/ipac.conf.1.3051
-rw-r--r--net-analyzer/ipac-ng/files/rules.conf.1.3032
-rw-r--r--net-analyzer/ipac-ng/ipac-ng-1.33.ebuild85
-rw-r--r--net-analyzer/ipac-ng/metadata.xml6
10 files changed, 442 insertions, 0 deletions
diff --git a/net-analyzer/ipac-ng/ChangeLog b/net-analyzer/ipac-ng/ChangeLog
new file mode 100644
index 0000000..4db5eab
--- /dev/null
+++ b/net-analyzer/ipac-ng/ChangeLog
@@ -0,0 +1,131 @@
+# ChangeLog for net-analyzer/ipac-ng
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ChangeLog,v 1.29 2009/01/15 05:25:43 jer Exp $
+
+ 15 Jan 2009; Jeroen Roovers <jer@gentoo.org>
+ +files/ipac-ng-1.31-strip.patch, ipac-ng-1.31-r2.ebuild:
+ Do not strip (bug #251977).
+
+ 21 May 2008; Tiziano Müller <dev-zero@gentoo.org> ipac-ng-1.31-r2.ebuild:
+ Changed dependency for postgresql from dev-db/postgresql to
+ virtual/postgresql-server
+
+ 28 Oct 2007; Christian Heim <phreak@gentoo.org> ipac-ng-1.31-r2.ebuild:
+ Include virtual/logger in RDEPEND, as the initscript already specifies 'need
+ logger'.
+
+ 01 Mar 2007; <pva@gentoo.org>
+ +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 <gentoo-bugzilla AT
+ alerik.org> in bug #168067. Fixed || ( use? ( ) ) constructs bug #168179.
+
+ 01 Nov 2006; Markus Ullmann <jokey@gentoo.org> -ipac-ng-1.31.ebuild,
+ ipac-ng-1.31-r2.ebuild:
+ Fixing parallel make issue wrt bug #153249 and small cleanup
+
+ 26 Feb 2006; Marcelo Goes <vanquirius@gentoo.org> -ipac-ng-1.30.ebuild,
+ -ipac-ng-1.31-r1.ebuild, ipac-ng-1.31-r2.ebuild:
+ Mark 1.31-r2 x86 stable.
+
+ 16 Jan 2006; Marcelo Goes <vanquirius@gentoo.org> ipac-ng-1.31-r2.ebuild:
+ Use mirror://gentoo instead of my devspace.
+
+ 12 Jan 2006; Marcelo Goes <vanquirius@gentoo.org> ipac-ng-1.31-r2.ebuild:
+ Update patchset for bug 93915.
+
+ 10 Jan 2006; Marcelo Goes <vanquirius@gentoo.org> ipac-ng-1.31-r2.ebuild:
+ Add fetchcounter patch available from sourceforge, which seems to fix the 0
+ byte count problem. Thanks to Gilles Espinasse <g dot esp at free dot fr>
+ for the suggestion.
+
+*ipac-ng-1.31-r2 (25 Dec 2005)
+
+ 25 Dec 2005; Marcelo Goes <vanquirius@gentoo.org> +ipac-ng-1.31-r2.ebuild:
+ 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 <blubb@gentoo.org> ipac-ng-1.31-r1.ebuild:
+ added ~amd64 keyword
+
+ 07 Sep 2005; Benjamin Smee <strerror@gentoo.org> ipac-ng-1.31-r1.ebuild:
+ Fixed typo relating to cron
+
+ 29 Jul 2005; Daniel Black <dragonheart@gentoo.org> ipac-ng-1.31.ebuild:
+ removed die from epatch || die.
+
+ 19 Jul 2005; David Holm <dholm@gentoo.org> ipac-ng-1.31-r1.ebuild:
+ Added to ~ppc.
+
+*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.
+
+*ipac-ng-1.31 (09 Jan 2005)
+
+ 09 Jan 2005; Daniel Black <dragonheart@gentoo.org> -files/ipac-ng.cron,
+ -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
+ <marcelogoes@gmail.com> for the bug report.
+
+ 12 Oct 2004; Eldad Zack <eldad@gentoo.org> files/rules.conf.1.30,
+ ipac-ng-1.30.ebuild:
+ Provided config files fix. Closes #67065. Thanks to Oliver Noekel
+ <gentoobugzilla@noekel.com>.
+
+ 24 Aug 2004; Eldad Zack <eldad@gentoo.org> ipac-ng-1.30.ebuild:
+ x86 stable
+
+ 05 Aug 2004; Anders Rune Jensen <arj@gentoo.org> ipac-ng-1.30.ebuild:
+ Depend on version 2 of sqlite.
+
+ 27 Jul 2004; Eldad Zack <eldad@gentoo.org> +files/ipac-ng.cron.1.30,
+ 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 <eldad@gentoo.org> +ipac-ng-1.30.ebuild:
+ Version bump. Added sqlite support. Closes #54069.
+
+ 11 Jul 2004; Eldad Zack <eldad@gentoo.org> ipac-ng-1.27_p1-r2.ebuild:
+ marked x86 stable
+
+ 01 Jul 2004; Jon Hood <squinky86@gentoo.org> ipac-ng-1.27_p1-r1.ebuild,
+ 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 <mboman@gentoo.org> ipac-ng-1.27_p1-r2.ebuild,
+ 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
+ <fips@fips.at>. Closes 43006.
+
+ 26 Jan 2004; Philipp Lopaur <fips@fips.at> :
+ 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 <vapier@gentoo.org> :
+ 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 <vapier@gentoo.org> :
+ Initial ebuild. Ebuild made by Philipp Lopaur <fips@fips.at> #19246.
diff --git a/net-analyzer/ipac-ng/Manifest b/net-analyzer/ipac-ng/Manifest
new file mode 100644
index 0000000..9953e2a
--- /dev/null
+++ b/net-analyzer/ipac-ng/Manifest
@@ -0,0 +1,10 @@
+AUX ipac-ng-1.33-as-needed.patch 1536 RMD160 ed89002b59190f53256274c1af6375dd2fe19c4e SHA1 2738593a78d97853e32628ca874d58a0ba766918 SHA256 8fbb3017e4ca6548d4c0a3f96603b18b7f25b88bc761f906849f2937f4da2a64
+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.33.tar.bz2 198237 RMD160 caa285eec47e22c9448e9003b614391bd64da048 SHA1 23023bbb4c08c171dc3e35708606a9f275dc6d46 SHA256 fef230101d820eb4f394cae2f950942b771a264fa6e59f467d74df0cfbe8b84d
+EBUILD ipac-ng-1.33.ebuild 2687 RMD160 186b8f76222b4e3ebae4d97498ca7382c2bfbf3f SHA1 0b3d74c7923d5c6e4af4399356303789b011f16d SHA256 0a3de28068a28a04aa72c11921d4d595d2f4af066ba4f837a2fc4f5772436d3d
+MISC ChangeLog 5228 RMD160 dd8c4de3cd264b32dda6d99ab7faaff30055fa78 SHA1 313a8f29ccdfd034b82a18986a6f2b2eaed8c783 SHA256 790c7bd4d0fb4b63e62629bae3e892aabe97208103dba75deaa8e6c546da248e
+MISC README 2800 RMD160 da520294ad10edf091b431a756870e447ab3e0b5 SHA1 303f1b7b26d03dbe8de4ed164796668fe010586f SHA256 e76e0a1bd2f9511678b1b5ff4d06fde8991bb8dc364cce929a29b3bbe7a6a19b
+MISC metadata.xml 286 RMD160 92f59ba848186619ed6753f6cbbfd8deb3052092 SHA1 f04be974c4bf21f3dad4a34abb3ef205726715ae SHA256 b68c20680aaf86f9886146aad86f532a115427854196c394aebf96725aa660a3
diff --git a/net-analyzer/ipac-ng/README b/net-analyzer/ipac-ng/README
new file mode 100644
index 0000000..ac6a418
--- /dev/null
+++ b/net-analyzer/ipac-ng/README
@@ -0,0 +1,37 @@
+Attempt to bump.
+
+Currently crash with the following backtrace:
+
+Program received signal SIGSEGV, Segmentation fault.
+strcmp () at ../sysdeps/x86_64/strcmp.S:99
+99 ../sysdeps/x86_64/strcmp.S: Нет такого файла или каталога.
+ in ../sysdeps/x86_64/strcmp.S
+(gdb) bt
+#0 strcmp () at ../sysdeps/x86_64/strcmp.S:99
+#1 0x0000000000414551 in xtables_register_target (me=0x7ffff5826040) at xtables.c:614
+#2 0x00007ffff5625732 in ?? () from /lib64/xtables/libxt_standard.so
+#3 0x00000000ffffd290 in ?? ()
+#4 0x0000000000000002 in ?? ()
+#5 0x00007fffffffdff8 in ?? ()
+#6 0x00007ffff56255b3 in _init () from /lib64/xtables/libxt_standard.so
+#7 0x00007ffff56255a0 in ?? () from /lib64/xtables/libxt_standard.so
+#8 0x00007ffff7dec8c9 in call_init (l=0x637a80, argc=-176005608, argv=0x7fffffffd3a0, env=0x7fffffffe010) at dl-init.c:70
+#9 0x00007ffff7deca4e in _dl_init (main_map=0x637a80, argc=2, argv=0x7fffffffdff8, env=0x7fffffffe010) at dl-init.c:134
+#10 0x00007ffff7df0e23 in dl_open_worker (a=<value optimized out>) at dl-open.c:492
+#11 0x00007ffff7dec566 in _dl_catch_error (objname=<value optimized out>, errstring=<value optimized out>,
+ mallocedp=<value optimized out>, operate=<value optimized out>, args=<value optimized out>) at dl-error.c:178
+#12 0x00007ffff7df05f7 in _dl_open (file=0x7fffffffd8a0 "/lib64/xtables/libxt_standard.so", mode=-2147483646,
+ caller_dlopen=0x4142fc, nsid=-2, argc=2, argv=0x7fffffffd1b0, env=0x7fffffffe010) at dl-open.c:583
+#13 0x00007ffff7bdbf76 in dlopen_doit (a=<value optimized out>) at dlopen.c:67
+#14 0x00007ffff7dec566 in _dl_catch_error (objname=<value optimized out>, errstring=<value optimized out>,
+ mallocedp=<value optimized out>, operate=<value optimized out>, args=<value optimized out>) at dl-error.c:178
+#15 0x00007ffff7bdc2fc in _dlerror_run (operate=0x7ffff7bdbf10 <dlopen_doit>, args=0x7fffffffd840) at dlerror.c:164
+#16 0x00007ffff7bdbef1 in __dlopen (file=<value optimized out>, mode=<value optimized out>) at dlopen.c:88
+#17 0x00000000004142fc in load_extension (search_path=<value optimized out>, prefix=0x423f6d "libipt_",
+ name=0x425a8c "standard", is_target=<value optimized out>) at xtables.c:326
+#18 0x00000000004144ac in find_target (name=0x425a8c "standard", tryload=LOAD_MUST_SUCCEED) at xtables.c:455
+#19 0x000000000040fb25 in prepare_entry (d=0x6329f0, e=<value optimized out>) at iptables.c:2581
+#20 0x0000000000412973 in append_rule (firstrule=<value optimized out>, first=<value optimized out>) at iptables.c:2760
+#21 setup_rules (firstrule=<value optimized out>, first=<value optimized out>) at iptables.c:2974
+#22 iptables_ipac_set (firstrule=<value optimized out>, first=<value optimized out>) at iptables.c:3000
+#23 0x0000000000408a18 in setup_access (first=1) at fetchipac.c:192
diff --git a/net-analyzer/ipac-ng/files/ipac-ng-1.33-as-needed.patch b/net-analyzer/ipac-ng/files/ipac-ng-1.33-as-needed.patch
new file mode 100644
index 0000000..962757f
--- /dev/null
+++ b/net-analyzer/ipac-ng/files/ipac-ng-1.33-as-needed.patch
@@ -0,0 +1,40 @@
+=== modified file 'configure.in'
+--- configure.in 2010-05-08 09:29:45 +0000
++++ configure.in 2010-05-09 12:30:54 +0000
+@@ -96,7 +96,7 @@
+ test $HAVE_LIBSQLITE = no && AC_MSG_WARN([sqlite library not found!
+ support for optional storage \"sqlite\" will be disabled])
+ AC_CHECK_LIB(dl, dlopen)
+-LIBS="$LIBS -L. -lipac"
++LIBS="-L. -lipac $LIBS"
+
+
+ dnl Checks for header files if libraries found
+@@ -248,7 +248,7 @@
+ test -f "storage/$sm/configure" && \
+ configure_dirs="$configure_dirs storage/$sm"
+ STORAGEMETHODLIBRARYS="$STORAGEMETHODLIBRARYS storage/$sm/libstor$sm.a"
+- LIBS="$LIBS -Lstorage/$sm -lstor$sm"
++ LIBS="-Lstorage/$sm -lstor$sm $LIBS "
+ dnl check if the storage method requires any libraries.
+ test -n "$ADDLIBS" && LIBS="$LIBS $ADDLIBS"
+ done
+@@ -308,7 +308,7 @@
+ test -f "access/$ag/configure" && \
+ configure_dirs="$configure_dirs access/$ag"
+ BILLAGENTSLIBRARYS="$BILLAGENTSLIBRARYS access/$ag/libipac$ag.a"
+- LIBS="$LIBS -Laccess/$ag -lipac$ag"
++ LIBS="-Laccess/$ag -lipac$ag $LIBS"
+ dnl check if the access agents requires any libraries.
+ test -n "$ADDLIBS" && LIBS="$LIBS $ADDLIBS"
+ done
+@@ -384,7 +384,7 @@
+ test -f "agents/$ag/configure" && \
+ configure_dirs="$configure_dirs agents/$ag"
+ ACCAGENTSLIBRARYS="$ACCAGENTSLIBRARYS agents/$ag/libipac$ag.a"
+- LIBS="$LIBS -Lagents/$ag -lipac$ag"
++ LIBS="-Lagents/$ag -lipac$ag $LIBS"
+ dnl check if the accounting agents requires any libraries.
+ ADDLIBS=`grep 'NEEDLIBS=' agents/$ag/Makefile.in | \
+ sed -e 's/^# *NEEDLIBS=//' -e 's/ *$//'`
+
diff --git a/net-analyzer/ipac-ng/files/ipac-ng.cron.1.30 b/net-analyzer/ipac-ng/files/ipac-ng.cron.1.30
new file mode 100644
index 0000000..da94fbd
--- /dev/null
+++ b/net-analyzer/ipac-ng/files/ipac-ng.cron.1.30
@@ -0,0 +1,8 @@
+#!/bin/sh
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/files/ipac-ng.cron.1.30,v 1.1 2004/07/27 08:50:13 eldad Exp $
+
+FI=/usr/sbin/fetchipac
+
+if [ -x ${FI} ] && [ -f /var/run/ipac.rules ]; then
+ ${FI}
+fi
diff --git a/net-analyzer/ipac-ng/files/ipac-ng.rc.1.30 b/net-analyzer/ipac-ng/files/ipac-ng.rc.1.30
new file mode 100755
index 0000000..47fdb59
--- /dev/null
+++ b/net-analyzer/ipac-ng/files/ipac-ng.rc.1.30
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/files/ipac-ng.rc.1.30,v 1.1 2004/07/27 08:50:13 eldad Exp $
+
+depend() {
+ need net logger
+}
+
+start() {
+ ebegin "Setting up ipac-ng iptables chains"
+ /usr/sbin/fetchipac -S
+ /usr/sbin/fetchipac
+ eend $?
+}
+
+stop() {
+ ## fetch so we dont lose data
+ /usr/sbin/fetchipac
+
+ IPT=/sbin/iptables
+ ebegin "Removing ipac-ng iptables settings"
+
+ ${IPT} -D INPUT -s 0/0 -d 0/0 -j ipac~o
+ ${IPT} -D OUTPUT -s 0/0 -d 0/0 -j ipac~i
+ ${IPT} -D FORWARD -s 0/0 -d 0/0 -j ipac~fi
+ ${IPT} -D FORWARD -s 0/0 -d 0/0 -j ipac~fo
+
+ ${IPT} -F ipac~i
+ ${IPT} -F ipac~o
+ ${IPT} -F ipac~fi
+ ${IPT} -F ipac~fo
+
+ ${IPT} -X ipac~i
+ ${IPT} -X ipac~o
+ ${IPT} -X ipac~fi
+ ${IPT} -X ipac~fo
+
+ rm -f /var/run/ipac.rules /var/run/ipac.status
+
+ eend $?
+}
diff --git a/net-analyzer/ipac-ng/files/ipac.conf.1.30 b/net-analyzer/ipac-ng/files/ipac.conf.1.30
new file mode 100644
index 0000000..1e8f1f4
--- /dev/null
+++ b/net-analyzer/ipac-ng/files/ipac.conf.1.30
@@ -0,0 +1,51 @@
+# $Id: ipac.conf.1.30,v 1.2 2004/10/11 23:44:03 eldad Exp $
+
+# This is the main ipac-ng configuration file. It contains the
+# configuration directives that give the ipac-ng its instructions.
+
+## mode of operations: operate only like old ipac or not
+## please note: you *should* specify YES, unless you are kaiser13 :)
+## note2: you are trying to use 'ugly flawed experimental dangerous mode'
+## if you are using 'no', don't set it to no.
+
+## specify access agent
+# supported are: 'files', 'postgre'. 'files' works only with classic mode
+# did you specify 'yes' above? Then you should set this here to 'files'.
+access agent = files
+
+## accouting agent
+# supported are: 'iptables', 'ipchains'
+# (ipchains is not supported in nonclassic mode). does anybody still uses them?
+account agent = iptables
+
+## storage
+# supported are: 'gdbm', 'postgre', 'files' (files is not recommended)
+# postgre is the best & fastest method now.
+storage = gdbm
+
+# set the hostname, used to store\fetch\another work with database
+# get from hostname() if not specified here
+hostname = sibinet
+
+## rules file for classic mode
+rules file = /etc/ipac-ng/rules.conf
+
+## login all users at startup (only those who have enough cash)
+# specify *only* in nonclassic mode, otherwise forget about this
+#login at start = no
+
+## support for traffic passing to\from auth host
+# specify *only* in nonclassic mode, otherwise forget about this
+#auth host = sibinet.com
+
+# dont store lines contains only zeroes to speedup processing and to save space
+drop zero lines = yes
+
+# This parameters controls database location
+# left blank 'db host', 'db port' for local database
+# as now, both databasess (access and storage) configured by these parameters
+db host = localhost
+db name = ipac
+db user = root
+db port = 5432
+db pass = ""
diff --git a/net-analyzer/ipac-ng/files/rules.conf.1.30 b/net-analyzer/ipac-ng/files/rules.conf.1.30
new file mode 100644
index 0000000..6c45c55
--- /dev/null
+++ b/net-analyzer/ipac-ng/files/rules.conf.1.30
@@ -0,0 +1,32 @@
+# Example config file with accounting rules
+# Install as /etc/ipac-ng/rules.conf.iptables
+#
+# Format:
+# Name of rule|direction|interface|protocol|source|destination|extension|
+# WARNING!!!! spaces are not allowed before and after '|'.
+#
+# where
+# Name of rule Any string to identify this rule
+# direction ipac~fi - forward in
+# ipac~fo - forward out
+# ipac~i - outgoing from machine with ipac-ng to other host(/net)
+# (or incoming to otherhost)
+# ipac~o - incoming to machine with ipac-ng
+# (or outgoing from otherhost)
+#
+# interface interface name, '+' means all interfaces (dont try to use ip numbers here!)
+# protocol tcp | udp | icmp | all
+# source \
+# destination both as described in ipfwadm(8), or empty
+#
+
+#
+# W A R N I N G ! ! !
+#
+# Don't use symbols other than '0-9A-z[space]' in rules names. You may encounter
+# some strange troubles.
+
+Incoming Total System|ipac~o|eth0|all||||
+Incoming Total System|ipac~fi|eth0|all||||
+Outgoing Total System|ipac~i|eth0|all||||
+Outgoing Total System|ipac~fo|eth0|all||||
diff --git a/net-analyzer/ipac-ng/ipac-ng-1.33.ebuild b/net-analyzer/ipac-ng/ipac-ng-1.33.ebuild
new file mode 100644
index 0000000..996050f
--- /dev/null
+++ b/net-analyzer/ipac-ng/ipac-ng-1.33.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2009 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.10 2009/01/15 05:25:43 jer Exp $
+
+EAPI="2"
+inherit autotools 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="~amd64 ~ppc x86"
+IUSE="gd gdbm mysql postgres sqlite"
+
+RDEPEND="postgres? ( virtual/postgresql-server )
+ mysql? ( virtual/mysql )
+ sqlite? ( =dev-db/sqlite-2* )
+ gdbm? ( 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"
+
+src_prepare() {
+ # Disable stripping
+ sed -e 's/^\(STRIP_DEBUG\)/#\1/' -i Makefile.in || die
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ eautoconf
+
+ use postgres || sed 's:test $HAVE_POSTGRE = no:true:' -i configure
+ use gdbm || sed 's:test $HAVE_GDBM = no:true:' -i configure
+ use mysql || sed 's:test $HAVE_MYSQL = no:true:' -i configure
+ use sqlite || sed 's:test $HAVE_SQLITE = no:true:' -i configure
+}
+
+src_configure() {
+ econf \
+ --enable-default-agent=iptables
+}
+
+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 || die
+ newins "${FILESDIR}"/rules.conf.1.30 rules.conf || die
+
+ newinitd "${FILESDIR}"/ipac-ng.rc.1.30 ipac-ng || die
+
+ exeinto /etc/cron.hourly
+ newexe "${FILESDIR}"/ipac-ng.cron.1.30 ipac-ng || die
+
+ dodoc README TODO doc/* CHANGELOG || die
+}
+
+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"
+}
diff --git a/net-analyzer/ipac-ng/metadata.xml b/net-analyzer/ipac-ng/metadata.xml
new file mode 100644
index 0000000..f6c770b
--- /dev/null
+++ b/net-analyzer/ipac-ng/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+<longdescription>ip accounting suite for 2.4 and 2.6 series kernels with text and PNG image output like mrtg</longdescription>
+</pkgmetadata>