]>
Commit | Line | Data |
---|---|---|
cfd5dc9f PG |
1 | # TODO: |
2 | # - move man_fix patch to ac/am automatic generation, based on configure option | |
a7c5476e | 3 | Summary: dnshistory - storing a history of DNS/Name changes |
1246f1ba | 4 | Summary(pl.UTF-8): dnshistory - przechowywanie historii zmian DNS/nazw |
e44a8cba PG |
5 | Name: dnshistory |
6 | %define _beta beta1 | |
7 | Version: 1.3 | |
20de9e4e | 8 | Release: 0.%{_beta}.1 |
a7c5476e | 9 | License: GPL v2+ |
e44a8cba PG |
10 | Group: Applications/Networking |
11 | Source0: http://www.stedee.id.au/files/%{name}-%{version}-%{_beta}.tar.gz | |
12 | # Source0-md5: c9843e87412c1bdf8fb2ec5983f0c9c4 | |
cfd5dc9f | 13 | Patch0: %{name}-man_fix.patch |
e44a8cba PG |
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) | |
19 | ||
cfd5dc9f PG |
20 | %define _databasedir /var/lib/%{name} |
21 | %define _dbfile %{name}.db | |
22 | ||
e44a8cba | 23 | %description |
a7c5476e | 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. | |
e44a8cba | 29 | |
204daabb JR |
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. | |
5cfb2193 | 36 | |
e44a8cba PG |
37 | %prep |
38 | %setup -q -n %{name}-%{version}-%{_beta} | |
cfd5dc9f | 39 | %patch0 -p1 |
e44a8cba PG |
40 | |
41 | %build | |
cfd5dc9f PG |
42 | %configure \ |
43 | --enable-database-dir=%{_databasedir} \ | |
44 | --enable-database-name=%{_dbfile} | |
e44a8cba PG |
45 | %{__make} |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
5cfb2193 | 49 | install -d $RPM_BUILD_ROOT%{_databasedir} |
e44a8cba PG |
50 | |
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
5cfb2193 | 54 | touch $RPM_BUILD_ROOT%{_databasedir}/%{_dbfile} |
cfd5dc9f | 55 | |
e44a8cba PG |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS ChangeLog NEWS | |
62 | %attr(755,root,root) %{_bindir}/%{name} | |
cfd5dc9f PG |
63 | %attr(755,stats,stats) %dir %{_databasedir} |
64 | %ghost %{_databasedir}/%{_dbfile} | |
e44a8cba | 65 | %{_mandir}/man1/*.1* |