]> git.pld-linux.org Git - packages/zabbix.git/blob - zabbix.spec
- 1.0
[packages/zabbix.git] / zabbix.spec
1 #
2 # Conditional build:
3 %bcond_with pgsql       # enable PostgreSQL support (by default use mysql)
4 #
5 Summary:        zabbix - network monitoring software
6 Summary(pl):    zabbix - oprogramowanie do monitorowania sieci
7 Name:           zabbix
8 Version:        1.0
9 Release:        0.2
10 License:        GPL v2+
11 Group:          Networking/Admin
12 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 # Source0-md5:  e83a3b92f13942081ed2f3fe3f3084d8
14 Source1:        %{name}-agent.inetd
15 Source2:        %{name}-trapper.inetd
16 URL:            http://zabbix.sourceforge.net/
17 %{!?with_pgsql:BuildRequires:   mysql-devel}
18 %{?with_pgsql:BuildRequires:    postgresql-devel}
19 BuildRequires:  net-snmp-devel
20 BuildRequires:  openssl-devel >= 0.9.7d
21 BuildRequires:  rpmbuild(macros) >= 1.202
22 Requires(pre):  /bin/id
23 Requires(pre):  /usr/bin/getgid
24 Requires(pre):  /usr/sbin/groupadd
25 Requires(pre):  /usr/sbin/useradd
26 Requires(postun):       /usr/sbin/groupdel
27 Requires(postun):       /usr/sbin/userdel
28 Provides:       group(zabbix)
29 Provides:       user(zabbix)
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         _sysconfdir     /etc/%{name}
33 %define         htmldir         /home/services/html/zabbix
34
35 %description
36 zabbix is software that monitors numerous parameters of a network and
37 the servers on that network. zabbix is a useful tool for monitoring
38 the health and integrity of servers. zabbix uses a flexible
39 notification mechanism that allows users to configure email based
40 alerts for virtually any event. All monitored parameters are stored in
41 a database. zabbix offers excellent reporting and data visualisation
42 features based on the stored data. zabbix supports both polling and
43 trapping. All zabbix reports and statistics, as well as configuration
44 parameters, are accessed through a web-based front end.
45
46 %description -l pl
47 zabbix to oprogramowanie do monitorowania licznych parametrów sieci i
48 serwerów sieciowych. zabbix jest przydatny przy monitorowaniu
49 dzia³ania serwerów. zabbix korzysta z elastycznego mechanizmu
50 powiadamiania, który pozwala u¿ytkownikom konfigurowaæ powiadamianie
51 poczt± elektroniczn± dla praktycznie wszelkich zdarzeñ. Monitorowane
52 parametry s± przechowywane w bazie danych. zabbix oferuje, w oparciu o
53 przechowywane dane, ¶wietne raportowanie i funkcje wizualizacji.
54 zabbix wspiera zarówno odpytywanie, jak i pu³apkowanie. Dostêp do
55 wszystkich raportów i statystyk zabbiksa jest mo¿liwy poprzez
56 interfejs oparty o WWW.
57
58 %package frontend-php
59 Summary:        PHP frontend for zabbix
60 Summary(pl):    Interfejs PHP dla zabbiksa
61 Group:          Networking/Admin
62 Requires:       apache
63 Requires:       php
64 Requires:       php-gd
65 %{!?with_pgsql:Requires:        php-mysql}
66 %{?with_pgsql:Requires: php-pgsql}
67
68 %description frontend-php
69 This package provides web based (PHP) frontend for zabbix.
70
71 %description frontend-php -l pl
72 Ten pakiet dostarcza napisany w PHP frontend dla zabbiksa.
73
74 %package agent-inetd
75 Summary:        inetd agent for zabbix
76 Summary(pl):    Wersja inetd agenta zabbiksa
77 Group:          Networking/Admin
78 Requires:       %{name} = %{version}
79 Requires:       inetdaemon
80 Obsoletes:      %{name}-agent-standalone
81
82 %description agent-inetd
83 This package provides inetd version of zabbix agent.
84
85 %description agent-inetd -l pl
86 Ten pakiet dostarcza agenta zabbiksa dla inetd.
87
88 %package agent-standalone
89 Summary:        Standalone agent for zabbix
90 Summary(pl):    Wersja wolnostoj±ca agenta zabbiksa
91 Group:          Networking/Admin
92 Requires:       %{name} = %{version}
93 Obsoletes:      %{name}-agent-inetd
94
95 %description agent-standalone
96 This package provides standalone version of zabbix agent.
97
98 %description agent-standalone -l pl
99 Ten pakiet dostarcza wolnostoj±cej wersji agenta zabbiksa.
100
101 %package suckerd
102 Summary:        sucker daemon for zabbix
103 Summary(pl):    Demon sucker dla zabbiksa
104 Group:          Networking/Admin
105 Requires:       %{name} = %{version}
106 %{!?with_pgsql:Requires:        mysql}
107 %{?with_pgsql:Requires: postgresql}
108
109 %description suckerd
110 This package provides the sucker daemon for zabbix.
111
112 %description suckerd -l pl
113 Ten pakiet zawiera demona sucker dla zabbiksa.
114
115 %package trapper-inetd
116 Summary:        inetd trapper for zabbix
117 Summary(pl):    Wersja inetd programu pu³apkuj±cego zabbiksa
118 Group:          Networking/Admin
119 Requires:       %{name} = %{version}
120 Requires:       inetdaemon
121 Obsoletes:      %{name}-trapper-standalone
122
123 %description trapper-inetd
124 This package provides inetd version of zabbix trapper.
125
126 %description trapper-inetd -l pl
127 Ten pakiet zawiera program pu³apkuj±cy zabbiksa dla inetd.
128
129 %package trapper-standalone
130 Summary:        Standalone trapper for zabbix
131 Summary(pl):    Wersja wolnostoj±ca programu pu³apkuj±cego zabbiksa
132 Group:          Networking/Admin
133 Requires:       %{name} = %{version}
134 Obsoletes:      %{name}-trapper-inetd
135
136 %description trapper-standalone
137 This package provides standalone version of zabbix trapper.
138
139 %description trapper-standalone -l pl
140 Ten pakiet zawiera wolnostoj±c± wersjê programu pu³apkuj±cego
141 zabbiksa.
142
143 %package sender
144 Summary:        zabbix's sender
145 Summary(pl):    Program zawiadamiaj±cy zabbiksa
146 Group:          Networking/Admin
147
148 %description sender
149 This package provides the zabbix sender.
150
151 %description sender -l pl
152 Ten pakiet zawiera program zawiadamiaj±cy zabbiksa.
153
154 %prep
155 %setup -q
156
157 %build
158 %configure \
159         %{!?with_pgsql:--with-mysql} \
160         %{?with_pgsql:--with-pgsql} \
161         --with-net-snmp
162
163 %{__make}
164
165 %install
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/rc-inetd,%{_sbindir},%{htmldir}}
168
169 install bin/zabbix_* $RPM_BUILD_ROOT%{_sbindir}
170 install misc/conf/* $RPM_BUILD_ROOT%{_sysconfdir}
171 cp -r frontends/php/* $RPM_BUILD_ROOT%{htmldir}
172
173 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/zabbix-agent
174 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/zabbix-trapper
175
176 %clean
177 rm -rf $RPM_BUILD_ROOT
178
179 %pre
180 %groupadd -g 111 zabbix
181 %useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
182
183 %postun
184 if [ "$1" = "0" ]; then
185         %userremove zabbix
186         %groupremove zabbix
187 fi
188
189 %post agent-inetd
190 if [ -f /var/lock/subsys/rc-inetd ]; then
191         /etc/rc.d/init.d/rc-inetd reload
192 else
193         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
194 fi
195
196 %postun agent-inetd
197 if [ -f /var/lock/subsys/rc-inetd ]; then
198         /etc/rc.d/init.d/rc-inetd reload
199 fi
200
201 %post trapper-inetd
202 if [ -f /var/lock/subsys/rc-inetd ]; then
203         /etc/rc.d/init.d/rc-inetd reload
204 else
205         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
206 fi
207
208 %postun trapper-inetd
209 if [ -f /var/lock/subsys/rc-inetd ]; then
210         /etc/rc.d/init.d/rc-inetd reload
211 fi
212
213 %files
214 %defattr(644,root,root,755)
215 %doc doc/Zabbix\ Manual.pdf AUTHORS NEWS README ChangeLog create upgrades bin/ZabbixW32.exe
216 %attr(750,root,zabbix) %dir %{_sysconfdir}
217
218 %files frontend-php
219 %defattr(644,root,root,755)
220 %{htmldir}
221
222 %files agent-inetd
223 %defattr(644,root,root,755)
224 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agent.conf
225 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/zabbix-agent
226 %attr(755,root,root) %{_sbindir}/zabbix_agent
227
228 %files agent-standalone
229 %defattr(644,root,root,755)
230 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agentd.conf
231 %attr(755,root,root) %{_sbindir}/zabbix_agentd
232
233 %files suckerd
234 %defattr(644,root,root,755)
235 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_suckerd.conf
236 %attr(755,root,root) %{_sbindir}/zabbix_suckerd
237
238 %files trapper-inetd
239 %defattr(644,root,root,755)
240 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_trapper.conf
241 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/zabbix-trapper
242 %attr(755,root,root) %{_sbindir}/zabbix_trapper
243
244 %files trapper-standalone
245 %defattr(644,root,root,755)
246 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_trapperd.conf
247 %attr(755,root,root) %{_sbindir}/zabbix_trapperd
248
249 %files sender
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_sbindir}/zabbix_sender
This page took 0.106614 seconds and 3 git commands to generate.