head	1.33;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.26
	OPENPKG_E1_MP:1.26
	OPENPKG_E1_MP_2_STABLE:1.18.2.2
	OPENPKG_E1_FP:1.18.2.2
	OPENPKG_2_STABLE_MP:1.27
	OPENPKG_2_STABLE_20061018:1.18.2.2
	OPENPKG_2_STABLE_20060622:1.18.2.1
	OPENPKG_2_STABLE:1.18.0.2
	OPENPKG_2_STABLE_BP:1.18
	OPENPKG_2_5_RELEASE:1.13.2.1
	OPENPKG_2_5_SOLID:1.13.0.2
	OPENPKG_2_5_SOLID_BP:1.13
	OPENPKG_2_4_RELEASE:1.12.2.1
	OPENPKG_2_4_SOLID:1.12.0.2
	OPENPKG_2_4_SOLID_BP:1.12
	OPENPKG_CW_FP:1.9
	OPENPKG_2_3_RELEASE:1.9.2.1
	OPENPKG_2_3_SOLID:1.9.0.2
	OPENPKG_2_3_SOLID_BP:1.9
	OPENPKG_2_2_RELEASE:1.6.2.1
	OPENPKG_2_2_SOLID:1.6.0.2
	OPENPKG_2_2_SOLID_BP:1.6;
locks; strict;
comment	@-- @;


1.33
date	2009.04.18.13.13.02;	author rse;	state Exp;
branches;
next	1.32;
commitid	4pHXU27WTIGCZuKt;

1.32
date	2008.05.16.18.12.07;	author rse;	state Exp;
branches;
next	1.31;
commitid	uOMabVE3MJWayd3t;

1.31
date	2008.02.17.17.25.07;	author rse;	state Exp;
branches;
next	1.30;
commitid	L9kUZo1nncLp9MRs;

1.30
date	2008.02.06.20.02.33;	author rse;	state Exp;
branches;
next	1.29;
commitid	z5E4sLWZEb8knnQs;

1.29
date	2008.01.01.14.59.11;	author rse;	state Exp;
branches;
next	1.28;
commitid	B8esaHJHoduuKILs;

1.28
date	2007.04.29.22.19.13;	author rse;	state Exp;
branches;
next	1.27;
commitid	7N0cV1DfiuNce1gs;

1.27
date	2007.02.01.08.18.47;	author rse;	state Exp;
branches;
next	1.26;
commitid	1Ho8EGH5MSLhnL4s;

1.26
date	2007.01.01.17.39.57;	author rse;	state Exp;
branches;
next	1.25;
commitid	BicZD6VUl7GuqP0s;

1.25
date	2006.12.06.06.55.18;	author rse;	state Exp;
branches;
next	1.24;
commitid	aLUL8567fMWeKqXr;

1.24
date	2006.10.14.18.08.11;	author rse;	state Exp;
branches;
next	1.23;
commitid	ZA0LLnMHV4zHaGQr;

1.23
date	2006.10.13.17.30.19;	author thl;	state Exp;
branches;
next	1.22;
commitid	q5GSxzsSDX29XxQr;

1.22
date	2006.10.11.08.37.06;	author rse;	state Exp;
branches;
next	1.21;
commitid	emQ9IesPzaxL6fQr;

1.21
date	2006.08.25.19.17.28;	author rse;	state Exp;
branches;
next	1.20;
commitid	Tvsj1UyQ8rQ89gKr;

1.20
date	2006.07.14.15.47.40;	author thl;	state Exp;
branches;
next	1.19;
commitid	ALc7D1Tl6CQPlQEr;

1.19
date	2006.07.05.06.33.36;	author thl;	state Exp;
branches;
next	1.18;
commitid	NWDZEsm4ow1HzDDr;

1.18
date	2006.05.08.06.39.20;	author rse;	state Exp;
branches
	1.18.2.1;
next	1.17;
commitid	el5AmSUNQHPftbwr;

1.17
date	2006.02.04.09.10.43;	author rse;	state Exp;
branches;
next	1.16;
commitid	svtOLP332Kjwifkr;

1.16
date	2006.01.31.15.33.20;	author rse;	state Exp;
branches;
next	1.15;
commitid	NHMbRDNFpyUKxLjr;

1.15
date	2006.01.30.07.25.13;	author rse;	state Exp;
branches;
next	1.14;
commitid	EDWDAhvfL2ZiSAjr;

1.14
date	2006.01.01.13.17.00;	author rse;	state Exp;
branches;
next	1.13;
commitid	otZG8yKMCw1JFTfr;

1.13
date	2005.06.20.18.02.23;	author rse;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2005.05.17.07.05.30;	author rse;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2005.05.16.17.45.25;	author rse;	state Exp;
branches;
next	1.10;

1.10
date	2005.03.24.11.19.32;	author rse;	state Exp;
branches;
next	1.9;

1.9
date	2005.01.06.09.32.46;	author rse;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2005.01.01.10.52.38;	author rse;	state Exp;
branches;
next	1.7;

1.7
date	2004.12.09.09.48.04;	author hms;	state Exp;
branches;
next	1.6;

1.6
date	2004.10.11.15.20.45;	author rse;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2004.08.08.17.47.12;	author rse;	state Exp;
branches;
next	1.4;

1.4
date	2004.07.06.09.21.06;	author rse;	state Exp;
branches;
next	1.3;

1.3
date	2004.06.09.06.54.33;	author rse;	state Exp;
branches;
next	1.2;

1.2
date	2004.05.04.14.46.00;	author rse;	state Exp;
branches;
next	1.1;

1.1
date	2004.04.02.09.55.41;	author ms;	state Exp;
branches;
next	;

1.18.2.1
date	2006.06.20.15.21.44;	author rse;	state Exp;
branches;
next	1.18.2.2;
commitid	P9b9BoNafLYTTKBr;

1.18.2.2
date	2006.10.16.14.53.00;	author rse;	state Exp;
branches;
next	1.18.2.3;
commitid	iZxwRSmmWscPXUQr;

1.18.2.3
date	2007.01.06.13.49.39;	author thl;	state Exp;
branches;
next	1.18.2.4;
commitid	64YWMfcnWvBu2s1s;

1.18.2.4
date	2007.03.18.23.31.47;	author thl;	state Exp;
branches;
next	;
commitid	j886gsownDQWXCas;

1.13.2.1
date	2005.10.11.12.50.54;	author rse;	state Exp;
branches;
next	;

1.12.2.1
date	2005.06.15.19.00.52;	author rse;	state Exp;
branches;
next	;

1.9.2.1
date	2005.02.21.17.07.39;	author rse;	state Exp;
branches;
next	;

1.6.2.1
date	2004.10.11.18.57.15;	author rse;	state Exp;
branches;
next	;


desc
@@


1.33
log
@bump years in copyright messages
@
text
@##
##  mrtg.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  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:         mrtg
Summary:      Multi Router Traffic Grapher
URL:          http://oss.oetiker.ch/mrtg/
Vendor:       Tobias Oetiker
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        PLUS
Group:        Monitoring
License:      GPL
Version:      2.16.2
Release:      20080516

#   list of sources
Source0:      http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz
Source1:      mrtg.cfg
Source2:      rc.mrtg

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20060823, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 20060823, perl, zlib, gd, png, snmp
AutoReq:      no
AutoReqProv:  no

%description
    The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic
    load on network-links. MRTG generates HTML pages containing graphical
    images which provide a LIVE visual representation of this traffic.

