packages: cacti-plugin-superlinks/cacti-plugin-superlinks.spec - up to 1.3, ...

glen glen at pld-linux.org
Thu Oct 27 22:48:38 CEST 2011


Author: glen                         Date: Thu Oct 27 20:48:38 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.3, update deps, enhance desc

---- Files affected:
packages/cacti-plugin-superlinks:
   cacti-plugin-superlinks.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/cacti-plugin-superlinks/cacti-plugin-superlinks.spec
diff -u packages/cacti-plugin-superlinks/cacti-plugin-superlinks.spec:1.7 packages/cacti-plugin-superlinks/cacti-plugin-superlinks.spec:1.8
--- packages/cacti-plugin-superlinks/cacti-plugin-superlinks.spec:1.7	Sun May 16 16:13:39 2010
+++ packages/cacti-plugin-superlinks/cacti-plugin-superlinks.spec	Thu Oct 27 22:48:33 2011
@@ -1,19 +1,30 @@
 # $Revision$, $Date$
+# TODO
+# - use system fonts package for dejavu fonts
+# - use system jquery package
 %define		plugin	superlinks
-%include	/usr/lib/rpm/macros.perl
+%define		php_min_version 5.1.1
+%include	/usr/lib/rpm/macros.php
 Summary:	Plugin for Cacti - SuperLinks
 Summary(pl.UTF-8):	Wtyczka do Cacti - SuperLinks (dodatkowe odnośniki)
-Name:		cacti-plugin-superlinks
-Version:	0.72
+Name:		cacti-plugin-%{plugin}
+Version:	1.3
 Release:	1
 License:	GPL v2
 Group:		Applications/WWW
-Source0:	http://wotsit.thingy.com/haj/cacti/%{plugin}-%{version}.zip
-# Source0-md5:	02fb63902642b496d68824358fabeced
-URL:		http://wotsit.thingy.com/haj/cacti/superlinks-plugin.html
-BuildRequires:	rpm-perlprov
-BuildRequires:	unzip
+Source0:	http://docs.cacti.net/_media/plugin:superlinks-v%{version}-1.tgz
+# Source0-md5:	bed336cf2271d0e1159220e8e9624aa2
+URL:		http://docs.cacti.net/plugin:superlinks
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	rpmbuild(macros) >= 1.553
 Requires:	cacti
+Requires:	cacti(pia) >= 2.9
+Requires:	php-common >= 4:%{php_min_version}
+Requires:	php-date
+Requires:	php-gd
+Requires:	php-mysql
+Requires:	php-pcre
+Requires:	php-session
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -21,34 +32,29 @@
 %define		plugindir		%{cactidir}/plugins/%{plugin}
 
 %description
-This is a plugin for the Cacti Plugin Architecture created by Jimmy
-Conner for Cacti 0.8.x (0.9.0 is slated to have a new plugin system
-from the start). It it lets you have any number of pages of arbitrary
-HTML content behind tabs at the top of the page or extra entries on
-the Console menu. You could use this to integrate other tools into
-Cacti - say you want to have links to Smokeping, or Request Tracker,
-or Nagios...
-
-It is intended as a replacement for the Links plugin that I wrote some
-time ago, but with the following key improvements:
-
-- Any number of tabs/menu items
-- For tabs, a Cacti-style tab image is generated, so your additional
-  pages are integrated into Cacti better
-- It uses Weathermap's access-control code, so you can make tabs that
-  are only visible to certain users
-- In addition to tabs, there is the option to make Console Menu items,
-  and 'Welcome Page' items.
-- You can embed an external webpage directly, without writing any
-  HTML, if that's all you need.
+Cacti plugin that allows the Cacti UI to be extended in ways that make
+it easy for non plugin developers to use.
+
+Features:
+- It supports ANY number of extra tabs
+- It will dynamically create the Tab graphics as pages are created
+- It has the same user-based access-control as Weathermap
+- It allows you to add new links to the Console menu as well as tabs
+  and also blocks of content to the 'Welcome' front page.
+- Allows you to directly embed another website/application without
+  writing any HTML
+- Allows you to modify the look of the login screen, to add your
+  company's branding.
+- It's also handy if you are a plugin developer, and need some tab
+  graphics!
 
 %description -l pl.UTF-8
 To jest bardzo prosta wtyczka dla architektury wtyczek Cacti
 stworzonej przez Jimmy'ego Smitha dla Cacti 0.8.x (0.9.0 ma mieć nowy
 system wtyczek). Pozwala podpiąć dowolną liczbę stron HTML dowolnej
-treści pod zakładki na górnej części strony lub jako dodatkowe wpisy
-w menu Console. Wtyczki tej można używać do integracji innych narzędzi
-w Cacti - w ten sposób można mieć w Cacti odnośniki do Smokepinga,
+treści pod zakładki na górnej części strony lub jako dodatkowe wpisy w
+menu Console. Wtyczki tej można używać do integracji innych narzędzi w
+Cacti - w ten sposób można mieć w Cacti odnośniki do Smokepinga,
 Request Trackera czy Nagiosa.
 
 Wtyczka ma zastąpić wtyczkę Links tego samego autora, napisaną
@@ -64,14 +70,15 @@
   jakiegokolwiek HTML-a.
 
 %prep
-%setup -q -n %{plugin}
-# undos the source
-find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+%setup -qc
+%undos -f php,inc
+
+mv %{plugin}/{README,COPYING} .
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
-cp -a . $RPM_BUILD_ROOT%{plugindir}
+cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -87,6 +94,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2011/10/27 20:48:33  glen
+- up to 1.3, update deps, enhance desc
+
 Revision 1.7  2010/05/16 14:13:39  sparky
 - BR: unzip
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cacti-plugin-superlinks/cacti-plugin-superlinks.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list