]> git.pld-linux.org Git - packages/dnshistory.git/blob - dnshistory.spec
bb66d8110094cab58af6cdb586b08531d1212e5f
[packages/dnshistory.git] / dnshistory.spec
1 # TODO:
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
5 Name:           dnshistory
6 Version:        1.3
7 Release:        2
8 License:        GPL v2+
9 Group:          Applications/Networking
10 Source0:        http://www.stedee.id.au/files/%{name}-%{version}.tar.gz
11 # Source0-md5:  6fa5dbb93bf3d69331077a1422350320
12 Patch0:         %{name}-man_fix.patch
13 URL:            http://www.stedee.id.au/dnshistory/
14 BuildRequires:  db-devel
15 BuildRequires:  pcre-devel
16 BuildRequires:  zlib-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _databasedir    /var/lib/%{name}
20 %define         _dbfile         %{name}.db
21
22 %description
23 dnshistory provides a means for storing a history of DNS/Name changes
24 for the IP Addresses extracted from web log files. The major target
25 being that multiple analyses of older log files do not require
26 re-lookups of IP Address to FQDNs, and additionally maintain the
27 accuracy of the lookup as it was then and not as it is now.
28
29 %description -l pl.UTF-8
30 dnshistory daje możliwość przechowywania historii zmian DNS/nazw dla
31 adresów IP wyciągniętych z plików logów WWW. Głównym zastosowaniem
32 jest wielokrotne analizowanie starszych plików logów nie wymagające
33 ciągłych przekształceń adresów IP na FQDN, a jednocześnie zachowujące
34 rezultaty przekształceń z przeszłości.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39
40 %build
41 %configure \
42         --enable-database-dir=%{_databasedir} \
43         --enable-database-name=%{_dbfile}
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_databasedir}
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 touch $RPM_BUILD_ROOT%{_databasedir}/%{_dbfile}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc AUTHORS ChangeLog NEWS
61 %attr(755,root,root) %{_bindir}/%{name}
62 %attr(755,stats,stats) %dir %{_databasedir}
63 %ghost %{_databasedir}/%{_dbfile}
64 %{_mandir}/man1/*.1*
This page took 0.061504 seconds and 2 git commands to generate.