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

# spec file for package cacti-plugin-hostinfo
# 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-hostinfo
Version:        0.2
Release:        0.0
Summary:        This plugin will give you version information about your Cacti server
License:        GPL-2.0
Group:          Development/Tools/Other
Source0:        %{realname}-%{version}.tar.gz
Requires:       cacti
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%define realname   hostinfo
%if 0%{?suse_version} <= 1210
%define prefix %{_datadir}/cacti
%define prefix /srv/www/cacti
Obsoletes:      cacti-PA-hostinfo
Provides:       cacti-PA-hostinfo

This plugin will give you version information about your Cacti server. It outputs everything from Web server information, to php, mysql, rrdtool, and snmp versions. It will also give you the information in BBCode format to easily allow you to post it to a forum


%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}/.

%dir %{_docdir}/cacti
%dir %{_docdir}/cacti/plugins

openSUSE Build Service is sponsored by