diff options
Diffstat (limited to 'net-analyzer/ipac-ng')
-rw-r--r-- | net-analyzer/ipac-ng/ChangeLog | 131 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/Manifest | 10 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/README | 37 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/files/ipac-ng-1.34-as-needed.patch | 40 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/files/ipac-ng.cron.1.30 | 8 | ||||
-rwxr-xr-x | net-analyzer/ipac-ng/files/ipac-ng.rc.1.30 | 42 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/files/ipac.conf.1.30 | 51 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/files/rules.conf.1.30 | 32 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/ipac-ng-1.34.ebuild | 84 | ||||
-rw-r--r-- | net-analyzer/ipac-ng/metadata.xml | 6 |
10 files changed, 0 insertions, 441 deletions
diff --git a/net-analyzer/ipac-ng/ChangeLog b/net-analyzer/ipac-ng/ChangeLog deleted file mode 100644 index 4db5eab..0000000 --- a/net-analyzer/ipac-ng/ChangeLog +++ /dev/null @@ -1,131 +0,0 @@ -# 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 deleted file mode 100644 index eb2d2ff..0000000 --- a/net-analyzer/ipac-ng/Manifest +++ /dev/null @@ -1,10 +0,0 @@ -AUX ipac-ng-1.34-as-needed.patch 1503 RMD160 000ddceb09201d0b83fbb38b63e804dd02a7433d SHA1 ea818b50f0b6203e6d4b70300a6e16b56d92916f SHA256 c79d624dbf5bd5e5dc50d8182a1042dfb39e7934b1c601c2790f106c83461914 -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.34.tar.bz2 165996 RMD160 1acb776f98734a8e932e7f290e1e610004d901d4 SHA1 07d9ee805861ad724e784b6015830290adfc23fc SHA256 10d0f2788c3b1a0bbde17d3b6fd14529109915e26ce41e6e598ac81d321f9b0e -EBUILD ipac-ng-1.34.ebuild 2613 RMD160 dd4a617769937d1679e24a0d56a4225dd05bb544 SHA1 bf4d0a6beccbe8787dc7f858d16daff870d7b221 SHA256 07702fedc05e3a8c69cfc072b638d9733d46a3f10a8096d1141795b8060f064c -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 deleted file mode 100644 index ac6a418..0000000 --- a/net-analyzer/ipac-ng/README +++ /dev/null @@ -1,37 +0,0 @@ -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.34-as-needed.patch b/net-analyzer/ipac-ng/files/ipac-ng-1.34-as-needed.patch deleted file mode 100644 index e94586c..0000000 --- a/net-analyzer/ipac-ng/files/ipac-ng-1.34-as-needed.patch +++ /dev/null @@ -1,40 +0,0 @@ -=== modified file 'configure.in' ---- configure.in 2011-05-24 13:09:44 +0000 -+++ configure.in 2011-05-24 13:10:12 +0000 -@@ -102,7 +102,7 @@ - test $HAVE_LIBSQLITE = no && AC_MSG_WARN([sqlite library not found! - support for optional storage \"sqlite\" will be disabled]) - --LIBS="$LIBS -L. -lipac" -+LIBS="-L. -lipac $LIBS" - - dnl Checks for header files if libraries found - HAVE_POSTGRE=no -@@ -251,7 +251,7 @@ - - storagemethod_makefiles="$storagemethod_makefiles storage/$sm/Makefile" - 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 -@@ -309,7 +309,7 @@ - fi - billagent_makefiles="$billagent_makefiles access/$ag/Makefile" - 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 -@@ -383,7 +383,7 @@ - for ag in $ACCAGENTS; do - accagent_makefiles="$accagent_makefiles agents/$ag/Makefile" - 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 deleted file mode 100644 index da94fbd..0000000 --- a/net-analyzer/ipac-ng/files/ipac-ng.cron.1.30 +++ /dev/null @@ -1,8 +0,0 @@ -#!/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 deleted file mode 100755 index 47fdb59..0000000 --- a/net-analyzer/ipac-ng/files/ipac-ng.rc.1.30 +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 deleted file mode 100644 index 1e8f1f4..0000000 --- a/net-analyzer/ipac-ng/files/ipac.conf.1.30 +++ /dev/null @@ -1,51 +0,0 @@ -# $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 deleted file mode 100644 index 6c45c55..0000000 --- a/net-analyzer/ipac-ng/files/rules.conf.1.30 +++ /dev/null @@ -1,32 +0,0 @@ -# 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.34.ebuild b/net-analyzer/ipac-ng/ipac-ng-1.34.ebuild deleted file mode 100644 index 2108763..0000000 --- a/net-analyzer/ipac-ng/ipac-ng-1.34.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# 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="4" -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 - - keepdir /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 - elog "the accounting database is at /var/lib/ipac" - elog "use /usr/sbin/ipacsum to get your ip acounting data" - elog "use /usr/sbin/fetchipac to update the accounting at any time" - elog "fetchipac is run by cron every hour by /etc/cron.hourly/ipac-ng" - elog "after you changed rules.conf you have to run \"fetchipac -S\" or" - elog "stop/start the service so your iptables gets updated" - elog "if ipac is not working with the default configuration make" - elog "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 deleted file mode 100644 index f6c770b..0000000 --- a/net-analyzer/ipac-ng/metadata.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?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> |