summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-11-04 03:43:41 +0000
committerMike Frysinger <vapier@gentoo.org>2003-11-04 03:43:41 +0000
commit852f357eb30580f6a261a612b5b9db063315d49b (patch)
tree3e9d0089359700537b816e0cd8ce50a0b44c82de /net-analyzer/ipac-ng
parentmetadata's added/changed (diff)
downloadgentoo-2-852f357eb30580f6a261a612b5b9db063315d49b.tar.gz
gentoo-2-852f357eb30580f6a261a612b5b9db063315d49b.tar.bz2
gentoo-2-852f357eb30580f6a261a612b5b9db063315d49b.zip
config file fix #30937
Diffstat (limited to 'net-analyzer/ipac-ng')
-rw-r--r--net-analyzer/ipac-ng/ChangeLog8
-rw-r--r--net-analyzer/ipac-ng/files/digest-ipac-ng-1.27_p1-r1 (renamed from net-analyzer/ipac-ng/files/digest-ipac-ng-1.27_p1)0
-rw-r--r--net-analyzer/ipac-ng/files/ipac.conf107
-rw-r--r--net-analyzer/ipac-ng/files/rules.conf56
-rw-r--r--net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild (renamed from net-analyzer/ipac-ng/ipac-ng-1.27_p1.ebuild)4
5 files changed, 116 insertions, 59 deletions
diff --git a/net-analyzer/ipac-ng/ChangeLog b/net-analyzer/ipac-ng/ChangeLog
index 46c63e4fc0b4..d9a5e418129c 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-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ChangeLog,v 1.2 2003/09/29 17:09:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ChangeLog,v 1.3 2003/11/04 03:42:48 vapier Exp $
+
+*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)
diff --git a/net-analyzer/ipac-ng/files/digest-ipac-ng-1.27_p1 b/net-analyzer/ipac-ng/files/digest-ipac-ng-1.27_p1-r1
index 6b0ba9181e50..6b0ba9181e50 100644
--- a/net-analyzer/ipac-ng/files/digest-ipac-ng-1.27_p1
+++ b/net-analyzer/ipac-ng/files/digest-ipac-ng-1.27_p1-r1
diff --git a/net-analyzer/ipac-ng/files/ipac.conf b/net-analyzer/ipac-ng/files/ipac.conf
index 9428b8160db5..e7d7c591a7a0 100644
--- a/net-analyzer/ipac-ng/files/ipac.conf
+++ b/net-analyzer/ipac-ng/files/ipac.conf
@@ -1,56 +1,51 @@
-# $Id: ipac.conf,v 1.1 2003/09/29 02:16:00 vapier Exp $
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/files/ipac.conf,v 1.1 2003/09/29 02:16:00 vapier Exp $
-
-# Example config file with accounting rules
-# Install as /etc/ipac-ng/ipac.conf
-#
-# Format:
-# Name of rule|direction|interface|protocol|source|destination
-#
-# where
-# Name of rule Any string to identify this rule
-# direction in | out
-# interface ip number or interface name, '+' means all interfaces
-# protocol tcp | udp | icmp | all
-# source \
-# destination both as described in ipfwadm(8), or empty
-
-# target accept, deny, reject or none of that
-#
-# incoming:
-
-incoming all |in|eth+|all||
-incoming TCP |in|eth+|tcp||
-incoming UDP |in|eth+|udp||
-incoming ICMP |in|eth+|icmp||
-incoming local SSH |in|eth+|tcp||0/0 ssh
-
-#incoming smtp|in||tcp|0/0 smtp|
-#incoming nntp|in||tcp|0/0 nntp|
-#incoming samba|in|eth+|tcp||0/0 137 138 139
-#incoming samba|in|eth+|udp||0/0 137 138 139
-#incoming samba|in|eth+|tcp|0/0 137 138 139|
-#incoming samba|in|eth+|udp|0/0 137 138 139|
-#incoming http|in||tcp|0/0 http https 81 82 83 8080|
-#incoming ftp |in||tcp|0/0 ftp ftp-data|
-#incoming dns |in||udp|0/0 domain|
-
-#
-# Outgoing:
-outgoing all |out|eth+|all||
-outgoing TCP |out|eth+|tcp||
-outgoing UDP |out|eth+|udp||
-outgoing ICMP |out|eth+|icmp||
-outgoing local Webserver |out|eth+|tcp|0/0 http https|
-outgoing local SSH |out|eth+|tcp|0/0 ssh|
-
-#outgoing smtp|out||tcp||0/0 smtp
-#outgoing nntp|out||tcp||0/0 nntp
-#outgoing samba|out|eth+|tcp|0/0 137 138 139|
-#outgoing samba|out|eth+|udp|0/0 137 138 139|
-#outgoing samba|out|eth+|tcp||0/0 137 138 139
-#outgoing samba|out|eth+|udp||0/0 137 138 139
-#outgoing http|out||tcp||0/0 http https 81 82 83 8080
-#outgoing ftp |out||tcp||0/0 ftp ftp-data
-#outgoing dns |out||udp||0/0 domain
-#
+# 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.
+classic mode = yes
+
+## specify access agent. supported are: files, postgre. files works with classic mode only
+# did you specify 'no' above? ok, here should be 'files' for you.
+access agent = files
+
+## accouting agent. iptables and ipchains available now.
+# (ipchains is not supported in nonclassic mode). does anybody still uses them?
+account agent = iptables
+
+## storage. gdbm, postgre and files supported. (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 (specific only for nonclassic mode) (only those who has enough cash)
+# note: forget about this.
+#login at start = no
+
+## support for traffic passing to\from auth host (specific only for nonclassic mode)
+## name or ip of the auth host
+## disable support if not specified,
+# forget about this, too
+#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 b/net-analyzer/ipac-ng/files/rules.conf
new file mode 100644
index 000000000000..66e7c0faba11
--- /dev/null
+++ b/net-analyzer/ipac-ng/files/rules.conf
@@ -0,0 +1,56 @@
+# $Id: rules.conf,v 1.1 2003/11/04 03:42:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/files/rules.conf,v 1.1 2003/11/04 03:42:48 vapier Exp $
+
+# Example config file with accounting rules
+# Install as /etc/ipac-ng/ipac.conf
+#
+# Format:
+# Name of rule|direction|interface|protocol|source|destination
+#
+# where
+# Name of rule Any string to identify this rule
+# direction in | out
+# interface ip number or interface name, '+' means all interfaces
+# protocol tcp | udp | icmp | all
+# source \
+# destination both as described in ipfwadm(8), or empty
+
+# target accept, deny, reject or none of that
+#
+# incoming:
+
+incoming all |in|eth+|all||
+incoming TCP |in|eth+|tcp||
+incoming UDP |in|eth+|udp||
+incoming ICMP |in|eth+|icmp||
+incoming local SSH |in|eth+|tcp||0/0 ssh
+
+#incoming smtp|in||tcp|0/0 smtp|
+#incoming nntp|in||tcp|0/0 nntp|
+#incoming samba|in|eth+|tcp||0/0 137 138 139
+#incoming samba|in|eth+|udp||0/0 137 138 139
+#incoming samba|in|eth+|tcp|0/0 137 138 139|
+#incoming samba|in|eth+|udp|0/0 137 138 139|
+#incoming http|in||tcp|0/0 http https 81 82 83 8080|
+#incoming ftp |in||tcp|0/0 ftp ftp-data|
+#incoming dns |in||udp|0/0 domain|
+
+#
+# Outgoing:
+outgoing all |out|eth+|all||
+outgoing TCP |out|eth+|tcp||
+outgoing UDP |out|eth+|udp||
+outgoing ICMP |out|eth+|icmp||
+outgoing local Webserver |out|eth+|tcp|0/0 http https|
+outgoing local SSH |out|eth+|tcp|0/0 ssh|
+
+#outgoing smtp|out||tcp||0/0 smtp
+#outgoing nntp|out||tcp||0/0 nntp
+#outgoing samba|out|eth+|tcp|0/0 137 138 139|
+#outgoing samba|out|eth+|udp|0/0 137 138 139|
+#outgoing samba|out|eth+|tcp||0/0 137 138 139
+#outgoing samba|out|eth+|udp||0/0 137 138 139
+#outgoing http|out||tcp||0/0 http https 81 82 83 8080
+#outgoing ftp |out||tcp||0/0 ftp ftp-data
+#outgoing dns |out||udp||0/0 domain
+#
diff --git a/net-analyzer/ipac-ng/ipac-ng-1.27_p1.ebuild b/net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild
index d99539893310..2dd413957d83 100644
--- a/net-analyzer/ipac-ng/ipac-ng-1.27_p1.ebuild
+++ b/net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ipac-ng-1.27_p1.ebuild,v 1.2 2003/09/29 05:48:30 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild,v 1.1 2003/11/04 03:43:41 vapier Exp $
DESCRIPTION="ip accounting suite for 2.4 series kernels with PNG image output like mrtg"
HOMEPAGE="http://sourceforge.net/projects/ipac-ng/"
@@ -41,7 +41,7 @@ src_install() {
dodir /var/lib/ipac
insinto /etc/ipac-ng
- doins ${FILESDIR}/ipac.conf
+ doins ${FILESDIR}/{ipac,rules}.conf
exeinto /etc/init.d ; newexe ${FILESDIR}/ipac-ng.rc ipac-ng