SPECS: prelude-lml.spec - up to 0.9.8.1 by Tomasz Rutkowski

arekm arekm at pld-linux.org
Fri Jan 5 18:58:59 CET 2007


Author: arekm                        Date: Fri Jan  5 17:58:59 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 0.9.8.1 by Tomasz Rutkowski

---- Files affected:
SPECS:
   prelude-lml.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/prelude-lml.spec
diff -u SPECS/prelude-lml.spec:1.10 SPECS/prelude-lml.spec:1.11
--- SPECS/prelude-lml.spec:1.10	Thu Apr 20 19:23:57 2006
+++ SPECS/prelude-lml.spec	Fri Jan  5 18:58:54 2007
@@ -1,22 +1,26 @@
 # $Revision$, $Date$
+%bcond_without	fam
+%bcond_without	unsupported_rulesets
+
 Summary:	A network intrusion detection system
 Summary(pl):	System wykrywania intruzów w sieci
 Name:		prelude-lml
-Version:	0.9.4
-Release:	0.3
+Version:	0.9.8.1
+Release:	1
 License:	GPL
 Group:		Applications
 Source0:	http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz
-# Source0-md5:	33ed8f9428df64778041e4d8fe41c479
+# Source0-md5:	9304593d58d2aa1268760c93150ab8db
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 URL:		http://www.prelude-ids.org/
-BuildRequires:	fam-devel
+%{?with_fam:BuildRequires:	fam-devel}
 BuildRequires:	libprelude-devel >= 0.9.0
 BuildRequires:	pcre-devel
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts
+Requires:	%{name}-libs = %{version} 
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,6 +33,29 @@
 Prelude. Prelude LML może także używać sysloga, aby nasłuchiwał danych
 od innych aplikacji, takich jak NTSyslog.
 
+%package libs
+Summary:	Prelude-lml shared libraries
+Summary(pl):	Biblioteki dzielone prelude-lml
+Group:		Libraries
+
+%description libs
+Prelude-lml shared libraries.
+
+%description libs -l pl
+Biblioteki dzielone prelude-lml.
+
+%package static
+Summary:	Static prelude-lml library
+Summary(pl):	Statyczna biblioteka prelude-lml
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static prelude-lml library.
+
+%description static -l pl
+Statyczna biblioteka prelude-lml.
+
 %package devel
 Summary:	Header files for prelude-lml
 Summary(pl):	Pliki nagłówkowe dla prelude-lml
@@ -45,7 +72,11 @@
 %setup -q
 
 %build
-%configure
+%configure \
+	--enable-shared \
+	--enable-static \
+	--with%{!?with_fam:out}-fam \
+	--%{!?with_unsupported_rulesets:dis}%{?with_unsupported_rulesets:en}able-unsupported_rulesets
 %{__make}
 
 %install
@@ -65,25 +96,14 @@
 
 %post
 /sbin/chkconfig --add prelude-lml
-%service prelude-lml restart
-if [ "$1" = 1 ]; then
-	echo "Remember to register with prelude-manager before first launch:"
-	echo "prelude-adduser register prelude-lml \"idmef:w\" <manager address> --uid 0 --gid 0"
-	echo ""
-	echo "Run \"/sbin/service prelude-lml start\" to start Prelude LML."
-fi
+if [ "$1" = "1" ]; then
+%banner -e %{name} <<EOF
+Remember to register with prelude-manager before first launch:
+prelude-adduser register prelude-lml "idmef:w admin:r" <manager address> --uid 0 --gid 0
 
-#
-# TODO:
-#
-# register with prelude-manager:
-#
-# on one console:
-# prelude-adduser registration-server prelude-manager
-# 	(remember one shot password)
-# on the second one:
-# prelude-adduser register prelude-lml "idmef:w" <manager address> --uid 0 --gid 0
-#	(enter the password)
+EOF
+fi
+%service prelude-lml restart
 
 %preun
 if [ "$1" = "0" ]; then
@@ -95,9 +115,6 @@
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
 %attr(755,root,root) %{_bindir}/%{name}
-%dir %{_libdir}/%{name}
-%attr(755,root,root) %{_libdir}/%{name}/*.so
-%{_libdir}/%{name}/*.la
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %dir %{_sysconfdir}/%{name}
@@ -105,6 +122,16 @@
 %{_sysconfdir}/%{name}/ruleset
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
 
+%files libs
+%defattr(644,root,root,755)
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/*.so
+%{_libdir}/%{name}/*.la
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/%{name}/*.a
+
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/%{name}
@@ -115,6 +142,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2007/01/05 17:58:54  arekm
+- up to 0.9.8.1 by Tomasz Rutkowski
+
 Revision 1.10  2006/04/20 17:23:57  glen
 - fix %service usage, fix chkconfig deps
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/prelude-lml.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list