]> git.pld-linux.org Git - packages/cacti-plugin-links.git/blob - cacti-plugin-links.spec
0a484cab31bcf981844a6c402104adc9fc79e723
[packages/cacti-plugin-links.git] / cacti-plugin-links.spec
1 %define         plugin 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/%{plugin}-%{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         cactidir                /usr/share/cacti
21 %define         plugindir               %{cactidir}/plugins/%{plugin}
22 %define         _sysconfdir             /etc/cacti
23
24 %description
25 This is a very simple plugin for the Cacti Plugin Architecture created
26 by Jimmy Smith for Cacti 0.8.x (0.9.0 is slated to have a new plugin
27 system from the start). It's just about the smallest plugin you can
28 have - it lets you have a page of arbitrary HTML content behind one of
29 the tabs at the top of the page. You could use this to integrate other
30 tools into Cacti - say you want to have links to Smokeping, or Request
31 Tracker, or Nagios...
32
33 %description -l pl.UTF-8
34 To jest bardzo prosta wtyczka dla architektury wtyczek Cacti
35 stworzonej przez Jimmy'ego Smitha dla Cacti 0.8.x (0.9.0 ma mieć nowy
36 system wtyczek). Jest to zapewne najmniejsza wtyczka jaką można mieć -
37 pozwala umieścić dowolną treść HTML pod jedną z zakładek na górnej
38 stronie. Można użyć jej do zintegrowania innych narzędzi z Cacti - np.
39 odnośników do Smokepinga, Request Trackera lub Nagiosa...
40
41 %prep
42 %setup -q -n %{plugin}
43 %patch0 -p1
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{plugindir},%{_sysconfdir}}
48 cp -a editme.php $RPM_BUILD_ROOT%{_sysconfdir}/plugin-links.php
49 cp -a . $RPM_BUILD_ROOT%{plugindir}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugin-links.php
57 %{plugindir}
This page took 0.028988 seconds and 3 git commands to generate.