]>
Commit | Line | Data |
---|---|---|
86e2913c | 1 | Summary: Convert a CSV database to format suitable for GeoIP library |
ecf7c4a9 | 2 | Summary(pl.UTF-8): Konwerter bazy danych CSV do formatu dla biblioteki GeoIP |
86e2913c ER |
3 | Name: csv2bin |
4 | Version: 20041103 | |
dfe3758e | 5 | Release: 2 |
86e2913c ER |
6 | License: GPL v2 |
7 | Group: Applications | |
4efaf76d | 8 | Source0: http://people.netfilter.org/peejix/geoip/tools/%{name}-%{version}.tar.gz |
86e2913c ER |
9 | # Source0-md5: b92bff0fc2adba02a48cfbb4b401205c |
10 | URL: http://people.netfilter.org/peejix/GeoIP/tools/ | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | csv2bin is a tool specially written for the iptables/netfilter's GeoIP | |
ecf7c4a9 JB |
15 | match purpose. csv2bin's only task is to convert a |
16 | comma-seperated-value database containing all IPv4 subnets and their | |
17 | associated countries to an understable binary format for the iptables' | |
18 | GeoIP shared library. | |
86e2913c ER |
19 | |
20 | You can create your own database (perhaps you feel sado) or simply | |
ecf7c4a9 JB |
21 | gets the latest GeoIP's free database from MaxMind. |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | csv2bin to narzędzie napisane specjalnie dla modułu dopasowującego | |
25 | GeoIP dla iptables/netfiltra. Jedynym jego zadaniem jest konwersja | |
26 | bazy danych w formacie CSV (wartości oddzielonych przecinkami) | |
27 | zawierającej wszystkie podsieci IPv4 i związane z nimi kraje do | |
28 | binarnego formatu rozumianego przez bibliotekę współdzieloną GeoIP | |
29 | iptables. | |
30 | ||
31 | Można stworzyć własną bazę danych (jeśli ktoś jest masochistą) albo | |
32 | po prostu pobrać darmową bazę danych GeoIP z MaxMind. | |
86e2913c ER |
33 | |
34 | %prep | |
35 | %setup -q -n %{name} | |
36 | ||
37 | %build | |
38 | %{__make} \ | |
39 | CC="%{__cc}" \ | |
40 | OPTION="%{rpmcflags}" | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT%{_bindir} | |
45 | install %{name} $RPM_BUILD_ROOT%{_bindir}/%{name} | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc README | |
53 | %attr(755,root,root) %{_bindir}/csv2bin |