]> git.pld-linux.org Git - packages/dnshistory.git/commitdiff
- Changed default database location
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 27 Jun 2006 22:12:58 +0000 (22:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dnshistory.spec -> 1.3

dnshistory.spec

index 30a46483a98d772037e89d81ff1971a3652b6dad..82f7f02420ebb2fd745619370a5b10a58c890677 100644 (file)
@@ -1,18 +1,24 @@
+# TODO:
+# - move man_fix patch to ac/am automatic generation, based on configure option 
 Summary:       dnshistory - storing a history of DNS/Name changes
 Name:          dnshistory
 %define                _beta   beta1
 Version:       1.3
-Release:       0.1
+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
 dnshistory provides a means for storing a history of DNS/Name changes
 for the IP Addresses extracted from web log files. The major target
@@ -22,17 +28,23 @@ accuracy of the lookup as it was then and not as it is now.
 
 %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
 
@@ -40,4 +52,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*
This page took 0.043103 seconds and 4 git commands to generate.