0731451
Name:		prelude-lml
9498157
Epoch:		1
0731451
Version:	1.0.0
a2dc4d9
Release:	3%{?dist}
c5767ff
Summary:	The prelude log analyzer
c5767ff
c5767ff
Group:		System Environment/Libraries
439b45e
License:	GPLv2+
c5767ff
URL:		http://prelude-ids.org/
a02dd73
Source0:	http://www.prelude-ids.org/download/releases/%{name}/%{name}-%{version}.tar.gz
a02dd73
Source1:        prelude-lml.init
b30a3c6
Patch1:		prelude-lml-1.0.0rc1-pie.patch
c5767ff
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c5767ff
0731451
BuildRequires:	gamin-devel, pcre-devel
05427c5
BuildRequires:	libprelude-devel >= 0.9.21.3
f4bf760
Requires(post):	/sbin/chkconfig
f4bf760
Requires(preun):	/sbin/chkconfig
f4bf760
Requires(preun):	/sbin/service
f4bf760
Requires(postun):	/sbin/service
c5767ff
c5767ff
%description
05427c5
Prelude-LML is a log analyser that allows Prelude to collect and
05427c5
analyze information from all kind of applications emitting logs or
05427c5
syslog messages in order to detect suspicious activities and transform
05427c5
them into Prelude-IDMEF alerts. Prelude-LML handles events generated
05427c5
by a large set of applications,
c5767ff
c5767ff
%package devel
c5767ff
Summary: Header files and libraries for libprelude development
c5767ff
Group: Development/Libraries
a2dc4d9
Requires: libprelude-devel, prelude-lml = %{epoch}:%{version}-%{release}
c5767ff
c5767ff
%description devel
05427c5
Libraries, include files, etc you can use to develop custom
05427c5
Prelude LML plugins.
05427c5
c5767ff
c5767ff
%prep
c5767ff
%setup -q
a02dd73
%patch1 -p1
c5767ff
c5767ff
c5767ff
%build
c5767ff
%configure	
c5767ff
make %{?_smp_mflags} 
c5767ff
c5767ff
c5767ff
%install
c5767ff
rm -rf %{buildroot}
f4bf760
mkdir -p %{buildroot}/%{_initrddir}/
0165257
mkdir -p %{buildroot}/var/lib/%{name}/
c5767ff
make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
a02dd73
install -m 755 %{SOURCE1} %{buildroot}/%{_initrddir}/%{name}
c5767ff
rm -f %{buildroot}/%{_libdir}/%{name}/debug.la
c5767ff
rm -f %{buildroot}/%{_libdir}/%{name}/pcre.la
c5767ff
c5767ff
%clean
c5767ff
rm -rf %{buildroot}
c5767ff
f4bf760
%post
f4bf760
/sbin/ldconfig
f4bf760
/sbin/chkconfig --add %{name}
f4bf760
f4bf760
%preun
f4bf760
if [ $1 = 0 ]; then
f4bf760
        /sbin/service %{name} stop > /dev/null 2>&1 || :
f4bf760
        /sbin/chkconfig --del %{name}
f4bf760
fi
f4bf760
f4bf760
%postun
f4bf760
/sbin/ldconfig
f4bf760
if [ "$1" -ge "1" ]; then
f4bf760
        /sbin/service %{name} condrestart >/dev/null 2>&1 || :
f4bf760
fi
f4bf760
f4bf760
c5767ff
%files
0731451
%defattr(-,root,root,-)
0731451
%doc COPYING
03fdc56
%attr(0750,root,root) %dir %{_sysconfdir}/%{name}/
03fdc56
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/*.conf
03fdc56
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/*.rules
03fdc56
%attr(0750,root,root) %dir %{_sysconfdir}/%{name}/ruleset/
03fdc56
%config(noreplace) %attr(0640,root,root)%{_sysconfdir}/%{name}/ruleset/*
f4bf760
%{_initrddir}/%{name}
c5767ff
%{_bindir}/prelude-lml
c5767ff
%dir %{_libdir}/%{name}/
c5767ff
%{_libdir}/%{name}/debug.so
c5767ff
%{_libdir}/%{name}/pcre.so
03fdc56
%attr(0750,root,root) %dir /var/lib/%{name}/
c5767ff
c5767ff
%files devel
b30a3c6
%defattr(-,root,root,-)
c5767ff
%dir %{_includedir}/%{name}/
c5767ff
%{_includedir}/%{name}/prelude-lml.h
c5767ff
c5767ff
c5767ff
%changelog
a2dc4d9
* Sun May 02 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0-3
a2dc4d9
- Fixed requires
a2dc4d9
9498157
* Fri Apr 30 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0-2
0731451
- new upstream release
0731451
7b357f3
* Mon Feb 08 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0rc2-1
7b357f3
- new upstream release
7b357f3
b30a3c6
* Sat Jan 30 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0rc1-1
b30a3c6
- new upstream release
b30a3c6
69d8be3
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.15-2
69d8be3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
69d8be3
05427c5
* Tue Jul 21 2009 Steve Grubb <sgrubb@redhat.com> 0.9.15-1
05427c5
- new upstream release
05427c5
03fdc56
* Wed Apr 22 2009 Steve Grubb <sgrubb@redhat.com> 0.9.14-3
03fdc56
- Adjust dir and config file permissions
03fdc56
8bb7acd
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
8bb7acd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8bb7acd
3284fc2
* Fri Oct 17 2008 Steve Grubb <sgrubb@redhat.com> 0.9.14-1
3284fc2
- new upstream release fixing bz #463459
3284fc2
72b1be1
* Sat Oct 11 2008 Steve Grubb <sgrubb@redhat.com> 0.9.13-2
72b1be1
- improved mod_security rules
72b1be1
638e225
* Wed Aug 27 2008 Steve Grubb <sgrubb@redhat.com> 0.9.13-1
638e225
- new upstream release
638e225
8d356e2
* Wed Jun 25 2008 Tomas Mraz <tmraz@redhat.com> - 0.9.12.2-2
8d356e2
- rebuild with new gnutls
8d356e2
439b45e
* Thu Apr 24 2008 Steve Grubb <sgrubb@redhat.com> 0.9.12.2-1
439b45e
- new upstream release
439b45e
280359d
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.11-2
280359d
- Autorebuild for GCC 4.3
280359d
4f9567d
* Mon Jan 14 2008 Steve Grubb <sgrubb@redhat.com> 0.9.11-1
4f9567d
- new upstream version 0.9.11
4f9567d
233b8fe
* Thu Jan 09 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-5
233b8fe
- changed init-script description 
233b8fe
ba985b1
* Mon Jan 08 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-4
ba985b1
- added new /var/lib directory 
ba985b1
f4bf760
* Fri Jan 05 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-3
f4bf760
- added init-script
f4bf760
- changed some macros in %%files
f4bf760
c5767ff
* Tue Jan 02 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-2
c5767ff
- fixed debug problems
c5767ff
- fixed encoding problems
c5767ff
c5767ff
* Fri Dec 29 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-1
c5767ff
- moved to new upstream version 0.9.8.1
c5767ff
- changed dirowner of /etc/prelude-lml
c5767ff
c5767ff
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7-2
c5767ff
- Some minor fixes in requirements
c5767ff
c5767ff
* Tue Oct 23 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7-1
c5767ff
- New Fedora build based on release 0.9.7