Skip to content

Instantly share code, notes, and snippets.

@komeda-shinji
Created March 4, 2016 08:41
Show Gist options
  • Save komeda-shinji/40c4f3f5a25f24be9e41 to your computer and use it in GitHub Desktop.
Save komeda-shinji/40c4f3f5a25f24be9e41 to your computer and use it in GitHub Desktop.
CentOS6 で Zabbix 3.0 を動かす (自力ビルド編)
%define _prefix /usr/local
%define _exec_prefix %{_prefix}
%define _datadir %{_prefix}/share
%define _libdir %{_exec_prefix}/lib64
%define _mandir %{_datadir}/man
%define dist .el6.local
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.29.0
Release: 25%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
Source2: curlbuild.h
# fix a SIGSEGV when closing an unused multi handle (#914411)
Patch1: 0001-curl-7.29.0-da3fc1ee.patch
# switch SSL socket into non-blocking mode after handshake
Patch2: 0002-curl-7.29.0-9d0af301.patch
# do not ignore poll() failures other than EINTR
Patch3: 0003-curl-7.29.0-491e026c.patch
# curl_global_init() now accepts the CURL_GLOBAL_ACK_EINTR flag
Patch4: 0004-curl-7.29.0-57ccdfa8.patch
# fix cookie tailmatching to prevent cross-domain leakage (CVE-2013-1944)
Patch5: 0005-curl-7.29.0-2eb8dcf2.patch
# show proper host name on failed resolve (#957173)
Patch6: 0006-curl-7.29.0-25e577b3.patch
# prevent an artificial timeout event due to stale speed-check data (#906031)
Patch7: 0007-curl-7.29.0-b37b5233.patch
# fix heap-based buffer overflow in curl_easy_unescape() (CVE-2013-2174)
Patch8: 0008-curl-7.29.0-192c4f78.patch
# mention all option listed in 'curl --help' in curl.1 man page
Patch9: 0009-curl-7.29.0-3a0e931f.patch
# FTP: when EPSV gets a 229 but fails to connect, retry with PASV (#1002815)
Patch10: 0010-curl-7.29.0-7cc00d9a.patch
# avoid a busy-loop in curl_easy_perform()
Patch11: 0011-curl-7.29.0-0feeab78.patch
# avoid delay if FTP is aborted in CURLOPT_HEADERFUNCTION callback (#1005686)
Patch12: 0012-curl-7.29.0-c639d725.patch
# allow to use ECC ciphers if NSS implements them (#1058776)
Patch13: 0013-curl-7.29.0-665c160f.patch
# re-use of wrong HTTP NTLM connection in libcurl (CVE-2014-0015)
Patch14: 0014-curl-7.29.0-8ae35102.patch
# allow to use TLS > 1.0 if built against recent NSS (#1036789)
Patch15: 0015-curl-7.29.0-7fc9325a.patch
# use proxy name in error message when proxy is used (#1042831)
Patch16: 0016-curl-7.29.0-1cf71bd7.patch
# refresh expired cookie in test172 from upstream test-suite (#1063693)
Patch17: 0017-curl-7.29.0-ffb8a21d.patch
# fix documentation of curl's options --tlsv1.[0-2] (#1066364)
Patch18: 0018-curl-7.29.0-03c28820.patch
# fix connection re-use when using different log-in credentials (CVE-2014-0138)
Patch19: 0019-curl-7.29.0-517b06d6.patch
# eliminate unnecessary delay when resolving host from /etc/hosts (#1130239)
Patch20: 0020-curl-7.29.0-d529f388.patch
# allow to enable/disable new AES cipher-suites (#1066065)
Patch21: 0021-curl-7.29.0-67061e3f.patch
# call PR_Cleanup() on curl tool exit if NSPR is used (#1071254)
Patch22: 0022-curl-7.29.0-24c3cdce.patch
# implement non-blocking TLS handshake (#1091429)
Patch23: 0023-curl-7.29.0-8868a226.patch
# fix limited connection re-use for unencrypted HTTP (#1101092)
Patch24: 0024-curl-7.29.0-68f0166a.patch
# disable libcurl-level downgrade to SSLv3 (#1154060)
Patch25: 0025-curl-7.29.0-3f430c9c.patch
# include response headers added by proxy in CURLINFO_HEADER_SIZE (#1161182)
Patch26: 0026-curl-7.29.0-bc6037ed.patch
# ignore CURLOPT_FORBID_REUSE during NTLM HTTP auth (#1166264)
Patch27: 0027-curl-7.29.0-63a0bd42.patch
# use only full matches for hosts used as IP address in cookies (CVE-2014-3613)
Patch28: 0028-curl-7.29.0-CVE-2014-3613.patch
# fix handling of CURLOPT_COPYPOSTFIELDS in curl_easy_duphandle (CVE-2014-3707)
Patch29: 0029-curl-7.29.0-CVE-2014-3707.patch
# reject CRLFs in URLs passed to proxy (CVE-2014-8150)
Patch30: 0030-curl-7.29.0-CVE-2014-8150.patch
# require credentials to match for NTLM re-use (CVE-2015-3143)
Patch31: 0031-curl-7.29.0-CVE-2015-3143.patch
# close Negotiate connections when done (CVE-2015-3148)
Patch32: 0032-curl-7.29.0-CVE-2015-3148.patch
# improve handling of timeouts and blocking direction to speed up FTP (#1218272)
Patch33: 0033-curl-7.29.0-29bf0598.patch
# patch making libcurl multilib ready
Patch101: 0101-curl-7.29.0-multilib.patch
# prevent configure script from discarding -g in CFLAGS (#496778)
Patch102: 0102-curl-7.29.0-debug.patch
# use the default min/max TLS version provided by NSS (#1170339)
Patch103: 0103-curl-7.29.0-default-tls-version.patch
# use localhost6 instead of ip6-localhost in the curl test-suite
Patch104: 0104-curl-7.19.7-localhost6.patch
# disable valgrind for certain test-cases (libssh2 problem)
Patch106: 0106-curl-7.21.0-libssh2-valgrind.patch
# http://thread.gmane.org/gmane.comp.web.curl.library/40551/focus=40561
Patch105: 0105-curl-7.32.0-scp-upload.patch
# work around valgrind bug (#678518)
Patch107: 0107-curl-7.21.4-libidn-valgrind.patch
# Fix character encoding of docs, which are of mixed encoding originally so
# a simple iconv can't fix them
Patch108: 0108-curl-7.29.0-utf8.patch
Provides: webclient
URL: http://curl.haxx.se/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRequires: groff
BuildRequires: krb5-devel
BuildRequires: libidn-devel
BuildRequires: libssh2-devel
BuildRequires: nss-devel
BuildRequires: openldap-devel
BuildRequires: openssh-clients
BuildRequires: openssh-server
BuildRequires: pkgconfig
BuildRequires: stunnel
BuildRequires: zlib-devel
# perl modules used in the test suite
BuildRequires: perl(Cwd)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IPC::Open2)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(strict)
BuildRequires: perl(Time::Local)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(warnings)
BuildRequires: perl(vars)
# require valgrind to boost test coverage on i386 and x86_64
%ifarch %{ix86} x86_64
BuildRequires: valgrind
%endif
Requires: libcurl = %{version}-%{release}
# require at least the version of libssh2 that we were built against,
# to ensure that we have the necessary symbols available (#525002, #642796)
%global libssh2_version %(pkg-config --modversion libssh2 2>/dev/null || echo 0)
%description
curl is a command line tool for transferring data with URL syntax, supporting
FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP,
SMTP, POP3 and RTSP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP
uploading, HTTP form based upload, proxies, cookies, user+password
authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer
resume, proxy tunneling and a busload of other useful tricks.
%package -n libcurl
Summary: A library for getting files from web servers
Group: Development/Libraries
Requires: libssh2%{?_isa} >= %{libssh2_version}
%description -n libcurl
libcurl is a free and easy-to-use client-side URL transfer library, supporting
FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP,
SMTP, POP3 and RTSP. libcurl supports SSL certificates, HTTP POST, HTTP PUT,
FTP uploading, HTTP form based upload, proxies, cookies, user+password
authentication (Basic, Digest, NTLM, Negotiate, Kerberos4), file transfer
resume, http proxy tunneling and more.
%package -n libcurl-devel
Summary: Files needed for building applications with libcurl
Group: Development/Libraries
Requires: libcurl = %{version}-%{release}
# From Fedora 14, %%{_datadir}/aclocal is included in the filesystem package
%if 0%{?fedora} < 14
Requires: %{_datadir}/aclocal
%endif
# From Fedora 11, RHEL-6, pkgconfig dependency is auto-detected
%if 0%{?fedora} < 11 && 0%{?rhel} < 6
Requires: pkgconfig
%endif
Provides: curl-devel = %{version}-%{release}
Obsoletes: curl-devel < %{version}-%{release}
%description -n libcurl-devel
The libcurl-devel package includes header files and libraries necessary for
developing programs which use the libcurl library. It contains the API
documentation of the library, too.
%prep
%setup -q
# upstream patches
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch105 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
%patch28 -p1
%patch29 -p1
%patch30 -p1
%patch31 -p1
%patch32 -p1
%patch33 -p1
# Fedora/RHEL patches
%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
# replace hard wired port numbers in the test suite
cd tests/data/
sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ test*
cd -
# disable test 1112 (#565305)
printf "1112\n" >> tests/data/DISABLED
# disable test 1319 on ppc64 (server times out)
%ifarch ppc64
echo "1319" >> tests/data/DISABLED
%endif
#skip 2 test from CentOS
echo "46" >> tests/data/DISABLED
echo "2032" >> tests/data/DISABLED
#
%build
CPPFLAGS='-I/usr/local/include'
export CPPFLAGS
LDFLAGS='-L/usr/local/lib64 -Wl,-rpath,/usr/local/lib64'
export LDFLAGS
[ -x /usr/kerberos/bin/krb5-config ] && KRB5_PREFIX="=/usr/kerberos"
%configure --prefix=/usr/local --disable-static \
--enable-hidden-symbols \
--enable-ipv6 \
--enable-ldaps \
--enable-manual \
--enable-threaded-resolver \
--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
--with-gssapi${KRB5_PREFIX} \
--with-libidn \
--with-libssh2 \
--without-ssl --with-nss
# --enable-debug
# use ^^^ to turn off optimizations, etc.
# Remove bogus rpath
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%check
LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
export LD_LIBRARY_PATH
# uncomment to use the non-stripped library in tests
# LD_PRELOAD=`find -name \*.so`
# LD_PRELOAD=`readlink -f $LD_PRELOAD`
cd tests
make %{?_smp_mflags}
# use different port range for 32bit and 64bit build, thus make it possible
# to run both in parallel on the same machine
./runtests.pl -a -b%{?__isa_bits}90 -p -v
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
install -d $RPM_BUILD_ROOT%{_datadir}/aclocal
install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
# drop man page for a script we do not distribute
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mk-ca-bundle.1
# Make libcurl-devel multilib-ready (bug #488922)
%if 0%{?__isa_bits} == 64
%define _curlbuild_h curlbuild-64.h
%else
%define _curlbuild_h curlbuild-32.h
%endif
mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
$RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libcurl -p /sbin/ldconfig
%postun -n libcurl -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc CHANGES README* COPYING
%doc docs/BUGS docs/FAQ docs/FEATURES
%doc docs/MANUAL docs/RESOURCES
%doc docs/TheArtOfHttpScripting docs/TODO
%{_bindir}/curl
%{_mandir}/man1/curl.1*
%files -n libcurl
%defattr(-,root,root,-)
%{_libdir}/libcurl.so.*
%files -n libcurl-devel
%defattr(-,root,root,-)
%doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS
%doc docs/CONTRIBUTE docs/libcurl/ABI
%{_bindir}/curl-config*
%{_includedir}/curl
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/curl-config.1*
%{_mandir}/man3/*
%{_datadir}/aclocal/libcurl.m4
%changelog
* Mon May 11 2015 Kamil Dudka <[email protected]> 7.29.0-25
- fix spurious failure of test 1500 on ppc64le (#1218272)
* Tue May 05 2015 Kamil Dudka <[email protected]> 7.29.0-24
- use the default min/max TLS version provided by NSS (#1170339)
- improve handling of timeouts and blocking direction to speed up FTP (#1218272)
* Mon Apr 27 2015 Kamil Dudka <[email protected]> 7.29.0-23
- require credentials to match for NTLM re-use (CVE-2015-3143)
- close Negotiate connections when done (CVE-2015-3148)
* Thu Jan 08 2015 Kamil Dudka <[email protected]> 7.29.0-22
- reject CRLFs in URLs passed to proxy (CVE-2014-8150)
* Thu Dec 18 2014 Kamil Dudka <[email protected]> 7.29.0-21
- use only full matches for hosts used as IP address in cookies (CVE-2014-3613)
- fix handling of CURLOPT_COPYPOSTFIELDS in curl_easy_duphandle (CVE-2014-3707)
* Thu Nov 27 2014 Kamil Dudka <[email protected]> 7.29.0-20
- eliminate unnecessary delay when resolving host from /etc/hosts (#1130239)
- allow to enable/disable new AES cipher-suites (#1066065)
- call PR_Cleanup() on curl tool exit if NSPR is used (#1071254)
- implement non-blocking TLS handshake (#1091429)
- fix limited connection re-use for unencrypted HTTP (#1101092)
- disable libcurl-level downgrade to SSLv3 (#1154060)
- include response headers added by proxy in CURLINFO_HEADER_SIZE (#1161182)
- ignore CURLOPT_FORBID_REUSE during NTLM HTTP auth (#1166264)
* Wed Mar 26 2014 Kamil Dudka <[email protected]> 7.29.0-19
- fix connection re-use when using different log-in credentials (CVE-2014-0138)
* Mon Mar 17 2014 Paul Howarth <[email protected]> 7.29.0-18
- add all perl build requirements for the test suite, in a portable way
* Tue Feb 18 2014 Kamil Dudka <[email protected]> 7.29.0-17
- fix documentation of curl's options --tlsv1.[0-2] (#1066364)
* Tue Feb 11 2014 Kamil Dudka <[email protected]> 7.29.0-16
- allow to use TLS > 1.0 if built against recent NSS (#1036789)
- use proxy name in error message when proxy is used (#1042831)
- refresh expired cookie in test172 from upstream test-suite (#1063693)
* Fri Jan 31 2014 Kamil Dudka <[email protected]> 7.29.0-15
- allow to use ECC ciphers if NSS implements them (#1058776)
- re-use of wrong HTTP NTLM connection in libcurl (CVE-2014-0015)
* Fri Jan 24 2014 Daniel Mach <[email protected]> - 7.29.0-14
- Mass rebuild 2014-01-24
* Fri Dec 27 2013 Daniel Mach <[email protected]> - 7.29.0-13
- Mass rebuild 2013-12-27
* Fri Oct 11 2013 Kamil Dudka <[email protected]> 7.29.0-12
- do not limit the speed of SCP upload on a fast connection (#1014928)
* Mon Sep 09 2013 Kamil Dudka <[email protected]> 7.29.0-11
- avoid delay if FTP is aborted in CURLOPT_HEADERFUNCTION callback (#1005686)
* Wed Sep 04 2013 Kamil Dudka <[email protected]> 7.29.0-10
- avoid a busy-loop in curl_easy_perform()
* Fri Aug 30 2013 Kamil Dudka <[email protected]> 7.29.0-9
- FTP: when EPSV gets a 229 but fails to connect, retry with PASV (#1002815)
* Tue Jul 09 2013 Kamil Dudka <[email protected]> 7.29.0-8
- mention all option listed in 'curl --help' in curl.1 man page
* Sat Jun 22 2013 Kamil Dudka <[email protected]> 7.29.0-7
- fix heap-based buffer overflow in curl_easy_unescape() (CVE-2013-2174)
* Fri Apr 26 2013 Kamil Dudka <[email protected]> 7.29.0-6
- prevent an artificial timeout event due to stale speed-check data (#906031)
- show proper host name on failed resolve (#957173)
* Fri Apr 12 2013 Kamil Dudka <[email protected]> 7.29.0-5
- fix cookie tailmatching to prevent cross-domain leakage (CVE-2013-1944)
* Tue Mar 12 2013 Kamil Dudka <[email protected]> 7.29.0-4
- do not ignore poll() failures other than EINTR (#919127)
- curl_global_init() now accepts the CURL_GLOBAL_ACK_EINTR flag (#919127)
* Wed Mar 06 2013 Kamil Dudka <[email protected]> 7.29.0-3
- switch SSL socket into non-blocking mode after handshake (#960765)
- drop the hide_selinux.c hack no longer needed in %%check
* Fri Feb 22 2013 Kamil Dudka <[email protected]> 7.29.0-2
- fix a SIGSEGV when closing an unused multi handle (#914411)
* Wed Feb 06 2013 Kamil Dudka <[email protected]> 7.29.0-1
- new upstream release (fixes CVE-2013-0249)
* Tue Jan 15 2013 Kamil Dudka <[email protected]> 7.28.1-3
- require valgrind for build only on i386 and x86_64 (#886891)
* Tue Jan 15 2013 Kamil Dudka <[email protected]> 7.28.1-2
- prevent NSS from crashing on client auth hook failure
- clear session cache if a client cert from file is used
- fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE
* Tue Nov 20 2012 Kamil Dudka <[email protected]> 7.28.1-1
- new upstream release
* Wed Oct 31 2012 Kamil Dudka <[email protected]> 7.28.0-1
- new upstream release
* Mon Oct 01 2012 Kamil Dudka <[email protected]> 7.27.0-3
- use the upstream facility to disable problematic tests
- do not crash if MD5 fingerprint is not provided by libssh2
* Wed Aug 01 2012 Kamil Dudka <[email protected]> 7.27.0-2
- eliminate unnecessary inotify events on upload via file protocol (#844385)
* Sat Jul 28 2012 Kamil Dudka <[email protected]> 7.27.0-1
- new upstream release
* Mon Jul 23 2012 Kamil Dudka <[email protected]> 7.26.0-6
- print reason phrase from HTTP status line on error (#676596)
* Wed Jul 18 2012 Fedora Release Engineering <[email protected]> - 7.26.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jun 09 2012 Kamil Dudka <[email protected]> 7.26.0-4
- fix duplicated SSL handshake with multi interface and proxy (#788526)
* Wed May 30 2012 Karsten Hopp <[email protected]> 7.26.0-3
- disable test 1319 on ppc64, server times out
* Mon May 28 2012 Kamil Dudka <[email protected]> 7.26.0-2
- use human-readable error messages provided by NSS (upstream commit 72f4b534)
* Fri May 25 2012 Kamil Dudka <[email protected]> 7.26.0-1
- new upstream release
* Wed Apr 25 2012 Karsten Hopp <[email protected]> 7.25.0-3
- valgrind on ppc64 works fine, disable ppc32 only
* Wed Apr 25 2012 Karsten Hopp <[email protected]> 7.25.0-3
- drop BR valgrind on PPC(64) until bugzilla #810992 gets fixed
* Fri Apr 13 2012 Kamil Dudka <[email protected]> 7.25.0-2
- use NSS_InitContext() to initialize NSS if available (#738456)
- provide human-readable names for NSS errors (upstream commit a60edcc6)
* Fri Mar 23 2012 Paul Howarth <[email protected]> 7.25.0-1
- new upstream release (#806264)
- fix character encoding of docs with a patch rather than just iconv
- update debug and multilib patches
- don't use macros for commands
- reduce size of %%prep output for readability
* Tue Jan 24 2012 Kamil Dudka <[email protected]> 7.24.0-1
- new upstream release (fixes CVE-2012-0036)
* Thu Jan 05 2012 Paul Howarth <[email protected]> 7.23.0-6
- rebuild for gcc 4.7
* Mon Jan 02 2012 Kamil Dudka <[email protected]> 7.23.0-5
- upstream patch that allows to run FTPS tests with nss-3.13 (#760060)
* Tue Dec 27 2011 Kamil Dudka <[email protected]> 7.23.0-4
- allow to run FTPS tests with nss-3.13 (#760060)
* Sun Dec 25 2011 Kamil Dudka <[email protected]> 7.23.0-3
- avoid unnecessary timeout event when waiting for 100-continue (#767490)
* Mon Nov 21 2011 Kamil Dudka <[email protected]> 7.23.0-2
- curl -JO now uses -O name if no C-D header comes (upstream commit c532604)
* Wed Nov 16 2011 Kamil Dudka <[email protected]> 7.23.0-1
- new upstream release (#754391)
* Mon Sep 19 2011 Kamil Dudka <[email protected]> 7.22.0-2
- nss: select client certificates by DER (#733657)
* Tue Sep 13 2011 Kamil Dudka <[email protected]> 7.22.0-1
- new upstream release
- curl-config now provides dummy --static-libs option (#733956)
* Sun Aug 21 2011 Paul Howarth <[email protected]> 7.21.7-4
- actually fix SIGSEGV of curl -O -J given more than one URL (#723075)
* Mon Aug 15 2011 Kamil Dudka <[email protected]> 7.21.7-3
- fix SIGSEGV of curl -O -J given more than one URL (#723075)
- introduce the --delegation option of curl (#730444)
- initialize NSS with no database if the selected database is broken (#728562)
* Wed Aug 03 2011 Kamil Dudka <[email protected]> 7.21.7-2
- add a new option CURLOPT_GSSAPI_DELEGATION (#719939)
* Thu Jun 23 2011 Kamil Dudka <[email protected]> 7.21.7-1
- new upstream release (fixes CVE-2011-2192)
* Wed Jun 08 2011 Kamil Dudka <[email protected]> 7.21.6-2
- avoid an invalid timeout event on a reused handle (#679709)
* Sat Apr 23 2011 Paul Howarth <[email protected]> 7.21.6-1
- new upstream release
* Mon Apr 18 2011 Kamil Dudka <[email protected]> 7.21.5-2
- fix the output of curl-config --version (upstream commit 82ecc85)
* Mon Apr 18 2011 Kamil Dudka <[email protected]> 7.21.5-1
- new upstream release
* Sat Apr 16 2011 Peter Robinson <[email protected]> 7.21.4-4
- no valgrind on ARMv5 arches
* Sat Mar 05 2011 Dennis Gilmore <[email protected]> 7.21.4-3
- no valgrind on sparc arches
* Tue Feb 22 2011 Kamil Dudka <[email protected]> 7.21.4-2
- do not ignore failure of SSL handshake (upstream commit 7aa2d10)
* Fri Feb 18 2011 Kamil Dudka <[email protected]> 7.21.4-1
- new upstream release
- avoid memory leak on SSL connection failure (upstream commit a40f58d)
- work around valgrind bug (#678518)
* Tue Feb 08 2011 Fedora Release Engineering <[email protected]> - 7.21.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Jan 12 2011 Kamil Dudka <[email protected]> 7.21.3-2
- build libcurl with --enable-hidden-symbols
* Thu Dec 16 2010 Paul Howarth <[email protected]> 7.21.3-1
- update to 7.21.3:
- added --noconfigure switch to testcurl.pl
- added --xattr option
- added CURLOPT_RESOLVE and --resolve
- added CURLAUTH_ONLY
- added version-check.pl to the examples dir
- check for libcurl features for some command line options
- Curl_setopt: disallow CURLOPT_USE_SSL without SSL support
- http_chunks: remove debug output
- URL-parsing: consider ? a divider
- SSH: avoid using the libssh2_ prefix
- SSH: use libssh2_session_handshake() to work on win64
- ftp: prevent server from hanging on closed data connection when stopping
a transfer before the end of the full transfer (ranges)
- LDAP: detect non-binary attributes properly
- ftp: treat server's response 421 as CURLE_OPERATION_TIMEDOUT
- gnutls->handshake: improved timeout handling
- security: pass the right parameter to init
- krb5: use GSS_ERROR to check for error
- TFTP: resend the correct data
- configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected
- GnuTLS: now detects socket errors on Windows
- symbols-in-versions: updated en masse
- added a couple of examples that were missing from the tarball
- Curl_send/recv_plain: return errno on failure
- Curl_wait_for_resolv (for c-ares): correct timeout
- ossl_connect_common: detect connection re-use
- configure: prevent link errors with --librtmp
- openldap: use remote port in URL passed to ldap_init_fd()
- url: provide dead_connection flag in Curl_handler::disconnect
- lots of compiler warning fixes
- ssh: fix a download resume point calculation
- fix getinfo CURLINFO_LOCAL* for reused connections
- multi: the returned running handles counter could turn negative
- multi: only ever consider pipelining for connections doing HTTP(S)
- drop upstream patches now in tarball
- update bz650255 and disable-test1112 patches to apply against new codebase
- add workaround for false-positive glibc-detected buffer overflow in tftpd
test server with FORTIFY_SOURCE (similar to #515361)
* Fri Nov 12 2010 Kamil Dudka <[email protected]> 7.21.2-5
- do not send QUIT to a dead FTP control connection (#650255)
- pull back glibc's implementation of str[n]casecmp(), #626470 appears fixed
* Tue Nov 09 2010 Kamil Dudka <[email protected]> 7.21.2-4
- prevent FTP client from hanging on unrecognized ABOR response (#649347)
- return more appropriate error code in case FTP server session idle
timeout has exceeded (#650255)
* Fri Oct 29 2010 Kamil Dudka <[email protected]> 7.21.2-3
- prevent FTP server from hanging on closed data connection (#643656)
* Thu Oct 14 2010 Paul Howarth <[email protected]> 7.21.2-2
- enforce versioned libssh2 dependency for libcurl (#642796)
* Wed Oct 13 2010 Kamil Dudka <[email protected]> 7.21.2-1
- new upstream release, drop applied patches
- make 0102-curl-7.21.2-debug.patch less intrusive
* Wed Sep 29 2010 jkeating - 7.21.1-6
- Rebuilt for gcc bug 634757
* Sat Sep 11 2010 Kamil Dudka <[email protected]> 7.21.1-5
- make it possible to run SCP/SFTP tests on x86_64 (#632914)
* Tue Sep 07 2010 Kamil Dudka <[email protected]> 7.21.1-4
- work around glibc/valgrind problem on x86_64 (#631449)
* Tue Aug 24 2010 Paul Howarth <[email protected]> 7.21.1-3
- fix up patches so there's no need to run autotools in the rpm build
- drop buildreq automake
- drop dependency on automake for devel package from F-14, where
%%{_datadir}/aclocal is included in the filesystem package
- drop dependency on pkgconfig for devel package from F-11, where
pkgconfig dependencies are auto-generated
* Mon Aug 23 2010 Kamil Dudka <[email protected]> 7.21.1-2
- re-enable test575 on s390(x), already fixed (upstream commit d63bdba)
- modify system headers to work around gcc bug (#617757)
- curl -T now ignores file size of special files (#622520)
- fix kerberos proxy authentication for https (#625676)
- work around glibc/valgrind problem on x86_64 (#626470)
* Thu Aug 12 2010 Kamil Dudka <[email protected]> 7.21.1-1
- new upstream release
* Mon Jul 12 2010 Dan Horák <dan[at]danny.cz> 7.21.0-3
- disable test 575 on s390(x)
* Mon Jun 28 2010 Kamil Dudka <[email protected]> 7.21.0-2
- add support for NTLM authentication (#603783)
* Wed Jun 16 2010 Kamil Dudka <[email protected]> 7.21.0-1
- new upstream release, drop applied patches
- update of %%description
- disable valgrind for certain test-cases (libssh2 problem)
* Tue May 25 2010 Kamil Dudka <[email protected]> 7.20.1-6
- fix -J/--remote-header-name to strip CR-LF (upstream patch)
* Wed Apr 28 2010 Kamil Dudka <[email protected]> 7.20.1-5
- CRL support now works again (#581926)
- make it possible to start a testing OpenSSH server when building with SELinux
in the enforcing mode (#521087)
* Sat Apr 24 2010 Kamil Dudka <[email protected]> 7.20.1-4
- upstream patch preventing failure of test536 with threaded DNS resolver
- upstream patch preventing SSL handshake timeout underflow
* Thu Apr 22 2010 Paul Howarth <[email protected]> 7.20.1-3
- replace Rawhide s390-sleep patch with a more targeted patch adding a
delay after tests 513 and 514 rather than after all tests
* Wed Apr 21 2010 Kamil Dudka <[email protected]> 7.20.1-2
- experimentally enabled threaded DNS lookup
- make curl-config multilib ready again (#584107)
* Mon Apr 19 2010 Kamil Dudka <[email protected]> 7.20.1-1
- new upstream release
* Tue Mar 23 2010 Kamil Dudka <[email protected]> 7.20.0-4
- add missing quote in libcurl.m4 (#576252)
* Fri Mar 19 2010 Kamil Dudka <[email protected]> 7.20.0-3
- throw CURLE_SSL_CERTPROBLEM in case peer rejects a certificate (#565972)
- valgrind temporarily disabled (#574889)
- kerberos installation prefix has been changed
* Wed Feb 24 2010 Kamil Dudka <[email protected]> 7.20.0-2
- exclude test1112 from the test suite (#565305)
* Thu Feb 11 2010 Kamil Dudka <[email protected]> 7.20.0-1
- new upstream release - added support for IMAP(S), POP3(S), SMTP(S) and RTSP
- dropped patches applied upstream
- dropped curl-7.16.0-privlibs.patch no longer useful
- a new patch forcing -lrt when linking the curl tool and test-cases
* Fri Jan 29 2010 Kamil Dudka <[email protected]> 7.19.7-11
- upstream patch adding a new option -J/--remote-header-name
- dropped temporary workaround for #545779
* Thu Jan 14 2010 Chris Weyl <[email protected]> 7.19.7-10
- bump for libssh2 rebuild
* Sun Dec 20 2009 Kamil Dudka <[email protected]> 7.19.7-9
- temporary workaround for #548269
(restored behavior of 7.19.7-4)
* Wed Dec 09 2009 Kamil Dudka <[email protected]> 7.19.7-8
- replace hard wired port numbers in the test suite
* Wed Dec 09 2009 Kamil Dudka <[email protected]> 7.19.7-7
- use different port numbers for 32bit and 64bit builds
- temporary workaround for #545779
* Tue Dec 08 2009 Kamil Dudka <[email protected]> 7.19.7-6
- make it possible to run test241
- re-enable SCP/SFTP tests (#539444)
* Sat Dec 05 2009 Kamil Dudka <[email protected]> 7.19.7-5
- avoid use of uninitialized value in lib/nss.c
- suppress failure of test513 on s390
* Tue Dec 01 2009 Kamil Dudka <[email protected]> 7.19.7-4
- do not require valgrind on s390 and s390x
- temporarily disabled SCP/SFTP test-suite (#539444)
* Thu Nov 12 2009 Kamil Dudka <[email protected]> 7.19.7-3
- fix crash on doubly closed NSPR descriptor, patch contributed
by Kevin Baughman (#534176)
- new version of patch for broken TLS servers (#525496, #527771)
* Wed Nov 04 2009 Kamil Dudka <[email protected]> 7.19.7-2
- increased release number (CVS problem)
* Wed Nov 04 2009 Kamil Dudka <[email protected]> 7.19.7-1
- new upstream release, dropped applied patches
- workaround for broken TLS servers (#525496, #527771)
* Wed Oct 14 2009 Kamil Dudka <[email protected]> 7.19.6-13
- fix timeout issues and gcc warnings within lib/nss.c
* Tue Oct 06 2009 Kamil Dudka <[email protected]> 7.19.6-12
- upstream patch for NSS support written by Guenter Knauf
* Wed Sep 30 2009 Kamil Dudka <[email protected]> 7.19.6-11
- build libcurl with c-ares support (#514771)
* Sun Sep 27 2009 Kamil Dudka <[email protected]> 7.19.6-10
- require libssh2>=1.2 properly (#525002)
* Sat Sep 26 2009 Kamil Dudka <[email protected]> 7.19.6-9
- let curl test-suite use valgrind
- require libssh2>=1.2 (#525002)
* Mon Sep 21 2009 Chris Weyl <[email protected]> - 7.19.6-8
- rebuild for libssh2 1.2
* Thu Sep 17 2009 Kamil Dudka <[email protected]> 7.19.6-7
- make curl test-suite more verbose
* Wed Sep 16 2009 Kamil Dudka <[email protected]> 7.19.6-6
- update polling patch to the latest upstream version
* Thu Sep 03 2009 Kamil Dudka <[email protected]> 7.19.6-5
- cover ssh and stunnel support by the test-suite
* Wed Sep 02 2009 Kamil Dudka <[email protected]> 7.19.6-4
- use pkg-config to find nss and libssh2 if possible
- better patch (not only) for SCP/SFTP polling
- improve error message for not matching common name (#516056)
* Fri Aug 21 2009 Kamil Dudka <[email protected]> 7.19.6-3
- avoid tight loop during a sftp upload
- http://permalink.gmane.org/gmane.comp.web.curl.library/24744
* Tue Aug 18 2009 Kamil Dudka <[email protected]> 7.19.6-2
- let curl package depend on the same version of libcurl
* Fri Aug 14 2009 Kamil Dudka <[email protected]> 7.19.6-1
- new upstream release, dropped applied patches
- changed NSS code to not ignore the value of ssl.verifyhost and produce more
verbose error messages (#516056)
* Wed Aug 12 2009 Ville Skyttä <[email protected]> - 7.19.5-10
- Use lzma compressed upstream tarball.
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 7.19.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Jul 22 2009 Kamil Dudka <[email protected]> 7.19.5-8
- do not pre-login to all PKCS11 slots, it causes problems with HW tokens
- try to select client certificate automatically when not specified, thanks
to Claes Jakobsson
* Fri Jul 10 2009 Kamil Dudka <[email protected]> 7.19.5-7
- fix SIGSEGV when using NSS client certificates, thanks to Claes Jakobsson
* Sun Jul 05 2009 Kamil Dudka <[email protected]> 7.19.5-6
- force test suite to use the just built libcurl, thanks to Paul Howarth
* Thu Jul 02 2009 Kamil Dudka <[email protected]> 7.19.5-5
- run test suite after build
- enable built-in manual
* Wed Jun 24 2009 Kamil Dudka <[email protected]> 7.19.5-4
- fix bug introduced by the last build (#504857)
* Wed Jun 24 2009 Kamil Dudka <[email protected]> 7.19.5-3
- exclude curlbuild.h content from spec (#504857)
* Wed Jun 10 2009 Kamil Dudka <[email protected]> 7.19.5-2
- avoid unguarded comparison in the spec file, thanks to R P Herrold (#504857)
* Tue May 19 2009 Kamil Dudka <[email protected]> 7.19.5-1
- update to 7.19.5, dropped applied patches
* Mon May 11 2009 Kamil Dudka <[email protected]> 7.19.4-11
- fix infinite loop while loading a private key, thanks to Michael Cronenworth
(#453612)
* Mon Apr 27 2009 Kamil Dudka <[email protected]> 7.19.4-10
- fix curl/nss memory leaks while using client certificate (#453612, accepted
by upstream)
* Wed Apr 22 2009 Kamil Dudka <[email protected]> 7.19.4-9
- add missing BuildRequire for autoconf
* Wed Apr 22 2009 Kamil Dudka <[email protected]> 7.19.4-8
- fix configure.ac to not discard -g in CFLAGS (#496778)
* Tue Apr 21 2009 Debarshi Ray <[email protected]> 7.19.4-7
- Fixed configure to respect the environment's CFLAGS and CPPFLAGS settings.
* Tue Apr 14 2009 Kamil Dudka <[email protected]> 7.19.4-6
- upstream patch fixing memory leak in lib/nss.c (#453612)
- remove redundant dependency of libcurl-devel on libssh2-devel
* Wed Mar 18 2009 Kamil Dudka <[email protected]> 7.19.4-5
- enable 6 additional crypto algorithms by default (#436781,
accepted by upstream)
* Thu Mar 12 2009 Kamil Dudka <[email protected]> 7.19.4-4
- fix memory leak in src/main.c (accepted by upstream)
- avoid using %%ifarch
* Wed Mar 11 2009 Kamil Dudka <[email protected]> 7.19.4-3
- make libcurl-devel multilib-ready (bug #488922)
* Fri Mar 06 2009 Jindrich Novy <[email protected]> 7.19.4-2
- drop .easy-leak patch, causes problems in pycurl (#488791)
- fix libcurl-devel dependencies (#488895)
* Tue Mar 03 2009 Jindrich Novy <[email protected]> 7.19.4-1
- update to 7.19.4 (fixes CVE-2009-0037)
- fix leak in curl_easy* functions, thanks to Kamil Dudka
- drop nss-fix patch, applied upstream
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 7.19.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Feb 17 2009 Kamil Dudka <[email protected]> 7.19.3-1
- update to 7.19.3, dropped applied nss patches
- add patch fixing 7.19.3 curl/nss bugs
* Mon Dec 15 2008 Jindrich Novy <[email protected]> 7.18.2-9
- rebuild for f10/rawhide cvs tag clashes
* Sat Dec 06 2008 Jindrich Novy <[email protected]> 7.18.2-8
- use improved NSS patch, thanks to Rob Crittenden (#472489)
* Tue Sep 09 2008 Jindrich Novy <[email protected]> 7.18.2-7
- update the thread safety patch, thanks to Rob Crittenden (#462217)
* Wed Sep 03 2008 Warren Togami <[email protected]> 7.18.2-6
- add thread safety to libcurl NSS cleanup() functions (#459297)
* Fri Aug 22 2008 Tom "spot" Callaway <[email protected]> 7.18.2-5
- undo mini libcurl.so.3
* Mon Aug 11 2008 Tom "spot" Callaway <[email protected]> 7.18.2-4
- make miniature library for libcurl.so.3
* Fri Jul 4 2008 Jindrich Novy <[email protected]> 7.18.2-3
- enable support for libssh2 (#453958)
* Wed Jun 18 2008 Jindrich Novy <[email protected]> 7.18.2-2
- fix curl_multi_perform() over a proxy (#450140), thanks to
Rob Crittenden
* Wed Jun 4 2008 Jindrich Novy <[email protected]> 7.18.2-1
- update to 7.18.2
* Wed May 7 2008 Jindrich Novy <[email protected]> 7.18.1-2
- spec cleanup, thanks to Paul Howarth (#225671)
- drop BR: libtool
- convert CHANGES and README to UTF-8
- _GNU_SOURCE in CFLAGS is no more needed
- remove bogus rpath
* Mon Mar 31 2008 Jindrich Novy <[email protected]> 7.18.1-1
- update to curl 7.18.1 (fixes #397911)
- add ABI docs for libcurl
- remove --static-libs from curl-config
- drop curl-config patch, obsoleted by @SSL_ENABLED@ autoconf
substitution (#432667)
* Fri Feb 15 2008 Jindrich Novy <[email protected]> 7.18.0-2
- define _GNU_SOURCE so that NI_MAXHOST gets defined from glibc
* Mon Jan 28 2008 Jindrich Novy <[email protected]> 7.18.0-1
- update to curl-7.18.0
- drop sslgen patch -> applied upstream
- fix typo in description
* Tue Jan 22 2008 Jindrich Novy <[email protected]> 7.17.1-6
- fix curl-devel obsoletes so that we don't break F8->F9 upgrade
path (#429612)
* Tue Jan 8 2008 Jindrich Novy <[email protected]> 7.17.1-5
- do not attempt to close a bad socket (#427966),
thanks to Caolan McNamara
* Tue Dec 4 2007 Jindrich Novy <[email protected]> 7.17.1-4
- rebuild because of the openldap soname bump
- remove old nsspem patch
* Fri Nov 30 2007 Jindrich Novy <[email protected]> 7.17.1-3
- drop useless ldap library detection since curl doesn't
dlopen()s it but links to it -> BR: openldap-devel
- enable LDAPS support (#225671), thanks to Paul Howarth
- BR: krb5-devel to reenable GSSAPI support
- simplify build process
- update description
* Wed Nov 21 2007 Jindrich Novy <[email protected]> 7.17.1-2
- update description to contain complete supported servers list (#393861)
* Sat Nov 17 2007 Jindrich Novy <[email protected]> 7.17.1-1
- update to curl 7.17.1
- include patch to enable SSL usage in NSS when a socket is opened
nonblocking, thanks to Rob Crittenden ([email protected])
* Wed Oct 24 2007 Jindrich Novy <[email protected]> 7.16.4-10
- correctly provide/obsolete curl-devel (#130251)
* Wed Oct 24 2007 Jindrich Novy <[email protected]> 7.16.4-9
- create libcurl and libcurl-devel subpackages (#130251)
* Thu Oct 11 2007 Jindrich Novy <[email protected]> 7.16.4-8
- list features correctly when curl is compiled against NSS (#316191)
* Mon Sep 17 2007 Jindrich Novy <[email protected]> 7.16.4-7
- add zlib-devel BR to enable gzip compressed transfers in curl (#292211)
* Mon Sep 10 2007 Jindrich Novy <[email protected]> 7.16.4-6
- provide webclient (#225671)
* Thu Sep 6 2007 Jindrich Novy <[email protected]> 7.16.4-5
- add support for the NSS PKCS#11 pem reader so the command-line is the
same for both OpenSSL and NSS by Rob Crittenden ([email protected])
- switch to NSS again
* Mon Sep 3 2007 Jindrich Novy <[email protected]> 7.16.4-4
- revert back to use OpenSSL (#266021)
* Mon Aug 27 2007 Jindrich Novy <[email protected]> 7.16.4-3
- don't use openssl, use nss instead
* Fri Aug 10 2007 Jindrich Novy <[email protected]> 7.16.4-2
- fix anonymous ftp login (#251570), thanks to David Cantrell
* Wed Jul 11 2007 Jindrich Novy <[email protected]> 7.16.4-1
- update to 7.16.4
* Mon Jun 25 2007 Jindrich Novy <[email protected]> 7.16.3-1
- update to 7.16.3
- drop .print patch, applied upstream
- next series of merge review fixes by Paul Howarth
- remove aclocal stuff, no more needed
- simplify makefile arguments
- don't reference standard library paths in libcurl.pc
- include docs/CONTRIBUTE
* Mon Jun 18 2007 Jindrich Novy <[email protected]> 7.16.2-5
- don't print like crazy (#236981), backported from upstream CVS
* Fri Jun 15 2007 Jindrich Novy <[email protected]> 7.16.2-4
- another series of review fixes (#225671),
thanks to Paul Howarth
- check version of ldap library automatically
- don't use %%makeinstall and preserve timestamps
- drop useless patches
* Fri May 11 2007 Jindrich Novy <[email protected]> 7.16.2-3
- add automake BR to curl-devel to fix aclocal dir. ownership,
thanks to Patrice Dumas
* Thu May 10 2007 Jindrich Novy <[email protected]> 7.16.2-2
- package libcurl.m4 in curl-devel (#239664), thanks to Quy Tonthat
* Wed Apr 11 2007 Jindrich Novy <[email protected]> 7.16.2-1
- update to 7.16.2
* Mon Feb 19 2007 Jindrich Novy <[email protected]> 7.16.1-3
- don't create/ship static libraries (#225671)
* Mon Feb 5 2007 Jindrich Novy <[email protected]> 7.16.1-2
- merge review related spec fixes (#225671)
* Mon Jan 29 2007 Jindrich Novy <[email protected]> 7.16.1-1
- update to 7.16.1
* Tue Jan 16 2007 Jindrich Novy <[email protected]> 7.16.0-5
- don't package generated makefiles for docs/examples to avoid
multilib conflicts
* Mon Dec 18 2006 Jindrich Novy <[email protected]> 7.16.0-4
- convert spec to UTF-8
- don't delete BuildRoot in %%prep phase
- rpmlint fixes
* Thu Nov 16 2006 Jindrich Novy <[email protected]> -7.16.0-3
- prevent curl from dlopen()ing missing ldap libraries so that
ldap:// requests work (#215928)
* Tue Oct 31 2006 Jindrich Novy <[email protected]> - 7.16.0-2
- fix BuildRoot
- add Requires: pkgconfig for curl-devel
- move LDFLAGS and LIBS to Libs.private in libcurl.pc.in (#213278)
* Mon Oct 30 2006 Jindrich Novy <[email protected]> - 7.16.0-1
- update to curl-7.16.0
* Thu Aug 24 2006 Jindrich Novy <[email protected]> - 7.15.5-1.fc6
- update to curl-7.15.5
- use %%{?dist}
* Fri Jun 30 2006 Ivana Varekova <[email protected]> - 7.15.4-1
- update to 7.15.4
* Mon Mar 20 2006 Ivana Varekova <[email protected]> - 7.15.3-1
- fix multilib problem using pkg-config
- update to 7.15.3
* Thu Feb 23 2006 Ivana Varekova <[email protected]> - 7.15.1-2
- fix multilib problem - #181290 -
curl-devel.i386 not installable together with curl-devel.x86-64
* Fri Feb 10 2006 Jesse Keating <[email protected]> - 7.15.1-1.2.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <[email protected]> - 7.15.1-1.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
* Thu Dec 8 2005 Ivana Varekova <[email protected]> 7.15.1-1
- update to 7.15.1 (bug 175191)
* Wed Nov 30 2005 Ivana Varekova <[email protected]> 7.15.0-3
- fix curl-config bug 174556 - missing vernum value
* Wed Nov 9 2005 Ivana Varekova <[email protected]> 7.15.0-2
- rebuilt
* Tue Oct 18 2005 Ivana Varekova <[email protected]> 7.15.0-1
- update to 7.15.0
* Thu Oct 13 2005 Ivana Varekova <[email protected]> 7.14.1-1
- update to 7.14.1
* Thu Jun 16 2005 Ivana Varekova <[email protected]> 7.14.0-1
- rebuild new version
* Tue May 03 2005 Ivana Varekova <[email protected]> 7.13.1-3
- fix bug 150768 - curl-7.12.3-2 breaks basic authentication
used Daniel Stenberg patch
* Mon Apr 25 2005 Joe Orton <[email protected]> 7.13.1-2
- update to use ca-bundle in /etc/pki
- mark License as MIT not MPL
* Wed Mar 9 2005 Ivana Varekova <[email protected]> 7.13.1-1
- rebuilt (7.13.1)
* Tue Mar 1 2005 Tomas Mraz <[email protected]> 7.13.0-2
- rebuild with openssl-0.9.7e
* Sun Feb 13 2005 Florian La Roche <[email protected]>
- 7.13.0
* Wed Feb 9 2005 Joe Orton <[email protected]> 7.12.3-3
- don't pass /usr to --with-libidn to remove "-L/usr/lib" from
'curl-config --libs' output on x86_64.
* Fri Jan 28 2005 Adrian Havill <[email protected]> 7.12.3-1
- Upgrade to 7.12.3, which uses poll() for FDSETSIZE limit (#134794)
- require libidn-devel for devel subpkg (#141341)
- remove proftpd kludge; included upstream
* Wed Oct 06 2004 Adrian Havill <[email protected]> 7.12.1-1
- upgrade to 7.12.1
- enable GSSAPI auth (#129353)
- enable I18N domain names (#134595)
- workaround for broken ProFTPD SSL auth (#134133). Thanks to
Aleksandar Milivojevic
* Wed Sep 29 2004 Adrian Havill <[email protected]> 7.12.0-4
- move new docs position so defattr gets applied
* Mon Sep 27 2004 Warren Togami <[email protected]> 7.12.0-3
- remove INSTALL, move libcurl docs to -devel
* Mon Jul 26 2004 Jindrich Novy <[email protected]>
- updated to 7.12.0
- updated nousr patch
* Tue Jun 15 2004 Elliot Lee <[email protected]>
- rebuilt
* Wed Apr 07 2004 Adrian Havill <[email protected]> 7.11.1-1
- upgraded; updated nousr patch
- added COPYING (#115956)
-
* Tue Mar 02 2004 Elliot Lee <[email protected]>
- rebuilt
* Fri Feb 13 2004 Elliot Lee <[email protected]>
- rebuilt
* Sat Jan 31 2004 Florian La Roche <[email protected]>
- update to 7.10.8
- remove patch2, already upstream
* Wed Oct 15 2003 Adrian Havill <[email protected]> 7.10.6-7
- aclocal before libtoolize
- move OpenLDAP license so it's present as a doc file, present in
both the source and binary as per conditions
* Mon Oct 13 2003 Adrian Havill <[email protected]> 7.10.6-6
- add OpenLDAP copyright notice for usage of code, add OpenLDAP
license for this code
* Tue Oct 07 2003 Adrian Havill <[email protected]> 7.10.6-5
- match serverAltName certs with SSL (#106168)
* Tue Sep 16 2003 Adrian Havill <[email protected]> 7.10.6-4.1
- bump n-v-r for RHEL
* Tue Sep 16 2003 Adrian Havill <[email protected]> 7.10.6-4
- restore ca cert bundle (#104400)
- require openssl, we want to use its ca-cert bundle
* Sun Sep 7 2003 Joe Orton <[email protected]> 7.10.6-3
- rebuild
* Fri Sep 5 2003 Joe Orton <[email protected]> 7.10.6-2.2
- fix to include libcurl.so
* Mon Aug 25 2003 Adrian Havill <[email protected]> 7.10.6-2.1
- bump n-v-r for RHEL
* Mon Aug 25 2003 Adrian Havill <[email protected]> 7.10.6-2
- devel subpkg needs openssl-devel as a Require (#102963)
* Mon Jul 28 2003 Adrian Havill <[email protected]> 7.10.6-1
- bumped version
* Tue Jul 01 2003 Adrian Havill <[email protected]> 7.10.5-1
- bumped version
* Wed Jun 04 2003 Elliot Lee <[email protected]>
- rebuilt
* Sat Apr 12 2003 Florian La Roche <[email protected]>
- update to 7.10.4
- adapt nousr patch
* Wed Jan 22 2003 Tim Powers <[email protected]>
- rebuilt
* Tue Jan 21 2003 Joe Orton <[email protected]> 7.9.8-4
- don't add -L/usr/lib to 'curl-config --libs' output
* Tue Jan 7 2003 Nalin Dahyabhai <[email protected]> 7.9.8-3
- rebuild
* Wed Nov 6 2002 Joe Orton <[email protected]> 7.9.8-2
- fix `curl-config --libs` output for libdir!=/usr/lib
- remove docs/LIBCURL from docs list; remove unpackaged libcurl.la
- libtoolize and reconf
* Mon Jul 22 2002 Trond Eivind Glomsrød <[email protected]> 7.9.8-1
- 7.9.8 (# 69473)
* Fri Jun 21 2002 Tim Powers <[email protected]>
- automated rebuild
* Sun May 26 2002 Tim Powers <[email protected]>
- automated rebuild
* Thu May 16 2002 Trond Eivind Glomsrød <[email protected]> 7.9.7-1
- 7.9.7
* Wed Apr 24 2002 Trond Eivind Glomsrød <[email protected]> 7.9.6-1
- 7.9.6
* Thu Mar 21 2002 Trond Eivind Glomsrød <[email protected]> 7.9.5-2
- Stop the curl-config script from printing -I/usr/include
and -L/usr/lib (#59497)
* Fri Mar 8 2002 Trond Eivind Glomsrød <[email protected]> 7.9.5-1
- 7.9.5
* Tue Feb 26 2002 Trond Eivind Glomsrød <[email protected]> 7.9.3-2
- Rebuild
* Wed Jan 23 2002 Nalin Dahyabhai <[email protected]> 7.9.3-1
- update to 7.9.3
* Wed Jan 09 2002 Tim Powers <[email protected]> 7.9.2-2
- automated rebuild
* Wed Jan 9 2002 Trond Eivind Glomsrød <[email protected]> 7.9.2-1
- 7.9.2
* Fri Aug 17 2001 Nalin Dahyabhai <[email protected]>
- include curl-config in curl-devel
- update to 7.8 to fix memory leak and strlcat() symbol pollution from libcurl
* Wed Jul 18 2001 Crutcher Dunnavant <[email protected]>
- added openssl-devel build req
* Mon May 21 2001 Tim Powers <[email protected]>
- built for the distro
* Tue Apr 24 2001 Jeff Johnson <[email protected]>
- upgrade to curl-7.7.2.
- enable IPv6.
* Fri Mar 2 2001 Tim Powers <[email protected]>
- rebuilt against openssl-0.9.6-1
* Thu Jan 4 2001 Tim Powers <[email protected]>
- fixed mising ldconfigs
- updated to 7.5.2, bug fixes
* Mon Dec 11 2000 Tim Powers <[email protected]>
- updated to 7.5.1
* Mon Nov 6 2000 Tim Powers <[email protected]>
- update to 7.4.1 to fix bug #20337, problems with curl -c
- not using patch anymore, it's included in the new source. Keeping
for reference
* Fri Oct 20 2000 Nalin Dahyabhai <[email protected]>
- fix bogus req in -devel package
* Fri Oct 20 2000 Tim Powers <[email protected]>
- devel package needed defattr so that root owns the files
* Mon Oct 16 2000 Nalin Dahyabhai <[email protected]>
- update to 7.3
- apply vsprintf/vsnprintf patch from Colin Phipps via Debian
* Mon Aug 21 2000 Nalin Dahyabhai <[email protected]>
- enable SSL support
- fix packager tag
- move buildroot to %%{_tmppath}
* Tue Aug 1 2000 Tim Powers <[email protected]>
- fixed vendor tag for bug #15028
* Mon Jul 24 2000 Prospector <[email protected]>
- rebuilt
* Tue Jul 11 2000 Tim Powers <[email protected]>
- workaround alpha build problems with optimizations
* Mon Jul 10 2000 Tim Powers <[email protected]>
- rebuilt
* Mon Jun 5 2000 Tim Powers <[email protected]>
- put man pages in correct place
- use %%makeinstall
* Mon Apr 24 2000 Tim Powers <[email protected]>
- updated to 6.5.2
* Wed Nov 3 1999 Tim Powers <[email protected]>
- updated sources to 6.2
- gzip man page
* Mon Aug 30 1999 Tim Powers <[email protected]>
- changed group
* Thu Aug 26 1999 Tim Powers <[email protected]>
- changelog started
- general cleanups, changed prefix to /usr, added manpage to files section
- including in Powertools
#!/bin/sh
#
# chkconfig: - 86 14
# description: Zabbix agent daemon
# processname: zabbix_agentd
# config: /etc/zabbix/zabbix_agentd.conf
#
### BEGIN INIT INFO
# Provides: zabbix-agent
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start: zabbix zabbix-proxy
# Should-Stop: zabbix zabbix-proxy
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Start and stop Zabbix agent
# Description: Zabbix agent
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
if [ -x /usr/local/sbin/zabbix_agentd ]; then
exec=/usr/local/sbin/zabbix_agentd
else
exit 5
fi
prog=${exec##*/}
conf=/etc/zabbix/zabbix_agentd.conf
pidfile=$(grep -e "^PidFile=.*$" $conf | cut -d= -f2)
timeout=10
if [ -f /etc/sysconfig/zabbix-agent ]; then
. /etc/sysconfig/zabbix-agent
fi
lockfile=/var/lock/subsys/zabbix-agent
start()
{
echo -n $"Starting Zabbix agent: "
daemon $exec -c $conf
rv=$?
echo
[ $rv -eq 0 ] && touch $lockfile
return $rv
}
stop()
{
echo -n $"Shutting down Zabbix agent: "
killproc -p $pidfile -d $timeout $prog
rv=$?
echo
[ $rv -eq 0 ] && rm -f $lockfile
return $rv
}
restart()
{
stop
start
}
case "$1" in
start|stop|restart)
$1
;;
force-reload)
restart
;;
status)
status -p $pidfile $prog
;;
try-restart|condrestart)
if status $prog >/dev/null ; then
restart
fi
;;
reload)
action $"Service ${0##*/} does not support the reload action: " /bin/false
exit 3
;;
*)
echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
exit 2
;;
esac
#! /bin/sh
#
# chkconfig: - 85 15
# description: zabbix java gateway
#
### BEGIN INIT INFO
# Provides: zabbix
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start and stop zabbix java gateway
# Description: Zabbix Java Gateway
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Source Zabbix Java Gateway configuration
. /etc/zabbix/zabbix_java_gateway.conf
if [ -r "/etc/sysconfig/zabbix-java-gateway" ]; then
. /etc/sysconfig/zabbix-java-gateway
fi
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
RETVAL=0
EXECDIR=/usr/local/sbin/zabbix_java
case "$1" in
start)
echo -n "Starting zabbix java gateway: "
if [ -n "$PID_FILE" -a -e "$PID_FILE" ]; then
echo "zabbix java gateway is already running"
exit 1
fi
JAVA=${JAVA:-java}
JAVA_OPTIONS="-server $JAVA_OPTIONS"
if [ -z "$PID_FILE" ]; then
JAVA_OPTIONS="$JAVA_OPTIONS -Dlogback.configurationFile=logback-console.xml"
fi
cd $EXECDIR
CLASSPATH="lib"
for jar in {lib,bin}/*.jar; do
if [[ $jar != *junit* ]]; then
CLASSPATH="$CLASSPATH:$jar"
fi
done
ZABBIX_OPTIONS=""
if [ -n "$PID_FILE" ]; then
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.pidFile=$PID_FILE"
fi
if [ -n "$LISTEN_IP" ]; then
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.listenIP=$LISTEN_IP"
fi
if [ -n "$LISTEN_PORT" ]; then
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.listenPort=$LISTEN_PORT"
fi
if [ -n "$START_POLLERS" ]; then
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.startPollers=$START_POLLERS"
fi
COMMAND_LINE="$JAVA $JAVA_OPTIONS -classpath $CLASSPATH $ZABBIX_OPTIONS com.zabbix.gateway.JavaGateway"
if [ -n "$PID_FILE" ]; then
PID=$(su -s /bin/bash -c "$COMMAND_LINE > /dev/null 2>&1 & echo \$!" zabbix)
if ps -p $PID > /dev/null 2>&1; then
echo $PID > $PID_FILE
else
echo "zabbix java gateway did not start"
exit 1
fi
else
exec $COMMAND_LINE
RETVAL=$?
fi
;;
stop)
echo -n "Shutting down zabbix java gateway: "
if [ -n "$PID_FILE" ]; then
if [ -e "$PID_FILE" ]; then
kill `cat $PID_FILE` && rm $PID_FILE
else
echo "zabbix java gateway is not running"
exit 1
fi
else
echo "zabbix java gateway is not configured as a daemon: variable \$PID_FILE is not set"
exit 1
fi
;;
restart)
$0 stop
$0 start
RETVAL=$?
;;
condrestart)
if [ -n "$PID_FILE" -a -e "$PID_FILE" ]; then
$0 stop
$0 start
fi
RETVAL=$?
;;
status)
status -p $PID_FILE $0
RETVAL=$?
exit $RETVAL
;;
*)
echo "Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
;;
esac
[ "$RETVAL" -eq 0 ] && success $"$base startup" || failure $"$base startup"
echo
exit $RETVAL
%define _prefix /usr/local
%define _exec_prefix %{_prefix}
%define _datadir %{_prefix}/share
%define _libdir %{_exec_prefix}/lib64
%define _mandir %{_datadir}/man
%define _docdir %{_datadir}/doc
%define dist .el6.local
Name: zabbix
Version: 3.0.1
Release: 1%{?alphatag:.%{alphatag}}%{?dist}
Summary: The Enterprise-class open source monitoring solution
Group: Applications/Internet
License: GPLv2+
URL: http://www.zabbix.com/
Source0: zabbix-%{version}%{?alphatag:%{alphatag}}.tar.gz
Source1: zabbix-web22.local.conf
Source2: zabbix-web24.local.conf
Source3: zabbix-logrotate.in
Source4: zabbix-java-gateway.local.init
Source5: zabbix-agent.local.init
Source6: zabbix-server.local.init
Source7: zabbix-proxy.local.init
Source10: zabbix-agent.service
Source11: zabbix-server.service
Source12: zabbix-proxy.service
Source13: zabbix-java-gateway.service
Source14: zabbix_java_gateway-sysd
Source15: zabbix-tmpfiles.conf
Patch0: config.patch
Patch1: fonts-config.patch
Patch2: fping3-sourceip-option.patch
Buildroot: %{_tmppath}/zabbix-%{version}-%{release}-root-%(%{__id_u} -n)
%if 0%{?rhel} >=7
%define build_server 1
%endif
%if 0%{?rhel} >=6
%define build_server 1
%endif
BuildRequires: mysql-devel
BuildRequires: postgresql-devel
BuildRequires: net-snmp-devel
BuildRequires: openldap-devel
BuildRequires: gnutls-devel
BuildRequires: sqlite-devel
BuildRequires: unixODBC-devel
BuildRequires: curl-devel >= 7.13.1
BuildRequires: OpenIPMI-devel >= 2
BuildRequires: libssh2-devel >= 1.0.0
BuildRequires: java-devel >= 1.6.0
BuildRequires: libxml2-devel
%if 0%{?rhel} >= 6
BuildRequires: openssl-devel >= 1.0.1
%endif
%if 0%{?rhel} >= 7
BuildRequires: systemd
%endif
%if 0%{?build_server}
BuildRequires: iksemel-devel
%endif
%description
Zabbix is the ultimate enterprise-level software designed for
real-time monitoring of millions of metrics collected from tens of
thousands of servers, virtual machines and network devices.
%package agent
Summary: Zabbix Agent
Group: Applications/Internet
Requires: logrotate
Requires(pre): /usr/sbin/useradd
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(preun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Obsoletes: zabbix
%description agent
Zabbix agent to be installed on monitored systems.
%package get
Summary: Zabbix Get
Group: Applications/Internet
%description get
Zabbix get command line utility
%package sender
Summary: Zabbix Sender
Group: Applications/Internet
%description sender
Zabbix sender command line utility
%package proxy-mysql
Summary: Zabbix proxy for MySQL or MariaDB database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-proxy = %{version}-%{release}
Provides: zabbix-proxy-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-proxy
%description proxy-mysql
Zabbix proxy with MySQL or MariaDB database support.
%package proxy-pgsql
Summary: Zabbix proxy for PostgreSQL database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-proxy = %{version}-%{release}
Provides: zabbix-proxy-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-proxy
%description proxy-pgsql
Zabbix proxy with PostgreSQL database support.
%package proxy-sqlite3
Summary: Zabbix proxy for SQLite3 database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-proxy = %{version}-%{release}
Provides: zabbix-proxy-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-proxy
%description proxy-sqlite3
Zabbix proxy with SQLite3 database support.
%package java-gateway
Summary: Zabbix java gateway
Group: Applications/Internet
%if 0%{?rhel} >= 7
Requires: java-headless >= 1.6.0
%else
Requires: java >= 1.6.0
%endif
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Obsoletes: zabbix
%description java-gateway
Zabbix java gateway
%if 0%{?build_server}
%package server-mysql
Summary: Zabbix server for MySQL or MariaDB database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-server = %{version}-%{release}
Provides: zabbix-server-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-server
%description server-mysql
Zabbix server with MySQL or MariaDB database support.
%package server-pgsql
Summary: Zabbix server for PostgresSQL database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-server = %{version}-%{release}
Provides: zabbix-server-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-server
%description server-pgsql
Zabbix server with PostgresSQL database support.
%package web
Summary: Zabbix web frontend common package
Group: Application/Internet
BuildArch: noarch
Requires: httpd
Requires: php >= 5.4
Requires: php-gd
Requires: php-bcmath
Requires: php-mbstring
Requires: php-xml
Requires: php-ldap
Requires: dejavu-sans-fonts
Requires: zabbix-web-database = %{version}-%{release}
Requires(post): /usr/sbin/update-alternatives
Requires(preun): /usr/sbin/update-alternatives
%description web
Zabbix web frontend common package
%package web-mysql
Summary: Zabbix web frontend for MySQL
Group: Applications/Internet
BuildArch: noarch
Requires: php-mysql
Requires: zabbix-web = %{version}-%{release}
Provides: zabbix-web-database = %{version}-%{release}
%description web-mysql
Zabbix web frontend for MySQL
%package web-pgsql
Summary: Zabbix web frontend for PostgreSQL
Group: Applications/Internet
BuildArch: noarch
Requires: php-pgsql
Requires: zabbix-web = %{version}-%{release}
Provides: zabbix-web-database = %{version}-%{release}
%description web-pgsql
Zabbix web frontend for PostgreSQL
%package web-japanese
Summary: Japanese font settings for frontend
Group: Applications/Internet
BuildArch: noarch
Requires: vlgothic-p-fonts
Requires: zabbix-web = %{version}-%{release}
Requires(post): /usr/sbin/update-alternatives
Requires(preun): /usr/sbin/update-alternatives
%description web-japanese
Japanese font configuration for Zabbix web frontend
%endif
%prep
%setup0 -q -n zabbix-%{version}%{?alphatag:%{alphatag}}
%patch0 -p1
%patch1 -p1
%if 0%{?rhel} >= 7
%patch2 -p1
%endif
## remove font file
rm -f frontends/php/fonts/DejaVuSans.ttf
# remove .htaccess files
rm -f frontends/php/app/.htaccess
rm -f frontends/php/conf/.htaccess
rm -f frontends/php/include/.htaccess
rm -f frontends/php/local/.htaccess
# remove translation source files and scripts
find frontend/php/locale -name '*.po' | xargs rm -f
find frontend/php/locale -name '*.sh' | xargs rm -f
# traceroute command path for global script
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/mysql/data.sql
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/postgresql/data.sql
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/sqlite3/data.sql
# change log directory for Java Gateway
sed -i -e 's|/tmp/zabbix_java.log|/var/log/zabbix/zabbix_java_gateway.log|g' src/zabbix_java/lib/logback.xml
%build
CPPFLAGS='-I/usr/local/include'
export CPPFLAGS
LDFLAGS='-L/usr/local/lib64 -Wl,-rpath,/usr/local/lib64'
export LDFLAGS
build_flags="
--prefix=/usr/local
--enable-dependency-tracking
--sysconfdir=/etc/zabbix
--libdir=%{_libdir}/zabbix
--enable-agent
--enable-proxy
--enable-ipv6
--enable-java
--with-net-snmp
--with-ldap
--with-libcurl
--with-openipmi
--with-unixodbc
--with-ssh2
--with-libxml2
"
%if 0%{?rhel} >=6
build_flags="$build_flags --with-openssl"
%endif
%if 0%{?build_server}
build_flags="$build_flags --enable-server --with-jabber"
%endif
%configure $build_flags --with-mysql
make %{?_smp_mflags}
%if 0%{?build_server}
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_mysql
%endif
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql
%configure $build_flags --with-postgresql
make %{?_smp_mflags}
%if 0%{?build_server}
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql
%endif
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_pgsql
%configure $build_flags --with-sqlite3
make %{?_smp_mflags}
%if 0%{?build_server}
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_sqlite3
%endif
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3
%if 0%{?build_server}
touch src/zabbix_server/zabbix_server
%endif
touch src/zabbix_proxy/zabbix_proxy
%install
rm -rf $RPM_BUILD_ROOT
# install
make DESTDIR=$RPM_BUILD_ROOT install
# install necessary directories
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/zabbix
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/zabbix
# install server and proxy binaries
%if 0%{?build_server}
rm src/zabbix_server/zabbix_server_sqlite3
install -m 0755 -p src/zabbix_server/zabbix_server_* $RPM_BUILD_ROOT%{_sbindir}/
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_server
%endif
install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* $RPM_BUILD_ROOT%{_sbindir}/
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy
# delete unnecessary files from java gateway
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/settings.sh
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/startup.sh
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/shutdown.sh
# install scripts and modules directories
mkdir -p $RPM_BUILD_ROOT/usr/lib/zabbix
%if 0%{?build_server}
mv $RPM_BUILD_ROOT%{_datadir}/zabbix/alertscripts $RPM_BUILD_ROOT/usr/lib/zabbix
%endif
mv $RPM_BUILD_ROOT%{_datadir}/zabbix/externalscripts $RPM_BUILD_ROOT/usr/lib/zabbix
mkdir $RPM_BUILD_ROOT%{_libdir}/zabbix/modules
%if 0%{?rhel} >=7
mv $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/lib/logback.xml $RPM_BUILD_ROOT/%{_sysconfdir}/zabbix/zabbix_java_gateway_logback.xml
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/lib/logback-console.xml
mv $RPM_BUILD_ROOT%{_sbindir}/zabbix_java $RPM_BUILD_ROOT/%{_datadir}/zabbix-java-gateway
install -m 0755 -p %{SOURCE14} $RPM_BUILD_ROOT%{_sbindir}/zabbix_java_gateway
%endif
%if 0%{?build_server}
# install frontend files
find frontends/php -name '*.orig' | xargs rm -f
cp -a frontends/php/* $RPM_BUILD_ROOT%{_datadir}/zabbix
# install frontend configuration files
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web
touch $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web/zabbix.conf.php
mv $RPM_BUILD_ROOT%{_datadir}/zabbix/conf/maintenance.inc.php $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web/
# drop config files in place
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
%if 0%{?rhel} >= 7
install -m 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zabbix.conf
%else
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zabbix.conf
%endif
%endif
# install configuration files
mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.d
mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.d
%if 0%{?build_server}
mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.d
%endif
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/zabbix-agent-%{version}
install -m 0644 conf/zabbix_agentd/userparameter_mysql.conf $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.d
install -m 0644 conf/zabbix_agentd/userparameter_examples.conf $RPM_BUILD_ROOT%{_docdir}/zabbix-agent-%{version}
cat conf/zabbix_agentd.conf | sed \
-e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_agentd.pid' \
-e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|g' \
-e '/^# LogFileSize=.*/a \\nLogFileSize=0' \
-e '/^# Include=$/a \\nInclude=%{_sysconfdir}/zabbix/zabbix_agentd.d/' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf
%if 0%{?build_server}
cat conf/zabbix_server.conf | sed \
-e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_server.pid' \
-e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_server.log|g' \
-e '/^# LogFileSize=/a \\nLogFileSize=0' \
-e '/^# AlertScriptsPath=/a \\nAlertScriptsPath=/usr/lib/zabbix/alertscripts' \
-e '/^# ExternalScripts=/a \\nExternalScripts=/usr/lib/zabbix/externalscripts' \
-e 's|^DBUser=root|DBUser=zabbix|g' \
-e '/^# SNMPTrapperFile=.*/a \\nSNMPTrapperFile=/var/log/snmptrap/snmptrap.log' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.conf
%endif
cat conf/zabbix_proxy.conf | sed \
-e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_proxy.pid' \
-e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_proxy.log|g' \
-e '/^# LogFileSize=/a \\nLogFileSize=0' \
-e '/^# ExternalScripts=/a \\nExternalScripts=/usr/lib/zabbix/externalscripts' \
-e 's|^DBUser=root|DBUser=zabbix|g' \
-e '/^# SNMPTrapperFile=.*/a \\nSNMPTrapperFile=/var/log/snmptrap/snmptrap.log' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.conf
cat src/zabbix_java/settings.sh | sed \
-e 's|^PID_FILE=.*|PID_FILE="/var/run/zabbix/zabbix_java.pid"|g' \
-e '/^# TIMEOUT=/a \\nTIMEOUT=3' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_java_gateway.conf
# install logrotate configuration files
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
%if 0%{?build_server}
cat %{SOURCE3} | sed \
-e 's|COMPONENT|server|g' \
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-server
%endif
cat %{SOURCE3} | sed \
-e 's|COMPONENT|agentd|g' \
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-agent
cat %{SOURCE3} | sed \
-e 's|COMPONENT|proxy|g' \
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-proxy
# install startup scripts
%if 0%{?rhel} >= 7
install -Dm 0644 -p %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/zabbix-agent.service
%if 0%{?build_server}
install -Dm 0644 -p %{SOURCE11} $RPM_BUILD_ROOT%{_unitdir}/zabbix-server.service
%endif
install -Dm 0644 -p %{SOURCE12} $RPM_BUILD_ROOT%{_unitdir}/zabbix-proxy.service
install -Dm 0644 -p %{SOURCE13} $RPM_BUILD_ROOT%{_unitdir}/zabbix-java-gateway.service
%else
install -Dm 0755 -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-java-gateway
install -Dm 0755 -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-agent
%if 0%{?build_server}
install -Dm 0755 -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-server
%endif
install -Dm 0755 -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-proxy
%endif
# install systemd-tmpfiles conf
%if 0%{?rhel} >= 7
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-agent.conf
%if 0%{?build_server}
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-server.conf
%endif
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-java-gateway.conf
%endif
%if 0%{?build_server}
# copy sql files for servers
docdir=zabbix-server-mysql-%{version}
mkdir $docdir
cat database/mysql/schema.sql > $docdir/create.sql
cat database/mysql/images.sql >> $docdir/create.sql
cat database/mysql/data.sql >> $docdir/create.sql
gzip $docdir/create.sql
docdir=zabbix-server-pgsql-%{version}
mkdir $docdir
cat database/postgresql/schema.sql > $docdir/create.sql
cat database/postgresql/images.sql >> $docdir/create.sql
cat database/postgresql/data.sql >> $docdir/create.sql
gzip $docdir/create.sql
%endif
# copy sql files for proxyes
docdir=zabbix-proxy-mysql-%{version}
mkdir $docdir
cp database/mysql/schema.sql $docdir/schema.sql
gzip $docdir/schema.sql
docdir=zabbix-proxy-pgsql-%{version}
mkdir $docdir
cp database/postgresql/schema.sql $docdir/schema.sql
gzip $docdir/schema.sql
docdir=zabbix-proxy-sqlite3-%{version}
mkdir $docdir
cp database/sqlite3/schema.sql $docdir/schema.sql
gzip $docdir/schema.sql
%clean
rm -rf zabbix-server-mysql-%{version}
rm -rf zabbix-server-pgsql-%{version}
rm -rf zabbix-proxy-mysql-%{version}
rm -rf zabbix-proxy-pgsql-%{version}
rm -rf zabbix-proxy-sqlite3-%{version}
rm -rf $RPM_BUILD_ROOT
%pre agent
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%post agent
%if 0%{?rhel} >= 7
%systemd_post zabbix-agent.service
%else
/sbin/chkconfig --add zabbix-agent || :
%endif
%pre proxy-mysql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre proxy-pgsql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre proxy-sqlite3
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre java-gateway
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%if 0%{?build_server}
%pre server-mysql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre server-pgsql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%endif
%post proxy-mysql
%if 0%{?rhel} >= 7
%systemd_post zabbix-proxy.service
%else
/sbin/chkconfig --add zabbix-proxy
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
zabbix-proxy %{_sbindir}/zabbix_proxy_mysql 10
:
%post proxy-pgsql
%if 0%{?rhel} >= 7
%systemd_post zabbix-proxy.service
%else
/sbin/chkconfig --add zabbix-proxy
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
zabbix-proxy %{_sbindir}/zabbix_proxy_pgsql 10
:
%post proxy-sqlite3
%if 0%{?rhel} >= 7
%systemd_post zabbix-proxy.service
%else
/sbin/chkconfig --add zabbix-proxy
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
zabbix-proxy %{_sbindir}/zabbix_proxy_sqlite3 10
:
%post java-gateway
%if 0%{?rhel} >= 7
%systemd_post zabbix-java-gateway.service
%else
/sbin/chkconfig --add zabbix-java-gateway
%endif
:
%if 0%{?build_server}
%post server-mysql
%if 0%{?rhel} >= 7
%systemd_post zabbix-server.service
%else
/sbin/chkconfig --add zabbix-server
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_server \
zabbix-server %{_sbindir}/zabbix_server_mysql 10
:
%post server-pgsql
%if 0%{?rhel} >= 7
%systemd_post zabbix-server.service
%else
/sbin/chkconfig --add zabbix-server
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_server \
zabbix-server %{_sbindir}/zabbix_server_pgsql 10
:
%post web
/usr/sbin/update-alternatives --install %{_datadir}/zabbix/fonts/graphfont.ttf \
zabbix-web-font %{_datadir}/fonts/dejavu/DejaVuSans.ttf 10
:
%post web-japanese
/usr/sbin/update-alternatives --install %{_datadir}/zabbix/fonts/graphfont.ttf \
zabbix-web-font %{_datadir}/fonts/vlgothic/VL-PGothic-Regular.ttf 20
:
%endif
%preun agent
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-agent.service
%else
/sbin/service zabbix-agent stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-agent
%endif
fi
:
%preun proxy-mysql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-proxy.service
%else
/sbin/service zabbix-proxy stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-proxy
%endif
/usr/sbin/update-alternatives --remove zabbix-proxy \
%{_sbindir}/zabbix_proxy_mysql
fi
:
%preun proxy-pgsql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-proxy.service
%else
/sbin/service zabbix-proxy stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-proxy
%endif
/usr/sbin/update-alternatives --remove zabbix-proxy \
%{_sbindir}/zabbix_proxy_pgsql
fi
:
%preun proxy-sqlite3
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-proxy.service
%else
/sbin/service zabbix-proxy stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-proxy
%endif
/usr/sbin/update-alternatives --remove zabbix-proxy \
%{_sbindir}/zabbix_proxy_sqlite3
fi
:
%preun java-gateway
if [ $1 -eq 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-java-gateway.service
%else
/sbin/service zabbix-java-gateway stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-java-gateway
%endif
fi
:
%if 0%{?build_server}
%preun server-mysql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-server.service
%else
/sbin/service zabbix-server stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-server
%endif
/usr/sbin/update-alternatives --remove zabbix-server \
%{_sbindir}/zabbix_server_mysql
fi
:
%preun server-pgsql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-server.service
%else
/sbin/service zabbix-server stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-server
%endif
/usr/sbin/update-alternatives --remove zabbix-server \
%{_sbindir}/zabbix_server_pgsql
fi
:
%preun web
if [ "$1" = 0 ]; then
/usr/sbin/update-alternatives --remove zabbix-web-font \
%{_datadir}/fonts/dejavu/DejaVuSans.ttf
fi
:
%preun web-japanese
if [ "$1" = 0 ]; then
/usr/sbin/update-alternatives --remove zabbix-web-font \
%{_datadir}/fonts/vlgothic/VL-PGothic-Regular.ttf
fi
:
%endif
%postun agent
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-agent.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-agent try-restart >/dev/null 2>&1 || :
fi
%endif
%postun proxy-mysql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-proxy.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
fi
%endif
%postun proxy-pgsql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-proxy.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
fi
%endif
%postun proxy-sqlite3
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-proxy.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
fi
%endif
%postun java-gateway
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-java-gateway.service
%else
if [ $1 -gt 1 ]; then
/sbin/service zabbix-java-gateway condrestart >/dev/null 2>&1 || :
fi
%endif
%if 0%{?build_server}
%postun server-mysql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-server.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-server try-restart >/dev/null 2>&1 || :
fi
%endif
%postun server-pgsql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-server.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-server try-restart >/dev/null 2>&1 || :
fi
%endif
%endif
%files agent
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent
%dir %{_sysconfdir}/zabbix/zabbix_agentd.d
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.d/userparameter_mysql.conf
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_sbindir}/zabbix_agentd
%{_mandir}/man8/zabbix_agentd.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-agent.service
%{_prefix}/lib/tmpfiles.d/zabbix-agent.conf
%else
%{_sysconfdir}/init.d/zabbix-agent
%endif
%files get
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/zabbix_get
%{_mandir}/man1/zabbix_get.1*
%files sender
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/zabbix_sender
%{_mandir}/man1/zabbix_sender.1*
%files proxy-mysql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-proxy-mysql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_proxy.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-proxy.service
%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
%else
%{_sysconfdir}/init.d/zabbix-proxy
%endif
%{_sbindir}/zabbix_proxy_mysql
%files proxy-pgsql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-proxy-pgsql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_proxy.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-proxy.service
%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
%else
%{_sysconfdir}/init.d/zabbix-proxy
%endif
%{_sbindir}/zabbix_proxy_pgsql
%files proxy-sqlite3
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-proxy-sqlite3-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_proxy.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-proxy.service
%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
%else
%{_sysconfdir}/init.d/zabbix-proxy
%endif
%{_sbindir}/zabbix_proxy_sqlite3
%files java-gateway
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_java_gateway.conf
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%if 0%{?rhel} >= 7
%{_datadir}/zabbix-java-gateway
%{_sbindir}/zabbix_java_gateway
%{_unitdir}/zabbix-java-gateway.service
%{_prefix}/lib/tmpfiles.d/zabbix-java-gateway.conf
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_java_gateway_logback.xml
%else
%{_sbindir}/zabbix_java
%{_sysconfdir}/init.d/zabbix-java-gateway
%endif
%if 0%{?build_server}
%files server-mysql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-server-mysql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf
%dir /usr/lib/zabbix/alertscripts
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_server.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-server.service
%{_prefix}/lib/tmpfiles.d/zabbix-server.conf
%else
%{_sysconfdir}/init.d/zabbix-server
%endif
%{_sbindir}/zabbix_server_mysql
%files server-pgsql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-server-pgsql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf
%dir /usr/lib/zabbix/alertscripts
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_server.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-server.service
%{_prefix}/lib/tmpfiles.d/zabbix-server.conf
%else
%{_sysconfdir}/init.d/zabbix-server
%endif
%{_sbindir}/zabbix_server_pgsql
%files web
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %attr(0750,apache,apache) %{_sysconfdir}/zabbix/web
%ghost %attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/zabbix/web/zabbix.conf.php
%config(noreplace) %{_sysconfdir}/zabbix/web/maintenance.inc.php
%config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf
%{_datadir}/zabbix
%files web-mysql
%defattr(-,root,root,-)
%files web-pgsql
%defattr(-,root,root,-)
%files web-japanese
%defattr(-,root,root,-)
%endif
%changelog
* Sun Feb 28 2016 Kodai Terashima <[email protected]> - 3.0.1-1
- update to 3.0.1
- remove DBSocker parameter
* Sat Feb 20 2016 Kodai Terashima <[email protected]> - 3.0.0-2
- agent, proxy and java-gateway for RHEL 5 and 6
* Mon Feb 15 2016 Kodai Terashima <[email protected]> - 3.0.0-1
- update to 3.0.0
* Thu Feb 11 2016 Kodai Terashima <[email protected]> - 3.0.0rc2
- update to 3.0.0rc2
- add TIMEOUT parameter for java gateway conf
* Thu Feb 04 2016 Kodai Terashima <[email protected]> - 3.0.0rc1
- update to 3.0.0rc1
* Sat Jan 30 2016 Kodai Terashima <[email protected]> - 3.0.0beta2
- update to 3.0.0beta2
* Thu Jan 21 2016 Kodai Terashima <[email protected]> - 3.0.0beta1
- update to 3.0.0beta1
* Thu Jan 14 2016 Kodai Terashima <[email protected]> - 3.0.0alpha6
- update to 3.0.0alpla6
- remove zabbix_agent conf and binary
* Wed Jan 13 2016 Kodai Terashima <[email protected]> - 3.0.0alpha5
- update to 3.0.0alpha5
* Fri Nov 13 2015 Kodai Terashima <[email protected]> - 3.0.0alpha4-1
- update to 3.0.0alpha4
* Thu Oct 29 2015 Kodai Terashima <[email protected]> - 3.0.0alpha3-2
- fix web-pgsql package dependency
- add --with-openssl option
* Mon Oct 19 2015 Kodai Terashima <[email protected]> - 3.0.0alpha3-1
- update to 3.0.0alpha3
* Tue Sep 29 2015 Kodai Terashima <[email protected]> - 3.0.0alpha2-3
- add IfModule for mod_php5 in apache configuration file
- fix missing proxy_mysql alternatives symlink
- chagne snmptrap log filename
- remove include dir from server and proxy conf
* Fri Sep 18 2015 Kodai Terashima <[email protected]> - 3.0.0alpha2-2
- fix create.sql doesn't contain schema.sql & images.sql
* Tue Sep 15 2015 Kodai Terashima <[email protected]> - 3.0.0alpha2-1
- update to 3.0.0alpha2
* Sat Aug 22 2015 Kodai Terashima <[email protected]> - 2.5.0-1
- create spec file from scratch
- update to 2.5.0
#!/bin/sh
#
# chkconfig: - 85 15
# description: Zabbix proxy daemon
# config: /etc/zabbix/zabbix_proxy.conf
#
### BEGIN INIT INFO
# Provides: zabbix-proxy
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Start and stop Zabbix proxy
# Description: Zabbix proxy
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
if [ -x /usr/local/sbin/zabbix_proxy ]; then
exec=/usr/local/sbin/zabbix_proxy
else
exit 5
fi
prog=${exec##*/}
conf=/etc/zabbix/zabbix_proxy.conf
pidfile=$(grep -e "^PidFile=.*$" $conf | cut -d= -f2)
timeout=10
if [ -f /etc/sysconfig/zabbix-proxy ]; then
. /etc/sysconfig/zabbix-proxy
fi
lockfile=/var/lock/subsys/zabbix-proxy
start()
{
echo -n $"Starting Zabbix proxy: "
daemon $exec -c $conf
rv=$?
echo
[ $rv -eq 0 ] && touch $lockfile
return $rv
}
stop()
{
echo -n $"Shutting down Zabbix proxy: "
killproc -p $pidfile -d $timeout $prog
rv=$?
echo
[ $rv -eq 0 ] && rm -f $lockfile
return $rv
}
restart()
{
stop
start
}
case "$1" in
start|stop|restart)
$1
;;
force-reload)
restart
;;
status)
status -p $pidfile $prog
;;
try-restart|condrestart)
if status $prog >/dev/null ; then
restart
fi
;;
reload)
action $"Service ${0##*/} does not support the reload action: " /bin/false
exit 3
;;
*)
echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
exit 2
;;
esac
#!/bin/sh
#
# chkconfig: - 85 15
# description: Zabbix server daemon
# config: /etc/zabbix/zabbix_server.conf
#
### BEGIN INIT INFO
# Provides: zabbix
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Start and stop Zabbix server
# Description: Zabbix server
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
if [ -x /usr/local/sbin/zabbix_server ]; then
exec=/usr/local/sbin/zabbix_server
else
exit 5
fi
prog=${exec##*/}
conf=/etc/zabbix/zabbix_server.conf
pidfile=$(grep -e "^PidFile=.*$" $conf | cut -d= -f2)
timeout=10
if [ -f /etc/sysconfig/zabbix-server ]; then
. /etc/sysconfig/zabbix-server
fi
lockfile=/var/lock/subsys/zabbix-server
start()
{
echo -n $"Starting Zabbix server: "
daemon $exec -c $conf
rv=$?
echo
[ $rv -eq 0 ] && touch $lockfile
return $rv
}
stop()
{
echo -n $"Shutting down Zabbix server: "
killproc -p $pidfile -d $timeout $prog
rv=$?
echo
[ $rv -eq 0 ] && rm -f $lockfile
return $rv
}
restart()
{
stop
start
}
case "$1" in
start|stop|restart)
$1
;;
force-reload)
restart
;;
status)
status -p $pidfile $prog
;;
try-restart|condrestart)
if status $prog >/dev/null ; then
restart
fi
;;
reload)
action $"Service ${0##*/} does not support the reload action: " /bin/false
exit 3
;;
*)
echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
exit 2
;;
esac
#
# Zabbix monitoring system php web frontend
#
Alias /zabbix /usr/local/share/zabbix
<Directory "/usr/local/share/zabbix">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<IfModule mod_php5.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga
</IfModule>
</Directory>
<Directory "/usr/local/share/zabbix/conf">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
<Directory "/usr/local/share/zabbix/app">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
<Directory "/usr/local/share/zabbix/include">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
<Directory "/usr/local/share/zabbix/local">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
#
# Zabbix monitoring system php web frontend
#
Alias /zabbix /usr/local/share/zabbix
<Directory "/usr/local/share/zabbix">
Options FollowSymLinks
AllowOverride None
Require all granted
<IfModule mod_php5.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga
</IfModule>
</Directory>
<Directory "/usr/local/share/zabbix/conf">
Require all denied
</Directory>
<Directory "/usr/local/share/zabbix/app">
Require all denied
</Directory>
<Directory "/usr/local/share/zabbix/include">
Require all denied
</Directory>
<Directory "/usr/local/share/zabbix/local">
Require all denied
</Directory>
Name: zabbix
Version: 3.0.1
Release: 1%{?alphatag:.%{alphatag}}%{?dist}
Summary: The Enterprise-class open source monitoring solution
Group: Applications/Internet
License: GPLv2+
URL: http://www.zabbix.com/
Source0: zabbix-%{version}%{?alphatag:%{alphatag}}.tar.gz
Source1: zabbix-web22.conf
Source2: zabbix-web24.conf
Source3: zabbix-logrotate.in
Source4: zabbix-java-gateway.init
Source5: zabbix-agent.init
Source6: zabbix-server.init
Source7: zabbix-proxy.init
Source10: zabbix-agent.service
Source11: zabbix-server.service
Source12: zabbix-proxy.service
Source13: zabbix-java-gateway.service
Source14: zabbix_java_gateway-sysd
Source15: zabbix-tmpfiles.conf
Patch0: config.patch
Patch1: fonts-config.patch
Patch2: fping3-sourceip-option.patch
Buildroot: %{_tmppath}/zabbix-%{version}-%{release}-root-%(%{__id_u} -n)
%if 0%{?rhel} >=7
%define build_server 1
%endif
%if 0%{?rhel} >=6
%define build_server 1
%endif
BuildRequires: mysql-devel
BuildRequires: postgresql-devel
BuildRequires: net-snmp-devel
BuildRequires: openldap-devel
BuildRequires: gnutls-devel
BuildRequires: sqlite-devel
BuildRequires: unixODBC-devel
BuildRequires: curl-devel >= 7.13.1
BuildRequires: OpenIPMI-devel >= 2
BuildRequires: libssh2-devel >= 1.0.0
BuildRequires: java-devel >= 1.6.0
BuildRequires: libxml2-devel
%if 0%{?rhel} >= 6
BuildRequires: openssl-devel >= 1.0.1
%endif
%if 0%{?rhel} >= 7
BuildRequires: systemd
%endif
%if 0%{?build_server}
BuildRequires: iksemel-devel
%endif
%description
Zabbix is the ultimate enterprise-level software designed for
real-time monitoring of millions of metrics collected from tens of
thousands of servers, virtual machines and network devices.
%package agent
Summary: Zabbix Agent
Group: Applications/Internet
Requires: logrotate
Requires(pre): /usr/sbin/useradd
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(preun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Obsoletes: zabbix
%description agent
Zabbix agent to be installed on monitored systems.
%package get
Summary: Zabbix Get
Group: Applications/Internet
%description get
Zabbix get command line utility
%package sender
Summary: Zabbix Sender
Group: Applications/Internet
%description sender
Zabbix sender command line utility
%package proxy-mysql
Summary: Zabbix proxy for MySQL or MariaDB database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-proxy = %{version}-%{release}
Provides: zabbix-proxy-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-proxy
%description proxy-mysql
Zabbix proxy with MySQL or MariaDB database support.
%package proxy-pgsql
Summary: Zabbix proxy for PostgreSQL database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-proxy = %{version}-%{release}
Provides: zabbix-proxy-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-proxy
%description proxy-pgsql
Zabbix proxy with PostgreSQL database support.
%package proxy-sqlite3
Summary: Zabbix proxy for SQLite3 database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-proxy = %{version}-%{release}
Provides: zabbix-proxy-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-proxy
%description proxy-sqlite3
Zabbix proxy with SQLite3 database support.
%package java-gateway
Summary: Zabbix java gateway
Group: Applications/Internet
%if 0%{?rhel} >= 7
Requires: java-headless >= 1.6.0
%else
Requires: java >= 1.6.0
%endif
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Obsoletes: zabbix
%description java-gateway
Zabbix java gateway
%if 0%{?build_server}
%package server-mysql
Summary: Zabbix server for MySQL or MariaDB database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-server = %{version}-%{release}
Provides: zabbix-server-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-server
%description server-mysql
Zabbix server with MySQL or MariaDB database support.
%package server-pgsql
Summary: Zabbix server for PostgresSQL database
Group: Applications/Internet
Requires: fping
%if 0%{?rhel} >= 7
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
Provides: zabbix-server = %{version}-%{release}
Provides: zabbix-server-implementation = %{version}-%{release}
Obsoletes: zabbix
Obsoletes: zabbix-server
%description server-pgsql
Zabbix server with PostgresSQL database support.
%package web
Summary: Zabbix web frontend common package
Group: Application/Internet
BuildArch: noarch
Requires: httpd
Requires: php >= 5.4
Requires: php-gd
Requires: php-bcmath
Requires: php-mbstring
Requires: php-xml
Requires: php-ldap
Requires: dejavu-sans-fonts
Requires: zabbix-web-database = %{version}-%{release}
Requires(post): %{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/update-alternatives
%description web
Zabbix web frontend common package
%package web-mysql
Summary: Zabbix web frontend for MySQL
Group: Applications/Internet
BuildArch: noarch
Requires: php-mysql
Requires: zabbix-web = %{version}-%{release}
Provides: zabbix-web-database = %{version}-%{release}
%description web-mysql
Zabbix web frontend for MySQL
%package web-pgsql
Summary: Zabbix web frontend for PostgreSQL
Group: Applications/Internet
BuildArch: noarch
Requires: php-pgsql
Requires: zabbix-web = %{version}-%{release}
Provides: zabbix-web-database = %{version}-%{release}
%description web-pgsql
Zabbix web frontend for PostgreSQL
%package web-japanese
Summary: Japanese font settings for frontend
Group: Applications/Internet
BuildArch: noarch
Requires: vlgothic-p-fonts
Requires: zabbix-web = %{version}-%{release}
Requires(post): %{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/update-alternatives
%description web-japanese
Japanese font configuration for Zabbix web frontend
%endif
%prep
%setup0 -q -n zabbix-%{version}%{?alphatag:%{alphatag}}
%patch0 -p1
%patch1 -p1
%if 0%{?rhel} >= 7
%patch2 -p1
%endif
## remove font file
rm -f frontends/php/fonts/DejaVuSans.ttf
# remove .htaccess files
rm -f frontends/php/app/.htaccess
rm -f frontends/php/conf/.htaccess
rm -f frontends/php/include/.htaccess
rm -f frontends/php/local/.htaccess
# remove translation source files and scripts
find frontend/php/locale -name '*.po' | xargs rm -f
find frontend/php/locale -name '*.sh' | xargs rm -f
# traceroute command path for global script
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/mysql/data.sql
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/postgresql/data.sql
sed -i -e 's|/usr/bin/traceroute|/bin/traceroute|' database/sqlite3/data.sql
# change log directory for Java Gateway
sed -i -e 's|/tmp/zabbix_java.log|/var/log/zabbix/zabbix_java_gateway.log|g' src/zabbix_java/lib/logback.xml
%build
CPPFLAGS='-I/usr/local/include'
export CPPFLAGS
LDFLAGS='-L/usr/local/lib64 -Wl,-rpath,/usr/local/lib64'
export LDFLAGS
build_flags="
--enable-dependency-tracking
--sysconfdir=/etc/zabbix
--libdir=%{_libdir}/zabbix
--enable-agent
--enable-proxy
--enable-ipv6
--enable-java
--with-net-snmp
--with-ldap
--with-libcurl
--with-openipmi
--with-unixodbc
--with-ssh2
--with-libxml2
"
%if 0%{?rhel} >=6
build_flags="$build_flags --with-openssl"
%endif
%if 0%{?build_server}
build_flags="$build_flags --enable-server --with-jabber"
%endif
%configure $build_flags --with-mysql
make %{?_smp_mflags}
%if 0%{?build_server}
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_mysql
%endif
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql
%configure $build_flags --with-postgresql
make %{?_smp_mflags}
%if 0%{?build_server}
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql
%endif
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_pgsql
%configure $build_flags --with-sqlite3
make %{?_smp_mflags}
%if 0%{?build_server}
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_sqlite3
%endif
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3
%if 0%{?build_server}
touch src/zabbix_server/zabbix_server
%endif
touch src/zabbix_proxy/zabbix_proxy
%install
rm -rf $RPM_BUILD_ROOT
# install
make DESTDIR=$RPM_BUILD_ROOT install
# install necessary directories
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/zabbix
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/zabbix
# install server and proxy binaries
%if 0%{?build_server}
rm src/zabbix_server/zabbix_server_sqlite3
install -m 0755 -p src/zabbix_server/zabbix_server_* $RPM_BUILD_ROOT%{_sbindir}/
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_server
%endif
install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* $RPM_BUILD_ROOT%{_sbindir}/
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy
# delete unnecessary files from java gateway
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/settings.sh
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/startup.sh
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/shutdown.sh
# install scripts and modules directories
mkdir -p $RPM_BUILD_ROOT/usr/lib/zabbix
%if 0%{?build_server}
mv $RPM_BUILD_ROOT%{_datadir}/zabbix/alertscripts $RPM_BUILD_ROOT/usr/lib/zabbix
%endif
mv $RPM_BUILD_ROOT%{_datadir}/zabbix/externalscripts $RPM_BUILD_ROOT/usr/lib/zabbix
mkdir $RPM_BUILD_ROOT%{_libdir}/zabbix/modules
%if 0%{?rhel} >=7
mv $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/lib/logback.xml $RPM_BUILD_ROOT/%{_sysconfdir}/zabbix/zabbix_java_gateway_logback.xml
rm $RPM_BUILD_ROOT%{_sbindir}/zabbix_java/lib/logback-console.xml
mv $RPM_BUILD_ROOT%{_sbindir}/zabbix_java $RPM_BUILD_ROOT/%{_datadir}/zabbix-java-gateway
install -m 0755 -p %{SOURCE14} $RPM_BUILD_ROOT%{_sbindir}/zabbix_java_gateway
%endif
%if 0%{?build_server}
# install frontend files
find frontends/php -name '*.orig' | xargs rm -f
cp -a frontends/php/* $RPM_BUILD_ROOT%{_datadir}/zabbix
# install frontend configuration files
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web
touch $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web/zabbix.conf.php
mv $RPM_BUILD_ROOT%{_datadir}/zabbix/conf/maintenance.inc.php $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/web/
# drop config files in place
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
%if 0%{?rhel} >= 7
install -m 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zabbix.conf
%else
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zabbix.conf
%endif
%endif
# install configuration files
mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.d
mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.d
%if 0%{?build_server}
mv $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.conf.d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.d
%endif
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/zabbix-agent-%{version}
install -m 0644 conf/zabbix_agentd/userparameter_mysql.conf $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.d
install -m 0644 conf/zabbix_agentd/userparameter_examples.conf $RPM_BUILD_ROOT%{_docdir}/zabbix-agent-%{version}
cat conf/zabbix_agentd.conf | sed \
-e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_agentd.pid' \
-e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|g' \
-e '/^# LogFileSize=.*/a \\nLogFileSize=0' \
-e '/^# Include=$/a \\nInclude=%{_sysconfdir}/zabbix/zabbix_agentd.d/' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf
%if 0%{?build_server}
cat conf/zabbix_server.conf | sed \
-e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_server.pid' \
-e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_server.log|g' \
-e '/^# LogFileSize=/a \\nLogFileSize=0' \
-e '/^# AlertScriptsPath=/a \\nAlertScriptsPath=/usr/lib/zabbix/alertscripts' \
-e '/^# ExternalScripts=/a \\nExternalScripts=/usr/lib/zabbix/externalscripts' \
-e 's|^DBUser=root|DBUser=zabbix|g' \
-e '/^# SNMPTrapperFile=.*/a \\nSNMPTrapperFile=/var/log/snmptrap/snmptrap.log' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_server.conf
%endif
cat conf/zabbix_proxy.conf | sed \
-e '/^# PidFile=/a \\nPidFile=%{_localstatedir}/run/zabbix/zabbix_proxy.pid' \
-e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_proxy.log|g' \
-e '/^# LogFileSize=/a \\nLogFileSize=0' \
-e '/^# ExternalScripts=/a \\nExternalScripts=/usr/lib/zabbix/externalscripts' \
-e 's|^DBUser=root|DBUser=zabbix|g' \
-e '/^# SNMPTrapperFile=.*/a \\nSNMPTrapperFile=/var/log/snmptrap/snmptrap.log' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_proxy.conf
cat src/zabbix_java/settings.sh | sed \
-e 's|^PID_FILE=.*|PID_FILE="/var/run/zabbix/zabbix_java.pid"|g' \
-e '/^# TIMEOUT=/a \\nTIMEOUT=3' \
> $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_java_gateway.conf
# install logrotate configuration files
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
%if 0%{?build_server}
cat %{SOURCE3} | sed \
-e 's|COMPONENT|server|g' \
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-server
%endif
cat %{SOURCE3} | sed \
-e 's|COMPONENT|agentd|g' \
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-agent
cat %{SOURCE3} | sed \
-e 's|COMPONENT|proxy|g' \
> $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/zabbix-proxy
# install startup scripts
%if 0%{?rhel} >= 7
install -Dm 0644 -p %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/zabbix-agent.service
%if 0%{?build_server}
install -Dm 0644 -p %{SOURCE11} $RPM_BUILD_ROOT%{_unitdir}/zabbix-server.service
%endif
install -Dm 0644 -p %{SOURCE12} $RPM_BUILD_ROOT%{_unitdir}/zabbix-proxy.service
install -Dm 0644 -p %{SOURCE13} $RPM_BUILD_ROOT%{_unitdir}/zabbix-java-gateway.service
%else
install -Dm 0755 -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-java-gateway
install -Dm 0755 -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-agent
%if 0%{?build_server}
install -Dm 0755 -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-server
%endif
install -Dm 0755 -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/zabbix-proxy
%endif
# install systemd-tmpfiles conf
%if 0%{?rhel} >= 7
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-agent.conf
%if 0%{?build_server}
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-server.conf
%endif
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
install -Dm 0644 -p %{SOURCE15} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/zabbix-java-gateway.conf
%endif
%if 0%{?build_server}
# copy sql files for servers
docdir=zabbix-server-mysql-%{version}
mkdir $docdir
cat database/mysql/schema.sql > $docdir/create.sql
cat database/mysql/images.sql >> $docdir/create.sql
cat database/mysql/data.sql >> $docdir/create.sql
gzip $docdir/create.sql
docdir=zabbix-server-pgsql-%{version}
mkdir $docdir
cat database/postgresql/schema.sql > $docdir/create.sql
cat database/postgresql/images.sql >> $docdir/create.sql
cat database/postgresql/data.sql >> $docdir/create.sql
gzip $docdir/create.sql
%endif
# copy sql files for proxyes
docdir=zabbix-proxy-mysql-%{version}
mkdir $docdir
cp database/mysql/schema.sql $docdir/schema.sql
gzip $docdir/schema.sql
docdir=zabbix-proxy-pgsql-%{version}
mkdir $docdir
cp database/postgresql/schema.sql $docdir/schema.sql
gzip $docdir/schema.sql
docdir=zabbix-proxy-sqlite3-%{version}
mkdir $docdir
cp database/sqlite3/schema.sql $docdir/schema.sql
gzip $docdir/schema.sql
%clean
rm -rf zabbix-server-mysql-%{version}
rm -rf zabbix-server-pgsql-%{version}
rm -rf zabbix-proxy-mysql-%{version}
rm -rf zabbix-proxy-pgsql-%{version}
rm -rf zabbix-proxy-sqlite3-%{version}
rm -rf $RPM_BUILD_ROOT
%pre agent
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%post agent
%if 0%{?rhel} >= 7
%systemd_post zabbix-agent.service
%else
/sbin/chkconfig --add zabbix-agent || :
%endif
%pre proxy-mysql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre proxy-pgsql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre proxy-sqlite3
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre java-gateway
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%if 0%{?build_server}
%pre server-mysql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%pre server-pgsql
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
useradd -r -g zabbix -d %{_localstatedir}/lib/zabbix -s /sbin/nologin \
-c "Zabbix Monitoring System" zabbix
:
%endif
%post proxy-mysql
%if 0%{?rhel} >= 7
%systemd_post zabbix-proxy.service
%else
/sbin/chkconfig --add zabbix-proxy
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
zabbix-proxy %{_sbindir}/zabbix_proxy_mysql 10
:
%post proxy-pgsql
%if 0%{?rhel} >= 7
%systemd_post zabbix-proxy.service
%else
/sbin/chkconfig --add zabbix-proxy
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
zabbix-proxy %{_sbindir}/zabbix_proxy_pgsql 10
:
%post proxy-sqlite3
%if 0%{?rhel} >= 7
%systemd_post zabbix-proxy.service
%else
/sbin/chkconfig --add zabbix-proxy
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \
zabbix-proxy %{_sbindir}/zabbix_proxy_sqlite3 10
:
%post java-gateway
%if 0%{?rhel} >= 7
%systemd_post zabbix-java-gateway.service
%else
/sbin/chkconfig --add zabbix-java-gateway
%endif
:
%if 0%{?build_server}
%post server-mysql
%if 0%{?rhel} >= 7
%systemd_post zabbix-server.service
%else
/sbin/chkconfig --add zabbix-server
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_server \
zabbix-server %{_sbindir}/zabbix_server_mysql 10
:
%post server-pgsql
%if 0%{?rhel} >= 7
%systemd_post zabbix-server.service
%else
/sbin/chkconfig --add zabbix-server
%endif
/usr/sbin/update-alternatives --install %{_sbindir}/zabbix_server \
zabbix-server %{_sbindir}/zabbix_server_pgsql 10
:
%post web
/usr/sbin/update-alternatives --install %{_datadir}/zabbix/fonts/graphfont.ttf \
zabbix-web-font %{_datadir}/fonts/dejavu/DejaVuSans.ttf 10
:
%post web-japanese
/usr/sbin/update-alternatives --install %{_datadir}/zabbix/fonts/graphfont.ttf \
zabbix-web-font %{_datadir}/fonts/vlgothic/VL-PGothic-Regular.ttf 20
:
%endif
%preun agent
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-agent.service
%else
/sbin/service zabbix-agent stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-agent
%endif
fi
:
%preun proxy-mysql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-proxy.service
%else
/sbin/service zabbix-proxy stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-proxy
%endif
/usr/sbin/update-alternatives --remove zabbix-proxy \
%{_sbindir}/zabbix_proxy_mysql
fi
:
%preun proxy-pgsql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-proxy.service
%else
/sbin/service zabbix-proxy stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-proxy
%endif
/usr/sbin/update-alternatives --remove zabbix-proxy \
%{_sbindir}/zabbix_proxy_pgsql
fi
:
%preun proxy-sqlite3
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-proxy.service
%else
/sbin/service zabbix-proxy stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-proxy
%endif
/usr/sbin/update-alternatives --remove zabbix-proxy \
%{_sbindir}/zabbix_proxy_sqlite3
fi
:
%preun java-gateway
if [ $1 -eq 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-java-gateway.service
%else
/sbin/service zabbix-java-gateway stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-java-gateway
%endif
fi
:
%if 0%{?build_server}
%preun server-mysql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-server.service
%else
/sbin/service zabbix-server stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-server
%endif
/usr/sbin/update-alternatives --remove zabbix-server \
%{_sbindir}/zabbix_server_mysql
fi
:
%preun server-pgsql
if [ "$1" = 0 ]; then
%if 0%{?rhel} >= 7
%systemd_preun zabbix-server.service
%else
/sbin/service zabbix-server stop >/dev/null 2>&1
/sbin/chkconfig --del zabbix-server
%endif
/usr/sbin/update-alternatives --remove zabbix-server \
%{_sbindir}/zabbix_server_pgsql
fi
:
%preun web
if [ "$1" = 0 ]; then
/usr/sbin/update-alternatives --remove zabbix-web-font \
%{_datadir}/fonts/dejavu/DejaVuSans.ttf
fi
:
%preun web-japanese
if [ "$1" = 0 ]; then
/usr/sbin/update-alternatives --remove zabbix-web-font \
%{_datadir}/fonts/vlgothic/VL-PGothic-Regular.ttf
fi
:
%endif
%postun agent
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-agent.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-agent try-restart >/dev/null 2>&1 || :
fi
%endif
%postun proxy-mysql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-proxy.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
fi
%endif
%postun proxy-pgsql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-proxy.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
fi
%endif
%postun proxy-sqlite3
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-proxy.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-proxy try-restart >/dev/null 2>&1 || :
fi
%endif
%postun java-gateway
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-java-gateway.service
%else
if [ $1 -gt 1 ]; then
/sbin/service zabbix-java-gateway condrestart >/dev/null 2>&1 || :
fi
%endif
%if 0%{?build_server}
%postun server-mysql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-server.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-server try-restart >/dev/null 2>&1 || :
fi
%endif
%postun server-pgsql
%if 0%{?rhel} >= 7
%systemd_postun_with_restart zabbix-server.service
%else
if [ $1 -ge 1 ]; then
/sbin/service zabbix-server try-restart >/dev/null 2>&1 || :
fi
%endif
%endif
%files agent
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent
%dir %{_sysconfdir}/zabbix/zabbix_agentd.d
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.d/userparameter_mysql.conf
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_sbindir}/zabbix_agentd
%{_mandir}/man8/zabbix_agentd.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-agent.service
%{_prefix}/lib/tmpfiles.d/zabbix-agent.conf
%else
%{_sysconfdir}/init.d/zabbix-agent
%endif
%files get
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/zabbix_get
%{_mandir}/man1/zabbix_get.1*
%files sender
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/zabbix_sender
%{_mandir}/man1/zabbix_sender.1*
%files proxy-mysql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-proxy-mysql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_proxy.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-proxy.service
%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
%else
%{_sysconfdir}/init.d/zabbix-proxy
%endif
%{_sbindir}/zabbix_proxy_mysql
%files proxy-pgsql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-proxy-pgsql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_proxy.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-proxy.service
%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
%else
%{_sysconfdir}/init.d/zabbix-proxy
%endif
%{_sbindir}/zabbix_proxy_pgsql
%files proxy-sqlite3
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-proxy-sqlite3-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_proxy.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-proxy.service
%{_prefix}/lib/tmpfiles.d/zabbix-proxy.conf
%else
%{_sysconfdir}/init.d/zabbix-proxy
%endif
%{_sbindir}/zabbix_proxy_sqlite3
%files java-gateway
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_java_gateway.conf
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%if 0%{?rhel} >= 7
%{_datadir}/zabbix-java-gateway
%{_sbindir}/zabbix_java_gateway
%{_unitdir}/zabbix-java-gateway.service
%{_prefix}/lib/tmpfiles.d/zabbix-java-gateway.conf
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_java_gateway_logback.xml
%else
%{_sbindir}/zabbix_java
%{_sysconfdir}/init.d/zabbix-java-gateway
%endif
%if 0%{?build_server}
%files server-mysql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-server-mysql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf
%dir /usr/lib/zabbix/alertscripts
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_server.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-server.service
%{_prefix}/lib/tmpfiles.d/zabbix-server.conf
%else
%{_sysconfdir}/init.d/zabbix-server
%endif
%{_sbindir}/zabbix_server_mysql
%files server-pgsql
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc zabbix-server-pgsql-%{version}/*
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf
%dir /usr/lib/zabbix/alertscripts
%dir /usr/lib/zabbix/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/run/zabbix
%{_mandir}/man8/zabbix_server.8*
%if 0%{?rhel} >= 7
%{_unitdir}/zabbix-server.service
%{_prefix}/lib/tmpfiles.d/zabbix-server.conf
%else
%{_sysconfdir}/init.d/zabbix-server
%endif
%{_sbindir}/zabbix_server_pgsql
%files web
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %attr(0750,apache,apache) %{_sysconfdir}/zabbix/web
%ghost %attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/zabbix/web/zabbix.conf.php
%config(noreplace) %{_sysconfdir}/zabbix/web/maintenance.inc.php
%config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf
%{_datadir}/zabbix
%files web-mysql
%defattr(-,root,root,-)
%files web-pgsql
%defattr(-,root,root,-)
%files web-japanese
%defattr(-,root,root,-)
%endif
%changelog
* Sun Feb 28 2016 Kodai Terashima <[email protected]> - 3.0.1-1
- update to 3.0.1
- remove DBSocker parameter
* Sat Feb 20 2016 Kodai Terashima <[email protected]> - 3.0.0-2
- agent, proxy and java-gateway for RHEL 5 and 6
* Mon Feb 15 2016 Kodai Terashima <[email protected]> - 3.0.0-1
- update to 3.0.0
* Thu Feb 11 2016 Kodai Terashima <[email protected]> - 3.0.0rc2
- update to 3.0.0rc2
- add TIMEOUT parameter for java gateway conf
* Thu Feb 04 2016 Kodai Terashima <[email protected]> - 3.0.0rc1
- update to 3.0.0rc1
* Sat Jan 30 2016 Kodai Terashima <[email protected]> - 3.0.0beta2
- update to 3.0.0beta2
* Thu Jan 21 2016 Kodai Terashima <[email protected]> - 3.0.0beta1
- update to 3.0.0beta1
* Thu Jan 14 2016 Kodai Terashima <[email protected]> - 3.0.0alpha6
- update to 3.0.0alpla6
- remove zabbix_agent conf and binary
* Wed Jan 13 2016 Kodai Terashima <[email protected]> - 3.0.0alpha5
- update to 3.0.0alpha5
* Fri Nov 13 2015 Kodai Terashima <[email protected]> - 3.0.0alpha4-1
- update to 3.0.0alpha4
* Thu Oct 29 2015 Kodai Terashima <[email protected]> - 3.0.0alpha3-2
- fix web-pgsql package dependency
- add --with-openssl option
* Mon Oct 19 2015 Kodai Terashima <[email protected]> - 3.0.0alpha3-1
- update to 3.0.0alpha3
* Tue Sep 29 2015 Kodai Terashima <[email protected]> - 3.0.0alpha2-3
- add IfModule for mod_php5 in apache configuration file
- fix missing proxy_mysql alternatives symlink
- chagne snmptrap log filename
- remove include dir from server and proxy conf
* Fri Sep 18 2015 Kodai Terashima <[email protected]> - 3.0.0alpha2-2
- fix create.sql doesn't contain schema.sql & images.sql
* Tue Sep 15 2015 Kodai Terashima <[email protected]> - 3.0.0alpha2-1
- update to 3.0.0alpha2
* Sat Aug 22 2015 Kodai Terashima <[email protected]> - 2.5.0-1
- create spec file from scratch
- update to 2.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment