diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-11-04 03:43:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-11-04 03:43:41 +0000 |
commit | 852f357eb30580f6a261a612b5b9db063315d49b (patch) | |
tree | 3e9d0089359700537b816e0cd8ce50a0b44c82de /net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild | |
parent | metadata's added/changed (diff) | |
download | gentoo-2-852f357eb30580f6a261a612b5b9db063315d49b.tar.gz gentoo-2-852f357eb30580f6a261a612b5b9db063315d49b.tar.bz2 gentoo-2-852f357eb30580f6a261a612b5b9db063315d49b.zip |
config file fix #30937
Diffstat (limited to 'net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild')
-rw-r--r-- | net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild b/net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild new file mode 100644 index 000000000000..2dd413957d83 --- /dev/null +++ b/net-analyzer/ipac-ng/ipac-ng-1.27_p1-r1.ebuild @@ -0,0 +1,65 @@ +# 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-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/" +SRC_URI="mirror://sourceforge/ipac-ng/${P/_p/pl}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="gd" + +DEPEND="sys-devel/bison + sys-devel/flex + dev-lang/perl + sys-libs/gdbm + gd? ( dev-perl/GD ) + sys-devel/flex + virtual/glibc" +RDEPEND="net-firewall/iptables + virtual/cron + dev-lang/perl + sys-libs/gdbm + gd? ( dev-perl/GD ) + virtual/glibc" + +S=${WORKDIR}/${P/_p*} + +src_compile() { + econf \ + --enable-default-storage=gdbm \ + --enable-default-agent=iptables \ + || die "./configure failed" + emake -j1 || die "make failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + + dodir /var/lib/ipac + + insinto /etc/ipac-ng + doins ${FILESDIR}/{ipac,rules}.conf + + exeinto /etc/init.d ; newexe ${FILESDIR}/ipac-ng.rc ipac-ng + + exeinto /etc/cron.hourly + newexe ${FILESDIR}/ipac-ng.cron ipac-ng + + dodoc COPYING README* TODO UPDATE* CHANGES +} + +pkg_postinst() { + einfo "W A R N I N G !" + einfo "do not use \"/etc/init.d/iptables save\" when ipac-ng is running!" + einfo "this WILL cause problems!" + einfo "ipac-ng should be started AFTER iptables and shut down BEFORE iptables" + 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 ipac.conf you have to run \"fetchipac -S\" or" + einfo "stop/start the service so your iptables gets updated" +} |