Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ioguix:check_pgactivity
mrtg
mrtg.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mrtg.spec of Package mrtg
# # spec file for package mrtg # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: mrtg Version: 2.17.10 Release: 0 Summary: The Multirouter Traffic Grapher License: GPL-2.0-or-later Group: Productivity/Networking/Diagnostic URL: https://www.mrtg.org Source0: https://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz Source1: mrtg-rpmlintrc # PATCH-FIX-OPENSUSE -- install icons in openSUSE specific directory /usr/share/apache2/icons Patch0: mrtg-icons_path.patch # PATCH-FIX-OPENSUSE -- need to find a better solution for lib64 Patch1: mrtg-lib64hack.patch # PATCH-FIX-OPENSUSE -- some devices return 2**32-2 on ifSpeed (e. g. IBM FibreChannel switches) Patch2: mrtg-cfgmaker-ifhighspeed.patch # PATCH-FIX-OPENSUSE -- some devices return 10 on ifSpeed (e. g. Cisco SG series 10G interfaces) Patch3: mrtg-ifHiSpeed-SG10G.patch # PATCH-FIX-UPSTREAM -- add additional switches to cfgmaker Patch4: mrtg-switches.patch BuildRequires: automake BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: gd-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: zlib-devel Requires: perl = %{perl_version} %description The Multi Router Traffic Grapher is a tool primarily used to monitor the traffic load on network links (typically by using SNMP). MRTG generates HTML pages containing PNG images which provide a LIVE visual representation of this traffic. MRTG typically produces daily, weekly, monthly, and yearly graphs. In addition to monitoring via SNMP, MRTG can also generate graphs based on the output of any application, allowing one to generate graphs of anything that needs monitoring (for example, CPU and memory usage, email volumes, web hits, etc). For faster data collection, MRTG can also interface to RRDtool. The mrtg-doc package contains additional documentation, contributed scripts and configuration files that used to form part of the mrtg package. %package doc Summary: Documentation and contrib files for mrtg Group: Productivity/Networking/Diagnostic Requires: %{name} = %{version} %description doc A collection of sample scripts and configuration files for the Multi Router Traffic Grapher (MRTG). This package contains additional documentation and contributed files that ship with MRTG. %prep %setup -q %patch0 -p1 %if "%{_lib}" == "lib64" %patch1 -p1 %endif %patch2 -p1 %patch3 -p1 %patch4 -p1 rm -rf contrib/mrtgindex.cgi grep -rl "%{_prefix}/local/bin/perl" contrib | xargs sed -i -e "s@%{_prefix}/local/bin/perl@%{_bindir}/perl@" grep -rl "%{_prefix}/tardis/local/gnu/bin/perl5" contrib | xargs sed -i -e "s@%{_prefix}/tardis/local/gnu/bin/perl5@%{_bindir}/perl@" grep -rl "%{_bindir}/perl5" contrib | xargs sed -i -e "s@%{_bindir}/perl5@%{_bindir}/perl@" grep -rl "%{_prefix}/sepp/bin/perl" contrib | xargs sed -i -e "s@%{_prefix}/sepp/bin/perl@%{_bindir}/perl@" grep -rl "/store/bin/perl" contrib | xargs sed -i -e "s@/store/bin/perl@%{_bindir}/perl@" # contrib contains binaries (ie. zipfile) which we cannot convert, # hopefully file utility seems to mark all the text files clearly find contrib -type f | xargs file | grep -i text | cut -d: -f1 | xargs dos2unix find contrib -type f -name "*.html" | xargs chmod 644 # disable the line below to get executable examples in the %%doc directory find contrib -type f | xargs chmod 644 %build aclocal autoconf %configure \ --with-gd-inc=%{_includedir}/gd %make_build %install %make_install install -d -m 755 %{buildroot}%{_datadir}/apache2/icons install -m 644 images/mrtg-[lmr].png %{buildroot}%{_datadir}/apache2/icons rm -rf %{buildroot}%{_datadir}/doc rm -rf %{buildroot}%{_datadir}/mrtg2 # install and fix documentation mkdir -p %{buildroot}%{_defaultdocdir}/%{name}/examples cp -r contrib/* %{buildroot}%{_defaultdocdir}/%{name}/examples/ cp -r doc/*.{pod,txt} %{buildroot}%{_defaultdocdir}/%{name}/ cp -r CHANGES README THANKS %{buildroot}%{_defaultdocdir}/%{name}/ pushd %{buildroot}%{_defaultdocdir}/%{name}/ rm cfgmaker.pod indexmaker.pod mrtglib.pod mrtg-traffic-sum.pod ln -s %{_bindir}/cfgmaker cfgmaker.pod ln -s %{_bindir}/indexmaker indexmaker.pod ln -s %{_bindir}/mrtg-traffic-sum mrtg-traffic-sum.pod ln -s %{_libdir}/mrtg2/MRTG_lib.pm mrtglib.pod popd %fdupes %{buildroot}%{_defaultdocdir}/%{name} %files %license COPYING COPYRIGHT %doc CHANGES README THANKS %{_mandir}/man?/* %{_bindir}/* %{_libdir}/mrtg2 %{_datadir}/apache2 %files doc %dir %{_defaultdocdir}/%{name}/examples %doc %{_defaultdocdir}/%{name}/examples/* %doc %{_defaultdocdir}/%{name}/*.pod %doc %{_defaultdocdir}/%{name}/*.txt %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor