head 1.49;
access;
symbols
OPENPKG_E1_MP_HEAD:1.26
OPENPKG_E1_MP:1.26
OPENPKG_E1_MP_2_STABLE:1.24.2.3
OPENPKG_E1_FP:1.24.2.3
OPENPKG_2_STABLE_MP:1.27
OPENPKG_2_STABLE_20061018:1.24.2.2
OPENPKG_2_STABLE:1.24.0.2;
locks; strict;
comment @-- @;
1.49
date 2009.04.18.13.15.41; author rse; state Exp;
branches;
next 1.48;
commitid 4pHXU27WTIGCZuKt;
1.48
date 2008.07.25.06.04.55; author rse; state Exp;
branches;
next 1.47;
commitid cALaOrwo8a9bh9ct;
1.47
date 2008.06.14.07.31.43; author rse; state Exp;
branches;
next 1.46;
commitid la0XRioOIU5G4T6t;
1.46
date 2008.06.11.06.32.57; author rse; state Exp;
branches;
next 1.45;
commitid FFATATsqViNtQu6t;
1.45
date 2008.04.27.07.13.47; author rse; state Exp;
branches;
next 1.44;
commitid cDfmCc2Y5nabwI0t;
1.44
date 2008.03.29.16.18.52; author rse; state Exp;
branches;
next 1.43;
commitid sOl5RXJqh51Zs2Xs;
1.43
date 2008.03.28.07.48.27; author rse; state Exp;
branches;
next 1.42;
commitid y9lkieZW6BgRFRWs;
1.42
date 2008.03.10.16.04.31; author rse; state Exp;
branches;
next 1.41;
commitid 22fmlmk2cKZUZAUs;
1.41
date 2008.02.25.20.28.44; author rse; state Exp;
branches;
next 1.40;
commitid iVJse8usOrTsUOSs;
1.40
date 2008.02.17.17.22.38; author rse; state Exp;
branches;
next 1.39;
commitid LZOKTPTnPXpy8MRs;
1.39
date 2008.01.23.19.57.08; author rse; state Exp;
branches;
next 1.38;
commitid bW4gUcGdLFVnNzOs;
1.38
date 2008.01.01.15.04.54; author rse; state Exp;
branches;
next 1.37;
commitid B8esaHJHoduuKILs;
1.37
date 2007.11.06.07.25.56; author rse; state Exp;
branches;
next 1.36;
commitid NNoDPi8qPvX79uEs;
1.36
date 2007.10.28.16.04.02; author rse; state Exp;
branches;
next 1.35;
commitid n1SQlKpvMi6NinDs;
1.35
date 2007.10.28.08.07.51; author cs; state Exp;
branches;
next 1.34;
commitid UG5JDyx9YkgrFkDs;
1.34
date 2007.09.17.08.10.22; author cs; state Exp;
branches;
next 1.33;
commitid VodcveOq9jF004ys;
1.33
date 2007.09.10.15.05.45; author cs; state Exp;
branches;
next 1.32;
commitid 8J1DdmOtwvuswcxs;
1.32
date 2007.09.07.09.32.43; author rse; state Exp;
branches;
next 1.31;
commitid kHJ9mnJOpeObMMws;
1.31
date 2007.09.01.17.24.51; author cs; state Exp;
branches;
next 1.30;
commitid LVrZZBdwQwb7A3ws;
1.30
date 2007.08.30.17.22.29; author rse; state Exp;
branches;
next 1.29;
commitid guFOYccIxadiDNvs;
1.29
date 2007.05.03.10.16.03; author cs; state Exp;
branches;
next 1.28;
commitid 9CLNBuxn7Hba6tgs;
1.28
date 2007.04.29.22.19.12; author rse; state Exp;
branches;
next 1.27;
commitid 4f2CdGDxdngce1gs;
1.27
date 2007.02.24.18.54.54; author rse; state Exp;
branches;
next 1.26;
commitid 1PiVefn74Z5G9M7s;
1.26
date 2007.01.01.17.41.52; author rse; state Exp;
branches;
next 1.25;
commitid BicZD6VUl7GuqP0s;
1.25
date 2006.10.22.11.44.56; author rse; state Exp;
branches;
next 1.24;
commitid c1qoDePMYMnhNFRr;
1.24
date 2006.10.13.17.34.16; author thl; state Exp;
branches
1.24.2.1;
next 1.23;
commitid q5GSxzsSDX29XxQr;
1.23
date 2006.10.12.20.04.45; author rse; state Exp;
branches;
next 1.22;
commitid p6eq3WlKUPrFSqQr;
1.22
date 2006.09.24.13.43.26; author rse; state Exp;
branches;
next 1.21;
commitid 9iFNATQbf4HIl5Or;
1.21
date 2006.08.25.19.19.10; author rse; state Exp;
branches;
next 1.20;
commitid Tvsj1UyQ8rQ89gKr;
1.20
date 2006.07.14.15.54.56; author thl; state Exp;
branches;
next 1.19;
commitid gmRKhRc54iIkoQEr;
1.19
date 2006.04.14.18.03.54; author rse; state Exp;
branches;
next 1.18;
commitid 3eQUnLNqN62V1atr;
1.18
date 2006.02.16.18.04.22; author cs; state Exp;
branches;
next 1.17;
commitid sX0ZV27EzurGRPlr;
1.17
date 2006.02.09.20.23.34; author rse; state Exp;
branches;
next 1.16;
commitid cx8wVip1PueoRWkr;
1.16
date 2006.01.01.13.22.21; author rse; state Exp;
branches;
next 1.15;
commitid otZG8yKMCw1JFTfr;
1.15
date 2005.11.15.07.09.37; author rse; state Exp;
branches;
next 1.14;
commitid MYWiDNj9JeqpeP9r;
1.14
date 2005.10.27.13.22.19; author cs; state Exp;
branches;
next 1.13;
commitid TVllJnVEWnI8Up7r;
1.13
date 2005.10.12.06.34.48; author rse; state Exp;
branches;
next 1.12;
1.12
date 2005.10.05.14.29.43; author cs; state Exp;
branches;
next 1.11;
1.11
date 2005.09.27.07.08.55; author thl; state Exp;
branches;
next 1.10;
1.10
date 2005.09.21.06.22.46; author rse; state Exp;
branches;
next 1.9;
1.9
date 2005.09.05.06.02.21; author rse; state Exp;
branches;
next 1.8;
1.8
date 2005.09.01.10.03.15; author cs; state Exp;
branches;
next 1.7;
1.7
date 2005.06.01.19.12.06; author rse; state Exp;
branches;
next 1.6;
1.6
date 2005.05.15.17.28.12; author rse; state Exp;
branches;
next 1.5;
1.5
date 2005.05.11.18.24.24; author rse; state Exp;
branches;
next 1.4;
1.4
date 2005.04.18.10.29.29; author cs; state Exp;
branches;
next 1.3;
1.3
date 2005.04.15.18.23.06; author rse; state Exp;
branches;
next 1.2;
1.2
date 2005.03.25.12.27.19; author cs; state Exp;
branches;
next 1.1;
1.1
date 2005.03.24.17.39.19; author cs; state Exp;
branches;
next ;
1.24.2.1
date 2006.10.13.17.34.16; author rse; state dead;
branches;
next 1.24.2.2;
commitid iZxwRSmmWscPXUQr;
1.24.2.2
date 2006.10.16.14.56.31; author rse; state Exp;
branches;
next 1.24.2.3;
commitid iZxwRSmmWscPXUQr;
1.24.2.3
date 2006.10.22.11.45.41; author rse; state Exp;
branches;
next 1.24.2.4;
commitid 4ImnTuSgXdaxNFRr;
1.24.2.4
date 2007.03.18.23.33.07; author thl; state Exp;
branches;
next ;
commitid j886gsownDQWXCas;
desc
@@
1.49
log
@bump years in copyright messages
@
text
@##
## smokeping.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 information
Name: smokeping
Summary: Latency Logging and Graphing System
URL: http://oss.oetiker.ch/smokeping/
Vendor: Tobias Oetiker
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: PLUS
Group: Mapping
License: GPL
Version: 2.4.2
Release: 20080725
# list of sources
Source0: http://oss.oetiker.ch/smokeping/pub/smokeping-%{version}.tar.gz
Source1: smokeping.conf
Source2: smokeping.html
Source3: rc.smokeping
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823
PreReq: OpenPKG, openpkg >= 20060823
PreReq: perl, perl-www, rrdtool, rrdtool::with_perl = yes, fping, MTA
AutoReq: no
AutoReqProv: no
%description
SmokePing is a latency logging and graphing system. It consists of
a daemon process which organizes the latency measurements and a CGI
which presents the graphs.
%track
prog smokeping = {
version = %{version}
url = http://oss.oetiker.ch/smokeping/pub/
regex = smokeping-(__VER__)\.tar\.gz
}
%prep
%setup -q
# clean-up source tree
find . -type f -name '.#*' -exec rm -f {} \;
# fix paths
%{l_shtool} subst \
-e 's;^#!/.*$;#!%{l_prefix}/bin/perl;' \
-e 's;^\(use lib qw(\)[^)]*rrdtool[^)]*\()\;.*\)$;\1%{l_prefix}/lib/smokeping\2;' \
-e 's;^\(Smokeping::main("\).*\(")\;\)$;\1%{l_prefix}/etc/smokeping/smokeping.conf\2;' \
-e 's;^\(Smokeping::cgi("\).*\(")\;\)$;\1%{l_prefix}/etc/smokeping/smokeping.conf\2;' \
bin/smokeping.dist \
htdocs/smokeping.cgi.dist
%build
:
%install
rm -rf $RPM_BUILD_ROOT
# create directories
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/cgi \
$RPM_BUILD_ROOT%{l_prefix}/etc/smokeping \
$RPM_BUILD_ROOT%{l_prefix}/lib/smokeping \
$RPM_BUILD_ROOT%{l_prefix}/sbin \
$RPM_BUILD_ROOT%{l_prefix}/share/smokeping \
$RPM_BUILD_ROOT%{l_prefix}/var/smokeping/dat \
$RPM_BUILD_ROOT%{l_prefix}/var/smokeping/img
# install SmokePing
%{l_shtool} install -c -m 755 %{l_value -s -a} \
bin/smokeping.dist \
$RPM_BUILD_ROOT%{l_prefix}/sbin/smokeping
%{l_shtool} install -c -m 755 %{l_value -s -a} \
htdocs/smokeping.cgi.dist \
$RPM_BUILD_ROOT%{l_prefix}/cgi/smokeping
( cd lib
umask 022
%{l_tar} cf - . | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/smokeping/
) || exit $?
# install default configuration
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE smokeping.conf} \
%{SOURCE smokeping.html} \
$RPM_BUILD_ROOT%{l_prefix}/etc/smokeping/
%{l_shtool} mkln -s \
../../etc/smokeping/smokeping.html \
$RPM_BUILD_ROOT%{l_prefix}/share/smokeping/
%{l_shtool} install -c -m 644 %{l_value -s -a} \
etc/smokemail.dist \
$RPM_BUILD_ROOT%{l_prefix}/etc/smokeping/smokemail
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.smokeping} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
'%config %{l_prefix}/etc/smokeping/*' \
'%dir %attr(1777,%{l_mgrp},%{l_mgrp}) %{l_prefix}/var/smokeping/img'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} smokeping status 2>/dev/null`
[ ".$smokeping_active" = .yes ] && %{l_rc} smokeping restart
exit 0
%preun
# before erase, stop service and remove archvies and image caches
[ $1 -eq 0 ] || exit 0
%{l_rc} smokeping stop 2>/dev/null
rm -rf $RPM_INSTALL_PREFIX/var/smokeping/dat/* >/dev/null 2>&1 || true
rm -rf $RPM_INSTALL_PREFIX/var/smokeping/img/* >/dev/null 2>&1 || true
exit 0
@
1.48
log
@upgrading package: smokeping 2.4.1 -> 2.4.2
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.47
log
@upgrading package: smokeping 2.4.0 -> 2.4.1
@
text
@d34 2
a35 2
Version: 2.4.1
Release: 20080614
@
1.46
log
@upgrading package: smokeping 2.3.6 -> 2.4.0
@
text
@d34 2
a35 2
Version: 2.4.0
Release: 20080611
@
1.45
log
@upgrading package: smokeping 2.3.5 -> 2.3.6
@
text
@d34 2
a35 2
Version: 2.3.6
Release: 20080427
@
1.44
log
@upgrading package: smokeping 2.3.4 -> 2.3.5
@
text
@d34 2
a35 2
Version: 2.3.5
Release: 20080329
@
1.43
log
@upgrading package: smokeping 2.3.3 -> 2.3.4
@
text
@d34 2
a35 2
Version: 2.3.4
Release: 20080328
@
1.42
log
@upgrading package: smokeping 2.3.2 -> 2.3.3
@
text
@d34 2
a35 2
Version: 2.3.3
Release: 20080310
@
1.41
log
@upgrading package: smokeping 2.3.1 -> 2.3.2
@
text
@d34 2
a35 2
Version: 2.3.2
Release: 20080225
@
1.40
log
@upgrading package: smokeping 2.3.0 -> 2.3.1
@
text
@d34 2
a35 2
Version: 2.3.1
Release: 20080217
@
1.39
log
@upgrading package: smokeping 2.2.7 -> 2.3.0
@
text
@d34 2
a35 2
Version: 2.3.0
Release: 20080123
@
1.38
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version: 2.2.7
Release: 20080101
@
1.37
log
@upgrading package: smokeping 2.2.6 -> 2.2.7
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d35 1
a35 1
Release: 20071106
@
1.36
log
@upgrading package: smokeping 2.2.5 -> 2.2.6
@
text
@d35 2
a36 2
Version: 2.2.6
Release: 20071028
@
1.35
log
@upgrading package: smokeping 2.2.4 -> 2.2.5
@
text
@d35 1
a35 1
Version: 2.2.5
@
1.34
log
@upgrading package: smokeping 2.2.3 -> 2.2.4
@
text
@d35 2
a36 2
Version: 2.2.4
Release: 20070917
@
1.33
log
@since Perl bindings of rrdtool package are optional now require them here explicitly
@
text
@d35 2
a36 2
Version: 2.2.3
Release: 20070910
@
1.32
log
@upgrading package: smokeping 2.2.2 -> 2.2.3
@
text
@d36 1
a36 1
Release: 20070907
d48 2
a49 1
PreReq: OpenPKG, openpkg >= 20060823, perl, perl-www, rrdtool, fping, MTA
@
1.31
log
@requires perl-www
@
text
@d35 2
a36 2
Version: 2.2.2
Release: 20070901
@
1.30
log
@upgrading package: smokeping 2.1.1 -> 2.2.2
@
text
@d36 1
a36 1
Release: 20070830
d48 1
a48 1
PreReq: OpenPKG, openpkg >= 20060823, perl, rrdtool, fping, MTA
@
1.29
log
@upgrading package: smokeping 2.1.0 -> 2.1.1
@
text
@d35 2
a36 2
Version: 2.1.1
Release: 20070503
@
1.28
log
@upgrading package: smokeping 2.0.9 -> 2.1.0
@
text
@d35 2
a36 2
Version: 2.1.0
Release: 20070430
@
1.27
log
@fix tracking
@
text
@d35 2
a36 2
Version: 2.0.9
Release: 20070224
@
1.26
log
@Welcome Year 2007!
@
text
@d28 1
a28 1
URL: http://people.ee.ethz.ch/~oetiker/webtools/smokeping/
d36 1
a36 1
Release: 20061022
d39 1
a39 1
Source0: http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/smokeping-%{version}.tar.gz
d60 1
a60 1
url = http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/
@
1.25
log
@cgi/ has no subdirs by definition
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.24
log
@new world order for "Packager" and "Distribution" headers
@
text
@d36 1
a36 1
Release: 20061013
d87 1
a87 1
$RPM_BUILD_ROOT%{l_prefix}/cgi/smokeping \
d101 1
a101 1
$RPM_BUILD_ROOT%{l_prefix}/cgi/smokeping/smokeping.cgi
@
1.24.2.1
log
@file smokeping.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:56:31 +0000
@
text
@d1 150
@
1.24.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 150
##
## smokeping.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 information
Name: smokeping
Summary: Latency Logging and Graphing System
URL: http://people.ee.ethz.ch/~oetiker/webtools/smokeping/
Vendor: Tobias Oetiker
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: PLUS
Group: Mapping
License: GPL
Version: 2.0.9
Release: 2.20061018
# list of sources
Source0: http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/smokeping-%{version}.tar.gz
Source1: smokeping.conf
Source2: smokeping.html
Source3: rc.smokeping
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018
PreReq: OpenPKG, openpkg >= 2.20061018, perl, rrdtool, fping, MTA
AutoReq: no
AutoReqProv: no
%description
SmokePing is a latency logging and graphing system. It consists of
a daemon process which organizes the latency measurements and a CGI
which presents the graphs.
%track
prog smokeping = {
version = %{version}
url = http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/
regex = smokeping-(__VER__)\.tar\.gz
}
%prep
%setup -q
# clean-up source tree
find . -type f -name '.#*' -exec rm -f {} \;
# fix paths
%{l_shtool} subst \
-e 's;^#!/.*$;#!%{l_prefix}/bin/perl;' \
-e 's;^\(use lib qw(\)[^)]*rrdtool[^)]*\()\;.*\)$;\1%{l_prefix}/lib/smokeping\2;' \
-e 's;^\(Smokeping::main("\).*\(")\;\)$;\1%{l_prefix}/etc/smokeping/smokeping.conf\2;' \
-e 's;^\(Smokeping::cgi("\).*\(")\;\)$;\1%{l_prefix}/etc/smokeping/smokeping.conf\2;' \
bin/smokeping.dist \
htdocs/smokeping.cgi.dist
%build
:
%install
rm -rf $RPM_BUILD_ROOT
# create directories
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/cgi/smokeping \
$RPM_BUILD_ROOT%{l_prefix}/etc/smokeping \
$RPM_BUILD_ROOT%{l_prefix}/lib/smokeping \
$RPM_BUILD_ROOT%{l_prefix}/sbin \
$RPM_BUILD_ROOT%{l_prefix}/share/smokeping \
$RPM_BUILD_ROOT%{l_prefix}/var/smokeping/dat \
$RPM_BUILD_ROOT%{l_prefix}/var/smokeping/img
# install SmokePing
%{l_shtool} install -c -m 755 %{l_value -s -a} \
bin/smokeping.dist \
$RPM_BUILD_ROOT%{l_prefix}/sbin/smokeping
%{l_shtool} install -c -m 755 %{l_value -s -a} \
htdocs/smokeping.cgi.dist \
$RPM_BUILD_ROOT%{l_prefix}/cgi/smokeping/smokeping.cgi
( cd lib
umask 022
%{l_tar} cf - . | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/smokeping/
) || exit $?
# install default configuration
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE smokeping.conf} \
%{SOURCE smokeping.html} \
$RPM_BUILD_ROOT%{l_prefix}/etc/smokeping/
%{l_shtool} mkln -s \
../../etc/smokeping/smokeping.html \
$RPM_BUILD_ROOT%{l_prefix}/share/smokeping/
%{l_shtool} install -c -m 644 %{l_value -s -a} \
etc/smokemail.dist \
$RPM_BUILD_ROOT%{l_prefix}/etc/smokeping/smokemail
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.smokeping} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
'%config %{l_prefix}/etc/smokeping/*' \
'%dir %attr(1777,%{l_mgrp},%{l_mgrp}) %{l_prefix}/var/smokeping/img'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} smokeping status 2>/dev/null`
[ ".$smokeping_active" = .yes ] && %{l_rc} smokeping restart
exit 0
%preun
# before erase, stop service and remove archvies and image caches
[ $1 -eq 0 ] || exit 0
%{l_rc} smokeping stop 2>/dev/null
rm -rf $RPM_INSTALL_PREFIX/var/smokeping/dat/* >/dev/null 2>&1 || true
rm -rf $RPM_INSTALL_PREFIX/var/smokeping/img/* >/dev/null 2>&1 || true
exit 0
@
1.24.2.3
log
@MFC: cgi/ has no subdirs by definition
@
text
@d36 1
a36 1
Release: 2.20061022
d87 1
a87 1
$RPM_BUILD_ROOT%{l_prefix}/cgi \
d101 1
a101 1
$RPM_BUILD_ROOT%{l_prefix}/cgi/smokeping
@
1.24.2.4
log
@MFC: make up leeway for 2_STABLE by virtue of build-time results
@
text
@d3 2
a4 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d28 1
a28 1
URL: http://oss.oetiker.ch/smokeping/
d36 1
a36 1
Release: 2.20070319
d39 1
a39 1
Source0: http://oss.oetiker.ch/smokeping/pub/smokeping-%{version}.tar.gz
d60 1
a60 1
url = http://oss.oetiker.ch/smokeping/pub/
@
1.23
log
@bless for PLUS class
@
text
@d30 2
a31 2
Packager: OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release: 20061012
@
1.22
log
@adjust Group header
@
text
@d32 1
a32 1
Class: EVAL
d36 1
a36 1
Release: 20060924
@
1.21
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
@d33 1
a33 1
Group: Network
d36 1
a36 1
Release: 20060825
@
1.20
log
@upgrading package: smokeping 2.0.8 -> 2.0.9
@
text
@d36 1
a36 1
Release: 20060714
d47 2
a48 2
BuildPreReq: OpenPKG, openpkg >= 20040130
PreReq: OpenPKG, openpkg >= 20040130, perl, rrdtool, fping, MTA
@
1.19
log
@upgrading package: smokeping 2.0.7 -> 2.0.8
@
text
@d35 2
a36 2
Version: 2.0.8
Release: 20060414
a78 5
# fix typo
%{l_shtool} subst \
-e 's;attache ;attached ;g' \
etc/smokemail.dist
@
1.18
log
@upgrading package: smokeping 2.0.6 -> 2.0.7
@
text
@d35 2
a36 2
Version: 2.0.7
Release: 20060216
d68 1
a68 1
find . -type f -name .#\* -exec rm -f {} \;
@
1.17
log
@upgrading package: smokeping 2.0.5 -> 2.0.6
@
text
@d35 2
a36 2
Version: 2.0.6
Release: 20060209
@
1.16
log
@adjust copyrights for new year 2006
@
text
@d35 2
a36 2
Version: 2.0.5
Release: 20051115
@
1.15
log
@upgrading package: smokeping 2.0.4 -> 2.0.5
@
text
@d3 2
a4 2
## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
## Copyright (c) 2000-2005 Ralf S. Engelschall
@
1.14
log
@fixed typo
@
text
@d35 2
a36 2
Version: 2.0.4
Release: 20051027
@
1.13
log
@upgrading package: smokeping 2.0.3 -> 2.0.4
@
text
@d36 1
a36 1
Release: 20051012
d145 1
a145 1
[ ".$lighttpd_active" = .yes ] && %{l_rc} smokeping restart
@
1.12
log
@config file check
@
text
@d35 2
a36 2
Version: 2.0.3
Release: 20051005
@
1.11
log
@upgrading package: smokeping 2.0.2 -> 2.0.3
@
text
@d36 1
a36 1
Release: 20050927
@
1.10
log
@upgrading package: smokeping 2.0.1 -> 2.0.2
@
text
@d35 2
a36 2
Version: 2.0.2
Release: 20050921
@
1.9
log
@upgrading package: smokeping 2.0rc5 -> 2.0.1
@
text
@d35 2
a36 2
Version: 2.0.1
Release: 20050905
@
1.8
log
@modifying package: smokeping-2.0rc5 20050601 -> 20050901
@
text
@d35 2
a36 2
Version: 2.0rc5
Release: 20050901
@
1.7
log
@upgrading package: smokeping 2.0rc4 -> 2.0rc5
@
text
@d36 1
a36 1
Release: 20050601
d73 1
a73 2
-e 's;^\(use lib qw(\)[^)]*rrdtool[^)]*\()\;.*\)$;\1%{l_prefix}/lib\2;' \
-e 's;^\(use lib qw(\)[^)]*smokeping[^)]*\()\;.*\)$;\1%{l_prefix}/lib/smokeping\2;' \
@
1.6
log
@upgrading package: smokeping 1.41 -> 2.0rc4
@
text
@d35 2
a36 2
Version: 2.0rc4
Release: 20050515
@
1.5
log
@upgrading package: smokeping 1.40 -> 1.41
@
text
@d27 1
a27 1
Summary: Latency logging and graphing system
d35 2
a36 2
Version: 1.41
Release: 20050511
@
1.4
log
@upgrading package: smokeping 1.39 -> 1.40
@
text
@d35 2
a36 2
Version: 1.40
Release: 20050418
@
1.3
log
@upgrading package: smokeping 1.38 -> 1.39
@
text
@d35 2
a36 2
Version: 1.39
Release: 20050415
@
1.2
log
@replaced test hosts against RFC2606 compliant ones to avoid DOS
@
text
@d35 2
a36 2
Version: 1.38
Release: 20050325
@
1.1
log
@new package: smokeping 1.38 (Latency logging and graphing system)
@
text
@d36 1
a36 1
Release: 20050324
@