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): 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.
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}