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

Group:		System Environment/Libraries
License:	GPL
Patch0:		%{name}-initd.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
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 750 %{_builddir}/%{name}-%{version}/%{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 %attr(0644,root,root) %{_defaultdocdir}/%{name}-%{version}/*

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

* 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