]> git.pld-linux.org Git - packages/cacti-plugin-links.git/blob - cacti-plugin-links.spec
- cleanups
[packages/cacti-plugin-links.git] / cacti-plugin-links.spec
1 %define         namesrc links
2 %include        /usr/lib/rpm/macros.perl
3 Summary:        Plugin for Cacti - Links
4 Summary(pl.UTF-8):      Wtyczka do Cacti - Links
5 Name:           cacti-plugin-links
6 Version:        0.3
7 Release:        1
8 License:        GPL v2
9 Group:          Applications/WWW
10 #!!!!problem with version
11 Source0:        http://wotsit.thingy.com/haj/cacti/%{namesrc}-%{version}.zip
12 # Source0-md5:  cf90133193311a3e3d63d11d3528e7ba
13 Patch0:         %{name}-config.patch
14 URL:            http://wotsit.thingy.com/haj/cacti/links-plugin.html
15 BuildRequires:  rpm-perlprov
16 Requires:       cacti
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
21 %define         webcactipluginconf %{_sysconfdir}/cacti
22
23 %description
24 This is a very simple plugin for the Cacti Plugin Architecture created
25 by Jimmy Smith for Cacti 0.8.x (0.9.0 is slated to have a new plugin
26 system from the start). It's just about the smallest plugin you can
27 have - it lets you have a page of arbitrary HTML content behind one of
28 the tabs at the top of the page. You could use this to integrate other
29 tools into Cacti - say you want to have links to Smokeping, or Request
30 Tracker, or Nagios...
31
32 %description -l pl.UTF-8
33 To jest bardzo prosta wtyczka dla architektury wtyczek Cacti
34 stworzonej przez Jimmy'ego Smitha dla Cacti 0.8.x (0.9.0 ma mieć nowy
35 system wtyczek). Jest to zapewne najmniejsza wtyczka jaką można mieć -
36 pozwala umieścić dowolną treść HTML pod jedną z zakładek na górnej
37 stronie. Można użyć jej do zintegrowania innych narzędzi z Cacti - np.
38 odnośników do Smokepinga, Request Trackera lub Nagiosa...
39
40 %prep
41 %setup -q -n %{namesrc}
42 %patch0 -p1
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{webcactipluginroot},%{webcactipluginconf}}
47 install editme.php $RPM_BUILD_ROOT%{webcactipluginconf}/plugin-links.php
48 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{webcactipluginconf}/plugin-links.php
56 %{webcactipluginroot}
This page took 0.646128 seconds and 3 git commands to generate.