2006-02-25 21:45:31 +00:00
|
|
|
%{?_with_static: %define nostatic 0}
|
|
|
|
%{!?_with_static: %define nostatic 1}
|
|
|
|
|
2005-03-03 19:29:59 +00:00
|
|
|
Summary: Intrusion detection environment
|
2004-11-08 04:00:58 +00:00
|
|
|
Name: aide
|
2006-03-02 12:22:25 +00:00
|
|
|
Version: 0.10
|
2006-03-02 12:24:24 +00:00
|
|
|
Release: 3.fc5
|
2004-11-08 04:01:13 +00:00
|
|
|
URL: http://sourceforge.net/projects/aide
|
2004-11-08 04:00:58 +00:00
|
|
|
License: GPL
|
|
|
|
Group: Applications/System
|
2006-03-02 12:22:25 +00:00
|
|
|
Source: http://download.sourceforge.net/aide/aide-0.10.tar.gz
|
2004-11-08 04:00:58 +00:00
|
|
|
Source1: aide.conf
|
|
|
|
Source2: README.quickstart
|
2006-03-02 12:22:25 +00:00
|
|
|
Patch0: aide-0.10-no-static.patch
|
|
|
|
Patch1: aide-useless-includes.patch
|
2004-11-08 04:00:58 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
|
|
|
|
Buildrequires: mhash-devel zlib-devel
|
2005-03-03 19:29:59 +00:00
|
|
|
Buildrequires: flex bison
|
2006-03-02 12:22:25 +00:00
|
|
|
# Red Hat bug #108655, bison requires m4
|
|
|
|
Buildrequires: m4
|
|
|
|
# Postgresql support doesn't build.
|
|
|
|
Buildconflicts: postgresql-devel
|
2004-11-08 04:00:58 +00:00
|
|
|
|
2005-03-03 19:29:59 +00:00
|
|
|
%description
|
2004-11-08 04:00:58 +00:00
|
|
|
AIDE (Advanced Intrusion Detection Environment) is a file integrity
|
|
|
|
checker and intrusion detection program.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2006-03-02 12:22:25 +00:00
|
|
|
%setup -q -n aide-0.10
|
2006-02-25 21:45:31 +00:00
|
|
|
%if 0%{nostatic}
|
|
|
|
%patch0 -p1 -b .no-static
|
|
|
|
%endif
|
2006-03-02 12:22:25 +00:00
|
|
|
%patch1 -p1
|
2004-11-08 04:00:58 +00:00
|
|
|
|
|
|
|
%build
|
2006-03-02 12:22:25 +00:00
|
|
|
# Apply RPM_OPT_FLAGS.
|
|
|
|
perl -pi -e 's/^CFLAGS="\$LD_STATIC_FLAG\"//' configure
|
|
|
|
perl -pi -e 's/^CPPFLAGS="\$LD_STATIC_FLAG\"//' configure
|
|
|
|
|
2004-11-08 04:00:58 +00:00
|
|
|
%configure --with-config_file=%{_sysconfdir}/aide.conf \
|
|
|
|
--with-zlib \
|
2005-03-03 19:29:59 +00:00
|
|
|
--with-mhash --enable-mhash
|
2004-11-08 04:00:58 +00:00
|
|
|
|
|
|
|
# Adjust default database paths.
|
|
|
|
perl -pi -e 's!%{_sysconfdir}/aide.db!%{_localstatedir}/lib/aide.db!' config.h
|
|
|
|
# Adjust default paths in manual.
|
|
|
|
perl -pi -e 's!<prefix>/etc/aide.db!%{_localstatedir}/lib/aide.db!' doc/aide.1
|
|
|
|
perl -pi -e 's!<prefix>/etc/aide.conf!%{_sysconfdir}/aide.conf!' doc/aide.1
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall bindir=$RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
|
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
|
mkdir -p -m0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/aide
|
|
|
|
install -p %{SOURCE2} README.quickstart
|
|
|
|
mkdir -p -m0755 $RPM_BUILD_ROOT%{_mandir}/ru/man{1,5}
|
2006-03-02 12:22:25 +00:00
|
|
|
install -p -m0644 doc/aide.1.ru $RPM_BUILD_ROOT%{_mandir}/ru/man1/aide.1
|
|
|
|
install -p -m0644 doc/aide.conf.5.ru $RPM_BUILD_ROOT%{_mandir}/ru/man5/aide.conf.5
|
2004-11-08 04:00:58 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2006-03-02 12:22:25 +00:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README ./doc/manual.html
|
2004-11-08 04:00:58 +00:00
|
|
|
%doc README.quickstart
|
|
|
|
%attr(0700,root,root) %{_sbindir}/aide
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
2006-03-02 12:22:25 +00:00
|
|
|
%lang(ru) %{_mandir}/ru/man1/aide.1*
|
|
|
|
%lang(ru) %{_mandir}/ru/man5/aide.conf.5*
|
2004-11-08 04:00:58 +00:00
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf
|
|
|
|
%dir %attr(0700,root,root) %{_localstatedir}/lib/aide
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2006-03-02 12:22:25 +00:00
|
|
|
* Thu Mar 2 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.10-3
|
2006-02-25 21:45:31 +00:00
|
|
|
- disable static linking.
|
|
|
|
|
2005-04-06 22:10:48 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-11-08 04:01:13 +00:00
|
|
|
* Fri Nov 28 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.1
|
|
|
|
- Update to 0.10 release.
|
|
|
|
- memleaks patch merged upstream.
|
|
|
|
- rootpath patch merged upstream.
|
|
|
|
- fstat patch not needed anymore.
|
|
|
|
- Updated URL.
|
|
|
|
|
2004-11-08 04:01:04 +00:00
|
|
|
* Thu Nov 13 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.0.2.cvs20031104
|
|
|
|
- Added buildreq m4 to work around incomplete deps of bison package.
|
|
|
|
|
2004-11-08 04:00:58 +00:00
|
|
|
* Tue Nov 04 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.10-0.fdr.0.1.cvs20031104
|
|
|
|
- Only tar.gz available upstream.
|
|
|
|
- byacc not needed when bison -y is available.
|
|
|
|
- Installed Russian manual pages.
|
|
|
|
- Updated with changes from CVS (2003-11-04).
|
|
|
|
- getopt patch merged upstream.
|
|
|
|
- bison-1.35 patch incorporated upstream.
|
|
|
|
|
|
|
|
* Tue Sep 09 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.9-0.fdr.0.2.20030902
|
|
|
|
- Added fixes for further memleaks.
|
|
|
|
|
|
|
|
* Sun Sep 07 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.9-0.fdr.0.1.20030902
|
|
|
|
- Initial package version.
|
|
|
|
|