%track
    prog mrtg = {
        version   = %{version}
        url       = http://oss.oetiker.ch/mrtg/pub/
        regex     = mrtg-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %{l_shtool} subst \
        -e 's;mrtg2";mrtg";g' \
        bin/*

%build
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags}" \
    ./configure \
        --prefix=%{l_prefix} \
        --with-gd=%{l_prefix} \
        --with-z=%{l_prefix} \
        --with-png=%{l_prefix}
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
        $RPM_BUILD_ROOT%{l_prefix}/etc/mrtg \
        $RPM_BUILD_ROOT%{l_prefix}/var/mrtg \
        $RPM_BUILD_ROOT%{l_prefix}/web/mrtg
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.mrtg} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE mrtg.cfg} $RPM_BUILD_ROOT%{l_prefix}/etc/mrtg/
    mv  $RPM_BUILD_ROOT%{l_prefix}/lib/mrtg2 \
        $RPM_BUILD_ROOT%{l_prefix}/lib/mrtg
    mv  $RPM_BUILD_ROOT%{l_prefix}/share/mrtg2 \
        $RPM_BUILD_ROOT%{l_prefix}/share/mrtg
    mv -f $RPM_BUILD_ROOT%{l_prefix}/share/doc/mrtg2 \
        $RPM_BUILD_ROOT%{l_prefix}/share/mrtg/doc
    rmdir $RPM_BUILD_ROOT%{l_prefix}/share/doc
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/rateup >/dev/null 2>&1 || true
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/mrtg/mrtg.cfg' \
        '%doc %{l_prefix}/share/mrtg/doc/*'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.32
log
@upgrading package: mrtg 2.16.1 -> 2.16.2
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.31
log
@upgrading package: mrtg 2.16.0 -> 2.16.1
@
text
@d34 2
a35 2
Version:      2.16.1
Release:      20080217
@


1.30
log
@upgrading package: mrtg 2.15.2 -> 2.16.0
@
text
@d34 2
a35 2
Version:      2.16.0
Release:      20080206
@


1.29
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.15.2
Release:      20080101
@


1.28
log
@upgrading package: mrtg 2.15.1 -> 2.15.2
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d35 1
a35 1
Release:      20070430
@


1.27
log
@upgrading package: mrtg 2.15.0 -> 2.15.1
@
text
@d35 2
a36 2
Version:      2.15.1
Release:      20070201
@


1.26
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version:      2.15.0
Release:      20061206
@


1.25
log
@upgrading package: mrtg 2.14.7 -> 2.15.0
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.24
log
@upgrading package: mrtg 2.14.5 -> 2.14.7
@
text
@d35 2
a36 2
Version:      2.14.7
Release:      20061014
@


1.23
log
@new world order for "Packager" and "Distribution" headers
@
text
@d28 1
a28 1
URL:          http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
d35 2
a36 2
Version:      2.14.5
Release:      20061013
d39 1
a39 1
Source0:      http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-%{version}.tar.gz
d59 1
a59 1
        url       = http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/
@


1.22
log
@use a Group which fits better
@
text
@d30 2
a31 2
Packager:     OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release:      20061011
@


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:        Web
d36 1
a36 1
Release:      20060825
@


1.20
log
@upgrading package: mrtg 2.14.4 -> 2.14.5
@
text
@d36 1
a36 1
Release:      20060714
d46 2
a47 2
BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 20040130, perl, zlib, gd, png, snmp
@


1.19
log
@upgrading package: mrtg 2.14.3 -> 2.14.4
@
text
@d35 2
a36 2
Version:      2.14.4
Release:      20060705
@


1.18
log
@upgrading package: mrtg 2.13.2 -> 2.14.3
@
text
@d35 2
a36 2
Version:      2.14.3
Release:      20060508
@


1.18.2.1
log
@bump release numbers for OpenPKG 2.20060622 in advance
@
text
@d36 1
a36 1
Release:      2.20060622
d46 2
a47 2
BuildPreReq:  OpenPKG, openpkg >= 2.20060622, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 2.20060622, perl, zlib, gd, png, snmp
@


1.18.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@d28 1
a28 1
URL:          http://oss.oetiker.ch/mrtg/
d30 2
a31 2
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
d33 1
a33 1
Group:        Monitoring
d35 2
a36 2
Version:      2.14.7
Release:      2.20061018
d39 1
a39 1
Source0:      http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz
d46 2
a47 2
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 2.20061018, perl, zlib, gd, png, snmp
d59 1
a59 1
        url       = http://oss.oetiker.ch/mrtg/pub/
@


1.18.2.3
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. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d35 2
a36 2
Version:      2.15.0
Release:      2.20070106
@


1.18.2.4
log
@MFC: make up leeway for 2_STABLE by virtue of build-time results
@
text
@d35 2
a36 2
Version:      2.15.1
Release:      2.20070319
@


1.17
log
@upgrading package: mrtg 2.13.1 -> 2.13.2
@
text
@d35 2
a36 2
Version:      2.13.2
Release:      20060204
d103 2
a104 1
        '%config %{l_prefix}/etc/mrtg/mrtg.cfg'
@


1.16
log
@upgrading package: mrtg 2.13.0 -> 2.13.1
@
text
@d35 2
a36 2
Version:      2.13.1
Release:      20060131
@


1.15
log
@upgrading package: mrtg 2.12.2 -> 2.13.0
@
text
@d35 2
a36 2
Version:      2.13.0
Release:      20060130
@


1.14
log
@adjust copyrights for new year 2006
@
text
@d35 2
a36 2
Version:      2.12.2
Release:      20050620
@


1.13
log
@upgrading package: mrtg 2.12.1 -> 2.12.2
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
@


1.13.2.1
log
@bump release numbers for OpenPKG 2.5
@
text
@d36 1
a36 1
Release:      2.5.0
d46 2
a47 2
BuildPreReq:  OpenPKG, openpkg >= 2.5.0, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 2.5.0, perl, zlib, gd, png, snmp
@


1.12
log
@upgrading package: mrtg 2.12.0 -> 2.12.1
@
text
@d35 2
a36 2
Version:      2.12.1
Release:      20050517
@


1.12.2.1
log
@bump release numbers for OpenPKG 2.4
@
text
@d36 1
a36 1
Release:      2.4.0
d46 2
a47 2
BuildPreReq:  OpenPKG, openpkg >= 2.4.0, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 2.4.0, perl, zlib, gd, png, snmp
@


1.11
log
@upgrading package: mrtg 2.11.1 -> 2.12.0
@
text
@d35 2
a36 2
Version:      2.12.0
Release:      20050516
@


1.10
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
@d35 2
a36 2
Version:      2.11.1
Release:      20050106
@


1.9
log
@upgrading package: mrtg 2.11.0 -> 2.11.1
@
text
@d2 3
a4 4
##  mrtg.spec -- OpenPKG RPM Specification
##  Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
d30 1
a30 1
Packager:     The OpenPKG Project
@


1.9.2.1
log
@bump release numbers for OpenPKG 2.3
@
text
@d37 1
a37 1
Release:      2.3.0
d47 2
a48 2
BuildPreReq:  OpenPKG, openpkg >= 2.3.0, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 2.3.0, perl, zlib, gd, png, snmp
@


1.8
log
@Happy New Year 2005
@
text
@d36 2
a37 2
Version:      2.11.0
Release:      20041209
@


1.7
log
@update from 2.10.15 2.11.0
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2004 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
@


1.6
log
@bless for PLUS class
@
text
@d36 2
a37 2
Version:      2.10.15
Release:      20041011
@


1.6.2.1
log
@bump release numbers for OpenPKG 2.2
@
text
@d37 1
a37 1
Release:      2.2.0
d47 2
a48 2
BuildPreReq:  OpenPKG, openpkg >= 2.2.0, perl, zlib, gd, png
PreReq:       OpenPKG, openpkg >= 2.2.0, perl, zlib, gd, png, snmp
@


1.5
log
@upgrading package: mrtg 2.10.14 -> 2.10.15
@
text
@d33 1
a33 1
Class:        EVAL
d37 1
a37 1
Release:      20040808
@


1.4
log
@do not destroy binary executable
@
text
@d36 2
a37 2
Version:      2.10.14
Release:      20040706
@


1.3
log
@upgrading package: mrtg 2.10.13 -> 2.10.14
@
text
@d37 1
a37 1
Release:      20040609
d66 3
a80 3
    %{l_shtool} subst \
        -e 's;mrtg2";mrtg";g' \
        bin/*
@


1.2
log
@improve packaging of MRTG
@
text
@d36 2
a37 2
Version:      2.10.13
Release:      20040504
a65 6
    %{l_shtool} subst \
        -e 's;$(bindir);$(DESTDIR)$(bindir);g' \
        -e 's;$(libdir);$(DESTDIR)$(libdir);g' \
        -e 's;$(mandir);$(DESTDIR)$(mandir);g' \
        -e 's;$(datadir);$(DESTDIR)$(datadir);g' \
        Makefile.in
@


1.1
log
@new package: mrtg 2.10.13 (Multi Router Traffic Grapher)
@
text
@d37 1
a37 1
Release:      20040402
d41 2
d48 1
a48 1
PreReq:       OpenPKG, openpkg >= 20040130, perl, zlib, gd, png
a82 1

d84 3
d91 13
d105 2
a106 2
        $RPM_BUILD_ROOT%{l_prefix}/share/mrtg2/doc
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
d108 3
a110 1
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
@

