From 3d00290626284d04f3de9fd712541679f03b2c8a Mon Sep 17 00:00:00 2001 From: Thorsten Scherf Date: Jan 15 2007 19:12:04 +0000 Subject: auto-import prewikka-0.9.8-1 on branch devel from prewikka-0.9.8-1.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..09a4927 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +prewikka-0.9.8.tar.gz diff --git a/README.fedora b/README.fedora new file mode 100644 index 0000000..4e3c175 --- /dev/null +++ b/README.fedora @@ -0,0 +1,27 @@ +$id$ + +Before installing prewikka, make sure the Prelude Framework +(libprelude + libpreludedb with python bindings) is installed. + +Prewikka receives its input from a database which has to be +created in advance. For a MySQL-Database this could be done like +this: + +* mysql> CREATE database prewikka; +* mysql> GRANT ALL PRIVILEGES ON prewikka.* TO prewikka@'localhost' \ + IDENTIFIED BY 'password'; +* $ mysql -u prewikka prewikka -p < /usr/share/prewikka/database/mysql.sql + +PostgreSQL and SQLite3 setup works similar. Afterwards, put all the relevant +information into the prewikka.conf file and install the corresponding +libpreludedb-mysql/pgsql/sqlite package from the yum repository. + +Please also note, that you have to customize your webserver setup before +you could use prewikka. + +For deatiled setup instructions, please read: +https://trac.prelude-ids.org/wiki/InstallingPrewikka + +For further Questions, regarding the Fedora Setup, mail to: +Thorsten Scherf + diff --git a/prewikka.spec b/prewikka.spec new file mode 100644 index 0000000..c357ef4 --- /dev/null +++ b/prewikka.spec @@ -0,0 +1,79 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: prewikka +Version: 0.9.8 +Release: 1%{?dist} +Summary: Graphical front-end analysis console for the Prelude Hybrid IDS Framework +Group: Applications/Internet +License: GPL +URL: http://www.prelude-ids.org +Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz +Source1: README.fedora +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: python-devel python-cheetah +Requires: python-cheetah, libprelude-python, libpreludedb-python +BuildArch: noarch + + +%description +Prewikka is a graphical front-end analysis console for the Prelude +Hybrid IDS Framework. Providing numerous features, Prewikka facilitates +the work of users and analysts. It provides alert aggregation and sensor +and hearbeat views, and has user management and configurable filters. It +has access to external tools such as whois and traceroute. + +Please read README.fedora for installation instructions. + +%prep +%setup -q +cp -p %{SOURCE1} . + +%build + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --root=%{buildroot} +mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version} +mkdir -p %{buildroot}%{_sbindir}/ +chmod 0644 %{buildroot}/%{_datadir}/%{name}/htdocs/css/style.css +mv %{buildroot}/%{_bindir}/%{name}-httpd %{buildroot}/%{_sbindir}/%{name}-httpd +sed -i -e '/^#!\/usr\/bin\/env python$/d' %{buildroot}/%{python_sitearch}/%{name}/templates/* + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%dir %{_sysconfdir}/%{name}/ +%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf +%dir %{_datadir}/%{name}/ +%{_datadir}/%{name}/* +%{_sbindir}/%{name}-httpd +%{python_sitelib}/%{name}/ +%doc AUTHORS README NEWS HACKING.README README.fedora doc/apache.conf + +%changelog +* Sun Jan 12 2007 Thorsten Scherf 0.9.8-1 +- moved to upstream version 0.9.8 + +* Sat Jan 11 2007 Thorsten Scherf 0.9.7.1-5 +- changed docs handling +- fixed python settings + +* Mon Jan 01 2007 Thorsten Scherf 0.9.7.1-4 +- corrected perms on python files +- moved prewikka-httpd to /sbin +- added README.fedora + +* Mon Nov 20 2006 Thorsten Scherf 0.9.7.1-3 +- disabled dependency-generator + +* Mon Nov 20 2006 Thorsten Scherf 0.9.7.1-2 +- Some minor fixes in requirements + +* Mon Nov 06 2004 Thorsten Scherf 0.9.7.1-1 +- test build for fc6 + + + diff --git a/sources b/sources index e69de29..9ff5e64 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bc269aeb9c3570b76b668f0242daef76 prewikka-0.9.8.tar.gz