X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdnshistory.git;a=blobdiff_plain;f=dnshistory.spec;h=ac126079b2fd831aaf42c5e256760365cffd8c93;hp=a54465b4eb92388333672a3ee8e492841c813f82;hb=5cfb21937f802a3444684ad526263e0526b0e36b;hpb=e44a8cba90da68f79e8f1bb3e4f1ae68599a9f6a diff --git a/dnshistory.spec b/dnshistory.spec index a54465b..ac12607 100644 --- a/dnshistory.spec +++ b/dnshistory.spec @@ -1,34 +1,58 @@ -Summary: dnshistory +# TODO: +# - move man_fix patch to ac/am automatic generation, based on configure option +Summary: dnshistory - storing a history of DNS/Name changes +Summary(pl): dnshistory - przechowywanie historii zmian DNS/nazw Name: dnshistory %define _beta beta1 Version: 1.3 -Release: 0.1 -License: GPL v2 +Release: 0.5 +License: GPL v2+ Group: Applications/Networking Source0: http://www.stedee.id.au/files/%{name}-%{version}-%{_beta}.tar.gz # Source0-md5: c9843e87412c1bdf8fb2ec5983f0c9c4 +Patch0: %{name}-man_fix.patch URL: http://www.stedee.id.au/dnshistory/ BuildRequires: db-devel BuildRequires: pcre-devel BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _databasedir /var/lib/%{name} +%define _dbfile %{name}.db + %description -Provide a means for storing a history of DNS/Name changes for the IP Addresses extracted from web log files. The major target being that multiple analyses of older log files do not require re-lookups of IP Address to FQDNs, and additionally maintain the accuracy of the lookup as it was then and not as it is now. +dnshistory provides a means for storing a history of DNS/Name changes +for the IP Addresses extracted from web log files. The major target +being that multiple analyses of older log files do not require +re-lookups of IP Address to FQDNs, and additionally maintain the +accuracy of the lookup as it was then and not as it is now. + +%description -l pl +dnshistory daje mo¿liwo¶æ przechowywania historii zmian DNS/nazw dla +adresów IP wyci±gniêtych z plików logów WWW. G³ównym zastosowaniem +jest wielokrotne analizowanie starszych plików logów nie wymagaj±ce +ci±g³ych przekszta³ceñ adresów IP na FQDN, a jednocze¶nie zachowuj±ce +rezultaty przekszta³ceñ z przesz³o¶ci. %prep %setup -q -n %{name}-%{version}-%{_beta} +%patch0 -p1 %build -%configure +%configure \ + --enable-database-dir=%{_databasedir} \ + --enable-database-name=%{_dbfile} %{__make} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_databasedir} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +touch $RPM_BUILD_ROOT%{_databasedir}/%{_dbfile} + %clean rm -rf $RPM_BUILD_ROOT @@ -36,4 +60,6 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS %attr(755,root,root) %{_bindir}/%{name} +%attr(755,stats,stats) %dir %{_databasedir} +%ghost %{_databasedir}/%{_dbfile} %{_mandir}/man1/*.1*