head 1.125;
access;
symbols
OPENPKG_E1_MP_HEAD:1.78
OPENPKG_E1_MP:1.78
OPENPKG_E1_MP_2_STABLE:1.67.2.5
OPENPKG_E1_FP:1.67.2.5
OPENPKG_2_STABLE_MP:1.72
OPENPKG_2_STABLE_20061018:1.67.2.2
OPENPKG_2_STABLE:1.67.0.2
OPENPKG_CW_FP:1.36
OPENPKG_1_STABLE_MP:1.19;
locks; strict;
comment @-- @;
1.125
date 2009.09.19.07.58.46; author rse; state Exp;
branches;
next 1.124;
commitid c5jLQD3XVBoeng4u;
1.124
date 2009.08.15.09.56.44; author rse; state Exp;
branches;
next 1.123;
commitid vCFlGbX5uD3t9MZt;
1.123
date 2009.07.03.17.48.09; author rse; state Exp;
branches;
next 1.122;
commitid 6EQaUIozhLpS8iUt;
1.122
date 2009.06.30.20.21.05; author rse; state Exp;
branches;
next 1.121;
commitid mW7f5wxeUG4f4VTt;
1.121
date 2009.06.06.20.35.20; author rse; state Exp;
branches;
next 1.120;
commitid S1HF6pCLclJ2WPQt;
1.120
date 2009.04.18.13.13.10; author rse; state Exp;
branches;
next 1.119;
commitid 4pHXU27WTIGCZuKt;
1.119
date 2009.03.27.11.17.29; author rse; state Exp;
branches;
next 1.118;
commitid 1wkRDkIB8Y9a8FHt;
1.118
date 2009.03.03.19.44.02; author rse; state Exp;
branches;
next 1.117;
commitid G3dBFmawuLSLHCEt;
1.117
date 2009.01.06.10.48.41; author rse; state Exp;
branches;
next 1.116;
commitid pRVNioQKjG1Ixnxt;
1.116
date 2008.12.16.07.43.11; author rse; state Exp;
branches;
next 1.115;
commitid F2U3x0x3zVoVbFut;
1.115
date 2008.12.02.18.17.03; author rse; state Exp;
branches;
next 1.114;
commitid TFH7JLLfXQwh9Vst;
1.114
date 2008.11.22.08.16.58; author rse; state Exp;
branches;
next 1.113;
commitid zS99dca3eIAl9Art;
1.113
date 2008.10.16.07.35.55; author rse; state Exp;
branches;
next 1.112;
commitid cAnDPZTb3SSZ6Pmt;
1.112
date 2008.06.26.06.58.07; author rse; state Exp;
branches;
next 1.111;
commitid phUknGsLAbGevq8t;
1.111
date 2008.05.28.06.32.20; author rse; state Exp;
branches;
next 1.110;
commitid EU7X8ym84OTaiH4t;
1.110
date 2008.05.21.18.43.54; author rse; state Exp;
branches;
next 1.109;
commitid hY7rRxF8OrJ6zR3t;
1.109
date 2008.05.15.11.38.05; author rse; state Exp;
branches;
next 1.108;
commitid qcxnzPby1vdZo33t;
1.108
date 2008.04.10.09.19.13; author steve; state Exp;
branches;
next 1.107;
commitid whOYSvxC6lK5LxYs;
1.107
date 2008.04.02.07.44.56; author rse; state Exp;
branches;
next 1.106;
commitid ciQxdxkILB0HuvXs;
1.106
date 2008.04.01.19.32.51; author rse; state Exp;
branches;
next 1.105;
commitid G9I7bCcYB0lyrrXs;
1.105
date 2008.03.18.20.55.41; author rse; state Exp;
branches;
next 1.104;
commitid 22TS3d5hBwPRlEVs;
1.104
date 2008.03.13.18.21.21; author rse; state Exp;
branches;
next 1.103;
commitid l0SlmCFpeGMSEZUs;
1.103
date 2008.03.12.16.29.48; author rse; state Exp;
branches;
next 1.102;
commitid NPPdBFeHlouB4RUs;
1.102
date 2008.02.01.22.28.58; author rse; state Exp;
branches;
next 1.101;
commitid GL00EXTdYj6xlKPs;
1.101
date 2008.01.01.14.59.26; author rse; state Exp;
branches;
next 1.100;
commitid B8esaHJHoduuKILs;
1.100
date 2007.12.21.08.15.43; author rse; state Exp;
branches;
next 1.99;
commitid 0WPVnPi4oz5wYgKs;
1.99
date 2007.12.14.09.04.56; author rse; state Exp;
branches;
next 1.98;
commitid pxFuqo306F9mtnJs;
1.98
date 2007.12.13.16.29.39; author cs; state Exp;
branches;
next 1.97;
commitid TACnYUEuhINUXhJs;
1.97
date 2007.10.27.11.59.39; author cs; state Exp;
branches;
next 1.96;
commitid XKMxflRJ6S7CYdDs;
1.96
date 2007.10.22.06.12.09; author rse; state Exp;
branches;
next 1.95;
commitid 94JnwciFq3LHdyCs;
1.95
date 2007.09.29.10.24.37; author rse; state Exp;
branches;
next 1.94;
commitid okTl7xw6HhJ9mCzs;
1.94
date 2007.09.25.05.33.09; author rse; state Exp;
branches;
next 1.93;
commitid JKHhkB1y5G4QR4zs;
1.93
date 2007.09.05.16.03.21; author cs; state Exp;
branches;
next 1.92;
commitid pNO45BqRf3Bb0zws;
1.92
date 2007.09.05.06.38.54; author rse; state Exp;
branches;
next 1.91;
commitid zCuOjmGYTG4ySvws;
1.91
date 2007.09.01.08.51.26; author rse; state Exp;
branches;
next 1.90;
commitid xqc63oPuBiyYJ0ws;
1.90
date 2007.08.24.15.23.01; author cs; state Exp;
branches;
next 1.89;
commitid HFGvcOMb5tcha1vs;
1.89
date 2007.07.20.20.17.31; author thl; state Exp;
branches;
next 1.88;
commitid yCyWfcoNSNOaUxqs;
1.88
date 2007.07.13.13.25.05; author cs; state Exp;
branches;
next 1.87;
commitid IIzlsYzWtgSvRBps;
1.87
date 2007.07.13.13.15.25; author cs; state Exp;
branches;
next 1.86;
commitid kDnqrjOBMoMbOBps;
1.86
date 2007.07.10.07.09.25; author cs; state Exp;
branches;
next 1.85;
commitid tVEOPNYdqEkCSbps;
1.85
date 2007.06.04.15.27.10; author rse; state Exp;
branches;
next 1.84;
commitid z6K7GeLkwSb7NBks;
1.84
date 2007.04.18.21.46.11; author thl; state Exp;
branches;
next 1.83;
commitid WyQKNMwmoITBoBes;
1.83
date 2007.04.11.15.59.09; author rse; state Exp;
branches;
next 1.82;
commitid TU04Ypymhf7IHFds;
1.82
date 2007.04.11.07.39.01; author rse; state Exp;
branches;
next 1.81;
commitid Bgh16IFB5h38WCds;
1.81
date 2007.03.29.18.09.22; author rse; state Exp;
branches;
next 1.80;
commitid vpLUNhDwzDwhQ0cs;
1.80
date 2007.03.09.07.01.30; author rse; state Exp;
branches;
next 1.79;
commitid E3ZLmbVrmff1Nn9s;
1.79
date 2007.01.20.08.45.24; author rse; state Exp;
branches;
next 1.78;
commitid 9MDRERY8iOfkUd3s;
1.78
date 2007.01.01.17.40.01; author rse; state Exp;
branches;
next 1.77;
commitid BicZD6VUl7GuqP0s;
1.77
date 2006.11.28.07.47.57; author rse; state Exp;
branches;
next 1.76;
commitid XC03hcLynSffipWr;
1.76
date 2006.11.22.17.10.20; author rse; state Exp;
branches;
next 1.75;
commitid SibcjYjEQoE8BGVr;
1.75
date 2006.11.08.07.29.22; author rse; state Exp;
branches;
next 1.74;
commitid t6YKfmKDeeoJPPTr;
1.74
date 2006.11.06.08.09.23; author rse; state Exp;
branches;
next 1.73;
commitid Mh2HnpQ6YUtr7ATr;
1.73
date 2006.11.02.16.22.59; author rse; state Exp;
branches;
next 1.72;
commitid 6kGhTT5FuJHKY6Tr;
1.72
date 2006.10.24.11.25.32; author rse; state Exp;
branches;
next 1.71;
commitid BmY1hxAwrm5ECVRr;
1.71
date 2006.10.23.14.50.23; author rse; state Exp;
branches;
next 1.70;
commitid 4xI8cyVSxl9UMORr;
1.70
date 2006.10.22.15.32.39; author rse; state Exp;
branches;
next 1.69;
commitid 0t55AMns4byo3HRr;
1.69
date 2006.10.22.14.51.58; author rse; state Exp;
branches;
next 1.68;
commitid lGqbdYuPZUqrPGRr;
1.68
date 2006.10.20.18.51.08; author rse; state Exp;
branches;
next 1.67;
commitid RJSeWl03Q6ztdsRr;
1.67
date 2006.10.13.17.30.25; author thl; state Exp;
branches
1.67.2.1;
next 1.66;
commitid q5GSxzsSDX29XxQr;
1.66
date 2006.10.12.19.58.25; author rse; state Exp;
branches;
next 1.65;
commitid 97F7x0JbJbLvQqQr;
1.65
date 2006.10.12.18.50.40; author rse; state Exp;
branches;
next 1.64;
commitid 2ZqNDZYdEVegtqQr;
1.64
date 2006.09.23.12.01.57; author rse; state Exp;
branches;
next 1.63;
commitid PMV1JHKFuERQOWNr;
1.63
date 2006.08.25.19.17.41; author rse; state Exp;
branches;
next 1.62;
commitid Tvsj1UyQ8rQ89gKr;
1.62
date 2006.07.14.08.01.20; author thl; state Exp;
branches;
next 1.61;
commitid oP3dTmaoXhZRLNEr;
1.61
date 2006.06.01.08.36.32; author rse; state Exp;
branches;
next 1.60;
commitid KJal9ehEtThDlhzr;
1.60
date 2006.05.31.14.13.16; author tho; state Exp;
branches;
next 1.59;
commitid fqA2lMO1KAx8fbzr;
1.59
date 2006.05.24.18.52.27; author rse; state Exp;
branches;
next 1.58;
commitid 2sKuWvpXDlTeZiyr;
1.58
date 2006.05.15.20.28.13; author rse; state Exp;
branches;
next 1.57;
commitid rAIZCzl31y7FP9xr;
1.57
date 2006.05.12.11.37.57; author rse; state Exp;
branches;
next 1.56;
commitid ZDjFgxtG8sQIZIwr;
1.56
date 2006.05.05.07.38.37; author rse; state Exp;
branches;
next 1.55;
commitid ZMhITpidaVEzTNvr;
1.55
date 2006.04.26.05.22.44; author rse; state Exp;
branches;
next 1.54;
commitid UN2orKgUiGdTqDur;
1.54
date 2006.04.25.19.59.49; author rse; state Exp;
branches;
next 1.53;
commitid Dg84jLm48kcMjAur;
1.53
date 2006.04.21.07.20.59; author rse; state Exp;
branches;
next 1.52;
commitid bbSY5P9BIjXpf0ur;
1.52
date 2006.04.21.07.19.00; author rse; state Exp;
branches;
next 1.51;
commitid xOLzHYNMlHcJe0ur;
1.51
date 2006.04.20.19.51.08; author rse; state Exp;
branches;
next 1.50;
commitid 0BnAyakokuuLqWtr;
1.50
date 2006.04.20.13.25.40; author rse; state Exp;
branches;
next 1.49;
commitid kpaj2z6hRjgYhUtr;
1.49
date 2006.04.20.07.56.48; author rse; state Exp;
branches;
next 1.48;
commitid rMdHi1UoqjCHtStr;
1.48
date 2006.04.19.06.26.09; author rse; state Exp;
branches;
next 1.47;
commitid muMiWYfYOnlB0Ktr;
1.47
date 2006.04.08.07.45.10; author rse; state Exp;
branches;
next 1.46;
commitid 4Vi1sxKOQMOCNksr;
1.46
date 2006.03.28.19.23.34; author rse; state Exp;
branches;
next 1.45;
commitid RCWWa77GkPL81Zqr;
1.45
date 2006.03.03.20.45.55; author rse; state Exp;
branches;
next 1.44;
commitid b4YMl6sbDmYchMnr;
1.44
date 2006.02.08.07.29.27; author rse; state Exp;
branches;
next 1.43;
commitid xxhKv4CaY6XOBKkr;
1.43
date 2006.01.23.13.34.11; author rse; state Exp;
branches;
next 1.42;
commitid kl8ykzDqXyQP8Jir;
1.42
date 2006.01.23.13.31.15; author tho; state Exp;
branches;
next 1.41;
commitid Vu6vjOwm1cDO7Jir;
1.41
date 2006.01.01.13.17.07; author rse; state Exp;
branches;
next 1.40;
commitid otZG8yKMCw1JFTfr;
1.40
date 2005.11.18.06.59.43; author tho; state Exp;
branches;
next 1.39;
commitid TDFPNNTuuwr25dar;
1.39
date 2005.09.19.19.44.33; author rse; state Exp;
branches;
next 1.38;
1.38
date 2005.08.02.12.35.45; author thl; state Exp;
branches;
next 1.37;
1.37
date 2005.03.24.11.19.36; author rse; state Exp;
branches;
next 1.36;
1.36
date 2005.02.27.19.52.05; author thl; state Exp;
branches;
next 1.35;
1.35
date 2005.01.01.10.52.45; author rse; state Exp;
branches;
next 1.34;
1.34
date 2004.12.10.11.44.45; author rse; state Exp;
branches;
next 1.33;
1.33
date 2004.12.10.11.23.36; author thl; state Exp;
branches;
next 1.32;
1.32
date 2004.10.28.13.10.52; author thl; state Exp;
branches;
next 1.31;
1.31
date 2004.10.06.19.58.24; author rse; state Exp;
branches;
next 1.30;
1.30
date 2004.10.01.09.16.38; author rse; state Exp;
branches;
next 1.29;
1.29
date 2004.08.01.11.32.56; author rse; state Exp;
branches;
next 1.28;
1.28
date 2004.07.15.19.06.26; author rse; state Exp;
branches;
next 1.27;
1.27
date 2004.04.01.14.25.55; author thl; state Exp;
branches;
next 1.26;
1.26
date 2004.03.09.09.40.19; author cs; state Exp;
branches;
next 1.25;
1.25
date 2004.02.03.20.48.42; author rse; state Exp;
branches;
next 1.24;
1.24
date 2004.02.03.20.04.13; author rse; state Exp;
branches;
next 1.23;
1.23
date 2004.01.24.20.29.56; author rse; state Exp;
branches;
next 1.22;
1.22
date 2004.01.23.13.11.30; author rse; state Exp;
branches;
next 1.21;
1.21
date 2003.11.27.14.02.39; author ms; state Exp;
branches;
next 1.20;
1.20
date 2003.11.10.16.33.39; author ms; state Exp;
branches;
next 1.19;
1.19
date 2003.07.22.19.38.56; author rse; state Exp;
branches;
next 1.18;
1.18
date 2003.07.22.08.10.54; author rse; state Exp;
branches;
next 1.17;
1.17
date 2003.07.21.08.12.39; author thl; state Exp;
branches;
next 1.16;
1.16
date 2003.07.19.17.06.08; author rse; state Exp;
branches;
next 1.15;
1.15
date 2003.07.17.15.32.56; author thl; state Exp;
branches;
next 1.14;
1.14
date 2003.07.14.14.26.03; author thl; state Exp;
branches;
next 1.13;
1.13
date 2003.07.13.18.39.41; author rse; state Exp;
branches;
next 1.12;
1.12
date 2003.07.10.07.50.42; author rse; state Exp;
branches;
next 1.11;
1.11
date 2003.07.08.14.41.07; author rse; state Exp;
branches;
next 1.10;
1.10
date 2003.07.08.09.20.43; author rse; state Exp;
branches;
next 1.9;
1.9
date 2003.07.07.13.52.33; author rse; state Exp;
branches;
next 1.8;
1.8
date 2003.07.07.10.42.51; author mlelstv; state Exp;
branches;
next 1.7;
1.7
date 2003.07.02.18.13.26; author rse; state Exp;
branches;
next 1.6;
1.6
date 2003.06.28.15.17.31; author rse; state Exp;
branches;
next 1.5;
1.5
date 2003.06.25.13.36.35; author thl; state Exp;
branches;
next 1.4;
1.4
date 2003.06.03.08.30.43; author rse; state Exp;
branches;
next 1.3;
1.3
date 2003.04.05.19.23.17; author rse; state Exp;
branches;
next 1.2;
1.2
date 2003.03.14.20.53.19; author rse; state Exp;
branches;
next 1.1;
1.1
date 2003.03.14.15.06.47; author ps; state Exp;
branches;
next ;
1.67.2.1
date 2006.10.13.17.30.25; author rse; state dead;
branches;
next 1.67.2.2;
commitid iZxwRSmmWscPXUQr;
1.67.2.2
date 2006.10.16.14.53.07; author rse; state Exp;
branches;
next 1.67.2.3;
commitid iZxwRSmmWscPXUQr;
1.67.2.3
date 2006.10.22.15.34.22; author rse; state Exp;
branches;
next 1.67.2.4;
commitid Nsm8gwj0NuuZ3HRr;
1.67.2.4
date 2006.10.23.14.52.15; author rse; state Exp;
branches;
next 1.67.2.5;
commitid KAMgbKVDJe2yNORr;
1.67.2.5
date 2006.10.24.11.26.28; author rse; state Exp;
branches;
next ;
commitid HwJBto1I6cNXCVRr;
desc
@@
1.125
log
@modifying package: nagios-3.2.0 20090815 -> 20090919
@
text
@##
## nagios.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package versions
%define V_nagios 3.2.0
%define V_nagios_plugins 1.4.14
%define V_perl_nagios_plugin 0.33
%define V_perl_nagios_object 0.20
%define V_perl_nagios_cmd 0.05
# package information
Name: nagios
Summary: System and Network Monitoring
URL: http://www.nagios.org/
Vendor: Ethan Galstad et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: PLUS
Group: Monitoring
License: GPL
Version: %{V_nagios}
Release: 20090919
# package options
%option with_perl yes
%option with_fsl yes
# list of sources
Source0: http://switch.dl.sourceforge.net/sourceforge/nagios/nagios-%{V_nagios}.tar.gz
Source1: http://switch.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-%{V_nagios_plugins}.tar.gz
Source2: http://www.cpan.org/authors/id/T/TO/TONVOON/Nagios-Plugin-%{V_perl_nagios_plugin}.tar.gz
Source3: http://www.cpan.org/authors/id/T/TO/TOBEYA/Nagios-Object-%{V_perl_nagios_object}.tar.gz
Source4: http://www.cpan.org/authors/id/T/TO/TOBEYA/Nagios-Cmd-%{V_perl_nagios_cmd}.tar.gz
Source5: nagios.txt
Source6: rc.nagios
Source7: fsl.nagios
Patch0: nagios.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823, gcc
PreReq: OpenPKG, openpkg >= 20060823, apache, MTA
%if "%{with_perl}" == "yes"
BuildPreReq: perl-openpkg
BuildPreReq: perl, perl-net, perl-util
PreReq: perl, perl-net, perl-util
%endif
BuildPreReq: zlib, jpeg, png, gd
PreReq: zlib, jpeg, png, gd
BuildPreReq: traceroute, openssl, openssh, coreutils, fping, nail, snmp
PreReq: traceroute, openssl, openssh, coreutils, fping, nail, snmp
%if "%{with_fsl}" == "yes"
BuildPreReq: fsl
PreReq: fsl
%endif
AutoReq: no
AutoReqProv: no
%description
Nagios is a system and network monitoring application. It watches
hosts and services that you specify, alerting you when things go bad
and when they get better.
%track
prog nagios = {
version = %{V_nagios}
url = http://sourceforge.net/projects/nagios/files/
regex = nagios-(\d+(\.\d+)+)\.tar\.gz
}
prog nagios:plugins = {
version = %{V_nagios_plugins}
url = http://sourceforge.net/projects/nagiosplug/files/
regex = nagios-plugins-(\d+(\.\d+)+)\.tar\.gz
}
prog nagios:Nagios-Plugin = {
version = %{V_perl_nagios_plugin}
url = http://www.cpan.org/authors/id/T/TO/TONVOON/
regex = Nagios-Plugin-(__VER__)\.tar\.gz
}
prog nagios:Nagios-Object = {
version = %{V_perl_nagios_object}
url = http://www.cpan.org/authors/id/T/TO/TOBEYA/
regex = Nagios-Object-(__VER__)\.tar\.gz
}
prog nagios:Nagios-Cmd = {
version = %{V_perl_nagios_cmd}
url = http://www.cpan.org/authors/id/T/TO/TOBEYA/
regex = Nagios-Cmd-(__VER__)\.tar\.gz
}
%prep
%setup -q
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%setup -q -T -D -a 3
%setup -q -T -D -a 4
%patch -p0
%{l_shtool} subst \
-e 's;/usr/local/nagios/var/;%{l_prefix}/var/nagios/log;' \
p1.pl
%build
# configure and build Nagios
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
LIBS="%{l_fsl_libs} -lpng -lz -ljpeg" \
PATH_TO_TRACEROUTE="%{l_prefix}/sbin/traceroute" \
./configure \
--prefix=%{l_prefix} \
--sbindir=%{l_prefix}/cgi/nagios \
--sysconfdir=%{l_prefix}/etc/nagios \
--libexecdir=%{l_prefix}/libexec/nagios \
--localstatedir=%{l_prefix}/var/nagios \
--datadir=%{l_prefix}/share/nagios \
--with-cgiurl=/nagios/cgi \
--with-htmurl=/nagios \
--with-nagios-user=%{l_rusr} \
--with-nagios-group=%{l_rgrp} \
--with-command-user=%{l_nusr} \
--with-command-group=%{l_ngrp} \
--with-gd-lib=%{l_prefix}/lib \
--with-gd-inc=%{l_prefix}/include \
--with-lockfile=%{l_prefix}/var/nagios/run/nagios.pid \
%if "%{with_perl}" == "yes"
--enable-embedded-perl \
--with-perlcache \
%endif
--without-init-dir
%{l_make} %{l_mflags} all
# configure and build Nagios plugins
( cd nagios-plugins-%{V_nagios_plugins}/
( echo "ac_cv_ping_packets_first=yes"
echo "ac_cv_ping_has_timeout=no"
) >config.cache
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
LIBS="-lssl -lcrypto" \
./configure \
--cache-file=./config.cache \
--prefix=%{l_prefix}/libexec/nagios \
--libexecdir=%{l_prefix}/libexec/nagios \
--with-cgiurl=/nagios/cgi \
--with-openssl=%{l_prefix} \
--with-perl=%{l_prefix}/bin/perl \
--with-df-command="%{l_prefix}/bin/gdf" \
--with-fping-command=%{l_prefix}/sbin/fping \
--with-ping-command="%{l_prefix}/bin/gping -n -c %d %s" \
--with-ssh-command="%{l_prefix}/bin/ssh" \
--with-snmpget-command="%{l_prefix}/bin/snmpget" \
--with-snmpgetnext-command="%{l_prefix}/bin/snmpgetnext"
%{l_make} %{l_mflags}
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
# create installation hierarchy
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/nagios \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/libexec/nagios \
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/log \
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/run \
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/cmd
# install Nagios
%{l_make} install DESTDIR="$RPM_BUILD_ROOT" INSTALL_OPTS="" COMMAND_OPTS=""
# install Nagios plugins
( cd nagios-plugins-%{V_nagios_plugins}/
%{l_make} install DESTDIR="$RPM_BUILD_ROOT" \
MKINSTALLDIRS="%{l_shtool} install -d"
) || exit $?
%if "%{with_perl}" == "yes"
# install Perl modules
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg -d Nagios-Plugin-%{V_perl_nagios_plugin} configure build install
%{l_prefix}/bin/perl-openpkg -d Nagios-Object-%{V_perl_nagios_object} configure build install
%{l_prefix}/bin/perl-openpkg -d Nagios-Cmd-%{V_perl_nagios_cmd} configure build install
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%else
>perl-openpkg-files
%endif
# post-adjust installation
%if "%{with_perl}" == "yes"
mv $RPM_BUILD_ROOT%{l_prefix}/bin/p1.pl \
$RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/p1.pl
%endif
chmod 0755 $RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/utils.sh
rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/nagios/archives
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/share
strip $RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/* 2>/dev/null || true
# install default configuration
for name in `grep "^/d" -e "/<\/file>/,\$d" >$name
%{l_shtool} install -c -m 644 %{l_value -s -a} \
$name $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
done
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.nagios} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.nagios} \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} `cat perl-openpkg-files` \
'%config %{l_prefix}/etc/fsl/fsl.nagios' \
'%config %{l_prefix}/etc/nagios/*' \
'%config %attr(600,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/nagios/resource.cfg' \
'%attr(555,%{l_musr},%{l_mgrp}) %{l_prefix}/bin/nagios*' \
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/nagios/*' \
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/nagios/*/*' \
'%attr(2775,%{l_rusr},%{l_ngrp}) %{l_prefix}/var/nagios/cmd'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 1 ]; then
# add hook to Apache configuration
apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
if [ -f $apacheconf ]; then
( echo "Include $RPM_INSTALL_PREFIX/etc/nagios/apache.conf"
) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
-a -i "$RPM_INSTALL_PREFIX:nagios" $apacheconf
fi
# display final hints on initial installation
( echo "To complete this installation of Nagios please start the"
echo "Nagios daemon (backend) Apache webserver (frontend) with:"
echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc nagios start"
echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc apache start"
echo "After this you can connect to the Nagios frontend via URL"
echo " http://127.0.0.1/nagios/"
echo "and login with username \"nagios\" and password \"nagios\"."
echo "You can change the password with:"
echo " \$ $RPM_INSTALL_PREFIX/bin/htpasswd \\ "
echo " $RPM_INSTALL_PREFIX/etc/nagios/apache.passwd nagios"
) | %{l_rpmtool} msg -b -t notice
fi
if [ $1 -eq 2 ]; then
# after upgrade, restart service
eval `%{l_rc} nagios status 2>/dev/null`
[ ".$nagios_active" = .yes ] && %{l_rc} nagios restart
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
# remove hook from Apache configuration
apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
if [ -f $apacheconf ]; then
$RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
-r -i "$RPM_INSTALL_PREFIX:nagios" $apacheconf
fi
# before erase, stop service and remove log files
%{l_rc} nagios stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/nagios/log/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/nagios/run/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/nagios/cmd/* >/dev/null 2>&1 || true
fi
exit 0
@
1.124
log
@upgrading package: nagios 3.1.2 -> 3.2.0
@
text
@d26 1
a26 1
%define V_nagios_plugins 1.4.13
d42 1
a42 1
Release: 20090815
@
1.123
log
@upgrading package: nagios 3.1.0 -> 3.1.2
@
text
@d25 1
a25 1
%define V_nagios 3.1.2
d42 1
a42 1
Release: 20090703
@
1.122
log
@switch to the new SourceForge.net website functionality where we can find all files (again)
@
text
@d25 1
a25 1
%define V_nagios 3.1.0
d42 1
a42 1
Release: 20090606
@
1.121
log
@modifying package: nagios-3.1.0 20090327 -> 20090606
@
text
@d88 1
a88 1
url = http://prdownloads.sourceforge.net/nagios/
d93 1
a93 1
url = http://prdownloads.sourceforge.net/nagiosplug/
@
1.120
log
@bump years in copyright messages
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.32
d42 1
a42 1
Release: 20090327
@
1.119
log
@upgrading package: nagios 3.0.6 -> 3.1.0
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.118
log
@modifying package: nagios-3.0.6 20090106 -> 20090303
@
text
@d25 2
a26 2
%define V_nagios 3.0.6
%define V_nagios_plugins 1.4.12
d42 1
a42 1
Release: 20090303
@
1.117
log
@modifying package: nagios-3.0.6 20081216 -> 20090106
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.31
d42 1
a42 1
Release: 20090106
@
1.116
log
@modifying package: nagios-3.0.6 20081202 -> 20081216
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.30
d42 1
a42 1
Release: 20081216
@
1.115
log
@upgrading package: nagios 3.0.4 -> 3.0.6
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.28
d42 1
a42 1
Release: 20081202
@
1.114
log
@modifying package: nagios-3.0.4 20081016 -> 20081122
@
text
@d25 1
a25 1
%define V_nagios 3.0.4
d42 1
a42 1
Release: 20081122
@
1.113
log
@upgrading package: nagios 3.0.3 -> 3.0.4
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.27
d42 1
a42 1
Release: 20081016
@
1.112
log
@upgrading package: nagios 3.0.2 -> 3.0.3
@
text
@d25 1
a25 1
%define V_nagios 3.0.3
d42 1
a42 1
Release: 20080626
@
1.111
log
@modifying package: nagios-3.0.2 20080521 -> 20080528
@
text
@d25 1
a25 1
%define V_nagios 3.0.2
d42 1
a42 1
Release: 20080528
@
1.110
log
@upgrading package: nagios 3.0.1 -> 3.0.2
@
text
@d26 1
a26 1
%define V_nagios_plugins 1.4.11
d42 1
a42 1
Release: 20080521
@
1.109
log
@modifying package: nagios-3.0.1 20080410 -> 20080515
@
text
@d25 1
a25 1
%define V_nagios 3.0.1
d42 1
a42 1
Release: 20080515
@
1.108
log
@Default Nagios Config now runs under l_rusr/l_ngrp, this way the cmd.cgi can write into the command pipe.
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.26
d42 1
a42 1
Release: 20080410
@
1.107
log
@upgrading package: nagios 3.0 -> 3.0.1
@
text
@d42 1
a42 1
Release: 20080402
d245 1
@
1.106
log
@modifying package: nagios-3.0 20080318 -> 20080401
@
text
@d25 1
a25 1
%define V_nagios 3.0
d42 1
a42 1
Release: 20080401
@
1.105
log
@modifying package: nagios-3.0 20080313 -> 20080318
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.25
d42 1
a42 1
Release: 20080318
@
1.104
log
@upgrading package: nagios 2.11 -> 3.0
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.24
d42 1
a42 1
Release: 20080313
@
1.103
log
@upgrading package: nagios 2.10 -> 2.11
@
text
@d25 1
a25 1
%define V_nagios 2.11
d42 1
a42 1
Release: 20080312
d71 2
a72 2
BuildPreReq: traceroute, openssl, openssh, coreutils, inetutils, fping, nail, snmp
PreReq: traceroute, openssl, openssh, coreutils, inetutils, fping, nail, snmp
d246 1
@
1.102
log
@modifying package: nagios-2.10 20080101 -> 20080201
@
text
@d25 1
a25 1
%define V_nagios 2.10
d42 1
a42 1
Release: 20080201
@
1.101
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d27 1
a27 1
%define V_perl_nagios_plugin 0.23
d42 1
a42 1
Release: 20080101
@
1.100
log
@modifying package: nagios-2.10 20071214 -> 20071221
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d42 1
a42 1
Release: 20071221
@
1.99
log
@modifying package: nagios-2.10 20071213 -> 20071214
@
text
@d28 1
a28 1
%define V_perl_nagios_plugin 0.22
d43 1
a43 1
Release: 20071214
@
1.98
log
@modifying package: nagios-2.10 20071027 -> 20071213
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.10
d43 1
a43 1
Release: 20071213
@
1.97
log
@Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct.
@
text
@d28 1
a28 1
%define V_perl_nagios_plugin 0.21
d43 1
a43 1
Release: 20071027
@
1.96
log
@upgrading package: nagios 2.9 -> 2.10
@
text
@d43 1
a43 1
Release: 20071022
d75 2
a76 2
BuildPreReq: fsl >= 1.3.0
PreReq: fsl >= 1.3.0
@
1.95
log
@modifying package: nagios-2.9 20070925 -> 20070929
@
text
@d26 1
a26 1
%define V_nagios 2.9
d43 1
a43 1
Release: 20070929
@
1.94
log
@modifying package: nagios-2.9 20070905 -> 20070925
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.9
d43 1
a43 1
Release: 20070925
@
1.93
log
@modifying package: nagios-2.9 20070905 again
@
text
@d28 1
a28 1
%define V_perl_nagios_plugin 0.20
d43 1
a43 1
Release: 20070905
@
1.92
log
@modifying package: nagios-2.9 20070901 -> 20070905
@
text
@d28 1
a28 1
%define V_perl_nagios_plugin 0.19
@
1.91
log
@modifying package: nagios-2.9 20070824 -> 20070901
@
text
@d28 1
a28 1
%define V_perl_nagios_plugin 0.17
d43 1
a43 1
Release: 20070901
@
1.90
log
@modifying package: nagios-2.9 20070720 -> 20070824
@
text
@d28 1
a28 1
%define V_perl_nagios_plugin 0.14
d43 1
a43 1
Release: 20070824
@
1.89
log
@remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider
@
text
@d29 1
a29 1
%define V_perl_nagios_object 0.17
d43 1
a43 1
Release: 20070720
@
1.88
log
@hard code path to fping binary
@
text
@d43 1
a43 1
Release: 20070713
a242 1
'%not %dir %{l_prefix}/etc/fsl' \
@
1.87
log
@strip plugins
@
text
@d171 1
@
1.86
log
@fix obvious error blindly
@
text
@d43 1
a43 1
Release: 20070710
d218 1
@
1.85
log
@modifying package: nagios-2.9 20070418 -> 20070604
@
text
@d43 1
a43 1
Release: 20070604
d68 1
a69 1
PreReq: perl, perl-net, perl-util
@
1.84
log
@get rid of direct /etc/rc call and replace them with openpkg
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.8
d43 1
a43 1
Release: 20070418
@
1.83
log
@modifying package: nagios-2.9 20070411 again
@
text
@d43 1
a43 1
Release: 20070411
d266 2
a267 2
echo " \$ $RPM_INSTALL_PREFIX/etc/rc nagios start"
echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache start"
@
1.82
log
@upgrading package: nagios 2.8 -> 2.9
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.7
@
1.81
log
@modifying package: nagios-2.8 20070309 -> 20070329
@
text
@d26 1
a26 1
%define V_nagios 2.8
d43 1
a43 1
Release: 20070329
@
1.80
log
@upgrading package: nagios 2.7 -> 2.8
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.6
d43 1
a43 1
Release: 20070309
@
1.79
log
@upgrading package: nagios 2.6 -> 2.7
@
text
@d26 2
a27 2
%define V_nagios 2.7
%define V_nagios_plugins 1.4.5
d43 1
a43 1
Release: 20070120
d195 2
a196 1
%{l_make} install DESTDIR="$RPM_BUILD_ROOT"
@
1.78
log
@Welcome Year 2007!
@
text
@d26 1
a26 1
%define V_nagios 2.6
d43 1
a43 1
Release: 20061128
@
1.77
log
@upgrading package: nagios 2.5 -> 2.6
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.76
log
@modifying package: nagios-2.5 20061108 -> 20061122
@
text
@d26 1
a26 1
%define V_nagios 2.5
d43 1
a43 1
Release: 20061122
@
1.75
log
@modifying package: nagios-2.5 20061106 -> 20061108
@
text
@d29 1
a29 1
%define V_perl_nagios_object 0.16
d43 1
a43 1
Release: 20061108
@
1.74
log
@modifying package: nagios-2.5 20061102 -> 20061106
@
text
@d29 1
a29 1
%define V_perl_nagios_object 0.15
d43 1
a43 1
Release: 20061106
@
1.73
log
@modifying package: nagios-2.5 20061024 -> 20061102
@
text
@d29 1
a29 1
%define V_perl_nagios_object 0.14
d43 1
a43 1
Release: 20061102
@
1.72
log
@fix dependencies
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.4
d43 1
a43 1
Release: 20061024
@
1.71
log
@modifying package: nagios-2.5 20061022 -> 20061023
@
text
@d43 1
a43 1
Release: 20061023
d66 2
a67 1
BuildPreReq: perl, perl-openpkg
@
1.70
log
@add Perl extension modules
@
text
@d29 1
a29 1
%define V_perl_nagios_object 0.12
d43 1
a43 1
Release: 20061022
@
1.69
log
@convert binary etc.tar into textual nagios.txt and fix permissions on resource.cfg file
@
text
@d26 5
a30 2
%define V_nagios 2.5
%define V_nagios_plugins 1.4.4
d52 6
a57 3
Source2: nagios.txt
Source3: rc.nagios
Source4: fsl.nagios
d64 5
a68 1
PreReq: OpenPKG, openpkg >= 20060823, apache, MTA, perl, perl-net
d96 15
d115 3
d197 11
d238 1
a238 1
%{l_files_std} \
@
1.68
log
@modifying package: nagios-2.5 20061013 -> 20061020
@
text
@d40 1
a40 1
Release: 20061020
d49 1
a49 1
Source2: etc.tar
a89 1
%setup -q -T -D -a 2
d179 6
a184 2
%{l_shtool} install -c -m 644 %{l_value -s -a} \
etc/* $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
d203 1
a203 1
'%attr(600,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/nagios/resource.cfg' \
@
1.67
log
@new world order for "Packager" and "Distribution" headers
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.3
d40 1
a40 1
Release: 20061013
a139 2
--with-nagios-user=%{l_rusr} \
--with-nagios-group=%{l_rgrp} \
@
1.67.2.1
log
@file nagios.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:53:07 +0000
@
text
@d1 257
@
1.67.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 257
##
## nagios.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package versions
%define V_nagios 2.5
%define V_nagios_plugins 1.4.3
# package information
Name: nagios
Summary: System and Network Monitoring
URL: http://www.nagios.org/
Vendor: Ethan Galstad et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: PLUS
Group: Monitoring
License: GPL
Version: %{V_nagios}
Release: 2.20061018
# package options
%option with_perl yes
%option with_fsl yes
# list of sources
Source0: http://switch.dl.sourceforge.net/sourceforge/nagios/nagios-%{V_nagios}.tar.gz
Source1: http://switch.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-%{V_nagios_plugins}.tar.gz
Source2: etc.tar
Source3: rc.nagios
Source4: fsl.nagios
Patch0: nagios.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018, gcc
PreReq: OpenPKG, openpkg >= 2.20061018, apache, MTA, perl, perl-net
BuildPreReq: zlib, jpeg, png, gd
PreReq: zlib, jpeg, png, gd
BuildPreReq: traceroute, openssl, openssh, coreutils, inetutils, fping, nail, snmp
PreReq: traceroute, openssl, openssh, coreutils, inetutils, fping, nail, snmp
%if "%{with_fsl}" == "yes"
BuildPreReq: fsl >= 1.3.0
PreReq: fsl >= 1.3.0
%endif
AutoReq: no
AutoReqProv: no
%description
Nagios is a system and network monitoring application. It watches
hosts and services that you specify, alerting you when things go bad
and when they get better.
%track
prog nagios = {
version = %{V_nagios}
url = http://prdownloads.sourceforge.net/nagios/
regex = nagios-(\d+(\.\d+)+)\.tar\.gz
}
prog nagios:plugins = {
version = %{V_nagios_plugins}
url = http://prdownloads.sourceforge.net/nagiosplug/
regex = nagios-plugins-(\d+(\.\d+)+)\.tar\.gz
}
%prep
%setup -q
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%patch -p0
%{l_shtool} subst \
-e 's;/usr/local/nagios/var/;%{l_prefix}/var/nagios/log;' \
p1.pl
%build
# configure and build Nagios
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
LIBS="%{l_fsl_libs} -lpng -lz -ljpeg" \
PATH_TO_TRACEROUTE="%{l_prefix}/sbin/traceroute" \
./configure \
--prefix=%{l_prefix} \
--sbindir=%{l_prefix}/cgi/nagios \
--sysconfdir=%{l_prefix}/etc/nagios \
--libexecdir=%{l_prefix}/libexec/nagios \
--localstatedir=%{l_prefix}/var/nagios \
--datadir=%{l_prefix}/share/nagios \
--with-cgiurl=/nagios/cgi \
--with-htmurl=/nagios \
--with-nagios-user=%{l_rusr} \
--with-nagios-group=%{l_rgrp} \
--with-command-user=%{l_nusr} \
--with-command-group=%{l_ngrp} \
--with-gd-lib=%{l_prefix}/lib \
--with-gd-inc=%{l_prefix}/include \
--with-lockfile=%{l_prefix}/var/nagios/run/nagios.pid \
%if "%{with_perl}" == "yes"
--enable-embedded-perl \
--with-perlcache \
%endif
--without-init-dir
%{l_make} %{l_mflags} all
# configure and build Nagios plugins
( cd nagios-plugins-%{V_nagios_plugins}/
( echo "ac_cv_ping_packets_first=yes"
echo "ac_cv_ping_has_timeout=no"
) >config.cache
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
LIBS="-lssl -lcrypto" \
./configure \
--cache-file=./config.cache \
--prefix=%{l_prefix}/libexec/nagios \
--libexecdir=%{l_prefix}/libexec/nagios \
--with-cgiurl=/nagios/cgi \
--with-nagios-user=%{l_rusr} \
--with-nagios-group=%{l_rgrp} \
--with-openssl=%{l_prefix} \
--with-perl=%{l_prefix}/bin/perl \
--with-df-command="%{l_prefix}/bin/gdf" \
--with-ping-command="%{l_prefix}/bin/gping -n -c %d %s" \
--with-ssh-command="%{l_prefix}/bin/ssh" \
--with-snmpget-command="%{l_prefix}/bin/snmpget" \
--with-snmpgetnext-command="%{l_prefix}/bin/snmpgetnext"
%{l_make} %{l_mflags}
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
# create installation hierarchy
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/nagios \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/libexec/nagios \
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/log \
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/run \
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/cmd
# install Nagios
%{l_make} install DESTDIR="$RPM_BUILD_ROOT" INSTALL_OPTS="" COMMAND_OPTS=""
# install Nagios plugins
( cd nagios-plugins-%{V_nagios_plugins}/
%{l_make} install DESTDIR="$RPM_BUILD_ROOT"
) || exit $?
# post-adjust installation
%if "%{with_perl}" == "yes"
mv $RPM_BUILD_ROOT%{l_prefix}/bin/p1.pl \
$RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/p1.pl
%endif
chmod 0755 $RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/utils.sh
rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/nagios/archives
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/share
# install default configuration
%{l_shtool} install -c -m 644 %{l_value -s -a} \
etc/* $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.nagios} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.nagios} \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%not %dir %{l_prefix}/etc/fsl' \
'%config %{l_prefix}/etc/fsl/fsl.nagios' \
'%config %{l_prefix}/etc/nagios/*' \
'%attr(600,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/nagios/resource.cfg' \
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/nagios/*' \
'%attr(2775,%{l_rusr},%{l_ngrp}) %{l_prefix}/var/nagios/cmd'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 1 ]; then
# add hook to Apache configuration
apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
if [ -f $apacheconf ]; then
( echo "Include $RPM_INSTALL_PREFIX/etc/nagios/apache.conf"
) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
-a -i "$RPM_INSTALL_PREFIX:nagios" $apacheconf
fi
# display final hints on initial installation
( echo "To complete this installation of Nagios please start the"
echo "Nagios daemon (backend) Apache webserver (frontend) with:"
echo " \$ $RPM_INSTALL_PREFIX/etc/rc nagios start"
echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache start"
echo "After this you can connect to the Nagios frontend via URL"
echo " http://127.0.0.1/nagios/"
echo "and login with username \"nagios\" and password \"nagios\"."
echo "You can change the password with:"
echo " \$ $RPM_INSTALL_PREFIX/bin/htpasswd \\ "
echo " $RPM_INSTALL_PREFIX/etc/nagios/apache.passwd nagios"
) | %{l_rpmtool} msg -b -t notice
fi
if [ $1 -eq 2 ]; then
# after upgrade, restart service
eval `%{l_rc} nagios status 2>/dev/null`
[ ".$nagios_active" = .yes ] && %{l_rc} nagios restart
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
# remove hook from Apache configuration
apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
if [ -f $apacheconf ]; then
$RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
-r -i "$RPM_INSTALL_PREFIX:nagios" $apacheconf
fi
# before erase, stop service and remove log files
%{l_rc} nagios stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/nagios/log/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/nagios/run/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/nagios/cmd/* >/dev/null 2>&1 || true
fi
exit 0
@
1.67.2.3
log
@MFC: newer versions, cleaned up configuration, Perl modules
@
text
@d26 2
a27 5
%define V_nagios 2.5
%define V_nagios_plugins 1.4.4
%define V_perl_nagios_plugin 0.14
%define V_perl_nagios_object 0.12
%define V_perl_nagios_cmd 0.05
d40 1
a40 1
Release: 2.20061022
d49 3
a51 6
Source2: http://www.cpan.org/authors/id/T/TO/TONVOON/Nagios-Plugin-%{V_perl_nagios_plugin}.tar.gz
Source3: http://www.cpan.org/authors/id/T/TO/TOBEYA/Nagios-Object-%{V_perl_nagios_object}.tar.gz
Source4: http://www.cpan.org/authors/id/T/TO/TOBEYA/Nagios-Cmd-%{V_perl_nagios_cmd}.tar.gz
Source5: nagios.txt
Source6: rc.nagios
Source7: fsl.nagios
d58 1
a58 5
PreReq: OpenPKG, openpkg >= 2.20061018, apache, MTA
%if "%{with_perl}" == "yes"
BuildPreReq: perl, perl-openpkg
%endif
PreReq: perl, perl-net, perl-util
a85 15
prog nagios:Nagios-Plugin = {
version = %{V_perl_nagios_plugin}
url = http://www.cpan.org/authors/id/T/TO/TONVOON/
regex = Nagios-Plugin-(__VER__)\.tar\.gz
}
prog nagios:Nagios-Object = {
version = %{V_perl_nagios_object}
url = http://www.cpan.org/authors/id/T/TO/TOBEYA/
regex = Nagios-Object-(__VER__)\.tar\.gz
}
prog nagios:Nagios-Cmd = {
version = %{V_perl_nagios_cmd}
url = http://www.cpan.org/authors/id/T/TO/TOBEYA/
regex = Nagios-Cmd-(__VER__)\.tar\.gz
}
a90 2
%setup -q -T -D -a 3
%setup -q -T -D -a 4
d140 2
a171 11
%if "%{with_perl}" == "yes"
# install Perl modules
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg -d Nagios-Plugin-%{V_perl_nagios_plugin} configure build install
%{l_prefix}/bin/perl-openpkg -d Nagios-Object-%{V_perl_nagios_object} configure build install
%{l_prefix}/bin/perl-openpkg -d Nagios-Cmd-%{V_perl_nagios_cmd} configure build install
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%else
>perl-openpkg-files
%endif
d182 2
a183 6
for name in `grep "^/d" -e "/<\/file>/,\$d" >$name
%{l_shtool} install -c -m 644 %{l_value -s -a} \
$name $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
done
d198 1
a198 1
%{l_files_std} `cat perl-openpkg-files` \
d202 1
a202 1
'%config %attr(600,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/nagios/resource.cfg' \
@
1.67.2.4
log
@MFC: latest version of module
@
text
@d29 1
a29 1
%define V_perl_nagios_object 0.14
d43 1
a43 1
Release: 2.20061023
@
1.67.2.5
log
@MFC: fix dependencies
@
text
@d43 1
a43 1
Release: 2.20061024
d66 1
a66 2
BuildPreReq: perl-openpkg
BuildPreReq: perl, perl-net, perl-util
@
1.66
log
@bless for PLUS class
@
text
@d34 2
a35 2
Packager: OpenPKG
Distribution: OpenPKG
d40 1
a40 1
Release: 20061012
@
1.65
log
@fix building under Solaris
@
text
@d36 1
a36 1
Class: EVAL
@
1.64
log
@adjust Group header
@
text
@d40 1
a40 1
Release: 20060923
@
1.63
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d37 1
a37 1
Group: Network
d40 1
a40 1
Release: 20060825
@
1.62
log
@upgrading package: nagios 2.4 -> 2.5
@
text
@d40 1
a40 1
Release: 20060714
d57 2
a58 2
BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
PreReq: OpenPKG, openpkg >= 20040130, apache, MTA, perl, perl-net
@
1.61
log
@upgrading package: nagios 2.3.1 -> 2.4
@
text
@d26 1
a26 1
%define V_nagios 2.4
d40 1
a40 1
Release: 20060601
@
1.60
log
@fixed permissions and log path on files in the plugin directory
@
text
@d26 1
a26 1
%define V_nagios 2.3.1
d40 1
a40 1
Release: 20060531
@
1.59
log
@SourceForge switched their URLs again and the canonical osdn.dl.sf.net no longer is available, hence switch to switch.dl.sf.net, one of the longest available and hopefully still long available mirrors
@
text
@d40 1
a40 1
Release: 20060524
d92 3
d177 1
@
1.58
log
@upgrading package: nagios 2.3 -> 2.3.1
@
text
@d40 1
a40 1
Release: 20060515
d47 2
a48 2
Source0: http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-%{V_nagios}.tar.gz
Source1: http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-%{V_nagios_plugins}.tar.gz
@
1.57
log
@fix dependencies to Perl and path to Perl executable
@
text
@d26 1
a26 1
%define V_nagios 2.3
d40 1
a40 1
Release: 20060512
@
1.56
log
@upgrading package: nagios 2.2 -> 2.3
@
text
@d40 1
a40 1
Release: 20060505
d58 1
a58 1
PreReq: OpenPKG, openpkg >= 20040130, apache, MTA
d140 1
a140 1
--with-perl=%{l_prefix} \
@
1.55
log
@for portability reasons we need a setgid directory so the named pipe Nagios creates there has group ownership of ngrp to allow the CGI to write to it (remember Nagios runs as rusr/rgrp while Apache runs as nusr/ngrp)
@
text
@d26 1
a26 1
%define V_nagios 2.2
d40 1
a40 1
Release: 20060426
@
1.54
log
@fix permissions on cmd directory; add authentication to web service; enable cmd queue
@
text
@d40 1
a40 1
Release: 20060425
d200 1
a200 1
'%attr(-,%{l_rusr},%{l_ngrp}) %{l_prefix}/var/nagios/cmd'
@
1.53
log
@fix License header, too
@
text
@d40 1
a40 1
Release: 20060421
d200 1
a200 1
'%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/nagios/cmd'
d224 4
@
1.52
log
@I'm still trying to track down why to the hell Nagios thinks the plugins return 127 on exit although they work fine on the command line
@
text
@d38 1
a38 1
License: GNU
@
1.51
log
@next round on improving the Nagios packaging: provide an own and more correct command/plugin configuration than provided by the vendor; add SNMP support; remove partly broken LDAP support; fix moving of p1.pl script; remove more crap from the installation hierarchy; small cleanups to the ping command fiddling
@
text
@d40 1
a40 1
Release: 20060420
@
1.50
log
@Complete overhaul of the Nagios packaging in order to finally get it
working correctly under run-time. This includes a completely new and
more compact from-scratch configuration and many packaging cleanups
and bugfixes.
Sponsored by: Cable & Wireless Telecommunication Services GmbH via OpenPKG GmbH
@
text
@a44 1
%option with_ldap yes
d61 2
a62 6
BuildPreReq: traceroute, openssl, openssh, coreutils, inetutils, fping, nail
PreReq: traceroute, openssl, openssh, coreutils, inetutils, fping, nail
%if "%{with_ldap}" == "yes"
BuildPreReq: openldap
PreReq: openldap
%endif
a91 4
%{l_shtool} subst \
-e 's;LDAPLIBS=.*-lldap.*;LDAPLIBS="-lldap -llber -lssl -lcrypto";' \
-e 's;LDAPINCLUDE=.*-I.*;LDAPINCLUDE="-I/%{l_prefix}/include";' \
nagios-plugins-%{V_nagios_plugins}/configure
a121 3
( cd contrib
%{l_make} %{l_mflags} convertcfg
) || exit $?
d125 3
a130 3
PATH_TO_PING="%{l_prefix}/bin/gping" \
PING_PACKETS_FIRST="yes" \
PATH_TO_SSH="%{l_prefix}/bin/ssh" \
d133 1
d136 3
d140 2
a141 1
--with-df-command=%{l_prefix}/bin/gdf \
d143 3
a145 3
--with-nagios-user=%{l_rusr} \
--with-nagios-group=%{l_rgrp} \
--with-cgiurl=/nagios/cgi
a148 11
# generate Nagios plugin configuration
sed -e '1,/These are some example service/d' \
plugins.txt
./contrib/convertcfg plugins.txt commands | \
expand -4 | \
sed -e 's;command[{];command {;' -e 's;^ *\};};' -e '/^$/d' | \
sed -e 's;%{l_prefix}/libexec/nagios;$USER1$;' | \
grep -v '^#' \
>>etc/plugins.cfg
a162 5
%if "%{with_perl}" == "yes"
mv $RPM_BUILD_ROOT%{l_prefix}/bin/p1.pl \
$RPM_BUILD_ROOT%{l_prefix}/libexec/nagios/p1.pl
%endif
rmdir $RPM_BUILD_ROOT%{l_prefix}/var/nagios/archives
d169 8
@
1.49
log
@packaging cleanups and a build fix
@
text
@d43 1
a43 1
%option with_eperl yes
d58 2
a59 2
BuildPreReq: OpenPKG, openpkg >= 20040130, traceroute, gcc
PreReq: OpenPKG, openpkg >= 20040130, traceroute, apache, MTA
d62 2
a63 2
BuildPreReq: openssl, openssh, coreutils, inetutils, fping
PreReq: openssl, openssh, coreutils, inetutils, fping
d107 1
a107 1
LIBS="%{l_fsl_libs} -lpng -ljpeg" \
d115 1
a115 1
--datadir=%{l_prefix}/web/nagios \
d118 4
a121 2
--with-nagios-user=%{l_musr} \
--with-nagios-grp=%{l_mgrp} \
d124 2
a125 2
--with-lockfile=%{l_prefix}/var/nagios/nagios.pid \
%if "%{with_eperl}" == "yes"
d127 1
d130 4
a133 2
%{l_make} %{l_mflags} all \
GDLIBS="-lgd -lm -lpng -lz -ljpeg"
d150 2
a151 2
--with-nagios-user=%{l_musr} \
--with-nagios-group=%{l_mgrp} \
d153 1
a153 1
%{l_make} %{l_mflags}
d156 11
d176 2
a177 1
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/rw
d181 5
d212 4
a215 1
'%config %{l_prefix}/etc/nagios/*'
d223 23
a245 4
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} nagios status 2>/dev/null`
[ ".$nagios_active" = .yes ] && %{l_rc} nagios restart
d249 14
a262 5
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} nagios stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/nagios/log/*.log* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/nagios/status.sav >/dev/null 2>&1 || true
@
1.48
log
@modifying package: nagios-2.2 20060408 -> 20060419
@
text
@d40 1
a40 1
Release: 20060419
d138 1
a138 1
LIBS="-lssl -lcrypto"
@
1.47
log
@upgrading package: nagios 2.1 -> 2.2
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.2
d40 1
a40 1
Release: 20060408
@
1.46
log
@upgrading package: nagios 2.0 -> 2.1
@
text
@d26 1
a26 1
%define V_nagios 2.1
d40 1
a40 1
Release: 20060328
@
1.45
log
@adjust path of logfiles in OSSP fsl and run-command script to reflect path in config files; some packaging cosmetics
@
text
@d26 1
a26 1
%define V_nagios 2.0
d40 1
a40 1
Release: 20060303
@
1.44
log
@upgrading package: nagios 1.3 -> 2.0
@
text
@d40 1
a40 1
Release: 20060208
d103 1
d127 2
d130 1
a130 3
%{l_make} %{l_mflags} all GDLIBS="-lgd -lm -lpng -lz -ljpeg"
# configure and build plugins
d154 1
d162 1
d165 1
a165 1
# install plugins
d174 1
a174 1
# install start script
d179 2
a180 1
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
@
1.43
log
@fix indentation, dependency style and dependency for libraries
@
text
@d26 1
a26 1
%define V_nagios 1.3
d40 1
a40 1
Release: 20060123
@
1.42
log
@make requirement of ldap configurable; fix nagios-group settings for nagios plugins
@
text
@d45 1
a45 1
%option with_ldap yes
a57 3
%if "%{with_ldap}" == "yes"
BuildPreReq: OpenPKG, openpkg >= 20040130, traceroute, gcc, openldap
%else
a58 1
%endif
d64 4
@
1.41
log
@adjust copyrights for new year 2006
@
text
@d40 1
a40 1
Release: 20051118
d45 1
d58 1
d60 3
d145 1
a145 1
--with-nagios-grp=%{l_mgrp} \
@
1.40
log
@upgrading package: nagios 1.2 -> 1.3
@
text
@d3 2
a4 2
## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
## Copyright (c) 2000-2005 Ralf S. Engelschall
@
1.39
log
@modifying package: nagios-1.2 20050802 -> 20050919
@
text
@d26 1
a26 1
%define V_nagios 1.2
d40 1
a40 1
Release: 20050919
@
1.38
log
@modifying package: nagios-1.2 20050227 -> 20050802
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4.1
d40 1
a40 1
Release: 20050802
d132 1
@
1.37
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d27 1
a27 1
%define V_nagios_plugins 1.4
d40 1
a40 1
Release: 20050227
@
1.36
log
@modifying package: nagios-1.2 20041210 -> 20050227
@
text
@d2 3
a4 4
## nagios.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2005 The OpenPKG Project
## Copyright (c) 2000-2005 Ralf S. Engelschall
## Copyright (c) 2000-2005 Cable & Wireless
d34 1
a34 1
Packager: The OpenPKG Project
@
1.35
log
@Happy New Year 2005
@
text
@d28 1
a28 1
%define V_nagios_plugins 1.3.1
d41 1
a41 1
Release: 20041210
d96 1
a96 1
nagios-plugins-1.3.1/configure
@
1.34
log
@replace subst with a changed source in etc.tar
@
text
@d3 3
a5 3
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
@
1.33
log
@fix pid (aka lock) file location in nagios.cfg aligning it with configure and rc.nagios
@
text
@d82 1
a82 1
prog nagios::plugins = {
a96 3
%{l_shtool} subst \
-e 's;^ *\(lock_file=@@l_prefix@@/var/nagios/\)log/\(nagios.lock\);\1\2;' \
etc/nagios.cfg
@
1.32
log
@fix segfault in check_ping caused by count and host args processed in wrong order (reported by Ulrike Goerke)
@
text
@d41 1
a41 1
Release: 20041028
d97 3
@
1.31
log
@fix linking
@
text
@d41 1
a41 1
Release: 20041006
d131 1
@
1.30
log
@fix packaging
@
text
@d41 1
a41 1
Release: 20041001
d102 1
a102 1
LIBS="%{l_fsl_libs}" \
@
1.29
log
@take over patch from contributed package
@
text
@d41 1
a41 1
Release: 20040801
d163 1
a163 1
etc/* etc/.htaccess $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
@
1.28
log
@fix tracking
@
text
@d41 1
a41 1
Release: 20040715
d163 1
a163 1
etc/* $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
@
1.27
log
@import contributions from Cyrus Hamidi; add/require/fix OpenLDAP support
@
text
@d41 1
a41 1
Release: 20040401
d79 1
a79 1
url = http://osdn.dl.sourceforge.net/sourceforge/nagios/
d84 1
a84 1
url = http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/
@
1.26
log
@blind commit of some fixes which has not been tested yet; added plugins as well
@
text
@d41 1
a41 1
Release: 20040309
d50 3
a52 2
Source2: rc.nagios
Source3: fsl.nagios
d58 1
a58 1
BuildPreReq: OpenPKG, openpkg >= 20040130, traceroute, gcc
d91 1
d93 4
d161 4
d198 1
a198 1
rm -f $RPM_INSTALL_PREFIX/var/nagios/*.log* >/dev/null 2>&1 || true
@
1.25
log
@upgrading package: nagios 1.1 -> 1.2
@
text
@d26 4
d34 1
a34 1
Vendor: Ethan Galstad
d40 2
a41 2
Version: 1.2
Release: 20040203
d44 2
a45 1
%option with_fsl yes
d48 4
a51 3
Source0: http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-%{version}.tar.gz
Source1: rc.nagios
Source2: fsl.nagios
d58 5
a62 3
PreReq: OpenPKG, openpkg >= 20040130, traceroute, apache
BuildPreReq: gd, jpeg, png, zlib
PreReq: gd, jpeg, png, zlib
d77 1
a77 1
version = %{version}
d79 6
a84 1
regex = nagios-(\d+\.\d+(\.\d+)?)\.tar\.gz
d89 1
a92 10
%{l_shtool} subst \
-e 's;localstatedir=.\${prefix}/var.;localstatedir="'%{l_prefix}'/var/nagios";g' \
-e 's;datadir=.\${prefix}/share.;datadir="'%{l_prefix}'/share/nagios";g' \
-e 's;sysconfdir=.\${prefix}/etc.;sysconfdir="'%{l_prefix}'/etc/nagios";g' \
-e 's;libexecdir=.\${prefix}/libexec.;libexecdir="'%{l_prefix}'/libexec/nagios";g' \
configure
%{l_shtool} subst \
-e 's;log_file=.*;log_file=/dev/null;' \
sample-config/nagios.cfg.in
echo "ac_cv_path_PATH_TO_TRACEROUTE=%{l_prefix}/sbin/traceroute}" >config.cache
d96 2
a97 2
LIBS="-ljpeg" \
PERLLIBS="%{l_fsl_libs}" \
d100 7
a106 2
--with-cgiurl=%{l_prefix}/cgi/nagios \
--with-htmurl=%{l_prefix}/share/nagios \
d111 7
a117 1
--with-lockfile=%{l_prefix}/var/nagios/nagios.lock
d119 18
a136 7
%{l_make} all %{l_mflags} \
GDLIBS="-lgd -lm -lpng -lz -ljpeg" \
LOGDIR=%{l_prefix}/var/nagios \
CFGDIR=%{l_prefix}/etc/nagios \
BINDIR=%{l_prefix}/bin \
CGIDIR=%{l_prefix}/cgi/nagios \
HTMLDIR=%{l_prefix}/share/nagios
d140 1
a143 2
$RPM_BUILD_ROOT%{l_prefix}/sbin \
$RPM_BUILD_ROOT%{l_prefix}/var/nagios/rw \
d145 9
a153 64
$RPM_BUILD_ROOT%{l_prefix}/cgi/nagios \
$RPM_BUILD_ROOT%{l_prefix}/share/nagios/media \
$RPM_BUILD_ROOT%{l_prefix}/share/nagios/stylesheets \
$RPM_BUILD_ROOT%{l_prefix}/share/nagios/contexthelp \
$RPM_BUILD_ROOT%{l_prefix}/share/nagios/docs/images \
$RPM_BUILD_ROOT%{l_prefix}/share/nagios/images/logos \
$RPM_BUILD_ROOT%{l_prefix}/share/nagios/ssi
# install nagios
%{l_shtool} install -c -s -m 755 \
base/nagios $RPM_BUILD_ROOT%{l_prefix}/sbin/
# install html
%{l_shtool} install -c -m 644 \
html/robots.txt $RPM_BUILD_ROOT%{l_prefix}/share/nagios/
%{l_shtool} install -c -m 644 \
html/docs/robots.txt $RPM_BUILD_ROOT%{l_prefix}/share/nagios/docs/
%{l_shtool} install -c -m 644 \
html/media/*.wav $RPM_BUILD_ROOT%{l_prefix}/share/nagios/media/
%{l_shtool} install -c -m 644 \
html/stylesheets/*.css $RPM_BUILD_ROOT%{l_prefix}/share/nagios/stylesheets/
%{l_shtool} install -c -m 644 \
html/contexthelp/*.html $RPM_BUILD_ROOT%{l_prefix}/share/nagios/contexthelp/
%{l_shtool} install -c -m 644 \
html/docs/*.html $RPM_BUILD_ROOT%{l_prefix}/share/nagios/docs/
%{l_shtool} install -c -m 644 \
html/docs/images/*.* $RPM_BUILD_ROOT%{l_prefix}/share/nagios/docs/images/
%{l_shtool} install -c -m 644 \
html/images/*.gif html/images/*.jpg html/images/*.png \
$RPM_BUILD_ROOT%{l_prefix}/share/nagios/images/
%{l_shtool} install -c -m 644 \
html/images/logos/*.* $RPM_BUILD_ROOT%{l_prefix}/share/nagios/images/logos/
# install cgis
%{l_shtool} install -c -s -m 755 \
cgi/*.cgi $RPM_BUILD_ROOT%{l_prefix}/cgi/nagios/
# install sample config
%{l_shtool} install -c -m 644 \
sample-config/nagios.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/cgi.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/resource.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/checkcommands.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/contactgroups.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/contacts.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
/dev/null $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/dependencies.cfg
%{l_shtool} install -c -m 644 \
sample-config/template-object/escalations.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/hostgroups.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/hosts.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/misccommands.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/services.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
%{l_shtool} install -c -m 644 \
sample-config/template-object/timeperiods.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
d169 2
a170 1
'%config %{l_prefix}/etc/fsl/fsl.nagios'
@
1.24
log
@Mass-Commit:
- split "Distribution" header into "Distribution" (old) and "Class"
(new) headers by moving the attached class information.
- embed the vendor version tracking configuration through the
new "%track" section.
- bump up the OpenPKG bootstrap dependency, because the "Class" header
and "%track" section are only supported by our latest bootstrap version.
@
text
@d36 1
a36 1
Version: 1.1
d69 1
a69 1
version = 1.1
@
1.23
log
@try to fix building
@
text
@d32 2
a33 1
Distribution: OpenPKG [EVAL]
d37 1
a37 1
Release: 20040124
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20030718, traceroute, gcc
PreReq: OpenPKG, openpkg >= 20030718, traceroute, apache
d66 7
@
1.22
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d36 1
a36 1
Release: 20031127
d84 1
@
1.21
log
@correct removal of pid files
@
text
@d3 3
a5 3
## Copyright (c) 2000-2003 The OpenPKG Project
## Copyright (c) 2000-2003 Ralf S. Engelschall
## Copyright (c) 2000-2003 Cable & Wireless
@
1.20
log
@PR #202, various basic corrections
@
text
@d36 1
a36 1
Release: 20031110
@
1.19
log
@speclint police: fix typo in macro name
@
text
@d36 1
a36 1
Release: 20030722
d55 2
a56 2
BuildPreReq: fsl >= 1.2.0
PreReq: fsl >= 1.2.0
d196 15
@
1.18
log
@cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies
@
text
@d99 1
a99 1
BINDIR=%{l__prefix}/bin \
@
1.17
log
@PR#210: shtool options space before argument
@
text
@d36 1
a36 1
Release: 20030721
@
1.16
log
@replace opXXXX with rcXXXX (PR#207)
@
text
@d36 1
a36 1
Release: 20030719
@
1.15
log
@fix PR#204, use new %{l_value -s ...}
@
text
@d36 1
a36 1
Release: 20030717
d50 2
a51 2
BuildPreReq: OpenPKG, openpkg >= 20030717, traceroute, gcc
PreReq: OpenPKG, openpkg >= 20030717, traceroute, apache
@
1.14
log
@fix PR#182 append option for l2_channel_file now default and deprecated in fsl >= 1.2.0
@
text
@d36 1
a36 1
Release: 20030714
d50 2
a51 2
BuildPreReq: OpenPKG, openpkg >= 20030710, traceroute, gcc
PreReq: OpenPKG, openpkg >= 20030710, traceroute, apache
d177 1
a177 5
%{l_shtool} install -c -m 755 \
-e 's;@@l_prefix@@;%{l_prefix};g' \
-e 's;@@l_susr@@;%{l_susr};g' \
-e 's;@@l_rusr@@;%{l_rusr};g' \
-e 's;@@l_rgrp@@;%{l_rgrp};g' \
d182 1
a182 2
%{l_shtool} install -c -m 644 \
-e 's;@@l_prefix@@;%{l_prefix};g' \
@
1.13
log
@add remaining missing substitutions of variables in installation of run-command scripts
@
text
@d36 1
a36 1
Release: 20030713
d55 2
a56 2
BuildPreReq: fsl
PreReq: fsl
@
1.12
log
@use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable
@
text
@d36 1
a36 1
Release: 20030710
d180 2
@
1.11
log
@cleanup copyright part by using just the main company name of Cable & Wireless and adding the URL to the global website
@
text
@d36 1
a36 1
Release: 20030708
d50 2
a51 2
BuildPreReq: OpenPKG, openpkg >= 20030415, traceroute, gcc
PreReq: OpenPKG, openpkg >= 20030415, traceroute, apache
@
1.10
log
@various style cleanups and adjustments
@
text
@a2 1
## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
d5 1
@
1.9
log
@remove now officially deprecated usage of %{name} macro
@
text
@d36 1
a36 1
Release: 20030707
d182 1
a182 1
# OSSP fake syslog library
@
1.8
log
@add libraries to PreReq
@
text
@d186 1
a186 1
%{SOURCE fsl.%{name}} \
d193 1
a193 1
'%config %{l_prefix}/etc/fsl/fsl.%{name}'
@
1.7
log
@requires gcc becauses uses gcc specific options
@
text
@d36 1
a36 1
Release: 20030702
d50 4
a53 2
BuildPreReq: OpenPKG, openpkg >= 20030415, gcc, gd, jpeg, png, zlib, traceroute
PreReq: OpenPKG, openpkg >= 20030415, apache, traceroute
@
1.6
log
@more clean ISO C; always use -p option; remove extra comment
@
text
@d36 1
a36 1
Release: 20030628
d50 1
a50 1
BuildPreReq: OpenPKG, openpkg >= 20030415, gd, jpeg, png, zlib, traceroute
@
1.5
log
@add/improve fsl support; fix typos; use openlog(2); inhibit use of plain log file
@
text
@d36 1
a36 1
Release: 20030625
d66 1
a66 1
%patch
@
1.4
log
@upgrading package: nagios 1.0 -> 1.1
@
text
@d36 4
a39 1
Release: 20030603
d44 2
a45 1
Patch0: fsl.nagios
d50 6
a55 2
BuildPreReq: OpenPKG, openpkg >= 20030310, gd, jpeg, png, zlib, traceroute
PreReq: OpenPKG, openpkg >= 20030310, apache, traceroute
d66 1
d75 3
d81 2
a82 1
LDFLAGS="%{l_ldflags}" \
a105 1
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl \
d180 2
a181 1
# install fsl
d184 2
a185 1
%{SOURCE fsl.nagios} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
d187 1
d190 2
a191 1
'%not %dir %{l_prefix}/etc/fsl'
@
1.3
log
@speclint police
@
text
@d35 2
a36 2
Version: 1.0
Release: 20030405
@
1.2
log
@cleanup and bugfix package
@
text
@d36 1
a36 1
Release: 20030314
d86 1
a86 1
HTMLDIR=%{l_prefix}/share/nagios \
@
1.1
log
@Appending nagios
@
text
@d28 3
a30 3
Summary: NagiosŪ is a system and network monitoring application.
URL: http://www.nagios.org
Vendor: Ethan Galstad
d39 3
a41 2
Source0: http://switch.dl.sorceforge.net/sorceforge/nagios/nagios-%{version}.tar.gz
#Source1: rc.arpd
d52 3
a54 21
NagiosŪ is a system and network monitoring application. It watches hosts and services
that you specify, alerting you when things go bad and when they get better.
Nagios was originally designed to run under Linux, although it should work under most
other unices as well.
Some of the many features of NagiosŪ include:
* Monitoring of network services (SMTP, POP3, HTTP, NNTP, PING, etc.)
* Monitoring of host resources (processor load, disk usage, etc.)
* Simple plugin design that allows users to easily develop their own service checks
* Parallelized service checks
* Ability to define network host hierarchy using "parent" hosts, allowing detection of
and distinction between hosts that are down and those that are unreachable
* Contact notifications when service or host problems occur and get resolved
(via email, pager, or user-defined method)
* Ability to define event handlers to be run during service or host events for proactive
problem resolution
* Automatic log file rotation
* Support for implementing redundant monitoring hosts
* Optional web interface for viewing current network status, notification and problem history,
log file, etc.
d60 20
a79 48
%{l_shtool} subst \
-e 's;localstatedir=.\${prefix}/var.;localstatedir="'%{l_prefix}'/var/nagios";g' \
-e 's;datadir=.\${prefix}/share.;datadir="'%{l_prefix}'/share/nagios";g' \
-e 's;sysconfdir=.\${prefix}/etc.;sysconfdir="'%{l_prefix}'/etc/nagios";g' \
-e 's;libexecdir=.\${prefix}/libexec.;libexecdir="'%{l_prefix}'/libexec/nagios";g' \
configure
# Preconfigure the Path to traceroute
(
echo "ac_cv_path_PATH_TO_TRACEROUTE=\${ac_cv_path_PATH_TO_TRACEROUTE=%{l_prefix}/sbin/traceroute}"
) >config.cache
# %{l_shtool} subst \
#-e 's;ac_cv_path_PATH_TO_TRACEROUTE=${ac_cv_path_PATH_TO_TRACEROUTE=/usr/sbin/traceroute};ac_cv_path_PATH_TO_TRACEROUTE=${ac_cv_path_PATH_TO_TRACEROUTE='%{l_prefix}'/sbin/traceroute};g' \
# config.cache
# -e 's;GDLIBS="[^"]*";GDLIBS="-lgd -lz -lm -lpng -ljpeg";g' \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
LDFLAGS="%{l_ldflags}" \
./configure \
--prefix=%{l_prefix} \
--with-cgiurl=%{l_prefix}/cgi/nagios \
--with-htmurl=%{l_prefix}/share/nagios \
--with-nagios-user=%{l_musr} \
--with-nagios-grp=%{l_mgrp} \
--with-gd-lib=%{l_prefix}/lib \
--with-gd-inc=%{l_prefix}/include \
--with-lockfile=%{l_prefix}/var/nagios/nagios.lock
# %{l_shtool} subst \
# -e 's;/var/run/arpd.pid;%{l_prefix}/var/arpd/arpd.pid;' \
# arpd.c
# %{l_shtool} subst \
# -e 's;/var/run/arpd.pid;%{l_prefix}/var/arpd/arpd.pid;' \
# arpd.8
# CC="%{l_cc}" \
# CFLAGS="%{l_cflags -O}"
# ./configure \
# --prefix=%{l_prefix} \
# --with-libdnet=%{l_prefix} \
# --with-libpcap=%{l_prefix} \
# --with-libevent=%{l_prefix}
# %{l_shtool} subst \
# -e "s;^\\(arpd_LDADD.*\\)$;\\1 `%{l_prefix}/bin/fsl-config --all --ldflags --libs`;" \
# Makefile
d81 1
a81 1
GDLIBS="-lgd -lm -lpng -lz -ljpeg" \
a87 1
a104 8
# %{l_make} install %{l_mflags} \
# INSTALL=%{l_shtool}' install -c'
# %{l_make} install-html %{l_mflags} \
# install files
d125 2
a126 5
html/images/*.gif $RPM_BUILD_ROOT%{l_prefix}/share/nagios/images/
%{l_shtool} install -c -m 644 \
html/images/*.jpg $RPM_BUILD_ROOT%{l_prefix}/share/nagios/images/
%{l_shtool} install -c -m 644 \
html/images/*.png $RPM_BUILD_ROOT%{l_prefix}/share/nagios/images/
d134 1
a134 1
# install sample config
d147 2
a148 4
# %{l_shtool} install -c -m 644 \
# sample-config/template-object/dependencies.cfg $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/
# instead of using the depencies.cfg
touch $RPM_BUILD_ROOT%{l_prefix}/etc/nagios/dependencies.cfg
a161 1
d170 2
a171 14
-e 's;@@l_prefix@@;%{l_prefix};g' \
%{SOURCE fsl.nagios} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# %{l_shtool} install -c -m 755 \
# -e 's;@@l_prefix@@;%{l_prefix};g' \
# -e 's;@@l_susr@@;%{l_susr};g' \
# %{SOURCE rc.arpd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# %{l_shtool} install -c -m 644 \
# -e 's;@@l_prefix@@;%{l_prefix};g' \
# %{SOURCE fsl.arpd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
# %{l_make} install-config %{l_mflags}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
d173 3
@