used a patch instead of sed or perl

This commit is contained in:
Michael Schwendt 2007-01-05 22:29:56 +00:00
parent 6999185ee3
commit 596fd89aea
2 changed files with 23 additions and 3 deletions

18
aide-0.13.1-manuals.patch Normal file
View File

@ -0,0 +1,18 @@
diff -Nur aide-0.13.1-orig/doc/aide.1.in aide-0.13.1/doc/aide.1.in
--- aide-0.13.1-orig/doc/aide.1.in 2006-11-30 20:38:16.000000000 +0100
+++ aide-0.13.1/doc/aide.1.in 2007-01-05 23:28:44.000000000 +0100
@@ -73,11 +73,11 @@
SIGTERM. Use SIGKILL to terminate.
.PP
.SH FILES
-.B @sysconfdir@/aide.conf
+.B /etc/aide.conf
Default aide configuration file.
-.B @sysconfdir@/aide.db
+.B /var/lib/aide/aide.db.gz
Default aide database.
-.B @sysconfdir@/aide.db.new
+.B /var/lib/aide/aide.db.new.gz
Default aide output database.
.SH SEE ALSO
.BR aide.conf (5)

View File

@ -15,6 +15,7 @@ Source0: http://download.sourceforge.net/aide/aide-%{version}.tar.gz
Source1: aide.conf
Source2: README.quickstart
Source3: aide.conf.rhel
Patch0: aide-0.13.1-manuals.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
Buildrequires: mhash-devel zlib-devel
Buildrequires: flex bison
@ -35,9 +36,10 @@ checker and intrusion detection program.
%prep
%setup -q
# Adjust default paths in manual.
sed -i -e 's!@sysconfdir@/aide.db\(.new\)\?!%{_localstatedir}/lib/aide/aide.db\1.gz!' doc/aide.1.in
sed -i -e 's!@sysconfdir@/aide.conf!%{_sysconfdir}/aide.conf!' doc/aide.1.in
%patch0 -p1 -b .manuals
# Adjust default paths in manual (not as safe as the patch).
#sed -i -e 's!@sysconfdir@/aide.db\(.new\)\?!%{_localstatedir}/lib/aide/aide.db\1.gz!' doc/aide.1.in
#sed -i -e 's!@sysconfdir@/aide.conf!%{_sysconfdir}/aide.conf!' doc/aide.1.in
%build