File cacti-plugin-syslog.spec of Package cacti-plugin-syslog

# spec file for package cacti-plugin-syslog
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           cacti-plugin-syslog
Version:        3.1+git9.gc400615
Release:        0.0
License:        GPL-2.0
Summary:        Syslog plugin for Cactig
Group:          Development/Tools/Other
Source0:        %{realname}-v%{version}.zip
Requires:       cacti
Requires:       php5-pear-log
BuildRequires:	unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%define realname   syslog
%if 0%{?suse_version} <= 1210
%define prefix %{_datadir}/cacti
%define prefix /srv/www/cacti
Obsoletes:      cacti-PA-syslog
Provides:       cacti-PA-syslog

Provides a simple Syslog event search an Alert generation and notification interface that can generate both HTML and SMS messages for operations personnel who wish to receive notifications inside of a data or network operations center.


%setup -q  -n %{realname}


mkdir -p %{buildroot}%{prefix}/plugins/%{realname}
cp -r * %{buildroot}%{prefix}/plugins/%{realname}/.
mkdir -p %{buildroot}%{_docdir}/cacti/plugins/%{realname}
mv %{buildroot}%{prefix}/plugins/%{realname}/LICENSE %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
mv %{buildroot}%{prefix}/plugins/%{realname}/ %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.

%dir %{_docdir}/cacti
%dir %{_docdir}/cacti/plugins
%config (noreplace) %{prefix}/plugins/%{realname}/config.php

openSUSE Build Service is sponsored by