2 # - move man_fix patch to ac/am automatic generation, based on configure option
3 Summary: dnshistory - storing a history of DNS/Name changes
4 Summary(pl.UTF-8): dnshistory - przechowywanie historii zmian DNS/nazw
10 Group: Applications/Networking
11 Source0: http://www.stedee.id.au/files/%{name}-%{version}-%{_beta}.tar.gz
12 # Source0-md5: c9843e87412c1bdf8fb2ec5983f0c9c4
13 Patch0: %{name}-man_fix.patch
14 URL: http://www.stedee.id.au/dnshistory/
15 BuildRequires: db-devel
16 BuildRequires: pcre-devel
17 BuildRequires: zlib-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _databasedir /var/lib/%{name}
21 %define _dbfile %{name}.db
24 dnshistory provides a means for storing a history of DNS/Name changes
25 for the IP Addresses extracted from web log files. The major target
26 being that multiple analyses of older log files do not require
27 re-lookups of IP Address to FQDNs, and additionally maintain the
28 accuracy of the lookup as it was then and not as it is now.
30 %description -l pl.UTF-8
31 dnshistory daje możliwość przechowywania historii zmian DNS/nazw dla
32 adresów IP wyciągniętych z plików logów WWW. Głównym zastosowaniem
33 jest wielokrotne analizowanie starszych plików logów nie wymagające
34 ciągłych przekształceń adresów IP na FQDN, a jednocześnie zachowujące
35 rezultaty przekształceń z przeszłości.
38 %setup -q -n %{name}-%{version}-%{_beta}
43 --enable-database-dir=%{_databasedir} \
44 --enable-database-name=%{_dbfile}
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_databasedir}
52 DESTDIR=$RPM_BUILD_ROOT
54 touch $RPM_BUILD_ROOT%{_databasedir}/%{_dbfile}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc AUTHORS ChangeLog NEWS
62 %attr(755,root,root) %{_bindir}/%{name}
63 %attr(755,stats,stats) %dir %{_databasedir}
64 %ghost %{_databasedir}/%{_dbfile}