]> git.pld-linux.org Git - packages/dnshistory.git/blob - dnshistory.spec
6016c469fae7dbbb2c00920b83723f3c3d2af7f5
[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 %define         _beta   beta1
7 Version:        1.3
8 Release:        0.%{_beta}.1
9 License:        GPL v2+
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)
19
20 %define         _databasedir    /var/lib/%{name}
21 %define         _dbfile         %{name}.db
22
23 %description
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.
29
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.
36
37 %prep
38 %setup -q -n %{name}-%{version}-%{_beta}
39 %patch0 -p1
40
41 %build
42 %configure \
43         --enable-database-dir=%{_databasedir} \
44         --enable-database-name=%{_dbfile}
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_databasedir}
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 touch $RPM_BUILD_ROOT%{_databasedir}/%{_dbfile}
55
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}
63 %attr(755,stats,stats) %dir %{_databasedir}
64 %ghost %{_databasedir}/%{_dbfile}
65 %{_mandir}/man1/*.1*
This page took 0.040682 seconds and 2 git commands to generate.