1 Summary: Convert a CSV database to format suitable for GeoIP library
7 Source0: http://people.netfilter.org/peejix/GeoIP/tools/%{name}-%{version}.tar.gz
8 # Source0-md5: b92bff0fc2adba02a48cfbb4b401205c
9 URL: http://people.netfilter.org/peejix/GeoIP/tools/
10 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13 csv2bin is a tool specially written for the iptables/netfilter's GeoIP
14 match purpose. This file won't discuss about the iptables/netfilter's
15 framework. <www.netfilter.org> for details.
17 csv2bin's only task is to convert a comma-seperated-value database
18 containing all IPv4 subnets and their associated countries to an
19 understable binary format for the iptables' GeoIP shared library.
21 You can create your own database (perhaps you feel sado) or simply
22 gets the latest GeoIP's free database from MaxMind. This product
23 includes GeoIP data created by MaxMind, available from
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_bindir}
37 install %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
45 %attr(755,root,root) %{_bindir}/csv2bin