Changes of Revision 7
[-] | Added | nagios.spec |
x 1
2 +# 3 +# spec file for package nagios (Version 3.2.0) 4 +# 5 +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# 7 +# All modifications and additions to the file contributed by third parties 8 +# remain the property of their copyright owners, unless otherwise agreed 9 +# upon. The license for this file, and modifications and additions to the 10 +# file, is the same license as for the pristine package itself (unless the 11 +# license for the pristine package is not an Open Source License, in which 12 +# case the license is the MIT License). An "Open Source License" is a 13 +# license that conforms to the Open Source Definition (Version 1.9) 14 +# published by the Open Source Initiative. 15 + 16 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 17 +# 18 + 19 +# norootforbuild 20 + 21 + 22 +Name: nagios 23 +%define realname nagios 24 +%define nsusr nagios 25 +%define nsgrp nagios 26 +%define cmdusr wwwrun 27 +%define cmdgrp nagcmd 28 +%define nslockfile_dir /var/run/%{realname} 29 +%define nslockfile %nslockfile_dir/%{realname}.pid 30 +%define apache2_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR)/conf.d 31 +# Macro that print mesages to syslog at package (un)install time 32 +%define nnmmsg logger -t %{realname}/rpm 33 +Summary: The Nagios Network Monitor 34 +Version: 3.2.0 35 +Release: 1 36 +License: GPL v2 or later 37 +Group: System/Monitoring 38 +Url: http://www.nagios.org/ 39 +Source0: %{realname}-%{version}.tar.bz2 40 +Source1: rc%{name} 41 +Source2: %{name}-rpmlintrc 42 +Source3: %{name}.sysconfig 43 +Source4: suse.de-nagios 44 +Source10: %{name}-README.SuSE 45 +# 46 +Patch1: nagios.run_async_service_check.return.patch 47 +Patch10: nagios-p1.pl-location.patch 48 +# 49 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 50 +PreReq: %insserv_prereq 51 +PreReq: %fillup_prereq 52 +PreReq: /bin/logger 53 +PreReq: coreutils 54 +PreReq: grep 55 +PreReq: pwdutils 56 +PreReq: sed 57 +BuildRequires: apache2-devel 58 +BuildRequires: freetype2-devel 59 +BuildRequires: gd-devel 60 +BuildRequires: iputils 61 +BuildRequires: libjpeg-devel 62 +BuildRequires: libpng-devel 63 +BuildRequires: mailx 64 +BuildRequires: openssl-devel 65 +BuildRequires: pcre-devel 66 +BuildRequires: zlib-devel 67 +%if 0%{?suse_version} < 1010 68 +BuildRequires: XFree86-devel 69 +BuildRequires: XFree86-libs 70 +BuildRequires: libapr0 71 +Requires: cron 72 +%else 73 +BuildRequires: libapr-util1-devel 74 +BuildRequires: xorg-x11-devel 75 +Recommends: cron 76 +Recommends: %{name}-www 77 +# we enable nagios embedded perl, but if people disable it... 78 +Recommends: perl = %{perl_version} 79 +%endif 80 +%if 0%{?suse_version} > 1020 81 +BuildRequires: fdupes 82 +%endif 83 +Requires: mailx %{realname}-plugins 84 + 85 +%description 86 +Nagios is a program that will monitor hosts and services on your 87 +network. It has the ability to email or page you when a problem arises 88 +and when a problem is resolved. Nagios is written in C and is designed 89 +to run under Linux (and some other *NIX variants) as a background 90 +process, intermittently running checks on various services that you 91 +specify. 92 + 93 +The actual service checks are performed by separate "plugin" programs 94 +which return the status of the checks to Nagios. The plugins are 95 +available at http://sourceforge.net/projects/nagiosplug 96 + 97 +This package provide core programs for nagios. The web interface, 98 +documentation, and development files are built as separate packages 99 + 100 + 101 + 102 +Authors: 103 +-------- 104 + Ethan Galstad <nagios@nagios.org> 105 + 106 +%package www 107 +License: GPL v2 or later 108 +Group: System/Monitoring 109 +Summary: Provides the HTML and CGI files for the Nagios web interface 110 +Requires: %{name} = %{version} 111 +Requires: gd php5 mod_php_any 112 +PreReq: apache2 113 +PreReq: coreutils 114 +PreReq: pwdutils 115 +PreReq: /bin/logger 116 +PreReq: sed 117 +PreReq: grep 118 +PreReq: gawk 119 + 120 +%description www 121 +Nagios is a program that will monitor hosts and services on your 122 +network. It has the ability to email or page you when a problem arises 123 +and when a problem is resolved. Nagios is written in C and is designed 124 +to run under Linux (and some other *NIX variants) as a background 125 +process, intermittently running checks on various services that you 126 +specify. 127 + 128 +Several CGI programs are included with Nagios in order to allow you to 129 +view the current service status, problem history, notification history, 130 +and log file via the web. This package provides the HTML and CGI files 131 +for the Nagios web interface. In addition, HTML documentation is 132 +included in this package. 133 + 134 + 135 + 136 +Authors: 137 +-------- 138 + Ethan Galstad <nagios@nagios.org> 139 + 140 +%package devel 141 +License: GPL v2 or later 142 +Group: Development/Libraries/C and C++ 143 +Summary: Development files for nagios 144 +Requires: %{name} = %{version} 145 +Requires: gcc 146 + 147 +%description devel 148 +Nagios is a program that will monitor hosts and services on your 149 +network. It has the ability to email or page you when a problem arises 150 +and when a problem is resolved. Nagios is written in C and is designed 151 +to run under Linux (and some other *NIX variants) as a background 152 +process, intermittently running checks on various services that you 153 +specify. 154 + 155 +This package provides include files that Nagios-related applications 156 +may compile against. 157 + 158 + 159 + 160 +Authors: 161 +-------- 162 + Ethan Galstad <nagios@nagios.org> 163 + 164 +%prep 165 +%setup -q -n %{realname}-%{version} 166 +%patch1 -p1 167 +%patch10 168 +find -name ".cvsignore" | xargs rm 169 +find -name ".gitignore" | xargs rm 170 + 171 +%build 172 +# if the following command fails, then apache dependencies are not met 173 +/usr/sbin/apxs2 -q DATADIR >/dev/null 174 +%configure \ 175 + --prefix=%{_prefix} \ 176 + --exec-prefix=%{_sbindir} \ 177 + --bindir=%{_sbindir} \ 178 + --sbindir=%{_prefix}/lib/%{realname}/cgi \ 179 + --libexecdir=%{_prefix}/lib/%{realname}/plugins \ 180 + --datadir=%{_datadir}/%{realname} \ 181 + --sysconfdir=%{_sysconfdir}/%{realname} \ 182 + --with-init-dir=%{_sysconfdir}/init.d \ 183 + --localstatedir=/var/lib/%{realname} \ 184 + --with-cgiurl=/%{realname}/cgi-bin \ 185 + --with-htmurl=/%{realname} \ 186 + --with-httpd-conf=%{apache2_sysconfdir} \ 187 + --with-checkresult-dir=/var/spool/%{realname} \ 188 + --with-lockfile=%{nslockfile} \ 189 + --with-nagios-user=%{nsusr} \ 190 + --with-nagios-group=%{nsgrp} \ 191 + --with-command-user=%{cmdusr} \ 192 + --with-command-grp=%{cmdgrp} \ 193 + --with-gd-lib=%{_libdir} \ 194 + --with-gd-inc=%{_includedir} \ 195 + --with-template-objects \ 196 + --with-template-extinfo \ 197 + --with-perlcache \ 198 + --enable-event-broker \ 199 + --enable-embedded-perl 200 +# 201 |