SPECS: samhain.spec - version up to 2.2.6, prelude support, build ...

alucard alucard at pld-linux.org
Mon Jan 8 18:12:47 CET 2007


Author: alucard                      Date: Mon Jan  8 17:12:46 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- version up to 2.2.6, prelude support, build fixes

---- Files affected:
SPECS:
   samhain.spec (1.45 -> 1.46) 

---- Diffs:

================================================================
Index: SPECS/samhain.spec
diff -u SPECS/samhain.spec:1.45 SPECS/samhain.spec:1.46
--- SPECS/samhain.spec:1.45	Fri Sep 23 09:17:05 2005
+++ SPECS/samhain.spec	Mon Jan  8 18:12:41 2007
@@ -1,20 +1,22 @@
 # $Revision$, $Date$
+%bcond_with	prelude		# enables samhain working as a prelude sensor
+
 Summary:	Samhain data integrity / intrusion detection system
 Summary(pl):	System kontroli integralności danych i wykrywania intruzów Samhain
 Name:		samhain
-Version:	2.0.10
+Version:	2.2.6
 Release:	1
 License:	GPL
 Group:		Applications/System
-Source0:	http://la-samhna.de/samhain/%{name}_signed-%{version}.tar.gz
-# Source0-md5:	30fa821fdeb674b57aa7db0b66ed3af2
+Source0:	http://www.la-samhna.de/archive/%{name}_signed-%{version}.tar.gz
+# Source0-md5:	454aec59fce0a913f58b7ab2e2371280
 Source1:	%{name}.init
 Source2:	%{name}rc
-#Patch0:		%{name}-DESTDIR.patch
 Patch0:		%{name}-configure.patch
 URL:		http://www.la-samhna.de/samhain/
 Requires(post,preun):	/sbin/chkconfig
 BuildRequires:	automake
+%{!?with_prelude:BuildRequires:	libprelude-devel >= 0.9.6}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,11 +40,10 @@
 	--enable-login-watch \
 	--enable-mounts-check \
 	--enable-ptrace \
-	--enable-suidcheck
+	--enable-suidcheck \
+	--with%{!?with_prelude:out}-prelude \
 
-%{__make} \
-	CC="%{__cc}" \
-	LIBS_TRY="-lresolv"
+%{__make}
 
 # sstrip breaks ELFs
 echo ':' > sstrip
@@ -71,9 +72,19 @@
 if [ -f /var/lock/subsys/%{name} ]; then
 	/etc/rc.d/init.d/%{name} restart 1>&2
 else
-	echo "Run \"%{_sbindir}/samhain -t init\" to initialize database if not initialized."
-	echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
+%banner -e %{name} <<EOF
+%if %{with samhain}
+Register samhain sensor before first run:
+prelude-adduser register <profile> "imdef:w" <manager host> --uid 0 --gid 0
+and then
+%endif
+Run %{_sbindir}/samhain -t init\ to initialize database 
+%if %{without samhain}
+if not initialized.
+%endif
+EOF
 fi
+%service samhain restart "Samhain"
 
 %preun
 if [ "$1" = "0" ]; then
@@ -99,6 +110,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.46  2007/01/08 17:12:41  alucard
+- version up to 2.2.6, prelude support, build fixes
+
 Revision 1.45  2005/09/23 07:17:05  paszczus
 - updated to 2.0.10 ; STBR
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/samhain.spec?r1=1.45&r2=1.46&f=u



More information about the pld-cvs-commit mailing list