|
@@ -26,23 +26,24 @@
|
|
|
# package information
|
|
# package information
|
|
|
Name: aide
|
|
Name: aide
|
|
|
Summary: Advanced Intrusion Detection Environment
|
|
Summary: Advanced Intrusion Detection Environment
|
|
|
-URL: http://www.aide.org/
|
|
|
|
|
|
|
+URL: http://aide.sourceforge.net/
|
|
|
Vendor: R. Lehti & P. Virolainen
|
|
Vendor: R. Lehti & P. Virolainen
|
|
|
Packager: The OpenPKG Project
|
|
Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG
|
|
Distribution: OpenPKG
|
|
|
Class: PLUS
|
|
Class: PLUS
|
|
|
Group: Security
|
|
Group: Security
|
|
|
License: GPL
|
|
License: GPL
|
|
|
-Version: 0.9
|
|
|
|
|
-Release: 20040203
|
|
|
|
|
|
|
+Version: 0.10
|
|
|
|
|
+Release: 20040206
|
|
|
|
|
|
|
|
# package options
|
|
# package options
|
|
|
%option with_fsl yes
|
|
%option with_fsl yes
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
-Source0: http://www.cs.tut.fi/~rammer/aide-%{version}.tar.gz
|
|
|
|
|
-Source1: rc.aide
|
|
|
|
|
-Source2: fsl.aide
|
|
|
|
|
|
|
+Source0: http://osdn.dl.sourceforge.net/sourceforge/aide/aide-%{version}.tar.gz
|
|
|
|
|
+Source1: aide.conf
|
|
|
|
|
+Source2: rc.aide
|
|
|
|
|
+Source3: fsl.aide
|
|
|
Patch0: aide.patch
|
|
Patch0: aide.patch
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
@@ -60,13 +61,14 @@ AutoReq: no
|
|
|
AutoReqProv: no
|
|
AutoReqProv: no
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
|
- Aide is an intrusion detection system for checking the integrity of files.
|
|
|
|
|
|
|
+ Aide is an intrusion detection system for checking the integrity of
|
|
|
|
|
+ files.
|
|
|
|
|
|
|
|
%track
|
|
%track
|
|
|
prog aide = {
|
|
prog aide = {
|
|
|
- version = 0.9
|
|
|
|
|
- url = ftp://www.cs.tut.fi/pub/src/gnu/
|
|
|
|
|
- regex = \baide-(__VER__)\.tar\.gz
|
|
|
|
|
|
|
+ version = 0.10
|
|
|
|
|
+ url = http://prdownloads.sourceforge.net/aide/
|
|
|
|
|
+ regex = aide-(__VER__)\.tar\.gz
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
@@ -86,6 +88,7 @@ AutoReqProv: no
|
|
|
LIBS="%{l_fsl_libs}" \
|
|
LIBS="%{l_fsl_libs}" \
|
|
|
./configure \
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
--prefix=%{l_prefix} \
|
|
|
|
|
+ --sysconfdir=%{l_prefix}/etc/aide \
|
|
|
--with-dbhmactype=sha1 \
|
|
--with-dbhmactype=sha1 \
|
|
|
--with-dbhmackey=T3BlblBLRyBNYWludGFpbmVy \
|
|
--with-dbhmackey=T3BlblBLRyBNYWludGFpbmVy \
|
|
|
--with-zlib=%{l_prefix}
|
|
--with-zlib=%{l_prefix}
|
|
@@ -94,10 +97,13 @@ AutoReqProv: no
|
|
|
%install
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/var/aide \
|
|
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/aide
|
|
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/aide \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/aide
|
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
|
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
|
|
|
|
+
|
|
|
|
|
+ # supply empty default configuration (just in order to tag it as config)
|
|
|
|
|
+ %{l_shtool} install -c -m 644 %{l_value -s -a} \
|
|
|
|
|
+ %{SOURCE aide.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/aide/
|
|
|
|
|
|
|
|
# install run-command script
|
|
# install run-command script
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
@@ -111,9 +117,13 @@ AutoReqProv: no
|
|
|
%{SOURCE fsl.aide} \
|
|
%{SOURCE fsl.aide} \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
|
|
|
|
|
|
|
|
|
|
+ # strip installation
|
|
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/locale >/dev/null 2>&1 || true
|
|
|
|
|
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
|
|
+
|
|
|
# determine installation files
|
|
# determine installation files
|
|
|
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
|
|
- %{l_files_std} \
|
|
|
|
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
|
|
|
|
|
+ '%config %{l_prefix}/etc/aide/*' \
|
|
|
'%not %dir %{l_prefix}/etc/fsl' \
|
|
'%not %dir %{l_prefix}/etc/fsl' \
|
|
|
'%config %{l_prefix}/etc/fsl/fsl.aide'
|
|
'%config %{l_prefix}/etc/fsl/fsl.aide'
|
|
|
|
|
|