%{?with_sqlite3:BuildRequires: sqlite3-devel}
BuildRequires: unixODBC-devel
BuildRequires: zlib-devel
-Requires: %{name}-agentd = %{version}-%{release}
-Requires: %{name}-web = %{version}-%{release}
-Requires: %{name}-server = %{version}-%{release}
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Provides: group(zabbix)
+Provides: user(zabbix)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/%{name}
odpytywanie jak i pułapkowanie. Dostęp do wszystkich raportów i
statystyk Zabbixa jest możliwy poprzez interfejs oparty o WWW.
-%package common
-Summary: Common files for Zabbix monitoring software
-Summary(pl.UTF-8): Wspólne pliki dla oprogramowania monitorującego Zabbix
-Group: Networking/Utilities
-Requires(postun): /usr/sbin/groupdel
-Requires(postun): /usr/sbin/userdel
-Requires(pre): /bin/id
-Requires(pre): /usr/bin/getgid
-Requires(pre): /usr/sbin/groupadd
-Requires(pre): /usr/sbin/useradd
-Provides: group(zabbix)
-Provides: user(zabbix)
-
-%description common
-Common files for Zabbix monitoring software.
-
-%description common -l pl.UTF-8
-Wspólne pliki dla oprogramowania monitorującego Zabbix.
-
%package agentd
Summary: Zabbix Agent
Summary(pl.UTF-8): Agenta Zabbixa
Group: Networking/Utilities
-Requires: %{name}-common = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
Obsoletes: zabbix-agent-inetd
Obsoletes: zabbix-agent-standalone
Requires(post,preun): /sbin/chkconfig
Summary: Zabbix proxy
Summary(pl.UTF-8): Proxy do Zabbixa
Group: Networking/Utilities
-Requires: %{name}-common = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
Requires: zabbix-proxy(db) = %{version}-%{release}
%description proxy
Summary: Zabbix server
Summary(pl.UTF-8): Serwer Zabbixa
Group: Networking/Utilities
-Requires: %{name}-common = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
Requires: %{name}-server(db) = %{version}-%{release}
Obsoletes: zabbix-suckerd
Obsoletes: zabbix-trapper-inetd
%package java
Summary: Zabbix Java Gateway
Group: Networking/Utilities
-Requires: %{name}-common = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
%description java
This package provides the Zabbix Java Gateway.
%triggerun web -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
-%pre common
+%pre
%groupadd -g 111 zabbix
%useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
%addusertogroup -q zabbix proc
-%postun common
+%postun
if [ "$1" = "0" ]; then
%userremove zabbix
%groupremove zabbix
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
-
-%files common
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
%attr(755,root,root) %{_bindir}/zabbix_get
%attr(755,root,root) %{_bindir}/zabbix_js
%attr(755,root,root) %{_bindir}/zabbix_sender