Blob Blame History Raw
Name:		prelude-lml           
Version:	0.9.13
Release:	1%{?dist}
Summary:	The prelude log analyzer

Group:		System Environment/Libraries
License:	GPLv2+
Patch0:		%{name}-initd.patch
Patch1:		prelude-lml-0.9.12-pie.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	gamin-devel, libprelude-devel, pcre-devel  
Requires(post):	/sbin/chkconfig
Requires(preun):	/sbin/chkconfig
Requires(preun):	/sbin/service
Requires(postun):	/sbin/service

Prelude-LML’s primary function is log analysis. Logs on a local system or
logs monitored over the network (if configured to accept syslog messages
from other hosts) can be processed and analyzed in order to discover
security anomalies.

%package devel
Summary: Header files and libraries for libprelude development
Group: Development/Libraries
Requires: libprelude-devel, prelude-lml = %{version}-%{release}

%description devel
Libraries, include files, etc you can use to develop Prelude IDS
sensors using the Prelude Library. The Prelude Library is a
collection of generic functions providing communication between
the Prelude Hybrid IDS suite componentst It provides a convenient
interface for sending alerts to Prelude Manager with transparent
SSL, failover and replication support, asynchronous events and
timer interfaces, an abstracted configuration API (hooking at the
commandline, the configuration line, or wide configuration,
available from the Manager), and a generic plugin API. It allows
you to easily turn your favorite security program into a Prelude

%setup -q
%patch -p0
%patch1 -p1
sed -i.debug -e '/nlist/s|\$rm|: $rm|'

make %{?_smp_mflags} 
iconv -f ISO8859-15 -t UTF-8 NEWS > NEWS.utf8 && \
%{__mv} NEWS.utf8 NEWS
iconv -f ISO8859-15 -t UTF-8 ChangeLog > ChangeLog.utf8 && \
%{__mv} ChangeLog.utf8 ChangeLog

rm -rf %{buildroot}
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
mkdir -p %{buildroot}/%{_initrddir}/
mkdir -p %{buildroot}/var/lib/%{name}/
make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
cp -p  AUTHORS README ChangeLog NEWS COPYING HACKING.README %{buildroot}%{_defaultdocdir}/%{name}-%{version}  
install -m 755 %{name}-initd %{buildroot}/%{_initrddir}/%{name}
rm -f %{buildroot}/%{_libdir}/%{name}/
rm -f %{buildroot}/%{_libdir}/%{name}/

rm -rf %{buildroot}

/sbin/chkconfig --add %{name}

if [ $1 = 0 ]; then
        /sbin/service %{name} stop > /dev/null 2>&1 || :
        /sbin/chkconfig --del %{name}

if [ "$1" -ge "1" ]; then
        /sbin/service %{name} condrestart >/dev/null 2>&1 || :

%config %dir %{_sysconfdir}/%{name}/
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/*.conf
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/*.rules
%config %dir %{_sysconfdir}/%{name}/ruleset/
%config(noreplace) %attr(0644,root,root)%{_sysconfdir}/%{name}/ruleset/*
%dir %{_libdir}/%{name}/
%dir /var/lib/%{name}/
%dir %{_defaultdocdir}/%{name}-%{version}/
%doc %{_defaultdocdir}/%{name}-%{version}/*

%files devel
%dir %{_includedir}/%{name}/

* Wed Aug 27 2008 Steve Grubb <> 0.9.13-1
- new upstream release

* Wed Jun 25 2008 Tomas Mraz <> -
- rebuild with new gnutls

* Thu Apr 24 2008 Steve Grubb <>
- new upstream release

* Wed Feb 20 2008 Fedora Release Engineering <> - 0.9.11-2
- Autorebuild for GCC 4.3

* Mon Jan 14 2008 Steve Grubb <> 0.9.11-1
- new upstream version 0.9.11

* Thu Jan 09 2007 Thorsten Scherf <>
- changed init-script description 

* Mon Jan 08 2007 Thorsten Scherf <>
- added new /var/lib directory 

* Fri Jan 05 2007 Thorsten Scherf <>
- added init-script
- changed some macros in %%files

* Tue Jan 02 2007 Thorsten Scherf <>
- fixed debug problems
- fixed encoding problems

* Fri Dec 29 2006 Thorsten Scherf <>
- moved to new upstream version
- changed dirowner of /etc/prelude-lml

* Mon Nov 20 2006 Thorsten Scherf <> 0.9.7-2
- Some minor fixes in requirements

* Tue Oct 23 2006 Thorsten Scherf <> 0.9.7-1
- New Fedora build based on release 0.9.7