used a patch instead of sed or perl
This commit is contained in:
parent
6999185ee3
commit
596fd89aea
18
aide-0.13.1-manuals.patch
Normal file
18
aide-0.13.1-manuals.patch
Normal 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)
|
@ -15,6 +15,7 @@ Source0: http://download.sourceforge.net/aide/aide-%{version}.tar.gz
|
|||||||
Source1: aide.conf
|
Source1: aide.conf
|
||||||
Source2: README.quickstart
|
Source2: README.quickstart
|
||||||
Source3: aide.conf.rhel
|
Source3: aide.conf.rhel
|
||||||
|
Patch0: aide-0.13.1-manuals.patch
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
|
||||||
Buildrequires: mhash-devel zlib-devel
|
Buildrequires: mhash-devel zlib-devel
|
||||||
Buildrequires: flex bison
|
Buildrequires: flex bison
|
||||||
@ -35,9 +36,10 @@ checker and intrusion detection program.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
# Adjust default paths in manual.
|
%patch0 -p1 -b .manuals
|
||||||
sed -i -e 's!@sysconfdir@/aide.db\(.new\)\?!%{_localstatedir}/lib/aide/aide.db\1.gz!' doc/aide.1.in
|
# Adjust default paths in manual (not as safe as the patch).
|
||||||
sed -i -e 's!@sysconfdir@/aide.conf!%{_sysconfdir}/aide.conf!' doc/aide.1.in
|
#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
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user