#include <xtables.h>
#include "xt_geoip.h"
-#define GEOIP_DB_DIR "/var/geoip"
-+#define GEOIP_DB_DIR "/var/lib/geoip"
++#define GEOIP_DB_DIR "/usr/share/xt_geoip"
static void geoip_help(void)
{
The extra files you will need is the binary database files. They are generated
from a country-subnet database with the geoip_csv_iv0.pl tool, available at
-http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /var/geoip/
-+http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /var/lib/geoip/
++http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /usr/share/xt_geoip/
as the shared library is statically looking for this pathname (e.g.
-/var/geoip/LE/de.iv0).
-+/var/lib/geoip/LE/de.iv0).
++/usr/share/xt_geoip/LE/de.iv0).
%define _enable_debug_packages 0
%endif
-%define rel 14
+%define rel 15
Summary: Extensible packet filtering system && extensible NAT system
Summary(pl.UTF-8): System filtrowania pakietów oraz system translacji adresów (NAT)
Summary(pt_BR.UTF-8): Ferramenta para controlar a filtragem de pacotes no kernel-2.6.x
Summary(pl.UTF-8): Moudły jądra dla xtables addons
Release: %{rel}@%{_kernel_ver_str}
Group: Base/Kernel
+Conflicts: xtables-geoip < 20090901-2
# VERSION only dependency is intentional, for allowing multiple kernel pkgs and
# single userspace package installs.
Requires: %{name} = %{version}
%endif
%if %{with userspace}
-%{__make} -C extensions
+%{__make}
%endif
%install
%{__make} -C extensions install \
DESTDIR=$RPM_BUILD_ROOT
-cd extensions
-for m in $(cat .manpages.lst); do
- cp -a libxt_$m.man $RPM_BUILD_ROOT%{_mandir}/man8/libxt_$m.8
-done
-cd ..
+install -d $RPM_BUILD_ROOT%{_mandir}/man8
+cp -a xtables-addons.8 $RPM_BUILD_ROOT%{_mandir}/man8
%endif
%clean
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/xtables/libxt_*.so
-%{_mandir}/man8/libxt_*.*
+%{_mandir}/man8/xtables-addons.8*
%endif
%if %{with kernel}