]> git.pld-linux.org Git - packages/dnshistory.git/blame - dnshistory.spec
- Changed default database location
[packages/dnshistory.git] / dnshistory.spec
CommitLineData
cfd5dc9f
PG
1# TODO:
2# - move man_fix patch to ac/am automatic generation, based on configure option
a7c5476e 3Summary: dnshistory - storing a history of DNS/Name changes
e44a8cba
PG
4Name: dnshistory
5%define _beta beta1
6Version: 1.3
cfd5dc9f 7Release: 0.5
a7c5476e 8License: GPL v2+
e44a8cba
PG
9Group: Applications/Networking
10Source0: http://www.stedee.id.au/files/%{name}-%{version}-%{_beta}.tar.gz
11# Source0-md5: c9843e87412c1bdf8fb2ec5983f0c9c4
cfd5dc9f 12Patch0: %{name}-man_fix.patch
e44a8cba
PG
13URL: http://www.stedee.id.au/dnshistory/
14BuildRequires: db-devel
15BuildRequires: pcre-devel
16BuildRequires: zlib-devel
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
cfd5dc9f
PG
19%define _databasedir /var/lib/%{name}
20%define _dbfile %{name}.db
21
e44a8cba 22%description
a7c5476e 23dnshistory provides a means for storing a history of DNS/Name changes
24for the IP Addresses extracted from web log files. The major target
25being that multiple analyses of older log files do not require
26re-lookups of IP Address to FQDNs, and additionally maintain the
27accuracy of the lookup as it was then and not as it is now.
e44a8cba
PG
28
29%prep
30%setup -q -n %{name}-%{version}-%{_beta}
cfd5dc9f 31%patch0 -p1
e44a8cba
PG
32
33%build
cfd5dc9f
PG
34%configure \
35 --enable-database-dir=%{_databasedir} \
36 --enable-database-name=%{_dbfile}
e44a8cba
PG
37%{__make}
38
39%install
40rm -rf $RPM_BUILD_ROOT
cfd5dc9f 41install -d $RPM_BUILD_ROOT/%{_databasedir}
e44a8cba
PG
42
43%{__make} install \
44 DESTDIR=$RPM_BUILD_ROOT
45
cfd5dc9f
PG
46touch $RPM_BUILD_ROOT/%{_databasedir}/%{_dbfile}
47
e44a8cba
PG
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc AUTHORS ChangeLog NEWS
54%attr(755,root,root) %{_bindir}/%{name}
cfd5dc9f
PG
55%attr(755,stats,stats) %dir %{_databasedir}
56%ghost %{_databasedir}/%{_dbfile}
e44a8cba 57%{_mandir}/man1/*.1*
This page took 0.06008 seconds and 4 git commands to generate.