SPECS: dnshistory.spec - Changed default database location
blues
blues at pld-linux.org
Wed Jun 28 00:13:03 CEST 2006
Author: blues Date: Tue Jun 27 22:13:03 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Changed default database location
---- Files affected:
SPECS:
dnshistory.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/dnshistory.spec
diff -u SPECS/dnshistory.spec:1.2 SPECS/dnshistory.spec:1.3
--- SPECS/dnshistory.spec:1.2 Tue Jun 27 23:49:41 2006
+++ SPECS/dnshistory.spec Wed Jun 28 00:12:58 2006
@@ -1,19 +1,25 @@
# $Revision$, $Date$
+# 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
@@ -23,17 +29,23 @@
%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
@@ -41,6 +53,8 @@
%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*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -49,6 +63,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2006/06/27 22:12:58 blues
+- Changed default database location
+
Revision 1.2 2006/06/27 21:49:41 ankry
- Summary, fixed License, some cosmetics
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/dnshistory.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list