Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
Snorby
> Snorby.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File Snorby.spec of Package Snorby
%if 0%{?suse_version} %define docroot /srv/www %else %define docroot /var/www %endif Name: Snorby Version: 1.1.3 Release: 1 License: GPL Url: http://www.snorby.org Summary: Snort IDS webfrontend Group: System/Security Source0: %{name}-%{version}.tar.bz2 Source1: snorby.init Source2: snorby.sysconfig Patch0: %{name}-rails-version.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch %if 0%{?suse_version} PreReq: %fillup_prereq %endif %if 0%{?suse_version} > 1020 BuildRequires: fdupes %endif BuildRequires: rubygem-mysql rubygem-prawn ruby rubygem-rake rubygem-rails Requires: rubygem-mysql rubygem-prawn ruby rubygem-rake rubygem-rails %description Snorby is a new and modern Snort IDS front-end. The basic fundamental concepts behind snorby are simplicity and power. The project goal is to create a free, open source and highly competitive application for network monitoring for both private and enterprise use. %prep %setup -n %{name} %patch0 %build %install %__install -d %{buildroot}%{docroot}/Snorby cp -R * %{buildroot}%{docroot}/Snorby/ %if 0%{?suse_version} > 1020 %fdupes %{buildroot}%{docroot}/Snorby %endif %__install -d %{buildroot}%{_sysconfdir}/init.d %if 0%{?suse_version} %__install -d %{buildroot}/var/adm/fillup-templates %__install -m0644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.snorby %else %__install -d %{buildroot}%{_sysconfdir}/sysconfig %__install -m0644 %{S:2} %{buildroot}%{_sysconfdir}/sysconfig/snorby %endif %__install -d %{buildroot}%{_sbindir} %__install -m0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/snorby cd %{buildroot}%{_sbindir} ln -s ../../%{_sysconfdir}/init.d/snorby rcsnorby %clean rm -rf %{buildroot} %post %if 0%{?suse_version} %fillup_only -n snorby %endif %postun %if 0%{?suse_version} %insserv_cleanup %endif %files %defattr(-,root,root) %doc README.rdoc %{docroot}/%{name} %{_sysconfdir}/init.d/snorby %{_sbindir}/rcsnorby %if 0%{?suse_version} /var/adm/fillup-templates/sysconfig.snorby %else %{_sysconfdir}/sysconfig/snorby %endif %changelog * Sat Nov 06 2010 Carsten Schoene <cs@linux-administrator.com> - 1.1.3-1 - initial package