]> git.pld-linux.org Git - packages/dokuwiki-plugin-snmplive.git/blob - dokuwiki-plugin-snmplive.spec
- refresh dw cache on install
[packages/dokuwiki-plugin-snmplive.git] / dokuwiki-plugin-snmplive.spec
1 %define         plugin          snmplive
2 Summary:        DokuWiki SNMPlive Plugin
3 Summary(pl.UTF-8):      Wtyczka SNMPlive dla DokuWiki
4 Name:           dokuwiki-plugin-%{plugin}
5 Version:        0.1
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://glen.alkohol.ee/pld/%{plugin}.tar.gz
10 # Source0-md5:  8fb23b7858d2cba87021e5a56e39297f
11 URL:            http://wiki.splitbrain.org/plugin:snmplive
12 Requires:       dokuwiki
13 Requires:       php(pcre)
14 Requires:       php(snmp)
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         dokuconf        /etc/webapps/dokuwiki
19 %define         dokudir         /usr/share/dokuwiki
20 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
21
22 %description
23 It gets the actual SNMP values out of any by the server reachable
24 device (e.g. servers, printers, temp. sensors).
25
26 %description -l pl.UTF-8
27 Ta wtyczka pobiera odpowiednie wartości SNMP z dowolnych urządzeń
28 osiągalnych z serwera (np. serwerów, drukarek, czujników temperatury).
29
30 %prep
31 %setup -q -n %{plugin}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 %{__make} install \
36         DESTDIR=$RPM_BUILD_ROOT
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %post
42 # force css cache refresh
43 if [ -f %{dokuconf}/local.php ]; then
44         touch %{dokuconf}/local.php
45 fi
46
47 %files
48 %defattr(644,root,root,755)
49 %{plugindir}
This page took 0.159368 seconds and 3 git commands to generate.