SPECS: ossim-agent.spec (NEW) - init

wolvverine wolvverine at pld-linux.org
Sat Mar 1 02:13:13 CET 2008


Author: wolvverine                   Date: Sat Mar  1 01:13:13 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init

---- Files affected:
SPECS:
   ossim-agent.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ossim-agent.spec
diff -u /dev/null SPECS/ossim-agent.spec:1.1
--- /dev/null	Sat Mar  1 02:13:13 2008
+++ SPECS/ossim-agent.spec	Sat Mar  1 02:13:08 2008
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+# TODO: rc.init,R
+
+Summary:	OSSIM Agent
+Summary(pl.UTF-8):	OSSIM Agent
+Name:		ossim-agent
+Version:	0.9.9
+Release:	0.1
+License:	BSD
+Group:		Applications
+Source0:	http://dl.sourceforge.net/os-sim/%{name}-%{version}.tar.gz
+# Source0-md5:	711b2dec7bade734417bbdee4ac9ae2a
+URL:		http://www.ossim.net/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.228
+Requires(post,preun):	/sbin/chkconfig
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OSSIM Agent - An agent in OSSIM is set of python script that gathers
+and sends the output of the different plugin or tool to the
+correlation engine for further process.
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{ossim/agent,sysconfig,init.d,logrotate.d}
+python setup.py install --root=$RPM_BUILD_ROOT
+
+install contrib/fedora/init.d/ossim-agent $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
+install etc/logrotate.d/ossim-agent $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
+install contrib/fedora/sysconfig/ossim-agent $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q %{name} stop
+	/sbin/chkconfig --del %{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc  %{_docdir}/%{name}
+# common OSSIM dir
+%dir %{_sysconfdir}/ossim/agent
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ossim/agent/*.cfg
+%dir %{_sysconfdir}/ossim/agent/plugins
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ossim/agent/plugins/*.cfg
+%{_datadir}/%{name}/
+%{_mandir}/man8/%{name}.*
+%attr(755,root,root) %{_bindir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%{py_sitescriptdir}/*.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-03-01 01:13:08  wolvverine
+- init
+
+
================================================================


More information about the pld-cvs-commit mailing list