/[cacti08-addons]/cacti08-addons.spec
ViewVC logotype

Contents of /cacti08-addons.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13 - (show annotations) (download)
Fri Feb 20 09:53:24 2009 UTC (9 years, 3 months ago) by racvision
File size: 3467 byte(s)
many fixes, update to last query_wl_server.pl and remove obsoletes scripts
1 # release number:
2 %define rel %(date '+%Y%m%d%H%M')
3
4 Summary: Addons scripts and templates for Cacti08
5 Name: cacti08-addons
6 Version: 0.8.7b
7 Release: %{rel}
8 Source0: %{name}-caen.tar.bz2
9 Source1: %{name}-nancy.tar.bz2
10 License: GPL
11 Group: Applications/System
12 Url: http://www.cacti.net/
13 Requires: expect, httpd, php, php-mysql, rrdtool, mysql-server, mysql-config, net-snmp-utils
14 Requires: cacti08 >= %{version}
15 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
16 Obsoletes: cacti08-scripts-ncy
17
18 # install path
19 %define instaldir %{_localstatedir}/www/html/cacti08
20 %define def_apache_conf_dir %{_sysconfdir}/httpd/conf.d
21 %define def_apache_user apache
22
23 # log files :
24 %define logdir %{_localstatedir}/log/cacti08
25
26 # data files (rrdtool):
27 %define rradir %{_localstatedir}/lib/cacti08
28
29 # config path:
30 %define confdir %{_sysconfdir}/racvision/cacti08
31
32 # mysql password path :
33 %define mysql_passwd_path %{_sysconfdir}/racvision/mysql/passwords
34
35 # locale path:
36 %define locale_path /usr/share/locale
37
38
39
40 %description
41 Addons scripts and templates for Cacti08. Add support for Weblogic and Foundry.
42
43
44 %description -l fr
45 Scripts et modèles additionnels pour Cacti08. Inclu un support pour Weblogic et Foundry.
46
47
48 %prep
49 #%setup
50 %{__tar} -xjf %{SOURCE0}
51 %{__tar} -xjf %{SOURCE1}
52
53 %build
54
55
56 %install
57 %{__rm} -rf $RPM_BUILD_ROOT
58
59
60 %{__install} -d $RPM_BUILD_ROOT/%{instaldir}/scripts/
61 %{__install} -d $RPM_BUILD_ROOT/%{instaldir}/resource/script_queries/
62 %{__install} -d $RPM_BUILD_ROOT/%{instaldir}/templates/
63
64 # Add our own plugins :
65 %{__install} -p -m0755 nancy/scripts/* $RPM_BUILD_ROOT/%{instaldir}/scripts/
66 %{__install} -p -m0644 nancy/resource/*.xml $RPM_BUILD_ROOT/%{instaldir}/resource/script_queries/
67
68 %{__install} -p -m0755 caen/scripts/* $RPM_BUILD_ROOT/%{instaldir}/scripts/
69 %{__install} -p -m0644 caen/resource/*.xml $RPM_BUILD_ROOT/%{instaldir}/resource/script_queries/
70
71 %{__install} -p -m0644 nancy/templates/cacti_data_query_racvision_bea_weblogic_monitoring.xml $RPM_BUILD_ROOT/%{instaldir}/templates/
72 %{__install} -p -m0644 caen/templates/cacti_host_template_otp_instance.xml $RPM_BUILD_ROOT/%{instaldir}/templates/
73 %{__install} -p -m0644 caen/templates/cacti_host_template_foundry_serveriron.xml $RPM_BUILD_ROOT/%{instaldir}/templates/
74
75 #====[ Liste des fichiers composants l'archive :
76 %files
77
78 %doc caen/README_FNDRY.txt
79
80 %defattr(755,root,root)
81 %{instaldir}/scripts/freemem.pl
82 %{instaldir}/scripts/netusage.pl
83
84 %{instaldir}/resource/script_queries/racvision_weblogic.xml
85 %{instaldir}/scripts/query_wl_server.pl
86 #%{instaldir}/scripts/get_wl_heap.sh
87 #%{instaldir}/scripts/get_wl_pool.sh
88 #%{instaldir}/scripts/get_wl_queue.sh
89 #%{instaldir}/scripts/get_wl_sessions.sh
90 #%{instaldir}/scripts/get_wl_socket.sh
91 #%{instaldir}/scripts/get_wl_thread.sh
92
93 %{instaldir}/scripts/ss_otp_cache.pl
94 %{instaldir}/scripts/ss_otp_datasources.pl
95 %{instaldir}/scripts/ss_otp_files.pl
96 %{instaldir}/scripts/fndry_virt_srv.pl
97 %{instaldir}/scripts/fndry_real_srv.pl
98
99
100 %defattr(644,root,root)
101 %{instaldir}/templates/cacti_host_template_foundry_serveriron.xml
102 %{instaldir}/templates/cacti_data_query_racvision_bea_weblogic_monitoring.xml
103 %{instaldir}/templates/cacti_host_template_otp_instance.xml
104
105 %{instaldir}/resource/script_queries/otp_caches.xml
106 %{instaldir}/resource/script_queries/otp_datasources.xml
107 %{instaldir}/resource/script_queries/otp_files.xml
108 %{instaldir}/resource/script_queries/fndry_virt_srv.xml
109 %{instaldir}/resource/script_queries/fndry_real_srv.xml

  ViewVC Help
Powered by ViewVC 1.1.8