Summary: Iptables/ipchains based IP accounting package. Name: ipac-ng Version: 1.31 Release: 1.ker.rhel4 License: GPL Group: System Environment/Daemons URL: http://sourceforge.net/projects/ipac-ng/ Source: http://prdownloads.sourceforge.net/ipac-ng/%{name}-%{version}.tar.bz2 Source1: ipac-ng.httpd-conf Source2: ipac-ng-init Patch1: ipac-ng-postgrefix.patch Prereq: perl, chkconfig Requires: gdbm, perl >= 5 BuildPreReq: gdbm-devel, bison, flex BuildRoot: %{_tmppath}/%{name}-%{version}-root %description IPAC-NG is the iptables/ipchains based IP accounting package for Linux. It collects, summarizes, and nicely displays IP accounting data. Ipchains and (preferably) iptables are supported. Logs are stored in files, a gdbm or a PostgreSQL database. %prep %setup -q #%patch1 -p1 -b .postgrefix %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ipac_datadir=/var/ipac-ng/datadir \ ./configure --prefix=%{_prefix} --mandir=%{_mandir} make DESTDIR=$RPM_BUILD_ROOT all %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ipac-ng mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d mkdir -p $RPM_BUILD_ROOT%{_usr}/sbin mkdir -p $RPM_BUILD_ROOT%{_datadir}/ipac-ng/cgi-bin mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/ipac-ng/datadir mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/ipac-ng/webdir mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ipac touch $RPM_BUILD_ROOT/var/lib/ipac/flag install -m 644 ipac-convert $RPM_BUILD_ROOT%{_usr}/sbin install -m 644 ipac-convert.8 $RPM_BUILD_ROOT%{_mandir}/man8/ipac-convert.8 gzip -9 -f $RPM_BUILD_ROOT%{_mandir}/man8/ipac-convert.8 install -m 644 %{S:1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ipac-ng.conf install -m 644 %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/ipac install -m 644 contrib/sample_configs/ipac.conf $RPM_BUILD_ROOT%{_sysconfdir}/ipac-ng install -m 644 contrib/sample_configs/rules.conf.ipchains $RPM_BUILD_ROOT/etc/ipac-ng install -m 644 contrib/sample_configs/rules.conf.iptables $RPM_BUILD_ROOT%{_sysconfdir}/ipac-ng %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/%{name}-%{version} %post /sbin/chkconfig --add ipac echo " * Installation complete. Please, read files in" %{_defaultdocdir}/%{name}-%{version} %preun if [ $1 = 0 ]; then /sbin/chkconfig --del ipac fi %files %defattr(-,root,root) %doc COPYING CHANGELOG README TODO contrib doc %config(noreplace) %{_sysconfdir}/ipac-ng/ipac.conf %config(noreplace) %{_sysconfdir}/ipac-ng/rules.conf.ipchains %config(noreplace) %{_sysconfdir}/ipac-ng/rules.conf.iptables %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipac-ng.conf %attr(755,root,root) %{_sysconfdir}/init.d/ipac %attr(755,root,root) %{_usr}/sbin/ipacsum %attr(755,root,root) %{_usr}/sbin/fetchipac %attr(755,root,root) %{_usr}/sbin/ipac-convert # data: /var/ipac-ng %{_localstatedir}/ipac-ng %attr(664,apache,nobody) %{_localstatedir}/lib/ipac/flag %{_mandir}/man8/*.8.gz %changelog * Fri Mar 04 2005 Milan Kerslager 1.31-1.ker.rhel4 - updated to the latest release - rebuild for RHEL4 * Mon Feb 16 2004 Milan Kerslager 1.27pl1-2.ker.rhel3 - rebuild * Wed Dec 17 2003 Milan Kerslager 1.27pl1-1_WB3 - update, rebuild * Tue May 13 2003 Milan Kerslager 1.27-3.9 - ipac-convert with man page added to package * Sat May 11 2003 Milan Kerslager 1.27-2 - init script added - still no CGI scripts, should be fixed next time (someone may love them) - datadir moved to /var/ipac-ng/datadir because /var/ipac-ng/webdir is for WWW output (see /etc/httpd/conf.d/ipac-ng.conf) * Sat May 10 2003 Milan Kerslager 1.27-1 - rebuild for RH 9 - move ipac files off the WWW server to own directory /usr/share/ipac-ng - utilize /etc/httpd/conf.d directory - no CGI scripts because I do not trust them - patch to fix unneded debug output from fetchipac during ipacsum run * Tue Nov 14 2001 Al Zakharov - placement of index.html file fixed - installation of reconfig flag file added * Mon Oct 15 2001 Al Zakharov - config file path fixed - changed to use tmppath - more requires added - prereq's added - ownership of .htaccess changed * Thu Oct 04 2001 Alex Miller - added cgi-bin utilities - fixed description and %doc attributes * Wed Oct 03 2001 Alex Miller - started package with ipac-ng-1.11